X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=GiNaC.spec.in;h=38f7acc2d031712c1fd9150f34019ace1ddc1c53;hp=4fef8ab71e9884c659e7f7d93e2f22647e73e84c;hb=99ffa46f4a71460b5f5013870a82e107b5444dd3;hpb=e5e2d88f74c915d5db25964f15746085de6b9106 diff --git a/GiNaC.spec.in b/GiNaC.spec.in index 4fef8ab7..38f7acc2 100644 --- a/GiNaC.spec.in +++ b/GiNaC.spec.in @@ -6,16 +6,18 @@ 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 +Source0: ftp://ftpthep.physik.uni-mainz.de/pub/GiNaC/%{name}-%{version}.tar.bz2 URL: http://www.ginac.de/ -Packager: Christian Bauer -Prereq: /sbin/install-info -BuildRoot: %{_tmppath}/%{name}-root +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Prefix: %{_prefix} +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 @@ -25,7 +27,8 @@ open framework for symbolic computation within the C++ programming language. %package devel Summary: GiNaC development libraries and header files Group: Development/Libraries -Requires: %{name} = %{version} +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 @@ -38,7 +41,8 @@ use to develop GiNaC applications. %package utils Summary: GiNaC-related utilities Group: System Environment/Libraries -Requires: %{name} = %{version} +Requires: %{name} = %{version}-%{release} +Obsoletes: GiNaC-utils %description utils GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra System)") is an @@ -53,39 +57,26 @@ the tool "viewgar" which displays the contents of GiNaC archives. %setup -q %build -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 - NCPU=1 - fi -else - NCPU=1 -fi -(make -k -j $NCPU; exit 0) +%configure make %install rm -rf ${RPM_BUILD_ROOT} -make DESTDIR=${RPM_BUILD_ROOT} install -gzip -9nf ${RPM_BUILD_ROOT}%{_infodir}/ginac.info* -rm ${RPM_BUILD_ROOT}%{_infodir}/dir +%makeinstall %clean rm -rf ${RPM_BUILD_ROOT} -%post -/sbin/ldconfig +%post -p /sbin/ldconfig -%postun -/sbin/ldconfig +%postun -p /sbin/ldconfig %post devel -/sbin/install-info %{_infodir}/ginac.info.gz %{_infodir}/dir +/sbin/install-info --info-dir=%{_infodir} %{_infodir}/ginac.info.gz 2>/dev/null || : %preun devel if [ "$1" = 0 ]; then - /sbin/install-info --delete %{_infodir}/ginac.info.gz %{_infodir}/dir + /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/ginac.info.gz 2>/dev/null || : fi %files @@ -98,11 +89,12 @@ fi %{_libdir}/*.a %{_libdir}/*.la %{_libdir}/*.so -%{_includedir}/ginac/*.h +%{_libdir}/pkgconfig/ginac.pc +%{_includedir}/ginac %{_infodir}/*.info* %{_mandir}/man1/ginac-config.1* %{_bindir}/ginac-config -%{_datadir}/aclocal/* +%{_datadir}/aclocal/ginac.m4 %files utils %defattr(-,root,root) @@ -112,6 +104,22 @@ fi %{_mandir}/man1/viewgar.1* %changelog +* 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