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

Contents of /GiNaC.spec.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (hide annotations)
Sat Nov 27 14:52:06 1999 UTC (13 years, 5 months ago) by cbauer
Branch: MAIN
Changes since 1.7: +7 -2 lines
- RPM_OPT_FLAGS are used for compiling
- added "-k -j $SMP" to the make command line when SMP is available

1 cbauer 1.2 # spec file for GiNaC (not relocatable)
2 cbauer 1.1
3     %define ver @VERSION@
4     %define rel 1
5     %define prefix /usr
6    
7     Summary: C++ library for symbolic mathematical calculations
8     Name: GiNaC
9     Version: %ver
10     Release: %rel
11     Copyright: GPL
12     Group: Libraries
13     Source: ftp://ftpthep.physik.uni-mainz.de/pub/GiNaC/GiNaC-%{ver}.tar.gz
14     BuildRoot: /tmp/GiNaC-%{PACKAGE_VERSION}-root
15     Packager: Christian Bauer <Christian.Bauer@uni-mainz.de>
16 cbauer 1.4 URL: http://www.ginac.de/
17 cbauer 1.5 Prereq: install-info
18 cbauer 1.1 Docdir: %{prefix}/doc
19    
20     %description
21 kreckel 1.3 GiNaC (which stands for "GiNaC is Not a CAS (computer algebra system)") is a
22 cbauer 1.2 C++ library for symbolic mathematical calculations. It is designed to allow
23     the creation of integrated systems that embed symbolic manipulations together
24     with more established areas of computer science (like computation-intense
25     numeric applications, graphical interfaces, etc.) under one roof.
26 cbauer 1.1
27     %prep
28     %setup
29    
30     %build
31 cbauer 1.8 CXXFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix
32     if [ "$SMP" != "" ]; then
33     (make "MAKE=make -k -j $SMP"; exit 0)
34     make
35     else
36     make
37     fi
38 cbauer 1.1
39     %install
40     rm -rf $RPM_BUILD_ROOT
41 cbauer 1.7 make prefix=$RPM_BUILD_ROOT%{prefix} install
42 cbauer 1.5 gzip -9n $RPM_BUILD_ROOT%{prefix}/info/*
43 cbauer 1.1
44     %clean
45     rm -rf $RPM_BUILD_ROOT
46    
47     %post -p /sbin/ldconfig
48 cbauer 1.5 install-info %{prefix}/info/ginac.info.gz %{prefix}/info/dir
49 cbauer 1.1
50     %postun -p /sbin/ldconfig
51    
52 cbauer 1.5 %preun
53     install-info --delete %{prefix}/info/ginac.info.gz %{prefix}/info/dir
54    
55 cbauer 1.1 %files
56     %defattr(-, root, root)
57     %doc AUTHORS COPYING ChangeLog NEWS README
58 cbauer 1.5 %{prefix}/lib/lib*.so*
59 cbauer 1.1 %{prefix}/lib/*a
60     %{prefix}/include/*
61 cbauer 1.6 %{prefix}/info/ginac.info*
62 cbauer 1.1 %{prefix}/man/man1/*
63     %{prefix}/share/doc/GiNaC/*
64     %{prefix}/bin/*

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