[packages/libqalculate] EEK has fixed rate to EUR since 2011

glen glen at pld-linux.org
Sat Oct 24 19:29:39 CEST 2015


commit 10021069b119465adf1f6a491544e09369ec4d39
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sat Oct 24 20:28:44 2015 +0300

    EEK has fixed rate to EUR since 2011

 currencies.patch  | 42 ++++++++++++++++++++++++++++++++++++++++++
 libqalculate.spec |  2 ++
 2 files changed, 44 insertions(+)
---
diff --git a/libqalculate.spec b/libqalculate.spec
index faae378..a051f2a 100644
--- a/libqalculate.spec
+++ b/libqalculate.spec
@@ -8,6 +8,7 @@ Group:		Libraries
 Source0:	http://downloads.sourceforge.net/qalculate/%{name}-%{version}.tar.gz
 # Source0-md5:	a1507ab862f4ad9852788619aada35cd
 Patch0:		pkgconfig_private.patch
+Patch1:		currencies.patch
 URL:		http://qalculate.sourceforge.net/
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -59,6 +60,7 @@ Statyczna biblioteka qalculate.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__libtoolize}
diff --git a/currencies.patch b/currencies.patch
new file mode 100644
index 0000000..fed6e4d
--- /dev/null
+++ b/currencies.patch
@@ -0,0 +1,42 @@
+TODO:
+- LVL
+- LTL
+
+--- libqalculate-0.9.7/data/currencies.xml	2010-01-05 17:26:32.000000000 +0200
++++ libqalculate-0.9.7/data/currencies.xml	2015-10-24 19:53:16.000000000 +0300
+@@ -161,14 +161,6 @@
+       <names>ar:CZK</names>
+       <names xml:lang="zh_CN">ar:CZK</names>
+     </builtin_unit>
+-    <builtin_unit name="EEK">
+-      <title>Estonian Kroon</title>
+-      <title xml:lang="nl">Estlandse kroon</title>
+-      <title xml:lang="sv">Estoniska kroon</title>
+-      <title xml:lang="zh_CN">爱沙尼亚克鲁恩</title>
+-      <names>ar:EEK</names>
+-      <names xml:lang="zh_CN">ar:EEK</names>
+-    </builtin_unit>
+     <builtin_unit name="HUF">
+       <title>Hungarian Forint</title>
+       <title xml:lang="nl">Hongaarse forint</title>
+@@ -486,5 +478,18 @@
+         <exponent>1</exponent>
+       </base>
+     </unit>
++    <unit type="alias">
++      <title>Estonian Kroon</title>
++      <title xml:lang="nl">Estlandse kroon</title>
++      <title xml:lang="sv">Estoniska kroon</title>
++      <title xml:lang="zh_CN">爱沙尼亚克鲁恩</title>
++      <names>ar:EEK,kroon</names>
++      <names xml:lang="zh_CN">ar:EEK,kroon</names>
++      <base>
++        <unit>EUR</unit>
++        <relation>1/15.6466</relation>
++        <exponent>1</exponent>
++      </base>
++    </unit>
+   </category>
+-</QALCULATE>
+\ No newline at end of file
++</QALCULATE>
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libqalculate.git/commitdiff/10021069b119465adf1f6a491544e09369ec4d39



More information about the pld-cvs-commit mailing list