X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=GiNaC.spec.in;h=3069852f598c056bef715d9e4dda048778e7672f;hp=094c3a6ee2820f184806f076abc18274023722a8;hb=0ff87319255da3da6d903a537400c348cb1f0722;hpb=b9e559e8c5c28a73edb5df4eda1b5a43052b014f diff --git a/GiNaC.spec.in b/GiNaC.spec.in index 094c3a6e..3069852f 100644 --- a/GiNaC.spec.in +++ b/GiNaC.spec.in @@ -1,59 +1,126 @@ -# spec file for GiNaC (not relocatable) - -%define ver @VERSION@ -%define rel 1 -%define prefix /usr - -Summary: C++ library for symbolic mathematical calculations -Name: GiNaC -Version: %ver -Release: %rel -Copyright: GPL -Group: Libraries -Source: ftp://ftpthep.physik.uni-mainz.de/pub/GiNaC/GiNaC-%{ver}.tar.gz -BuildRoot: /tmp/GiNaC-%{PACKAGE_VERSION}-root -Packager: Christian Bauer +%define name @PACKAGE@ +%define version @VERSION@ +%define release 1 + +Summary: C++ library for symbolic calculations +Name: %{name} +Version: %{version} +Release: %{release} +License: GPL +Group: System Environment/Libraries +Source0: ftp://ftpthep.physik.uni-mainz.de/pub/GiNaC/%{name}-%{version}.tar.bz2 URL: http://www.ginac.de/ -Prereq: install-info -Docdir: %{prefix}/doc +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Prefix: %{_prefix} + +Requires(post): /sbin/install-info +Requires(preun): /sbin/install-info +Requires: cln >= 1.1 +BuildRequires: cln-devel >= 1.1 gcc-c++ readline-devel %description -GiNaC (which stands for "GiNaC is Not a CAS (computer algebra system)") is a -C++ library for symbolic mathematical calculations. It is designed to allow -the creation of integrated systems that embed symbolic manipulations together -with more established areas of computer science (like computation-intense -numeric applications, graphical interfaces, etc.) under one roof. +GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra System)") is an +open framework for symbolic computation within the C++ programming language. + + +%package devel +Summary: GiNaC development libraries and header files +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} cln-devel + +%description devel +GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra System)") is an +open framework for symbolic computation within the C++ programming language. + +This package contains the libraries, include files and other resources you +use to develop GiNaC applications. + + +%package utils +Summary: GiNaC-related utilities +Group: System Environment/Libraries +Requires: %{name} = %{version}-%{release} + +%description utils +GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra System)") is an +open framework for symbolic computation within the C++ programming language. + +This package includes the ginsh ("GiNaC interactive shell") which provides a +simple and easy-to-use CAS-like interface to GiNaC for non-programmers, and +the tool "viewgar" which displays the contents of GiNaC archives. + %prep -%setup +%setup -q %build -./configure --prefix=%prefix -make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" +%configure +make %install -rm -rf $RPM_BUILD_ROOT -make prefix=$RPM_BUILD_ROOT%{prefix} install -gzip -9n $RPM_BUILD_ROOT%{prefix}/info/* +rm -rf ${RPM_BUILD_ROOT} +%makeinstall %clean -rm -rf $RPM_BUILD_ROOT +rm -rf ${RPM_BUILD_ROOT} %post -p /sbin/ldconfig -install-info %{prefix}/info/ginac.info.gz %{prefix}/info/dir %postun -p /sbin/ldconfig -%preun -install-info --delete %{prefix}/info/ginac.info.gz %{prefix}/info/dir +%post devel +/sbin/install-info --info-dir=%{_infodir} %{_infodir}/ginac.info.gz 2>/dev/null || : + +%preun devel +if [ "$1" = 0 ]; then + /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/ginac.info.gz 2>/dev/null || : +fi %files -%defattr(-, root, root) +%defattr(-,root,root) %doc AUTHORS COPYING ChangeLog NEWS README -%{prefix}/lib/lib*.so* -%{prefix}/lib/*a -%{prefix}/include/* -%{prefix}/info/ginac.info* -%{prefix}/man/man1/* -%{prefix}/share/doc/GiNaC/* -%{prefix}/bin/* +%{_libdir}/*.so.* + +%files devel +%defattr(-,root,root) +%{_libdir}/*.a +%{_libdir}/*.la +%{_libdir}/*.so +%{_libdir}/pkgconfig/ginac.pc +%{_includedir}/ginac +%{_infodir}/*.info* +%{_mandir}/man1/ginac-config.1* +%{_bindir}/ginac-config +%{_datadir}/aclocal/ginac.m4 + +%files utils +%defattr(-,root,root) +%{_bindir}/ginsh +%{_bindir}/viewgar +%{_mandir}/man1/ginsh.1* +%{_mandir}/man1/viewgar.1* + +%changelog +* Thu Jul 30 2005 Christian Bauer +- included some updates from the Fedora Extras spec file: + - "Copyright:" -> "License:" + - Fixed broken install-info command + - Added missing BuildRequires + - Added release to Requires for devel and utils + - Remove processing of info files (this is supposed to be automatic) + - Added cln-devel as dependency of GiNaC-devel + +* Thu Nov 20 2003 Christian Bauer +- added pkg-config metadata file to devel package + +* Thu Nov 1 2001 Christian Bauer +- moved ginsh and viewgar to "utils" package + +* Thu Oct 5 2000 Christian Bauer +- cleaned up a bit + +* Wed Jan 26 2000 Christian Bauer +- split into user and devel packages + +* Wed Dec 1 1999 Christian Bauer +- aclocal macros get installed