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