| 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 |
BuildRoot: /tmp/%{name}-buildroot
|
| 13 |
Packager: Christian Bauer <Christian.Bauer@uni-mainz.de>
|
| 14 |
URL: http://www.ginac.de/
|
| 15 |
Prereq: /sbin/install-info
|
| 16 |
Prefix: %{_prefix}
|
| 17 |
Docdir: %{prefix}/doc
|
| 18 |
|
| 19 |
%description
|
| 20 |
GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra System)") is an
|
| 21 |
open framework for symbolic computation within the C++ programming language.
|
| 22 |
|
| 23 |
It includes the ginsh ("GiNaC interactive shell") which provides a simple and
|
| 24 |
easy-to-use CAS-like interface to GiNaC for non-programmers.
|
| 25 |
|
| 26 |
|
| 27 |
%package devel
|
| 28 |
Summary: Libraries, includes and more to develop GiNaC applications
|
| 29 |
Group: Development/Libraries
|
| 30 |
Requires: %{name}
|
| 31 |
|
| 32 |
%description devel
|
| 33 |
GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra System)") is an
|
| 34 |
open framework for symbolic computation within the C++ programming language.
|
| 35 |
|
| 36 |
This is the libraries, include files and other resources you can use to
|
| 37 |
develop GiNaC applications.
|
| 38 |
|
| 39 |
|
| 40 |
%prep
|
| 41 |
rm -rf $RPM_BUILD_ROOT
|
| 42 |
|
| 43 |
%setup -q
|
| 44 |
|
| 45 |
%build
|
| 46 |
CXXFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix}
|
| 47 |
if [ "$SMP" != "" ]; then
|
| 48 |
(make "MAKE=make -k -j $SMP"; exit 0)
|
| 49 |
make
|
| 50 |
else
|
| 51 |
make
|
| 52 |
fi
|
| 53 |
|
| 54 |
%install
|
| 55 |
rm -rf $RPM_BUILD_ROOT
|
| 56 |
make prefix=$RPM_BUILD_ROOT/%{prefix} install-strip
|
| 57 |
|
| 58 |
%clean
|
| 59 |
rm -rf $RPM_BUILD_ROOT
|
| 60 |
|
| 61 |
%post
|
| 62 |
/sbin/ldconfig
|
| 63 |
|
| 64 |
%postun
|
| 65 |
/sbin/ldconfig
|
| 66 |
|
| 67 |
%post devel
|
| 68 |
/sbin/install-info %{prefix}/info/ginac.info.gz %{prefix}/info/dir
|
| 69 |
|
| 70 |
%preun devel
|
| 71 |
/sbin/install-info --delete %{prefix}/info/ginac.info.gz %{prefix}/info/dir
|
| 72 |
|
| 73 |
%files
|
| 74 |
%defattr(-, root, root)
|
| 75 |
%doc AUTHORS COPYING ChangeLog NEWS README
|
| 76 |
%{prefix}/lib/lib*.so*
|
| 77 |
%{prefix}/man/man1/ginsh.1
|
| 78 |
%{prefix}/man/man1/viewgar.1
|
| 79 |
%{prefix}/bin/ginsh
|
| 80 |
%{prefix}/bin/viewgar
|
| 81 |
|
| 82 |
%files devel
|
| 83 |
%defattr(-, root, root)
|
| 84 |
%doc AUTHORS COPYING ChangeLog NEWS README
|
| 85 |
%{prefix}/lib/*a
|
| 86 |
%{prefix}/include/*
|
| 87 |
%{prefix}/info/*
|
| 88 |
%{prefix}/man/man1/*-config.1
|
| 89 |
%{prefix}/bin/*-config
|
| 90 |
%{prefix}/share/doc/%{name}/*
|
| 91 |
%{prefix}/share/aclocal/*
|
| 92 |
|
| 93 |
%changelog
|
| 94 |
* Wed Jan 26 2000 Christian Bauer <Christian.Bauer@uni-mainz.de>
|
| 95 |
|
| 96 |
- split into user and devel packages
|
| 97 |
|
| 98 |
* Wed Dec 1 1999 Christian Bauer <Christian.Bauer@uni-mainz.de>
|
| 99 |
|
| 100 |
- aclocal macros get installed
|