diff --git a/libqalculate-0.9.7-euroref-daily.patch b/libqalculate-0.9.7-euroref-daily.patch new file mode 100644 index 0000000..9264200 --- /dev/null +++ b/libqalculate-0.9.7-euroref-daily.patch @@ -0,0 +1,13 @@ +diff -up libqalculate-0.9.7/libqalculate/Calculator.cc.euroref-daily libqalculate-0.9.7/libqalculate/Calculator.cc +--- libqalculate-0.9.7/libqalculate/Calculator.cc.euroref-daily 2010-01-05 09:15:27.000000000 -0600 ++++ libqalculate-0.9.7/libqalculate/Calculator.cc 2015-06-17 13:41:27.689297656 -0500 +@@ -8144,6 +8144,9 @@ bool Calculator::loadExchangeRates() { + string homedir = getLocalDir(); + filename = homedir; + filename += "eurofxref-daily.xml"; ++ if(!g_file_test(filename.c_str(),G_FILE_TEST_EXISTS)) { ++ return false; ++ } + doc = xmlParseFile(filename.c_str()); + if(doc == NULL) { + //fetchExchangeRates(); diff --git a/libqalculate.spec b/libqalculate.spec index 03e0098..decaeb8 100644 --- a/libqalculate.spec +++ b/libqalculate.spec @@ -1,13 +1,15 @@ Summary: Multi-purpose calculator library Name: libqalculate Version: 0.9.7 -Release: 13%{?dist} +Release: 14%{?dist} License: GPLv2+ Group: System Environment/Libraries URL: http://qalculate.sourceforge.net/ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz Patch1: libqalculate-0.9.7-pkgconfig_private.patch Patch2: libqalculate-htmldir.patch +# don't spam errors if euroref-daily.xml doesn't (yet) exist +Patch3: libqalculate-0.9.7-euroref-daily.patch BuildRequires: glib2-devel, cln-devel BuildRequires: libxml2-devel BuildRequires: readline-devel, ncurses-devel @@ -44,6 +46,7 @@ frontends are provided by qalculate-gtk and qalculate-kde packages resp. %setup -q %patch1 -p1 -b .pkgconfig_private %patch2 -p0 -b .htmldir-unversioned +%patch3 -p1 -b .euroref-daily %build %configure --disable-static @@ -78,6 +81,9 @@ rm -f %{buildroot}/%{_libdir}/*.la %{_bindir}/qalc %changelog +* Wed Jun 17 2015 Rex Dieter 0.9.7-14 +- workaround (mostly) needless stderr spam: failed to load external entity .../eurofxref-daily.xml + * Wed Jun 17 2015 Fedora Release Engineering - 0.9.7-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild