| 1 |
%define name @PACKAGE@
|
| 2 |
%define version @VERSION@
|
| 3 |
%define release 1
|
| 4 |
|
| 5 |
Summary: C++ library for symbolic calculations
|
| 6 |
Name: %{name}
|
| 7 |
Version: %{version}
|
| 8 |
Release: %{release}
|
| 9 |
Copyright: GPL
|
| 10 |
Group: System Environment/Libraries
|
| 11 |
Source: ftp://ftpthep.physik.uni-mainz.de/pub/GiNaC/%{name}-%{version}.tar.gz
|
| 12 |
URL: http://www.ginac.de/
|
| 13 |
Packager: Christian Bauer <cbauer@ginac.de>
|
| 14 |
Prereq: /sbin/install-info
|
| 15 |
BuildRoot: %{_tmppath}/%{name}-root
|
| 16 |
Prefix: %{_prefix}
|
| 17 |
|
| 18 |
Requires: cln >= 1.0.3
|
| 19 |
|
| 20 |
%description
|
| 21 |
GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra System)") is an
|
| 22 |
open framework for symbolic computation within the C++ programming language.
|
| 23 |
|
| 24 |
It includes the ginsh ("GiNaC interactive shell") which provides a simple and
|
| 25 |
easy-to-use CAS-like interface to GiNaC for non-programmers.
|
| 26 |
|
| 27 |
|
| 28 |
%package devel
|
| 29 |
Summary: Libraries, includes and more to develop GiNaC applications
|
| 30 |
Group: Development/Libraries
|
| 31 |
Requires: %{name} = %{version}
|
| 32 |
|
| 33 |
%description devel
|
| 34 |
GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra System)") is an
|
| 35 |
open framework for symbolic computation within the C++ programming language.
|
| 36 |
|
| 37 |
This is the libraries, include files and other resources you can use to
|
| 38 |
develop GiNaC applications.
|
| 39 |
|
| 40 |
|
| 41 |
%prep
|
| 42 |
%setup -q
|
| 43 |
|
| 44 |
%build
|
| 45 |
CFLAGS=${RPM_OPT_FLAGS} CXXFLAGS=${RPM_OPT_FLAGS} ./configure --prefix=%{_prefix} --mandir=%{_mandir} --infodir=%{_infodir}
|
| 46 |
if [ -x /usr/bin/getconf ] ; then
|
| 47 |
NCPU=$(/usr/bin/getconf _NPROCESSORS_ONLN)
|
| 48 |
if [ $NCPU -eq 0 ] ; then
|
| 49 |
NCPU=1
|
| 50 |
fi
|
| 51 |
else
|
| 52 |
NCPU=1
|
| 53 |
fi
|
| 54 |
PARL=$[ $NCPU + 1 ]
|
| 55 |
(make -k -j $PARL; exit 0)
|
| 56 |
make
|
| 57 |
|
| 58 |
%install
|
| 59 |
rm -rf ${RPM_BUILD_ROOT}
|
| 60 |
make DESTDIR=${RPM_BUILD_ROOT} install-strip
|
| 61 |
gzip -9nf ${RPM_BUILD_ROOT}%{_infodir}/ginac.info*
|
| 62 |
|
| 63 |
%clean
|
| 64 |
rm -rf ${RPM_BUILD_ROOT}
|
| 65 |
|
| 66 |
%post
|
| 67 |
/sbin/ldconfig
|
| 68 |
|
| 69 |
%postun
|
| 70 |
/sbin/ldconfig
|
| 71 |
|
| 72 |
%post devel
|
| 73 |
/sbin/install-info %{_infodir}/ginac.info.gz %{_infodir}/dir
|
| 74 |
|
| 75 |
%preun devel
|
| 76 |
if [ "$1" = 0 ]; then
|
| 77 |
/sbin/install-info --delete %{_infodir}/ginac.info.gz %{_infodir}/dir
|
| 78 |
fi
|
| 79 |
|
| 80 |
%files
|
| 81 |
%defattr(-,root,root)
|
| 82 |
%doc AUTHORS COPYING ChangeLog NEWS README
|
| 83 |
%{_libdir}/*.so.*
|
| 84 |
%{_bindir}/ginsh
|
| 85 |
%{_bindir}/viewgar
|
| 86 |
%{_mandir}/man1/ginsh.1
|
| 87 |
%{_mandir}/man1/viewgar.1
|
| 88 |
|
| 89 |
%files devel
|
| 90 |
%defattr(-,root,root)
|
| 91 |
%{_libdir}/*.a
|
| 92 |
%{_libdir}/*.la
|
| 93 |
%{_libdir}/*.so
|
| 94 |
%{_includedir}/*.h
|
| 95 |
%{_infodir}/*.info*
|
| 96 |
%{_mandir}/man1/ginac-config.1
|
| 97 |
%{_bindir}/ginac-config
|
| 98 |
%{_datadir}/aclocal/*
|
| 99 |
|
| 100 |
%changelog
|
| 101 |
* Thu Oct 5 2000 Christian Bauer <Christian.Bauer@uni-mainz.de>
|
| 102 |
- cleaned up a bit
|
| 103 |
|
| 104 |
* Wed Jan 26 2000 Christian Bauer <Christian.Bauer@uni-mainz.de>
|
| 105 |
- split into user and devel packages
|
| 106 |
|
| 107 |
* Wed Dec 1 1999 Christian Bauer <Christian.Bauer@uni-mainz.de>
|
| 108 |
- aclocal macros get installed
|