File pari-gp.spec of Package pari-gp

#
# spec file for package pari-gp (Version 2.3.2)
#
# Copyright (c) 2007 SUSE Linux AG, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bug fixes or comments via http://www.suse.de/feedback/
#

# norootforbuild

BuildRequires: 	readline-devel gmp-devel
Name:         	pari-gp
License:      	GPLv2
Group:		Productivity/Scientific/Math
Autoreqprov:  	on
Version:      	2.3.2
Release:      	0
Summary:      	Computer algebra system designed for fast computations in number theory
Url:          	http://pari.math.u-bordeaux.fr/
Source:       	pari-%{version}.tar.bz2
Source1:	elldata.tar.bz2
Source2:	galdata.tar.bz2
BuildRoot:    	%{_tmppath}/%{name}-%{version}-build

%description
PARI/GP is a widely used computer algebra system designed for fast
computations in number theory (factorizations, algebraic number theory,
elliptic curves...), but also contains a large number of other useful functions
to compute with mathematical entities such as matrices, polynomials, power
series, algebraic numbers etc., and a lot of transcendental functions. PARI is
also available as a C library to allow for faster computations.

Originally developed by Henri Cohen and his co-workers (Université Bordeaux I,
France), PARI is now under the GPL and maintained by Karim Belabas with the
help of many volunteer contributors.

* PARI is a C library, allowing fast computations.
* gp is an easy-to-use interactive shell giving access to the PARI functions.
* GP is the name of gp's scripting language.
* gp2c, the GP-to-C compiler, combines the best of both worlds by compiling GP
  scripts to the C language and transparently loading the resulting functions
  into gp. (gp2c-compiled scripts will typically run 3 or 4 times faster.) gp2c
  currently only understands a subset of the GP language.

%package -n libpari2
Summary:      Computer algebra system designed for fast computations in number theory
Group:        Productivity/Scientific/Math

%description -n libpari2
PARI shared lib

%package -n libpari-devel
Summary:	Computer algebra system designed for fast computations in number theory
Group:		Productivity/Scientific/Math
Requires:	libpari2

%description -n libpari-devel
PARI shared lib development files

%prep
%setup -n pari-%{version}
tar xf %{SOURCE1}
tar xf %{SOURCE2}

%build
export CFLAGS="$RPM_OPT_FLAGS"
./Configure	--prefix=%{_prefix} \
		--bindir=%{_bindir} \
		--libdir=%{_libdir} \
		--mandir=%{_mandir}/man1/ \
		--datadir=%{_datadir}/pari/
make

%install
make install DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%post -n libpari2
/sbin/ldconfig

%postun -n libpari2
/sbin/ldconfig

%files
%defattr(-,root,root)
%{_bindir}/gp*
%{_bindir}/tex2mail
%{_mandir}/man1/*
%dir %{_datadir}/pari/
%{_datadir}/pari/*

%files -n libpari2
%defattr(-,root,root)
%{_libdir}/libpari.so.2*
%dir /usr/lib/pari/
/usr/lib/pari/pari.cfg

%files -n libpari-devel
%defattr(-,root,root)
%dir /usr/include/pari/
/usr/include/pari/*.h
%{_libdir}/libpari.so

%changelog

openSUSE Build Service is sponsored by