2011-09-26 15:16:26 +02:00
|
|
|
#
|
|
|
|
# spec file for package pari
|
|
|
|
#
|
2019-03-26 01:05:24 +01:00
|
|
|
# Copyright (c) 2019 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.
|
|
|
|
|
2018-12-11 00:49:34 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-09-26 15:16:26 +02:00
|
|
|
#
|
|
|
|
|
2013-01-06 21:10:48 +01:00
|
|
|
|
2018-12-11 00:49:34 +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
|
|
|
Name: pari
|
2018-12-11 00:50:20 +01:00
|
|
|
%define sover 6
|
2019-08-23 15:49:36 +02:00
|
|
|
%define lname libpari-gmp-tls%sover
|
2019-08-14 06:18:46 +02:00
|
|
|
Version: 2.11.2
|
2011-09-26 15:16:26 +02:00
|
|
|
Release: 0
|
2018-12-11 00:49:34 +01:00
|
|
|
Summary: Computer Algebra System for computations in Number Theory
|
2018-08-29 22:36:30 +02:00
|
|
|
License: GPL-2.0-only
|
2013-01-06 21:10:48 +01:00
|
|
|
Group: Productivity/Scientific/Math
|
2019-08-14 06:18:46 +02:00
|
|
|
URL: https://pari.math.u-bordeaux.fr/
|
|
|
|
#Git-Clone: https://pari.math.u-bordeaux.fr/git/pari.git
|
|
|
|
#Git-Web: https://pari.math.u-bordeaux.fr/cgi-bin/gitweb.cgi
|
|
|
|
Source: https://pari.math.u-bordeaux.fr/pub/pari/unix/pari-%version.tar.gz
|
|
|
|
Source2: https://pari.math.u-bordeaux.fr/pub/pari/unix/pari-%version.tar.gz.asc
|
2014-08-06 07:22:43 +02:00
|
|
|
Patch1: pari-nodate.diff
|
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: 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
|
2011-09-26 15:16:26 +02:00
|
|
|
# This is used by the data packages to avoid having a too-old version of libpari:
|
2017-02-21 01:01:54 +01:00
|
|
|
Group: System/Libraries
|
2018-12-11 00:49:34 +01:00
|
|
|
Provides: libpari-gmp = %version
|
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
|
2018-12-11 00:59:16 +01:00
|
|
|
%patch -P 1 -p1
|
2011-09-26 15:16:26 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
./Configure --prefix="%_prefix" \
|
|
|
|
--bindir="%_bindir" --includedir="%_includedir" \
|
|
|
|
--libdir="%_libdir" \
|
2019-08-23 15:49:36 +02:00
|
|
|
--sysdatadir="%_libdir" --datadir="%_datadir/%name" \
|
|
|
|
--mt=pthread
|
2011-09-26 15:16:26 +02:00
|
|
|
make %{?_smp_mflags} all \
|
|
|
|
CFLAGS="%optflags -fno-strict-aliasing" \
|
2018-12-11 00:59:16 +01:00
|
|
|
STRIP=true
|
2012-11-29 22:16:38 +01:00
|
|
|
|
2011-09-26 15:16:26 +02:00
|
|
|
%install
|
2018-12-11 00:49:34 +01:00
|
|
|
%make_install
|
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
|
|
|
|
%_bindir/*
|
|
|
|
%_datadir/%name
|
|
|
|
%_libdir/%name.cfg
|
|
|
|
%_mandir/man*/*
|
|
|
|
|
2018-08-29 22:36:30 +02:00
|
|
|
%files -n %lname
|
2018-12-11 00:49:34 +01:00
|
|
|
%if 0%{?sle_version} <= 150000 && !0%{?is_opensuse}
|
|
|
|
%dir %_licensedir
|
|
|
|
%endif
|
2019-08-23 15:49:36 +02:00
|
|
|
%license COPYING
|
|
|
|
%_libdir/libpari-gmp-tls.so.%version
|
|
|
|
%_libdir/libpari-gmp-tls.so.%sover
|
2011-09-26 15:16:26 +02:00
|
|
|
|
|
|
|
%files devel
|
2019-08-23 15:49:36 +02:00
|
|
|
%doc examples/
|
|
|
|
%doc CHANGES CHANGES-* NEW README
|
2018-12-11 00:49:34 +01:00
|
|
|
%_includedir/pari/
|
2011-09-26 15:16:26 +02:00
|
|
|
%_libdir/libpari.so
|
|
|
|
|
|
|
|
%changelog
|