]> www.ginac.de Git - ginac.git/blob - GiNaC.spec.in
138ec97b2dcb0094f5d126016cab626e7272c178
[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: 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 ./configure --prefix=%prefix
32 make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
33
34 %install
35 rm -rf $RPM_BUILD_ROOT
36 make prefix=$RPM_BUILD_ROOT%{prefix} install-strip
37 gzip -9n $RPM_BUILD_ROOT%{prefix}/info/*
38
39 %clean
40 rm -rf $RPM_BUILD_ROOT
41
42 %post -p /sbin/ldconfig
43 install-info %{prefix}/info/ginac.info.gz %{prefix}/info/dir
44
45 %postun -p /sbin/ldconfig
46
47 %preun
48 install-info --delete %{prefix}/info/ginac.info.gz %{prefix}/info/dir
49
50 %files
51 %defattr(-, root, root)
52 %doc AUTHORS COPYING ChangeLog NEWS README
53 %{prefix}/lib/lib*.so*
54 %{prefix}/lib/*a
55 %{prefix}/include/*
56 %{prefix}/info/*
57 %{prefix}/man/man1/*
58 %{prefix}/share/doc/GiNaC/*
59 %{prefix}/bin/*