Summary: C++ class library for symbolic calculations
Summary(pl.UTF-8): Biblioteka klas C++ do obliczeń symbolicznych
Name: GiNaC
-Version: 1.4.1
+Version: 1.5.8
Release: 1
License: GPL v2+
Group: Libraries
Source0: ftp://ftpthep.physik.uni-mainz.de/pub/GiNaC/ginac-%{version}.tar.bz2
-# Source0-md5: 37356db3fe520498f2857e3ed6daec82
+# Source0-md5: 8693b3c9c3467694032ce9c8b3063d4c
Patch0: %{name}-info.patch
URL: http://www.ginac.de/
-BuildRequires: automake
+BuildRequires: autoconf >= 2.59
+BuildRequires: automake >= 1:1.7
+BuildRequires: bison >= 2.3
BuildRequires: cln-devel >= 1.1.6
+BuildRequires: gettext-devel
BuildRequires: libstdc++-devel
+BuildRequires: libtool >= 2:1.5
BuildRequires: pkgconfig
BuildRequires: readline-devel
BuildRequires: texinfo
%prep
%setup -q -n ginac-%{version}
%patch0 -p1
+%{__sed} -i -e 's/#include <iostream>/#include <cstdio>\n#include <iostream>/g' ginac/parser/lexer.cpp
+# generated with wrong bison version, miscompiled by gcc 4.1+
+#%{__rm} ginac/input_parser.{cc,h}
%build
-cp -f /usr/share/automake/config.* .
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
%configure
%{__make}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
-%post devel -p /sbin/postshell
+%post devel -p /sbin/postshell
-/usr/sbin/fix-info-dir -c %{_infodir}
-%postun devel -p /sbin/postshell
+%postun devel -p /sbin/postshell
-/usr/sbin/fix-info-dir -c %{_infodir}
%files