2011-09-26 15:16:26 +02:00
|
|
|
#
|
|
|
|
# spec file for package pari
|
|
|
|
#
|
2013-01-06 21:10:48 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-09-26 15:16:26 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2013-01-06 21:10:48 +01:00
|
|
|
|
2011-09-26 15:16:26 +02:00
|
|
|
Name: pari
|
|
|
|
%define lname libpari-gmp3
|
2012-11-29 22:16:38 +01:00
|
|
|
Version: 2.5.3
|
2011-09-26 15:16:26 +02:00
|
|
|
Release: 0
|
2013-01-06 21:10:48 +01:00
|
|
|
Summary: Computer Algebra System for fast computations in Number Theory
|
2011-09-26 15:16:26 +02:00
|
|
|
License: GPL-2.0
|
2013-01-06 21:10:48 +01:00
|
|
|
Group: Productivity/Scientific/Math
|
|
|
|
Url: http://pari.math.u-bordeaux.fr/
|
2011-09-26 15:16:26 +02:00
|
|
|
|
2012-11-29 22:16:38 +01:00
|
|
|
#DL-URL: http://pari.math.u-bordeaux.fr/pub/pari/unix/pari-2.5.3.tar.gz
|
|
|
|
Source: %name-%version.tar.xz
|
2013-01-06 21:10:48 +01:00
|
|
|
Source2: http://pari.math.u-bordeaux.fr/pub/pari/unix/pari-2.5.3.changelog
|
2011-09-26 15:16:26 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-01-06 21:10:48 +01:00
|
|
|
BuildRequires: fltk-devel
|
|
|
|
BuildRequires: gmp-devel
|
|
|
|
BuildRequires: libqt4-devel
|
|
|
|
BuildRequires: readline-devel
|
|
|
|
BuildRequires: xz
|
2012-11-29 22:16:38 +01:00
|
|
|
%if 0%{?suse_version} >= 1220
|
2013-01-06 21:10:48 +01:00
|
|
|
BuildRequires: libX11-devel
|
|
|
|
BuildRequires: xorg-x11-proto-devel
|
2012-11-29 22:16:38 +01:00
|
|
|
%else
|
2013-01-06 21:10:48 +01:00
|
|
|
BuildRequires: xorg-x11-devel
|
2012-11-29 22:16:38 +01:00
|
|
|
%endif
|
2011-09-26 15:16:26 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
PARI/GP is a 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.
|
|
|
|
|
|
|
|
%package gp
|
2013-01-06 21:10:48 +01:00
|
|
|
Summary: Frontend to the PARI Computer Algebra System
|
|
|
|
Group: Productivity/Scientific/Math
|
2011-09-26 15:16:26 +02:00
|
|
|
|
|
|
|
%description gp
|
|
|
|
PARI/GP is a 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.
|
|
|
|
|
|
|
|
%package -n %lname
|
2013-01-06 21:10:48 +01:00
|
|
|
Summary: Computer Algebra System library for fast computations in Number Theory
|
|
|
|
Group: System/Libraries
|
2011-09-26 15:16:26 +02:00
|
|
|
# This is used by the data packages to avoid having a too-old version of libpari:
|
2013-01-06 21:10:48 +01:00
|
|
|
Provides: libpari-gmp = %version-%release
|
2011-09-26 15:16:26 +02:00
|
|
|
|
|
|
|
%description -n %lname
|
|
|
|
PARI/GP is a 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.
|
|
|
|
|
|
|
|
%package devel
|
2013-01-06 21:10:48 +01:00
|
|
|
Summary: Development files for the PARI CAS
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %lname = %version
|
2011-09-26 15:16:26 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
PARI/GP is a 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.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
./Configure --prefix="%_prefix" \
|
|
|
|
--bindir="%_bindir" --includedir="%_includedir" \
|
|
|
|
--libdir="%_libdir" \
|
|
|
|
--sysdatadir="%_libdir" --datadir="%_datadir/%name";
|
|
|
|
make %{?_smp_mflags} all \
|
|
|
|
CFLAGS="%optflags -fno-strict-aliasing" \
|
|
|
|
STRIP=true;
|
|
|
|
|
2012-11-29 22:16:38 +01:00
|
|
|
cp "%{S:2}" .;
|
|
|
|
|
2011-09-26 15:16:26 +02:00
|
|
|
%install
|
|
|
|
b="%buildroot";
|
2012-11-29 22:16:38 +01:00
|
|
|
make install DESTDIR="$b";
|
2011-09-26 15:16:26 +02:00
|
|
|
|
2012-02-26 23:26:53 +01:00
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
|
2011-09-26 15:16:26 +02:00
|
|
|
%files gp
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_bindir/*
|
|
|
|
%_datadir/%name
|
|
|
|
%_libdir/%name.cfg
|
|
|
|
%_mandir/man*/*
|
2012-11-29 22:16:38 +01:00
|
|
|
%doc %name-%version.changelog
|
2011-09-26 15:16:26 +02:00
|
|
|
|
2013-01-06 21:10:48 +01:00
|
|
|
#
|
|
|
|
# See
|
|
|
|
# http://pari.math.u-bordeaux.fr/archives/pari-dev-1211/msg00006.html
|
|
|
|
# for details on the SO versioning.
|
|
|
|
#
|
2011-09-26 15:16:26 +02:00
|
|
|
%files -n libpari-gmp3
|
|
|
|
%defattr(-,root,root)
|
2013-01-06 21:10:48 +01:00
|
|
|
%_libdir/libpari-gmp.so.%version
|
|
|
|
%_libdir/libpari-gmp.so.3
|
2011-09-26 15:16:26 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_includedir/pari
|
|
|
|
%_libdir/libpari.so
|
|
|
|
|
|
|
|
%changelog
|