]> www.ginac.de Git - ginac.git/blob - GiNaC.spec.in
8714be8fcb9f19a700e30bf1208b53894eb4c443
[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 URL: http://www.ginac.de/
13 Prereq: /sbin/install-info
14 #Requires: cln
15 BuildRoot: %{_tmppath}/%{name}-root
16 Prefix: %{_prefix}
17
18 %description
19 GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra System)") is an
20 open framework for symbolic computation within the C++ programming language.
21
22 It includes the ginsh ("GiNaC interactive shell") which provides a simple and
23 easy-to-use CAS-like interface to GiNaC for non-programmers.
24
25
26 %package devel
27 Summary: Libraries, includes and more to develop GiNaC applications
28 Group: Development/Libraries
29 Requires: %{name}
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 is the libraries, include files and other resources you can use to
36 develop GiNaC applications.
37
38
39 %prep
40 %setup -q
41
42 %build
43 ./configure --prefix=%{_prefix}
44 if [ -x /usr/bin/getconf ] ; then
45   NCPU=$(/usr/bin/getconf _NPROCESSORS_ONLN)
46   if [ $NCPU -eq 0 ] ; then
47     NCPU=1
48   fi
49 else  
50   NCPU=1
51 fi
52 PARL=$[ $NCPU + 1 ]
53 (make -k -j $PARL; exit 0)
54 make
55
56 %install
57 rm -rf ${RPM_BUILD_ROOT}
58 mkdir -p ${RPM_BUILD_ROOT}%{_infodir}
59 make prefix=%{_prefix} DESTDIR=${RPM_BUILD_ROOT} install
60 gzip -9nf ${RPM_BUILD_ROOT}%{_infodir}/ginac.info*
61
62 %clean
63 rm -rf ${RPM_BUILD_ROOT}
64
65 %post
66 /sbin/ldconfig
67
68 %postun
69 /sbin/ldconfig
70
71 %post devel
72 /sbin/install-info %{_infodir}/ginac.info.gz %{_infodir}/dir
73
74 %preun devel
75 if [ "$1" = 0 ]; then
76   /sbin/install-info --del %{_infodir}/ginac.info.gz %{_infodir}/dir
77 fi
78
79 %files
80 %defattr(-,root,root)
81 %doc AUTHORS COPYING ChangeLog NEWS README
82 %{_libdir}/*.so.*
83 %{_bindir}/ginsh
84 %{_bindir}/viewgar
85 %{_mandir}/man1/ginsh.1
86 %{_mandir}/man1/viewgar.1
87
88 %files devel
89 %defattr(-,root,root)
90 %{_libdir}/*.a
91 %{_libdir}/*.la
92 %{_libdir}/*.so
93 %{_includedir}/*
94 %{_infodir}/*.info*
95 %{_mandir}/man1/ginac-config.1
96 %{_bindir}/ginac-config
97 %{_datadir}/aclocal/*
98
99 %changelog
100 * Thu Oct  5 2000 Christian Bauer <Christian.Bauer@uni-mainz.de>
101 - cleaned up a bit
102
103 * Wed Jan 26 2000 Christian Bauer <Christian.Bauer@uni-mainz.de>
104 - split into user and devel packages
105
106 * Wed Dec  1 1999 Christian Bauer <Christian.Bauer@uni-mainz.de>
107 - aclocal macros get installed