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