X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=GiNaC.spec.in;h=8714be8fcb9f19a700e30bf1208b53894eb4c443;hp=edd2baa0fae6f4beeee165443bdffa5a41f4bb7d;hb=9ca58b8e0e91d5a7f38b6e80da0eae5ce4c3a533;hpb=f2e7d71e88a82d8f205ce8ca66f51665325585d7 diff --git a/GiNaC.spec.in b/GiNaC.spec.in index edd2baa0..8714be8f 100644 --- a/GiNaC.spec.in +++ b/GiNaC.spec.in @@ -1,64 +1,107 @@ -# spec file for GiNaC (not relocatable) +%define name @PACKAGE@ +%define version @VERSION@ +%define release 1 -%define ver @VERSION@ -%define rel 1 -%define prefix /usr - -Summary: C++ library for symbolic mathematical calculations -Name: GiNaC -Version: %ver -Release: %rel +Summary: C++ library for symbolic calculations +Name: %{name} +Version: %{version} +Release: %{release} Copyright: GPL -Group: Libraries -Source: ftp://ftpthep.physik.uni-mainz.de/pub/GiNaC/GiNaC-%{ver}.tar.gz -BuildRoot: /tmp/GiNaC-%{PACKAGE_VERSION}-root -Packager: Christian Bauer +Group: System Environment/Libraries +Source: ftp://ftpthep.physik.uni-mainz.de/pub/GiNaC/%{name}-%{version}.tar.gz URL: http://www.ginac.de/ -Prereq: install-info -Docdir: %{prefix}/doc +Prereq: /sbin/install-info +#Requires: cln +BuildRoot: %{_tmppath}/%{name}-root +Prefix: %{_prefix} %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. +GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra System)") is an +open framework for symbolic computation within the C++ programming language. + +It includes the ginsh ("GiNaC interactive shell") which provides a simple and +easy-to-use CAS-like interface to GiNaC for non-programmers. + + +%package devel +Summary: Libraries, includes and more to develop GiNaC applications +Group: Development/Libraries +Requires: %{name} + +%description devel +GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra System)") is an +open framework for symbolic computation within the C++ programming language. + +This is the libraries, include files and other resources you can use to +develop GiNaC applications. + %prep -%setup +%setup -q %build -CXXFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix -if [ "$SMP" != "" ]; then - (make "MAKE=make -k -j $SMP"; exit 0) - make -else - make +./configure --prefix=%{_prefix} +if [ -x /usr/bin/getconf ] ; then + NCPU=$(/usr/bin/getconf _NPROCESSORS_ONLN) + if [ $NCPU -eq 0 ] ; then + NCPU=1 + fi +else + NCPU=1 fi +PARL=$[ $NCPU + 1 ] +(make -k -j $PARL; exit 0) +make %install -rm -rf $RPM_BUILD_ROOT -make prefix=$RPM_BUILD_ROOT%{prefix} install -gzip -9n $RPM_BUILD_ROOT%{prefix}/info/* +rm -rf ${RPM_BUILD_ROOT} +mkdir -p ${RPM_BUILD_ROOT}%{_infodir} +make prefix=%{_prefix} DESTDIR=${RPM_BUILD_ROOT} install +gzip -9nf ${RPM_BUILD_ROOT}%{_infodir}/ginac.info* %clean -rm -rf $RPM_BUILD_ROOT +rm -rf ${RPM_BUILD_ROOT} -%post -p /sbin/ldconfig -install-info %{prefix}/info/ginac.info.gz %{prefix}/info/dir +%post +/sbin/ldconfig -%postun -p /sbin/ldconfig +%postun +/sbin/ldconfig -%preun -install-info --delete %{prefix}/info/ginac.info.gz %{prefix}/info/dir +%post devel +/sbin/install-info %{_infodir}/ginac.info.gz %{_infodir}/dir + +%preun devel +if [ "$1" = 0 ]; then + /sbin/install-info --del %{_infodir}/ginac.info.gz %{_infodir}/dir +fi %files -%defattr(-, root, root) +%defattr(-,root,root) %doc AUTHORS COPYING ChangeLog NEWS README -%{prefix}/lib/lib*.so* -%{prefix}/lib/*a -%{prefix}/include/* -%{prefix}/info/ginac.info* -%{prefix}/man/man1/* -%{prefix}/share/doc/GiNaC/* -%{prefix}/bin/* +%{_libdir}/*.so.* +%{_bindir}/ginsh +%{_bindir}/viewgar +%{_mandir}/man1/ginsh.1 +%{_mandir}/man1/viewgar.1 + +%files devel +%defattr(-,root,root) +%{_libdir}/*.a +%{_libdir}/*.la +%{_libdir}/*.so +%{_includedir}/* +%{_infodir}/*.info* +%{_mandir}/man1/ginac-config.1 +%{_bindir}/ginac-config +%{_datadir}/aclocal/* + +%changelog +* Thu Oct 5 2000 Christian Bauer +- cleaned up a bit + +* Wed Jan 26 2000 Christian Bauer +- split into user and devel packages + +* Wed Dec 1 1999 Christian Bauer +- aclocal macros get installed