From afafe46187f292884cb0ef89e7ec711a04a51966 Mon Sep 17 00:00:00 2001 From: Deji Akingunola Date: Mon, 11 Feb 2008 04:09:07 +0000 Subject: [PATCH] Patched to build with gcc43 --- libqalculate-gcc43.patch | 10 ++++++++++ libqalculate.spec | 2 ++ 2 files changed, 12 insertions(+) create mode 100644 libqalculate-gcc43.patch diff --git a/libqalculate-gcc43.patch b/libqalculate-gcc43.patch new file mode 100644 index 0000000..9401922 --- /dev/null +++ b/libqalculate-gcc43.patch @@ -0,0 +1,10 @@ +--- libqalculate/Number.cc 2007-05-18 04:03:22.000000000 -0400 ++++ libqalculate/Number.cc.new 2008-02-10 22:56:51.000000000 -0500 +@@ -15,6 +15,7 @@ + #include "Calculator.h" + + #include ++#include + #include "util.h" + + #define REAL_PRECISION_FLOAT_RE(x) cln::cl_float(cln::realpart(x), cln::float_format(PRECISION + 1)) diff --git a/libqalculate.spec b/libqalculate.spec index e0f8143..8a0fa5b 100644 --- a/libqalculate.spec +++ b/libqalculate.spec @@ -6,6 +6,7 @@ License: GPLv2+ Group: System Environment/Libraries URL: http://qalculate.sourceforge.net/ Source0: http://dl.sf.net/sourceforge/qalculate/%{name}-%{version}.tar.gz +Patch0: libqalculate-gcc43.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: glib2-devel, cln-devel BuildRequires: libxml2-devel @@ -41,6 +42,7 @@ frontends are provided by qalculate-gtk and qalculate-kde packages resp. %prep %setup -q +%patch0 -p0 -b .gcc43 %build %configure --disable-static