Author: glen Date: Wed Jan 12 16:49:40 2011 GMT Module: packages Tag: HEAD ---- Log message: - add fixed rate for EEK currency; rel 2
---- Files affected: packages/gcalctool: gcalctool.spec (1.92 -> 1.93) , EEK-fixed-rate.patch (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: packages/gcalctool/gcalctool.spec diff -u packages/gcalctool/gcalctool.spec:1.92 packages/gcalctool/gcalctool.spec:1.93 --- packages/gcalctool/gcalctool.spec:1.92 Thu Dec 9 23:07:25 2010 +++ packages/gcalctool/gcalctool.spec Wed Jan 12 17:49:34 2011 @@ -3,11 +3,12 @@ Summary(pl.UTF-8): Kalkulator dla GNOME Name: gcalctool Version: 5.32.2 -Release: 1 +Release: 2 License: GPL v2 Group: X11/Applications/Math Source0: http://ftp.gnome.org/pub/GNOME/sources/gcalctool/5.32/%{name}-%{version}.tar.bz2 # Source0-md5: 3f56976752dc990b4fb9e5d60e9a04eb +Patch0: EEK-fixed-rate.patch URL: http://www.gnome.org/ BuildRequires: autoconf >= 2.53 BuildRequires: automake @@ -41,6 +42,7 @@ %prep %setup -q +%patch0 -p1 sed -i -e 's/^...@shaw//' po/LINGUAS rm -f po/[email protected] @@ -95,6 +97,9 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.93 2011/01/12 16:49:34 glen +- add fixed rate for EEK currency; rel 2 + Revision 1.92 2010/12/09 22:07:25 megabajt - use %glib_compile_schemas ================================================================ Index: packages/gcalctool/EEK-fixed-rate.patch diff -u /dev/null packages/gcalctool/EEK-fixed-rate.patch:1.1 --- /dev/null Wed Jan 12 17:49:40 2011 +++ packages/gcalctool/EEK-fixed-rate.patch Wed Jan 12 17:49:34 2011 @@ -0,0 +1,24 @@ +--- gcalctool-5.32.2/src/currency.c~ 2010-10-13 03:25:41.000000000 +0300 ++++ gcalctool-5.32.2/src/currency.c 2011-01-12 18:38:53.916009388 +0200 +@@ -167,7 +167,7 @@ + } + + len = (xpath_obj->nodesetval) ? xpath_obj->nodesetval->nodeNr : 0; +- currency_count = len + 1; ++ currency_count = len + 2; + currencies = g_slice_alloc0(sizeof(currency) * currency_count); + for (i = 0; i < len; i++) { + if (xpath_obj->nodesetval->nodeTab[i]->type == XML_ELEMENT_NODE) { +@@ -184,6 +184,12 @@ + mp_set_from_integer(1, &foo); + currencies[len].value = foo; + ++ // EEK has fixed rate 1 EUR = 15.6466 EEK ++ currencies[len + 1].short_name = g_strdup("EEK"); ++ MPNumber eek; ++ mp_set_from_double(15.6466, &eek); ++ currencies[len + 1].value = eek; ++ + xmlXPathFreeObject(xpath_obj); + xmlXPathFreeContext(xpath_ctx); + xmlFreeDoc(document); ================================================================ ---- CVS-web: http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gcalctool/gcalctool.spec?r1=1.92&r2=1.93&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
