diff --git a/ginac-build-gcc43.patch b/ginac-build-gcc43.patch new file mode 100644 index 0000000..f3ce07f --- /dev/null +++ b/ginac-build-gcc43.patch @@ -0,0 +1,21 @@ +diff -up ginac-1.4.1/ginac/numeric.cpp.fix ginac-1.4.1/ginac/numeric.cpp +--- ginac-1.4.1/ginac/numeric.cpp.fix 2008-03-02 04:03:11.000000000 -0700 ++++ ginac-1.4.1/ginac/numeric.cpp 2008-03-02 04:06:10.000000000 -0700 +@@ -408,7 +408,7 @@ static inline bool coerce(T1& dst, const + * @sa http://www.ginac.de/pipermail/cln-list/2006-October/000248.html + */ + template<> +-static inline bool coerce(int& dst, const cln::cl_I& arg) ++inline bool coerce(int& dst, const cln::cl_I& arg) + { + static const cln::cl_I cl_max_int = + (cln::cl_I)(long)(std::numeric_limits::max()); +@@ -422,7 +422,7 @@ static inline bool coerce +-static inline bool coerce(unsigned int& dst, const cln::cl_I& arg) ++inline bool coerce(unsigned int& dst, const cln::cl_I& arg) + { + static const cln::cl_I cl_max_uint = + (cln::cl_I)(unsigned long)(std::numeric_limits::max()); diff --git a/ginac.spec b/ginac.spec index bd40712..d7f90e3 100644 --- a/ginac.spec +++ b/ginac.spec @@ -1,12 +1,13 @@ Name: ginac Version: 1.4.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: C++ library for symbolic calculations Group: System Environment/Libraries License: GPLv2+ URL: http://www.ginac.de/ Source0: http://www.ginac.de/%{name}-%{version}.tar.bz2 +Patch0: %{name}-build-gcc43.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires(post): /sbin/install-info @@ -54,6 +55,7 @@ the tool "viewgar" which displays the contents of GiNaC archives. %prep %setup -q +%patch0 -p1 %build %configure --disable-dependency-tracking --disable-static @@ -99,6 +101,10 @@ fi %{_mandir}/man?/* %changelog +* Sun Mar 2 2008 Alex Lancaster - 1.4.1-4 +- Patch for building with GCC 4.3 (this has been applied upstream and so + can be dropped in the next release of ginac). + * Wed Feb 27 2008 Quentin Spencer 1.4.1-3 - Rebuild for new release of cln.