X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=GiNaC.spec.in;h=1b178a117075144f803f0eec0f5aca2b3028da28;hp=138ec97b2dcb0094f5d126016cab626e7272c178;hb=c443cf647bbac14c9c3eed2565fd2df70fab9a84;hpb=4fb81453461f004b7334bac10d1eed60ac9837b8 diff --git a/GiNaC.spec.in b/GiNaC.spec.in index 138ec97b..1b178a11 100644 --- a/GiNaC.spec.in +++ b/GiNaC.spec.in @@ -1,10 +1,9 @@ -# spec file for GiNaC (not relocatable) - +# Note that this is NOT a relocatable package %define ver @VERSION@ %define rel 1 %define prefix /usr -Summary: C++ library for symbolic mathematical calculations +Summary: C++ library for symbolic calculations Name: GiNaC Version: %ver Release: %rel @@ -14,38 +13,45 @@ Source: ftp://ftpthep.physik.uni-mainz.de/pub/GiNaC/GiNaC-%{ver}.tar.gz BuildRoot: /tmp/GiNaC-%{PACKAGE_VERSION}-root Packager: Christian Bauer URL: http://www.ginac.de/ -Prereq: install-info +Prereq: /sbin/install-info Docdir: %{prefix}/doc %description 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 -numeric applications, graphical interfaces, etc.) under one roof. +C++ library for symbolic 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 numeric +applications, graphical interfaces, etc.) under one roof. %prep %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-strip -gzip -9n $RPM_BUILD_ROOT%{prefix}/info/* +gzip -9 $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 +%post +/sbin/ldconfig +/sbin/install-info %{prefix}/info/ginac.info.gz %{prefix}/info/dir -%postun -p /sbin/ldconfig +%postun +/sbin/ldconfig %preun -install-info --delete %{prefix}/info/ginac.info.gz %{prefix}/info/dir +/sbin/install-info --delete %{prefix}/info/ginac.info.gz %{prefix}/info/dir %files %defattr(-, root, root) @@ -56,4 +62,10 @@ install-info --delete %{prefix}/info/ginac.info.gz %{prefix}/info/dir %{prefix}/info/* %{prefix}/man/man1/* %{prefix}/share/doc/GiNaC/* +%{prefix}/share/aclocal/* %{prefix}/bin/* + +%changelog +* Wed Dec 1 1999 Christian Bauer + +- aclocal macros get installed