| 10 |
Group: System Environment/Libraries |
Group: System Environment/Libraries |
| 11 |
Source: ftp://ftpthep.physik.uni-mainz.de/pub/GiNaC/%{name}-%{version}.tar.gz |
Source: ftp://ftpthep.physik.uni-mainz.de/pub/GiNaC/%{name}-%{version}.tar.gz |
| 12 |
URL: http://www.ginac.de/ |
URL: http://www.ginac.de/ |
| 13 |
|
Packager: Christian Bauer <cbauer@ginac.de> |
| 14 |
Prereq: /sbin/install-info |
Prereq: /sbin/install-info |
|
#Requires: cln |
|
| 15 |
BuildRoot: %{_tmppath}/%{name}-root |
BuildRoot: %{_tmppath}/%{name}-root |
| 16 |
Prefix: %{_prefix} |
Prefix: %{_prefix} |
| 17 |
|
|
| 18 |
|
Requires: cln >= 1.0.3 |
| 19 |
|
|
| 20 |
%description |
%description |
| 21 |
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 |
| 22 |
open framework for symbolic computation within the C++ programming language. |
open framework for symbolic computation within the C++ programming language. |
| 28 |
%package devel |
%package devel |
| 29 |
Summary: Libraries, includes and more to develop GiNaC applications |
Summary: Libraries, includes and more to develop GiNaC applications |
| 30 |
Group: Development/Libraries |
Group: Development/Libraries |
| 31 |
Requires: %{name} |
Requires: %{name} = %{version} |
| 32 |
|
|
| 33 |
%description devel |
%description devel |
| 34 |
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 |
| 42 |
%setup -q |
%setup -q |
| 43 |
|
|
| 44 |
%build |
%build |
| 45 |
./configure --prefix=%{_prefix} |
CFLAGS=${RPM_OPT_FLAGS} CXXFLAGS=${RPM_OPT_FLAGS} ./configure --prefix=%{_prefix} --mandir=%{_mandir} --infodir=%{_infodir} |
| 46 |
if [ -x /usr/bin/getconf ] ; then |
if [ -x /usr/bin/getconf ] ; then |
| 47 |
NCPU=$(/usr/bin/getconf _NPROCESSORS_ONLN) |
NCPU=$(/usr/bin/getconf _NPROCESSORS_ONLN) |
| 48 |
if [ $NCPU -eq 0 ] ; then |
if [ $NCPU -eq 0 ] ; then |
| 57 |
|
|
| 58 |
%install |
%install |
| 59 |
rm -rf ${RPM_BUILD_ROOT} |
rm -rf ${RPM_BUILD_ROOT} |
| 60 |
mkdir -p ${RPM_BUILD_ROOT}%{_infodir} |
make DESTDIR=${RPM_BUILD_ROOT} install-strip |
|
make prefix=%{_prefix} DESTDIR=${RPM_BUILD_ROOT} install |
|
| 61 |
gzip -9nf ${RPM_BUILD_ROOT}%{_infodir}/ginac.info* |
gzip -9nf ${RPM_BUILD_ROOT}%{_infodir}/ginac.info* |
| 62 |
|
|
| 63 |
%clean |
%clean |
| 74 |
|
|
| 75 |
%preun devel |
%preun devel |
| 76 |
if [ "$1" = 0 ]; then |
if [ "$1" = 0 ]; then |
| 77 |
/sbin/install-info --del %{_infodir}/ginac.info.gz %{_infodir}/dir |
/sbin/install-info --delete %{_infodir}/ginac.info.gz %{_infodir}/dir |
| 78 |
fi |
fi |
| 79 |
|
|
| 80 |
%files |
%files |
| 91 |
%{_libdir}/*.a |
%{_libdir}/*.a |
| 92 |
%{_libdir}/*.la |
%{_libdir}/*.la |
| 93 |
%{_libdir}/*.so |
%{_libdir}/*.so |
| 94 |
%{_includedir}/* |
%{_includedir}/*.h |
| 95 |
%{_infodir}/*.info* |
%{_infodir}/*.info* |
| 96 |
%{_mandir}/man1/ginac-config.1 |
%{_mandir}/man1/ginac-config.1 |
| 97 |
%{_bindir}/ginac-config |
%{_bindir}/ginac-config |