]> www.ginac.de Git - ginac.git/blob - GiNaC.spec.in
e370be64dcbaf172ff5657dda0686905eff910ea
[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 mathematical 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 mathematical calculations. It is designed to allow
23 the creation of integrated systems that embed symbolic manipulations together
24 with more established areas of computer science (like computation-intense
25 numeric 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
42 gzip -9n $RPM_BUILD_ROOT%{prefix}/info/*
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %post -p /sbin/ldconfig
48 /sbin/install-info %{prefix}/info/ginac.info.gz %{prefix}/info/dir
49
50 %postun -p /sbin/ldconfig
51
52 %preun
53 /sbin/install-info --delete %{prefix}/info/ginac.info.gz %{prefix}/info/dir
54
55 %files
56 %defattr(-, root, root)
57 %doc AUTHORS COPYING ChangeLog NEWS README
58 %{prefix}/lib/lib*.so*
59 %{prefix}/lib/*a
60 %{prefix}/include/*
61 %{prefix}/info/ginac.info*
62 %{prefix}/man/man1/*
63 %{prefix}/share/doc/GiNaC/*
64 %{prefix}/bin/*