diff --git a/python-cypari2-test.patch b/python-cypari2-test.patch new file mode 100644 index 0000000..b1f4e4e --- /dev/null +++ b/python-cypari2-test.patch @@ -0,0 +1,47 @@ +--- cypari2/closure.pyx.orig 2019-08-02 14:51:50.000000000 -0600 ++++ cypari2/closure.pyx 2022-09-20 15:40:55.569445587 -0600 +@@ -208,7 +208,7 @@ cpdef Gen objtoclosure(f): + >>> mul([1], [2]) + Traceback (most recent call last): + ... +- PariError: call_python: forbidden multiplication t_VEC (1 elts) * t_VEC (1 elts) ++ PariError: call_python: incorrect type in qfbcomp (t_VEC) + """ + if not callable(f): + raise TypeError("argument to objtoclosure() must be callable") +--- cypari2/gen.pyx.orig 2022-09-20 15:38:28.490075539 -0600 ++++ cypari2/gen.pyx 2022-09-20 15:42:19.833657605 -0600 +@@ -2029,7 +2029,7 @@ cdef class Gen(Gen_base): + + >>> g = pari.quadgen(5) + pari('2/3') + >>> complex(g) +- (2.2847006554165614+0j) ++ (1.118033988749895+0j) + + >>> g = pari('Mod(3,5)'); g + Mod(3, 5) +--- cypari2/handle_error.pyx.orig 2019-08-02 14:51:50.000000000 -0600 ++++ cypari2/handle_error.pyx 2022-09-20 15:43:06.529777723 -0600 +@@ -123,7 +123,7 @@ class PariError(RuntimeError): + >>> pari('!@#$%^&*()') + Traceback (most recent call last): + ... +- PariError: syntax error, unexpected $undefined ++ PariError: syntax error, unexpected invalid token + """ + return self.errtext().rstrip(" .:") + +--- cypari2/pari_instance.pyx.orig 2020-11-01 11:50:09.000000000 -0700 ++++ cypari2/pari_instance.pyx 2022-09-20 15:44:43.715034224 -0600 +@@ -1325,9 +1325,9 @@ cdef class Pari(Pari_auto): + >>> pari = cypari2.Pari() + >>> x = pari('x') + >>> pari.genus2red([-5*x**5, x**3 - 2*x**2 - 2*x + 1]) +- [1416875, [2, -1; 5, 4; 2267, 1], x^6 - 240*x^4 - 2550*x^3 - 11400*x^2 - 24100*x - 19855, [[2, [2, [Mod(1, 2)]], []], [5, [1, []], ["[V] page 156", [3]]], [2267, [2, [Mod(432, 2267)]], ["[I{1-0-0}] page 170", []]]]] ++ [1416875, [2, -1; 5, 4; 2267, 1], [-6*x^5 + 2*x^3 - x, x^3 + 1], [[2, [2, [Mod(1, 2)]], []], [5, [1, []], ["[V] page 156", [3]]], [2267, [2, [Mod(432, 2267)]], ["[I{1-0-0}] page 170", []]]]] + >>> pari.genus2red([-5*x**5, x**3 - 2*x**2 - 2*x + 1],2267) +- [2267, Mat([2267, 1]), x^6 - 24*x^5 + 10*x^3 - 4*x + 1, [2267, [2, [Mod(432, 2267)]], ["[I{1-0-0}] page 170", []]]] ++ [2267, Mat([2267, 1]), [-6*x^5 + 2*x^3 - x, x^3 + 1], [2267, [2, [Mod(432, 2267)]], ["[I{1-0-0}] page 170", []]]] + """ + cdef Gen t0 = objtogen(P) + if p is None: diff --git a/python-cypari2.spec b/python-cypari2.spec index d403026..03377bc 100644 --- a/python-cypari2.spec +++ b/python-cypari2.spec @@ -5,9 +5,9 @@ Name: python-cypari2 Version: 2.1.2 -Release: 6%{?dist} +Release: 7%{?dist} Summary: A Python interface to the number theory library pari -License: GPLv2+ +License: GPL-2.0-or-later URL: https://github.com/sagemath/%{modname} Source0: %{pypi_source cypari2} # Previously sagemath-pari.patch @@ -17,6 +17,8 @@ Patch1: %{name}-cython.patch # Adapt to python 3.10 # https://github.com/sagemath/cypari2/pull/103 Patch2: %{name}-python310.patch +# Update expected values for pari 2.15.0 +Patch3: %{name}-test.patch BuildRequires: gcc BuildRequires: gmp-devel @@ -101,6 +103,10 @@ export PATH PYTHONPATH %doc docs/build/html %changelog +* Tue Sep 27 2022 Jerry James - 2.1.2-7 +- Rebuild for pari 2.15.0 +- Convert License tag to SPDX + * Fri Jul 22 2022 Fedora Release Engineering - 2.1.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild