| 6 |
Name: %{name} |
Name: %{name} |
| 7 |
Version: %{version} |
Version: %{version} |
| 8 |
Release: %{release} |
Release: %{release} |
| 9 |
Copyright: GPL |
License: GPL |
| 10 |
Group: System Environment/Libraries |
Group: System Environment/Libraries |
| 11 |
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 |
| 12 |
URL: http://www.ginac.de/ |
URL: http://www.ginac.de/ |
| 13 |
Packager: Christian Bauer <cbauer@ginac.de> |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
|
Prereq: /sbin/install-info |
|
|
BuildRoot: %{_tmppath}/%{name}-root |
|
| 14 |
Prefix: %{_prefix} |
Prefix: %{_prefix} |
| 15 |
|
|
| 16 |
|
Requires(post): /sbin/install-info |
| 17 |
|
Requires(preun): /sbin/install-info |
| 18 |
Requires: cln >= 1.1 |
Requires: cln >= 1.1 |
| 19 |
|
BuildRequires: cln-devel >= 1.1 gcc-c++ readline-devel |
| 20 |
|
|
| 21 |
%description |
%description |
| 22 |
GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra System)") is an |
GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra System)") is an |
| 26 |
%package devel |
%package devel |
| 27 |
Summary: GiNaC development libraries and header files |
Summary: GiNaC development libraries and header files |
| 28 |
Group: Development/Libraries |
Group: Development/Libraries |
| 29 |
Requires: %{name} = %{version} |
Requires: %{name} = %{version}-%{release} cln-devel |
| 30 |
|
|
| 31 |
%description devel |
%description devel |
| 32 |
GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra System)") is an |
GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra System)") is an |
| 39 |
%package utils |
%package utils |
| 40 |
Summary: GiNaC-related utilities |
Summary: GiNaC-related utilities |
| 41 |
Group: System Environment/Libraries |
Group: System Environment/Libraries |
| 42 |
Requires: %{name} = %{version} |
Requires: %{name} = %{version}-%{release} |
| 43 |
|
|
| 44 |
%description utils |
%description utils |
| 45 |
GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra System)") is an |
GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra System)") is an |
| 54 |
%setup -q |
%setup -q |
| 55 |
|
|
| 56 |
%build |
%build |
| 57 |
CFLAGS=${RPM_OPT_FLAGS} CXXFLAGS=${RPM_OPT_FLAGS} ./configure --prefix=%{_prefix} --mandir=%{_mandir} --infodir=%{_infodir} |
%configure |
|
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) |
|
| 58 |
make |
make |
| 59 |
|
|
| 60 |
%install |
%install |
| 61 |
rm -rf ${RPM_BUILD_ROOT} |
rm -rf ${RPM_BUILD_ROOT} |
| 62 |
make DESTDIR=${RPM_BUILD_ROOT} install |
%makeinstall |
|
gzip -9nf ${RPM_BUILD_ROOT}%{_infodir}/ginac.info* |
|
|
rm ${RPM_BUILD_ROOT}%{_infodir}/dir |
|
| 63 |
|
|
| 64 |
%clean |
%clean |
| 65 |
rm -rf ${RPM_BUILD_ROOT} |
rm -rf ${RPM_BUILD_ROOT} |
| 66 |
|
|
| 67 |
%post |
%post -p /sbin/ldconfig |
|
/sbin/ldconfig |
|
| 68 |
|
|
| 69 |
%postun |
%postun -p /sbin/ldconfig |
|
/sbin/ldconfig |
|
| 70 |
|
|
| 71 |
%post devel |
%post devel |
| 72 |
/sbin/install-info %{_infodir}/ginac.info.gz %{_infodir}/dir |
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/ginac.info.gz 2>/dev/null || : |
| 73 |
|
|
| 74 |
%preun devel |
%preun devel |
| 75 |
if [ "$1" = 0 ]; then |
if [ "$1" = 0 ]; then |
| 76 |
/sbin/install-info --delete %{_infodir}/ginac.info.gz %{_infodir}/dir |
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/ginac.info.gz 2>/dev/null || : |
| 77 |
fi |
fi |
| 78 |
|
|
| 79 |
%files |
%files |
| 101 |
%{_mandir}/man1/viewgar.1* |
%{_mandir}/man1/viewgar.1* |
| 102 |
|
|
| 103 |
%changelog |
%changelog |
| 104 |
|
* Thu Jul 30 2005 Christian Bauer <Christian.Bauer@uni-mainz.de> |
| 105 |
|
- included some updates from the Fedora Extras spec file: |
| 106 |
|
- "Copyright:" -> "License:" |
| 107 |
|
- Fixed broken install-info command |
| 108 |
|
- Added missing BuildRequires |
| 109 |
|
- Added release to Requires for devel and utils |
| 110 |
|
- Remove processing of info files (this is supposed to be automatic) |
| 111 |
|
- Added cln-devel as dependency of GiNaC-devel |
| 112 |
|
|
| 113 |
* Thu Nov 20 2003 Christian Bauer <Christian.Bauer@uni-mainz.de> |
* Thu Nov 20 2003 Christian Bauer <Christian.Bauer@uni-mainz.de> |
| 114 |
- added pkg-config metadata file to devel package |
- added pkg-config metadata file to devel package |
| 115 |
|
|