]> www.ginac.de Git - ginac.git/blob - GiNaC.spec.in
- added 'ginac-config' script and 'ginac.m4' macros to help making packages
[ginac.git] / GiNaC.spec.in
1 # Note that this is NOT a relocatable package
2 %define ver @VERSION@
3 %define rel 1
4 %define prefix /usr
5
6 Summary: C++ library for symbolic calculations
7 Name: GiNaC
8 Version: %ver
9 Release: %rel
10 Copyright: GPL
11 Group: Libraries
12 Source: ftp://ftpthep.physik.uni-mainz.de/pub/GiNaC/GiNaC-%{ver}.tar.gz
13 BuildRoot: /tmp/GiNaC-%{PACKAGE_VERSION}-root
14 Packager: Christian Bauer <Christian.Bauer@uni-mainz.de>
15 URL: http://www.ginac.de/
16 Prereq: /sbin/install-info
17 Docdir: %{prefix}/doc
18
19 %description
20 GiNaC (which stands for "GiNaC is Not a CAS (computer algebra system)") is a
21 C++ library for symbolic calculations. It is designed to allow the creation
22 of integrated systems that embed symbolic manipulations together with more
23 established areas of computer science (like computation-intense numeric
24 applications, graphical interfaces, etc.) under one roof.
25
26 %prep
27 %setup
28
29 %build
30 CXXFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix
31 if [ "$SMP" != "" ]; then
32   (make "MAKE=make -k -j $SMP"; exit 0)
33   make
34 else
35   make
36 fi
37
38 %install
39 rm -rf $RPM_BUILD_ROOT
40 make prefix=$RPM_BUILD_ROOT%{prefix} install-strip
41 gzip -9 $RPM_BUILD_ROOT%{prefix}/info/*
42
43 %clean
44 rm -rf $RPM_BUILD_ROOT
45
46 %post
47 /sbin/ldconfig
48 /sbin/install-info %{prefix}/info/ginac.info.gz %{prefix}/info/dir
49
50 %postun
51 /sbin/ldconfig
52
53 %preun
54 /sbin/install-info --delete %{prefix}/info/ginac.info.gz %{prefix}/info/dir
55
56 %files
57 %defattr(-, root, root)
58 %doc AUTHORS COPYING ChangeLog NEWS README
59 %{prefix}/lib/lib*.so*
60 %{prefix}/lib/*a
61 %{prefix}/include/*
62 %{prefix}/info/*
63 %{prefix}/man/man1/*
64 %{prefix}/share/doc/GiNaC/*
65 %{prefix}/share/aclocal/*
66 %{prefix}/bin/*
67
68 %changelog
69 * Wed Dec  1 1999 Christian Bauer <Christian.Bauer@uni-mainz.de>
70
71 - aclocal macros get installed