]> www.ginac.de Git - ginac.git/blob - GiNaC.spec.in
- ex::series() catches and re-throws exceptions happening during expansion
[ginac.git] / GiNaC.spec.in
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 %{prefix}/info/dir
69
70 %preun devel
71 /sbin/install-info --delete %{prefix}/info/ginac.info %{prefix}/info/dir
72
73 %files
74 %defattr(-, root, root)
75 %doc AUTHORS COPYING ChangeLog NEWS README
76 %{prefix}/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}/lib/*.la
87 %{prefix}/lib/*.so
88 %{prefix}/include/*
89 %{prefix}/info/*info*
90 %{prefix}/man/man1/*-config.1
91 %{prefix}/bin/*-config
92 %{prefix}/share/doc/%{name}/*
93 %{prefix}/share/aclocal/*
94
95 %changelog
96 * Wed Jan 26 2000 Christian Bauer <Christian.Bauer@uni-mainz.de>
97
98 - split into user and devel packages
99
100 * Wed Dec  1 1999 Christian Bauer <Christian.Bauer@uni-mainz.de>
101
102 - aclocal macros get installed