2011-09-26 15:16:26 +02:00
|
|
|
#
|
|
|
|
# spec file for package pari
|
|
|
|
#
|
2016-03-12 21:39:06 +01:00
|
|
|
# Copyright (c) 2016 SUSE LINUX 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
|
2014-04-18 16:57:52 +02:00
|
|
|
%define lname libpari-gmp4
|
2016-07-31 18:52:17 +02:00
|
|
|
Version: 2.7.6
|
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
|
|
|
|
2014-02-05 03:02:01 +01:00
|
|
|
#Git-Clone: http://pari.math.u-bordeaux.fr/git/pari.git
|
|
|
|
#Git-Web: http://pari.math.u-bordeaux.fr/cgi-bin/gitweb.cgi
|
|
|
|
Source: http://pari.math.u-bordeaux.fr/pub/pari/unix/pari-%version.tar.gz
|
|
|
|
Source2: http://pari.math.u-bordeaux.fr/pub/pari/unix/pari-%version.tar.gz.asc
|
|
|
|
Source3: http://pari.math.u-bordeaux.fr/pub/pari/unix/pari-%version.changelog
|
2014-08-06 07:22:43 +02:00
|
|
|
Patch1: pari-nodate.diff
|
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
|
2014-08-06 07:17:15 +02:00
|
|
|
BuildRequires: libX11-devel
|
2013-01-06 21:10:48 +01:00
|
|
|
BuildRequires: libqt4-devel
|
|
|
|
BuildRequires: readline-devel
|
|
|
|
BuildRequires: xorg-x11-proto-devel
|
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
|
2014-08-06 07:22:43 +02:00
|
|
|
%patch -p 1 -P 1
|
2011-09-26 15:16:26 +02:00
|
|
|
|
|
|
|
%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;
|
|
|
|
|
2014-02-05 03:02:01 +01:00
|
|
|
cp "%{S:3}" .;
|
2012-11-29 22:16:38 +01:00
|
|
|
|
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
|
|
|
|
2014-10-12 10:20:55 +02:00
|
|
|
%post -n %lname -p /sbin/ldconfig
|
2012-02-26 23:26:53 +01:00
|
|
|
%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.
|
|
|
|
#
|
2014-04-18 16:57:52 +02:00
|
|
|
%files -n libpari-gmp4
|
2011-09-26 15:16:26 +02:00
|
|
|
%defattr(-,root,root)
|
2013-01-06 21:10:48 +01:00
|
|
|
%_libdir/libpari-gmp.so.%version
|
2014-04-18 16:57:52 +02:00
|
|
|
%_libdir/libpari-gmp.so.4
|
2011-09-26 15:16:26 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_includedir/pari
|
|
|
|
%_libdir/libpari.so
|
|
|
|
|
|
|
|
%changelog
|