SHA256
1
0
forked from pool/pari

Accepting request 928049 from home:urbic:branches:science

- Update to release 2.13.2. Fixed
  [last column crossreferences current development release 2.14.0]
  * rnfidealup(, non-integral ideal) -> division by 0         [F22]
  * memory leak in ellheight                                  [F23]
  * memory leak in bnfinit                                    [F24]
  * nfeltdiv(nfinit(x^2+1), 0, 1+x/2) -> SEGV [#2277]         [F26]
  * znchargauss(g,chi,0) -> oo loop                           [F28]
  * bnflog(bnr, ...) -> SEGV                                  [F29]
  * elliptic functions: incorrect reduction
    of z/w1 mod [1,tau] => catastrophic cancellation          [F30]
  * powcx(x, t_COMPLEX with 0 imaginary part) -> crash        [F31]
  * nfsubfields(t_POL in other var than x,,1) -> SEGV         [F32]
  * extra terms in power t_SER substitutions [#2281]          [F33]
  * k=bnfinit(quadpoly(-2923,a));
    bnrclassfield(k,3) -> SEGV [#2280]                        [F34]
  * rnfdisc mishandled polynomials with denominators [#2284]  [F35]
  * elltamagawa(ellinit([-1456/243,93184/19683])) ->
    wrong result                                              [F36]
  * mfsearch would sometimes miss the trivial form            [F37]
  * typo in allh [affects ECPP tunings]                       [F38]
  * mfisetaquo(mffrometaquo([1,12;193,12])) -> 0              [F39]
  * polroots(1.E-47*t^6+1.E-47*t^5+4.E-46*t^4) ->
    bug in type [#2286]                                       [F40]
  * ceil(quadgen(5)) -> 1 instead of 0 [#2288]                [F41]
  * floor(Mod(0,3)*quadgen(5)) -> crash                       [F42]
  * wrong ispower(t_RFRAC) and issquare(t_RFRAC, &z) [#2289]  [F45]
  * 1+O(x)==O(x)                                              [F47]
  * qfauto([[1,0;0,1],[0,0;1,0]]) -> SEGV                     [F49]
  * bnfsunit(...)[4] (the S-regulator) did not correspond to
    its definition in the documentation [ was using log(p)
    instead of log(Norm P)) for P in S above p ]              [F50]
  * rnfdisc could return corrupted result                     [F51]
  * concat(List([1])[1..0]) ->SEGV (instead of error) [#2299] [F53]
  * List([1])[1..0]==List() -> 0 instead of 1                 [F54]
- Build PDF documentation and place it into separate
  pari-doc package. Move examples from pari-devel package
  to pari-doc.
- Add %{_sysconfdir}/gprc to packaging.
- Remove patch pari-nodate.diff (replace with the sed one-liner
  in the %prep section).
- Remove obsolete stuff from the spec file.
- Apply spec-cleaner.

OBS-URL: https://build.opensuse.org/request/show/928049
OBS-URL: https://build.opensuse.org/package/show/science/pari?expand=0&rev=50
This commit is contained in:
Jan Engelhardt 2021-10-29 08:59:49 +00:00 committed by Git OBS Bridge
parent b893bd44b9
commit 9692878277
7 changed files with 159 additions and 106 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:81ecf7d70ccdaae230165cff627c9ce2ec297b8f22f9f40742279d85f86dfcb1
size 4760932

View File

@ -1,16 +0,0 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEQgKOpASi6dgKxFMUjw58K0Ui44cFAmADM90ACgkQjw58K0Ui
44emkw//dwJNLGXLr5bB6/5UqltUQy8VLA4SzyJC0gb77C0uQgms5DuDMNgJNrF5
WDbaxXWbcIB44ORX17B/y407hUoPvL9LPVtE1J1NxkUln1jjLiFOf9KFbaFfo/SS
jcvTZZbN+GWItveq5+vkNY6A4CiPix+IjAQ5tZAHbQlJLxJ3K09VMYtO7ICsIHSd
MKiq+pO8kEc4ANIA71I8x1Z7HXVtkfV3lGZ65u+1rDaTaW1821UgbdO+rOBvR81Z
it1KYYX4ZTGzA3iM4bqbxJatkSzyZi6WsuSh4EsYWLo/8YBMRefvWvWWyYQ9Kl7J
TzkpGDoiri0UoKyYEAsHitPLRgiSUalXOm1EopQfkE5rYJtqUxslu56Ik/saRIzs
vc+CrkWsyywZRvue+FKsZpYWiNHYHBDOKm/n9lRRl/dyOBCPj5ouvbOEefJ9wDnw
FidqxYeDBbcW4Q4crl2HFweKZtgr15CmBRnpaxGT6KS/TbxgqefkukQ1CAlOe2Xj
1QBN7JG9oUexlE2drHVsAxLW2e2kRHThy/5Z/OfaO8caXm+jVXroweXARO8FY4Z5
KzLPKbcPW/AUNwpNtnRl9350g0rIhEq7DkomyZmsTDNdZ/I0HA4lif3o9YQa8KPZ
Vk78Fc4DAgctw0x69130jDHVPJN8bObh1hWetX9F7d6fcad73Wk=
=Foqs
-----END PGP SIGNATURE-----

3
pari-2.13.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1679985094a0b723d14f49aa891dbe5ec967aa4040050a2c50bd764ddb3eba24
size 4766461

16
pari-2.13.2.tar.gz.asc Normal file
View File

@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEQgKOpASi6dgKxFMUjw58K0Ui44cFAmDUcocACgkQjw58K0Ui
44dq3BAAlwEVG8ZWb0oTJDykDmkmveUIgMgdMdPUGi9BgIaXKZVKmrzR7WM9bKe5
PMG7d9xaN5+oZMTZ21nhaNNDe6d19Tx7lD2Wxrs6rNQT5efpqFfJ8jRDIBtU80rf
yLHVzYeLxle6o82vV/IpiKyqd3k22jk9uhlsWMyK2PcuF07v6bsPH8GKSahKC5Jw
sVeRN1eXt6feGXBMc03LrnZmcZU4kVVTdsPvT1hVtLdGLaS/jQ1AvfVD4NYpXdMI
Aixr7JcnJuR8zGapaPsKHKPNhkMkP60ZBYyn2OgEW5DMOzEbjQA+KY4HL8qWwa4A
1+sZMjlW78yY3vJjj9d8mf7wPyN88+r6qVNE+M94VLzm5Hd94N33BZp5jHKVFi07
DQG8qaz3e+2jqyZfZerTt0dKEqe/mExGL9X4+guHpt285B9PqKW+USIzbuggO4j2
xzqsOk6auCzzzfIwUFuvYOz3zJ0XKJsTYZIKhLfvSP5td6n6tlSMkYPXB54azEwF
3fpkX7CkrQhswC7hFT5AMh05sCuorhLguSy1Dn0tTPiUSl36yehSPwg+IHCsUSSC
9rHrImKdtyB+nfF01EfjRShO2JTJlqXofnyU3H5GGNy5JIaQBT19CdT+Ik4ps6zJ
bTmSHDnDWhNai/sQyHyOw6jqEo99yjo0osF7GCe7j3FTfFwiTpw=
=/SM0
-----END PGP SIGNATURE-----

View File

@ -1,21 +0,0 @@
From: Jan Engelhardt <jengelh@inai.de>
Date: 2014-02-05 03:01:02.110857012 +0100
Kill __DATE__ from source, it's pointless and can cause rebuilds.
---
src/language/paricfg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: pari-2.11.0/src/language/paricfg.c
===================================================================
--- pari-2.11.0.orig/src/language/paricfg.c
+++ pari-2.11.0/src/language/paricfg.c
@@ -17,6 +17,6 @@ const char *paricfg_version = PARIVERSIO
const char *paricfg_buildinfo = PARIINFO;
const long paricfg_version_code = PARI_VERSION_CODE;
const char *paricfg_vcsversion = PARI_VCSVERSION;
-const char *paricfg_compiledate = __DATE__;
+const char *paricfg_compiledate = "openSUSE";
const char *paricfg_mt_engine = PARI_MT_ENGINE;
const char *paricfg_gphelp = GPHELP;

View File

@ -1,3 +1,49 @@
-------------------------------------------------------------------
Fri Oct 29 01:01:54 UTC 2021 - Anton Shvetz <shvetz.anton@gmail.com>
- Update to release 2.13.2. Fixed
[last column crossreferences current development release 2.14.0]
* rnfidealup(, non-integral ideal) -> division by 0 [F22]
* memory leak in ellheight [F23]
* memory leak in bnfinit [F24]
* nfeltdiv(nfinit(x^2+1), 0, 1+x/2) -> SEGV [#2277] [F26]
* znchargauss(g,chi,0) -> oo loop [F28]
* bnflog(bnr, ...) -> SEGV [F29]
* elliptic functions: incorrect reduction
of z/w1 mod [1,tau] => catastrophic cancellation [F30]
* powcx(x, t_COMPLEX with 0 imaginary part) -> crash [F31]
* nfsubfields(t_POL in other var than x,,1) -> SEGV [F32]
* extra terms in power t_SER substitutions [#2281] [F33]
* k=bnfinit(quadpoly(-2923,a));
bnrclassfield(k,3) -> SEGV [#2280] [F34]
* rnfdisc mishandled polynomials with denominators [#2284] [F35]
* elltamagawa(ellinit([-1456/243,93184/19683])) ->
wrong result [F36]
* mfsearch would sometimes miss the trivial form [F37]
* typo in allh [affects ECPP tunings] [F38]
* mfisetaquo(mffrometaquo([1,12;193,12])) -> 0 [F39]
* polroots(1.E-47*t^6+1.E-47*t^5+4.E-46*t^4) ->
bug in type [#2286] [F40]
* ceil(quadgen(5)) -> 1 instead of 0 [#2288] [F41]
* floor(Mod(0,3)*quadgen(5)) -> crash [F42]
* wrong ispower(t_RFRAC) and issquare(t_RFRAC, &z) [#2289] [F45]
* 1+O(x)==O(x) [F47]
* qfauto([[1,0;0,1],[0,0;1,0]]) -> SEGV [F49]
* bnfsunit(...)[4] (the S-regulator) did not correspond to
its definition in the documentation [ was using log(p)
instead of log(Norm P)) for P in S above p ] [F50]
* rnfdisc could return corrupted result [F51]
* concat(List([1])[1..0]) ->SEGV (instead of error) [#2299] [F53]
* List([1])[1..0]==List() -> 0 instead of 1 [F54]
- Build PDF documentation and place it into separate
pari-doc package. Move examples from pari-devel package
to pari-doc.
- Add %{_sysconfdir}/gprc to packaging.
- Remove patch pari-nodate.diff (replace with the sed one-liner
in the %prep section).
- Remove obsolete stuff from the spec file.
- Apply spec-cleaner.
-------------------------------------------------------------------
Sun Feb 7 21:15:14 UTC 2021 - Aaron Puchert <aaronpuchert@alice-dsl.net>

156
pari.spec
View File

@ -16,114 +16,142 @@
#
%global desc \
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.\
%{nil}
# See
# http://pari.math.u-bordeaux.fr/archives/pari-dev-1211/msg00006.html
# for details on the SO versioning.
%global sover 7
%global lname libpari-gmp-tls%{sover}
Name: pari
%define sover 7
%define lname libpari-gmp-tls%sover
Version: 2.13.1
Version: 2.13.2
Release: 0
Summary: Computer Algebra System for computations in Number Theory
License: GPL-2.0-only
Group: Productivity/Scientific/Math
URL: https://pari.math.u-bordeaux.fr/
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
Patch1: pari-nodate.diff
Source0: %{url}/pub/pari/unix/pari-%{version}.tar.gz
Source2: %{url}/pub/pari/unix/pari-%{version}.tar.gz.asc
BuildRequires: fltk-devel
BuildRequires: gmp-devel
BuildRequires: libX11-devel
BuildRequires: pkgconfig
BuildRequires: readline-devel
BuildRequires: texlive-latex
BuildRequires: texlive-luatex
BuildRequires: texlive-luatex-bin
BuildRequires: texlive-luatexbase
BuildRequires: texlive-tex-bin
BuildRequires: xorg-x11-proto-devel
BuildRequires: pkgconfig(x11)
%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.
%{desc}
%package gp
Summary: Frontend to the PARI Computer Algebra System
Summary: Frontend to the PARI CAS
Group: Productivity/Scientific/Math
%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.
%{desc}
%package -n %lname
Summary: Computer Algebra System library for fast computations in Number Theory
%package doc
Summary: Documentation for the PARI CAS
Group: Documentation/Other
BuildArch: noarch
%description doc
%{desc}
This package contains the documentation and examples for the PARI CAS.
%package -n %{lname}
Summary: Shared library for the PARI CAS
# This is used by the data packages to avoid having a too-old version of libpari:
Group: System/Libraries
Provides: libpari-gmp = %version
Provides: libpari-gmp = %{version}
%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.
%description -n %{lname}
%{desc}
This package contains shared library for the PARI CAS.
%package devel
Summary: Development files for the PARI CAS
Group: Development/Libraries/C and C++
Requires: %lname = %version
Requires: %{lname} = %{version}
%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.
%{desc}
This package contains development files for the PARI CAS.
%prep
%autosetup -p1
%autosetup
# Kill __DATE__ from source, its pointless and can cause rebuilds.
sed -i -e 's/__DATE__/"%{_repository}"/' src/language/paricfg.c
# Set proprer page dimensions
sed -i -e '27 i \\\else\\\pagewidth=11.69in\\\pageheight=8.26in' doc/refmacro.tex
# Dont build DVI docs
sed -i -e 's/^\(doc all:\) .*/\1/' config/DOC_Make.SH
%build
./Configure --prefix="%_prefix" \
--bindir="%_bindir" --includedir="%_includedir" \
--libdir="%_libdir" \
--sysdatadir="%_libdir" --datadir="%_datadir/%name" \
./Configure \
--prefix="%{_prefix}" \
--bindir="%{_bindir}" \
--includedir="%{_includedir}" \
--libdir="%{_libdir}" \
--sysdatadir="%{_libdir}" \
--datadir="%{_datadir}/%{name}" \
--mt=pthread
%make_build all \
CFLAGS="%optflags -fno-strict-aliasing" \
STRIP=true
%make_build -e \
CFLAGS="%{optflags} -fno-strict-aliasing" \
STRIP=true \
PDFTEX=luatex \
PDFLATEX=lualatex \
all docpdf
%install
%make_install
install -dm0755 %{buildroot}%{_sysconfdir}
install -m0644 misc/gprc.dft %{buildroot}%{_sysconfdir}/gprc
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
install -dm0755 %{buildroot}%{_defaultdocdir}/%{name}
install -Dm0644 doc/*.pdf %{buildroot}%{_defaultdocdir}/%{name}
rm -rf %{buildroot}%{_datadir}/%{name}/doc
mv %{buildroot}%{_datadir}/%{name}/examples %{buildroot}%{_defaultdocdir}/%{name}
%post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig
%files gp
%_bindir/*
%_datadir/%name
%_libdir/%name.cfg
%_mandir/man*/*
%files -n %lname
%if 0%{?sle_version} <= 150000 && !0%{?is_opensuse}
%dir %_licensedir
%endif
%doc AUTHORS CHANGES* README* NEW
%license COPYING
%_libdir/libpari-gmp-tls.so.%version
%_libdir/libpari-gmp-tls.so.%sover
%config %{_sysconfdir}/gprc
%{_bindir}/*
%{_datadir}/%{name}
%{_libdir}/%{name}.cfg
%{_mandir}/man1/*.1%{?ext_man}
%files doc
%license COPYING
%{_defaultdocdir}/%{name}
%files -n %{lname}
%license COPYING
%{_libdir}/libpari-gmp-tls.so.%{version}
%{_libdir}/libpari-gmp-tls.so.%{sover}
%files devel
%doc examples/
%doc CHANGES CHANGES-* NEW README
%_includedir/pari/
%_libdir/libpari.so
%license COPYING
%{_includedir}/%{name}
%{_libdir}/libpari.so
%changelog