/[GiNaC]/GiNaC.spec.in
ViewVC logotype

Annotation of /GiNaC.spec.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.23.4.1 - (hide annotations)
Wed Oct 27 09:39:24 2004 UTC (9 years, 5 months ago) by cbauer
Branch: ginac_1-3
CVS Tags: release_1-3-1
Changes since 1.23: +1 -1 lines
pass --libdir to ./configure (x86-64 target needs it)

1 cbauer 1.13 %define name @PACKAGE@
2     %define version @VERSION@
3     %define release 1
4 cbauer 1.1
5 cbauer 1.10 Summary: C++ library for symbolic calculations
6 cbauer 1.13 Name: %{name}
7     Version: %{version}
8     Release: %{release}
9 cbauer 1.1 Copyright: GPL
10 cbauer 1.13 Group: System Environment/Libraries
11     Source: ftp://ftpthep.physik.uni-mainz.de/pub/GiNaC/%{name}-%{version}.tar.gz
12 cbauer 1.4 URL: http://www.ginac.de/
13 cbauer 1.17 Packager: Christian Bauer <cbauer@ginac.de>
14 cbauer 1.9 Prereq: /sbin/install-info
15 cbauer 1.16 BuildRoot: %{_tmppath}/%{name}-root
16 cbauer 1.13 Prefix: %{_prefix}
17 cbauer 1.1
18 cbauer 1.19 Requires: cln >= 1.1
19 cbauer 1.17
20 cbauer 1.1 %description
21 cbauer 1.13 GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra System)") is an
22     open framework for symbolic computation within the C++ programming language.
23    
24    
25     %package devel
26 cbauer 1.20 Summary: GiNaC development libraries and header files
27 cbauer 1.13 Group: Development/Libraries
28 cbauer 1.17 Requires: %{name} = %{version}
29 cbauer 1.13
30     %description devel
31     GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra System)") is an
32     open framework for symbolic computation within the C++ programming language.
33    
34 cbauer 1.20 This package contains the libraries, include files and other resources you
35     use to develop GiNaC applications.
36    
37    
38     %package utils
39     Summary: GiNaC-related utilities
40     Group: System Environment/Libraries
41     Requires: %{name} = %{version}
42    
43     %description utils
44     GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra System)") is an
45     open framework for symbolic computation within the C++ programming language.
46    
47     This package includes the ginsh ("GiNaC interactive shell") which provides a
48     simple and easy-to-use CAS-like interface to GiNaC for non-programmers, and
49     the tool "viewgar" which displays the contents of GiNaC archives.
50 cbauer 1.13
51 cbauer 1.1
52     %prep
53 cbauer 1.13 %setup -q
54 cbauer 1.1
55     %build
56 cbauer 1.23.4.1 CFLAGS=${RPM_OPT_FLAGS} CXXFLAGS=${RPM_OPT_FLAGS} ./configure --prefix=%{_prefix} --mandir=%{_mandir} --infodir=%{_infodir} --libdir=%{_libdir}
57 cbauer 1.16 if [ -x /usr/bin/getconf ] ; then
58     NCPU=$(/usr/bin/getconf _NPROCESSORS_ONLN)
59     if [ $NCPU -eq 0 ] ; then
60     NCPU=1
61     fi
62     else
63     NCPU=1
64 cbauer 1.8 fi
65 cbauer 1.22 (make -k -j $NCPU; exit 0)
66 cbauer 1.16 make
67 cbauer 1.1
68     %install
69 cbauer 1.16 rm -rf ${RPM_BUILD_ROOT}
70 cbauer 1.18 make DESTDIR=${RPM_BUILD_ROOT} install
71 cbauer 1.16 gzip -9nf ${RPM_BUILD_ROOT}%{_infodir}/ginac.info*
72 cbauer 1.21 rm ${RPM_BUILD_ROOT}%{_infodir}/dir
73 cbauer 1.1
74     %clean
75 cbauer 1.16 rm -rf ${RPM_BUILD_ROOT}
76 cbauer 1.1
77 cbauer 1.10 %post
78     /sbin/ldconfig
79 cbauer 1.1
80 cbauer 1.10 %postun
81     /sbin/ldconfig
82 cbauer 1.1
83 cbauer 1.13 %post devel
84 cbauer 1.16 /sbin/install-info %{_infodir}/ginac.info.gz %{_infodir}/dir
85 cbauer 1.13
86     %preun devel
87 cbauer 1.16 if [ "$1" = 0 ]; then
88 cbauer 1.17 /sbin/install-info --delete %{_infodir}/ginac.info.gz %{_infodir}/dir
89 cbauer 1.16 fi
90 cbauer 1.5
91 cbauer 1.1 %files
92 cbauer 1.16 %defattr(-,root,root)
93 cbauer 1.1 %doc AUTHORS COPYING ChangeLog NEWS README
94 cbauer 1.16 %{_libdir}/*.so.*
95 cbauer 1.13
96     %files devel
97 cbauer 1.16 %defattr(-,root,root)
98     %{_libdir}/*.a
99     %{_libdir}/*.la
100     %{_libdir}/*.so
101 cbauer 1.23 %{_libdir}/pkgconfig/ginac.pc
102     %{_includedir}/ginac
103 cbauer 1.16 %{_infodir}/*.info*
104 cbauer 1.19 %{_mandir}/man1/ginac-config.1*
105 cbauer 1.16 %{_bindir}/ginac-config
106 cbauer 1.23 %{_datadir}/aclocal/ginac.m4
107 cbauer 1.12
108 cbauer 1.20 %files utils
109     %defattr(-,root,root)
110     %{_bindir}/ginsh
111     %{_bindir}/viewgar
112     %{_mandir}/man1/ginsh.1*
113     %{_mandir}/man1/viewgar.1*
114    
115 cbauer 1.12 %changelog
116 cbauer 1.23 * Thu Nov 20 2003 Christian Bauer <Christian.Bauer@uni-mainz.de>
117     - added pkg-config metadata file to devel package
118    
119 cbauer 1.20 * Thu Nov 1 2001 Christian Bauer <Christian.Bauer@uni-mainz.de>
120     - moved ginsh and viewgar to "utils" package
121    
122 cbauer 1.16 * Thu Oct 5 2000 Christian Bauer <Christian.Bauer@uni-mainz.de>
123     - cleaned up a bit
124    
125 cbauer 1.13 * Wed Jan 26 2000 Christian Bauer <Christian.Bauer@uni-mainz.de>
126     - split into user and devel packages
127    
128 cbauer 1.12 * Wed Dec 1 1999 Christian Bauer <Christian.Bauer@uni-mainz.de>
129     - aclocal macros get installed

Christian Bauer">Christian Bauer
ViewVC Help
Powered by ViewVC 1.1.17