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