]> www.ginac.de Git - ginac.git/blob - GiNaC.spec.in
* Indentation cleanup.
[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 License: GPL
10 Group: System Environment/Libraries
11 Source0: ftp://ftpthep.physik.uni-mainz.de/pub/GiNaC/%{name}-%{version}.tar.bz2
12 URL: http://www.ginac.de/
13 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
14 Prefix: %{_prefix}
15
16 Requires(post): /sbin/install-info
17 Requires(preun): /sbin/install-info
18 Requires: cln >= 1.1
19 BuildRequires: cln-devel >= 1.1 gcc-c++ readline-devel
20 Obsoletes: GiNaC
21
22 %description
23 GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra System)") is an
24 open framework for symbolic computation within the C++ programming language.
25
26
27 %package devel
28 Summary: GiNaC development libraries and header files
29 Group: Development/Libraries
30 Requires: %{name} = %{version}-%{release} cln-devel
31 Obsoletes: GiNaC-devel
32
33 %description devel
34 GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra System)") is an
35 open framework for symbolic computation within the C++ programming language.
36
37 This package contains the libraries, include files and other resources you
38 use to develop GiNaC applications.
39
40
41 %package utils
42 Summary: GiNaC-related utilities
43 Group: System Environment/Libraries
44 Requires: %{name} = %{version}-%{release}
45 Obsoletes: GiNaC-utils
46
47 %description utils
48 GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra System)") is an
49 open framework for symbolic computation within the C++ programming language.
50
51 This package includes the ginsh ("GiNaC interactive shell") which provides a
52 simple and easy-to-use CAS-like interface to GiNaC for non-programmers, and
53 the tool "viewgar" which displays the contents of GiNaC archives.
54
55
56 %prep
57 %setup -q
58
59 %build
60 %configure
61 make
62
63 %install
64 rm -rf ${RPM_BUILD_ROOT}
65 %makeinstall
66
67 %clean
68 rm -rf ${RPM_BUILD_ROOT}
69
70 %post -p /sbin/ldconfig
71
72 %postun -p /sbin/ldconfig
73
74 %post devel
75 /sbin/install-info --info-dir=%{_infodir} %{_infodir}/ginac.info.gz 2>/dev/null || :
76
77 %preun devel
78 if [ "$1" = 0 ]; then
79   /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/ginac.info.gz 2>/dev/null || :
80 fi
81
82 %files
83 %defattr(-,root,root)
84 %doc AUTHORS COPYING ChangeLog NEWS README
85 %{_libdir}/*.so.*
86
87 %files devel
88 %defattr(-,root,root)
89 %{_libdir}/*.a
90 %{_libdir}/*.la
91 %{_libdir}/*.so
92 %{_libdir}/pkgconfig/ginac.pc
93 %{_includedir}/ginac
94 %{_infodir}/*.info*
95 %{_mandir}/man1/ginac-config.1*
96 %{_bindir}/ginac-config
97 %{_datadir}/aclocal/ginac.m4
98
99 %files utils
100 %defattr(-,root,root)
101 %{_bindir}/ginsh
102 %{_bindir}/viewgar
103 %{_mandir}/man1/ginsh.1*
104 %{_mandir}/man1/viewgar.1*
105
106 %changelog
107 * Mon Jul 11 2005 Christian Bauer <Christian.Bauer@uni-mainz.de>
108 - name of package changed from "GiNaC" to "ginac"; added "Obsoletes:"
109   directives
110
111 * Thu Jun 30 2005 Christian Bauer <Christian.Bauer@uni-mainz.de>
112 - included some updates from the Fedora Extras spec file:
113   - "Copyright:" -> "License:"
114   - Fixed broken install-info command
115   - Added missing BuildRequires
116   - Added release to Requires for devel and utils
117   - Remove processing of info files (this is supposed to be automatic)
118   - Added cln-devel as dependency of GiNaC-devel
119
120 * Thu Nov 20 2003 Christian Bauer <Christian.Bauer@uni-mainz.de>
121 - added pkg-config metadata file to devel package
122
123 * Thu Nov  1 2001 Christian Bauer <Christian.Bauer@uni-mainz.de>
124 - moved ginsh and viewgar to "utils" package
125
126 * Thu Oct  5 2000 Christian Bauer <Christian.Bauer@uni-mainz.de>
127 - cleaned up a bit
128
129 * Wed Jan 26 2000 Christian Bauer <Christian.Bauer@uni-mainz.de>
130 - split into user and devel packages
131
132 * Wed Dec  1 1999 Christian Bauer <Christian.Bauer@uni-mainz.de>
133 - aclocal macros get installed