]> www.ginac.de Git - ginac.git/blobdiff - GiNaC.spec.in
clifford and color objects are not contracted if their representation labels
[ginac.git] / GiNaC.spec.in
index 8714be8fcb9f19a700e30bf1208b53894eb4c443..f3048e6c7a4f6d3321822dae9834dbe134f7bac7 100644 (file)
@@ -10,37 +10,50 @@ Copyright: GPL
 Group: System Environment/Libraries
 Source: ftp://ftpthep.physik.uni-mainz.de/pub/GiNaC/%{name}-%{version}.tar.gz
 URL: http://www.ginac.de/
 Group: System Environment/Libraries
 Source: ftp://ftpthep.physik.uni-mainz.de/pub/GiNaC/%{name}-%{version}.tar.gz
 URL: http://www.ginac.de/
+Packager: Christian Bauer <cbauer@ginac.de>
 Prereq: /sbin/install-info
 Prereq: /sbin/install-info
-#Requires: cln
 BuildRoot: %{_tmppath}/%{name}-root
 Prefix: %{_prefix}
 
 BuildRoot: %{_tmppath}/%{name}-root
 Prefix: %{_prefix}
 
+Requires: cln >= 1.1
+
 %description
 GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra System)") is an
 open framework for symbolic computation within the C++ programming language.
 
 %description
 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
 
 %package devel
-Summary: Libraries, includes and more to develop GiNaC applications
+Summary: GiNaC development libraries and header files
 Group: Development/Libraries
 Group: Development/Libraries
-Requires: %{name}
+Requires: %{name} = %{version}
 
 %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.
 
 
 %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.
+This package contains the libraries, include files and other resources you
+use to develop GiNaC applications.
+
+
+%package utils
+Summary: GiNaC-related utilities
+Group: System Environment/Libraries
+Requires: %{name} = %{version}
+
+%description utils
+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 package includes the ginsh ("GiNaC interactive shell") which provides a
+simple and easy-to-use CAS-like interface to GiNaC for non-programmers, and
+the tool "viewgar" which displays the contents of GiNaC archives.
 
 
 %prep
 %setup -q
 
 %build
 
 
 %prep
 %setup -q
 
 %build
-./configure --prefix=%{_prefix}
+CFLAGS=${RPM_OPT_FLAGS} CXXFLAGS=${RPM_OPT_FLAGS} ./configure --prefix=%{_prefix} --mandir=%{_mandir} --infodir=%{_infodir}
 if [ -x /usr/bin/getconf ] ; then
   NCPU=$(/usr/bin/getconf _NPROCESSORS_ONLN)
   if [ $NCPU -eq 0 ] ; then
 if [ -x /usr/bin/getconf ] ; then
   NCPU=$(/usr/bin/getconf _NPROCESSORS_ONLN)
   if [ $NCPU -eq 0 ] ; then
@@ -55,8 +68,7 @@ make
 
 %install
 rm -rf ${RPM_BUILD_ROOT}
 
 %install
 rm -rf ${RPM_BUILD_ROOT}
-mkdir -p ${RPM_BUILD_ROOT}%{_infodir}
-make prefix=%{_prefix} DESTDIR=${RPM_BUILD_ROOT} install
+make DESTDIR=${RPM_BUILD_ROOT} install
 gzip -9nf ${RPM_BUILD_ROOT}%{_infodir}/ginac.info*
 
 %clean
 gzip -9nf ${RPM_BUILD_ROOT}%{_infodir}/ginac.info*
 
 %clean
@@ -73,30 +85,36 @@ rm -rf ${RPM_BUILD_ROOT}
 
 %preun devel
 if [ "$1" = 0 ]; then
 
 %preun devel
 if [ "$1" = 0 ]; then
-  /sbin/install-info --del %{_infodir}/ginac.info.gz %{_infodir}/dir
+  /sbin/install-info --delete %{_infodir}/ginac.info.gz %{_infodir}/dir
 fi
 
 %files
 %defattr(-,root,root)
 %doc AUTHORS COPYING ChangeLog NEWS README
 %{_libdir}/*.so.*
 fi
 
 %files
 %defattr(-,root,root)
 %doc AUTHORS COPYING ChangeLog NEWS README
 %{_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
 
 %files devel
 %defattr(-,root,root)
 %{_libdir}/*.a
 %{_libdir}/*.la
 %{_libdir}/*.so
-%{_includedir}/*
+%{_includedir}/ginac/*.h
 %{_infodir}/*.info*
 %{_infodir}/*.info*
-%{_mandir}/man1/ginac-config.1
+%{_mandir}/man1/ginac-config.1*
 %{_bindir}/ginac-config
 %{_datadir}/aclocal/*
 
 %{_bindir}/ginac-config
 %{_datadir}/aclocal/*
 
+%files utils
+%defattr(-,root,root)
+%{_bindir}/ginsh
+%{_bindir}/viewgar
+%{_mandir}/man1/ginsh.1*
+%{_mandir}/man1/viewgar.1*
+
 %changelog
 %changelog
+* Thu Nov  1 2001 Christian Bauer <Christian.Bauer@uni-mainz.de>
+- moved ginsh and viewgar to "utils" package
+
 * Thu Oct  5 2000 Christian Bauer <Christian.Bauer@uni-mainz.de>
 - cleaned up a bit
 
 * Thu Oct  5 2000 Christian Bauer <Christian.Bauer@uni-mainz.de>
 - cleaned up a bit