X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=GiNaC.spec.in;h=3413d328c84250dbd937a73ed090c3966e0ad6c4;hp=b06313cb83c02217943545b32bb180a2fa5e275f;hb=44f71c740cc727dc30436e240b9a27021a6d7fdf;hpb=a538837c6369c7f5d99b1f827f818103c025fdb3 diff --git a/GiNaC.spec.in b/GiNaC.spec.in index b06313cb..3413d328 100644 --- a/GiNaC.spec.in +++ b/GiNaC.spec.in @@ -6,97 +6,125 @@ Summary: C++ library for symbolic calculations Name: %{name} Version: %{version} Release: %{release} -Copyright: GPL +License: GPL Group: System Environment/Libraries -Source: ftp://ftpthep.physik.uni-mainz.de/pub/GiNaC/%{name}-%{version}.tar.gz -BuildRoot: /tmp/%{name}-buildroot -Packager: Christian Bauer +Source0: ftp://ftpthep.physik.uni-mainz.de/pub/GiNaC/%{name}-%{version}.tar.bz2 URL: http://www.ginac.de/ -Prereq: /sbin/install-info +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Prefix: %{_prefix} -Docdir: %{prefix}/doc + +Requires(post): /sbin/install-info +Requires(preun): /sbin/install-info +Requires: cln >= 1.1 +BuildRequires: cln-devel >= 1.1 gcc-c++ readline-devel +Obsoletes: GiNaC %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 -Summary: Libraries, includes and more to develop GiNaC applications +Summary: GiNaC development libraries and header files Group: Development/Libraries -Requires: %{name} +Requires: %{name} = %{version}-%{release} cln-devel +Obsoletes: GiNaC-devel %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. -%prep -rm -rf $RPM_BUILD_ROOT +%package utils +Summary: GiNaC-related utilities +Group: System Environment/Libraries +Requires: %{name} = %{version}-%{release} +Obsoletes: GiNaC-utils + +%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 -CXXFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} -if [ "$SMP" != "" ]; then - (make "MAKE=make -k -j $SMP"; exit 0) - make -else - make -fi +%configure +make %install -rm -rf $RPM_BUILD_ROOT -make prefix=$RPM_BUILD_ROOT/%{prefix} install-strip +rm -rf ${RPM_BUILD_ROOT} +%makeinstall %clean -rm -rf $RPM_BUILD_ROOT +rm -rf ${RPM_BUILD_ROOT} -%post -/sbin/ldconfig +%post -p /sbin/ldconfig -%postun -/sbin/ldconfig +%postun -p /sbin/ldconfig %post devel -/sbin/install-info %{prefix}/info/ginac.info %{prefix}/info/dir +/sbin/install-info --info-dir=%{_infodir} %{_infodir}/ginac.info.gz 2>/dev/null || : %preun devel -/sbin/install-info --delete %{prefix}/info/ginac.info %{prefix}/info/dir +if [ "$1" = 0 ]; then + /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/ginac.info.gz 2>/dev/null || : +fi %files -%defattr(-, root, root) +%defattr(-,root,root) %doc AUTHORS COPYING ChangeLog NEWS README -%{prefix}/lib/*.so.* -%{prefix}/man/man1/ginsh.1 -%{prefix}/man/man1/viewgar.1 -%{prefix}/bin/ginsh -%{prefix}/bin/viewgar +%{_libdir}/*.so.* %files devel -%defattr(-, root, root) -%doc AUTHORS COPYING ChangeLog NEWS README -%{prefix}/lib/*.a -%{prefix}/lib/*.la -%{prefix}/lib/*.so -%{prefix}/include/* -%{prefix}/info/*info* -%{prefix}/man/man1/*-config.1 -%{prefix}/bin/*-config -%{prefix}/share/doc/%{name}/* -%{prefix}/share/aclocal/* +%defattr(-,root,root) +%{_libdir}/*.a +%{_libdir}/*.la +%{_libdir}/*.so +%{_libdir}/pkgconfig/ginac.pc +%{_includedir}/ginac +%{_infodir}/*.info* + +%files utils +%defattr(-,root,root) +%{_bindir}/ginsh +%{_bindir}/viewgar +%{_mandir}/man1/ginsh.1* +%{_mandir}/man1/viewgar.1* %changelog -* Wed Jan 26 2000 Christian Bauer +* Mon Jul 11 2005 Christian Bauer +- name of package changed from "GiNaC" to "ginac"; added "Obsoletes:" + directives + +* Thu Jun 30 2005 Christian Bauer +- included some updates from the Fedora Extras spec file: + - "Copyright:" -> "License:" + - Fixed broken install-info command + - Added missing BuildRequires + - Added release to Requires for devel and utils + - Remove processing of info files (this is supposed to be automatic) + - Added cln-devel as dependency of GiNaC-devel +* Thu Nov 20 2003 Christian Bauer +- added pkg-config metadata file to devel package + +* Thu Nov 1 2001 Christian Bauer +- moved ginsh and viewgar to "utils" package + +* 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