]> www.ginac.de Git - ginac.git/blobdiff - GiNaC.spec.in
- RPM_OPT_FLAGS are used for compiling
[ginac.git] / GiNaC.spec.in
index c42fc662f347ac543e485faff79a98f7cb67f82a..edd2baa0fae6f4beeee165443bdffa5a41f4bb7d 100644 (file)
@@ -13,11 +13,12 @@ Group: Libraries
 Source: ftp://ftpthep.physik.uni-mainz.de/pub/GiNaC/GiNaC-%{ver}.tar.gz
 BuildRoot: /tmp/GiNaC-%{PACKAGE_VERSION}-root
 Packager: Christian Bauer <Christian.Bauer@uni-mainz.de>
-URL: http://wwwthep.physik.uni-mainz.de/GiNaC/
+URL: http://www.ginac.de/
+Prereq: install-info
 Docdir: %{prefix}/doc
 
 %description
-GiNaC (which stands for "GiNaC is Not a CAS (computer algebra system)) is a
+GiNaC (which stands for "GiNaC is Not a CAS (computer algebra system)") is a
 C++ library for symbolic mathematical calculations. It is designed to allow
 the creation of integrated systems that embed symbolic manipulations together
 with more established areas of computer science (like computation-intense
@@ -27,26 +28,37 @@ numeric applications, graphical interfaces, etc.) under one roof.
 %setup
 
 %build
-./configure --prefix=%prefix
-make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
+CXXFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix
+if [ "$SMP" != "" ]; then
+  (make "MAKE=make -k -j $SMP"; exit 0)
+  make
+else
+  make
+fi
 
 %install
 rm -rf $RPM_BUILD_ROOT
 make prefix=$RPM_BUILD_ROOT%{prefix} install
+gzip -9n $RPM_BUILD_ROOT%{prefix}/info/*
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post -p /sbin/ldconfig
+install-info %{prefix}/info/ginac.info.gz %{prefix}/info/dir
 
 %postun -p /sbin/ldconfig
 
+%preun
+install-info --delete %{prefix}/info/ginac.info.gz %{prefix}/info/dir
+
 %files
 %defattr(-, root, root)
 %doc AUTHORS COPYING ChangeLog NEWS README
-%{prefix}/lib/lib*.so
+%{prefix}/lib/lib*.so*
 %{prefix}/lib/*a
 %{prefix}/include/*
+%{prefix}/info/ginac.info*
 %{prefix}/man/man1/*
 %{prefix}/share/doc/GiNaC/*
 %{prefix}/bin/*