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

Diff of /GiNaC.spec.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12 by cbauer, Wed Dec 1 16:03:37 1999 UTC revision 1.13 by cbauer, Wed Jan 26 17:43:39 2000 UTC
# Line 1  Line 1 
1  # Note that this is NOT a relocatable package  %define name @PACKAGE@
2  %define ver @VERSION@  %define version @VERSION@
3  %define rel 1  %define release 1
 %define prefix /usr  
4    
5  Summary: C++ library for symbolic calculations  Summary: C++ library for symbolic calculations
6  Name: GiNaC  Name: %{name}
7  Version: %ver  Version: %{version}
8  Release: %rel  Release: %{release}
9  Copyright: GPL  Copyright: GPL
10  Group: Libraries  Group: System Environment/Libraries
11  Source: ftp://ftpthep.physik.uni-mainz.de/pub/GiNaC/GiNaC-%{ver}.tar.gz  Source: ftp://ftpthep.physik.uni-mainz.de/pub/GiNaC/%{name}-%{version}.tar.gz
12  BuildRoot: /tmp/GiNaC-%{PACKAGE_VERSION}-root  BuildRoot: /tmp/%{name}-buildroot
13  Packager: Christian Bauer <Christian.Bauer@uni-mainz.de>  Packager: Christian Bauer <Christian.Bauer@uni-mainz.de>
14  URL: http://www.ginac.de/  URL: http://www.ginac.de/
15  Prereq: /sbin/install-info  Prereq: /sbin/install-info
16    Prefix: %{_prefix}
17  Docdir: %{prefix}/doc  Docdir: %{prefix}/doc
18    
19  %description  %description
20  GiNaC (which stands for "GiNaC is Not a CAS (computer algebra system)") is a  GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra System)") is an
21  C++ library for symbolic calculations. It is designed to allow the creation  open framework for symbolic computation within the C++ programming language.
22  of integrated systems that embed symbolic manipulations together with more  
23  established areas of computer science (like computation-intense numeric  It includes the ginsh ("GiNaC interactive shell") which provides a simple and
24  applications, graphical interfaces, etc.) under one roof.  easy-to-use CAS-like interface to GiNaC for non-programmers.
25    
26    
27    %package devel
28    Summary: Libraries, includes and more to develop GiNaC applications
29    Group: Development/Libraries
30    Requires: %{name}
31    
32    %description devel
33    GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra System)") is an
34    open framework for symbolic computation within the C++ programming language.
35    
36    This is the libraries, include files and other resources you can use to
37    develop GiNaC applications.
38    
39    
40  %prep  %prep
41  %setup  rm -rf $RPM_BUILD_ROOT
42    
43    %setup -q
44    
45  %build  %build
46  CXXFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix  CXXFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix}
47  if [ "$SMP" != "" ]; then  if [ "$SMP" != "" ]; then
48    (make "MAKE=make -k -j $SMP"; exit 0)    (make "MAKE=make -k -j $SMP"; exit 0)
49    make    make
# Line 37  fi Line 53  fi
53    
54  %install  %install
55  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
56  make prefix=$RPM_BUILD_ROOT%{prefix} install-strip  make prefix=$RPM_BUILD_ROOT/%{prefix} install-strip
 gzip -9 $RPM_BUILD_ROOT%{prefix}/info/*  
57    
58  %clean  %clean
59  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
60    
61  %post  %post
62  /sbin/ldconfig  /sbin/ldconfig
 /sbin/install-info %{prefix}/info/ginac.info.gz %{prefix}/info/dir  
63    
64  %postun  %postun
65  /sbin/ldconfig  /sbin/ldconfig
66    
67  %preun  %post devel
68    /sbin/install-info %{prefix}/info/ginac.info.gz %{prefix}/info/dir
69    
70    %preun devel
71  /sbin/install-info --delete %{prefix}/info/ginac.info.gz %{prefix}/info/dir  /sbin/install-info --delete %{prefix}/info/ginac.info.gz %{prefix}/info/dir
72    
73  %files  %files
74  %defattr(-, root, root)  %defattr(-, root, root)
75  %doc AUTHORS COPYING ChangeLog NEWS README  %doc AUTHORS COPYING ChangeLog NEWS README
76  %{prefix}/lib/lib*.so*  %{prefix}/lib/lib*.so*
77    %{prefix}/man/man1/ginsh.1
78    %{prefix}/man/man1/viewgar.1
79    %{prefix}/bin/ginsh
80    %{prefix}/bin/viewgar
81    
82    %files devel
83    %defattr(-, root, root)
84    %doc AUTHORS COPYING ChangeLog NEWS README
85  %{prefix}/lib/*a  %{prefix}/lib/*a
86  %{prefix}/include/*  %{prefix}/include/*
87  %{prefix}/info/*  %{prefix}/info/*
88  %{prefix}/man/man1/*  %{prefix}/man/man1/*-config.1
89  %{prefix}/share/doc/GiNaC/*  %{prefix}/bin/*-config
90    %{prefix}/share/doc/%{name}/*
91  %{prefix}/share/aclocal/*  %{prefix}/share/aclocal/*
 %{prefix}/bin/*  
92    
93  %changelog  %changelog
94    * Wed Jan 26 2000 Christian Bauer <Christian.Bauer@uni-mainz.de>
95    
96    - split into user and devel packages
97    
98  * Wed Dec  1 1999 Christian Bauer <Christian.Bauer@uni-mainz.de>  * Wed Dec  1 1999 Christian Bauer <Christian.Bauer@uni-mainz.de>
99    
100  - aclocal macros get installed  - aclocal macros get installed

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

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