The package rpms/sympy.git has added or updated architecture specific content in its spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s): https://src.fedoraproject.org/cgit/rpms/sympy.git/commit/?id=9980a85e87cdf56....
Change: -%ifnarch ppc64le
Thanks.
Full change: ============
commit 9980a85e87cdf56ec606c69d101b06d8f055e66f Author: Jerry James loganjerry@gmail.com Date: Tue Apr 29 06:49:42 2025 -0600
Version 1.14.0
- Drop upstreamed tempfile flush patch - Add patch to avoid intersphinx_registry - Drop workaround for buggy lark on ppc64le - Drop examples subpackage
diff --git a/.gitignore b/.gitignore index 53040b8..d8b7589 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /sympy-*.tar.gz +/objects-*.inv diff --git a/sources b/sources index d86a114..8935ef3 100644 --- a/sources +++ b/sources @@ -1 +1,4 @@ -SHA512 (sympy-1.13.3.tar.gz) = 0b8b222c10c8a93b93a97486c86e898dbe35a6d33b8142aa8c6645cfe0da8b74551664d52992d9de9144365856ee49587ec414ef13f0658f36712cbf153be7e2 +SHA512 (sympy-1.14.0.tar.gz) = 97e8204a9f310f1ddb285783a4b3479a006dcfa20b1a58ac1a0fffdf1d9ecde639615117d21bc0c064cafeb624ad3754e0a3f295fab511400f669fcd3bcdddb5 +SHA512 (objects-matplotlib.inv) = 9f9a89fc277ed0d57dcaf93e0a823a663242a199c253fb7d5a670f7f7186abc832abaedc485fc9553cd79ae6ea3d5e98f449f8fee0ee23086c3b3b5e983dd773 +SHA512 (objects-numpy.inv) = 4c7e0aee95c80f472e6726a1b2cb90901309e6e4c90877e66ab1a04c6966e63a1339dfec4329dc89c4c858343be97946b8fca34a475831a80823f117ea19e75c +SHA512 (objects-scipy.inv) = 68cc2292056cef15083de5c957c1d3c85ae30590776affc4246dbf00889b60666efee2f1db1897b3a455db4c6d17dc3bf01f3efc850ee80e30a12e357e7473aa diff --git a/sympy-intersphinx.patch b/sympy-intersphinx.patch new file mode 100644 index 0000000..f446d3b --- /dev/null +++ b/sympy-intersphinx.patch @@ -0,0 +1,28 @@ +--- sympy-sympy-1.14.0/doc/src/conf.py.orig 2025-04-27 05:37:26.000000000 -0600 ++++ sympy-sympy-1.14.0/doc/src/conf.py 2025-04-28 14:12:20.813604219 -0600 +@@ -16,9 +16,6 @@ import os + import subprocess + from datetime import datetime + +-from intersphinx_registry import get_intersphinx_mapping +- +- + # Make sure we import sympy from git + sys.path.insert(0, os.path.abspath('../..')) + +@@ -458,9 +455,12 @@ texinfo_documents = [ + graphviz_output_format = 'svg' + + # Enable links to other packages +-intersphinx_mapping = get_intersphinx_mapping( +- packages={"matplotlib", "mpmath", "scipy", "numpy"}, +-) ++intersphinx_mapping = { ++ 'matplotlib': ('https://matplotlib.org/stable/', None), ++ 'mpmath': ('https://mpmath.org/doc/current/', '/usr/share/doc/python-mpmath-doc/html/objects.inv'), ++ "scipy": ("https://docs.scipy.org/doc/scipy/", None), ++ "numpy": ("https://numpy.org/doc/stable/", None), ++} + # Require :external: to reference intersphinx. Prevents accidentally linking + # to something from matplotlib. + intersphinx_disabled_reftypes = ['*'] diff --git a/sympy-tempfile-flush.patch b/sympy-tempfile-flush.patch deleted file mode 100644 index 0a584f7..0000000 --- a/sympy-tempfile-flush.patch +++ /dev/null @@ -1,20 +0,0 @@ ---- sympy-sympy-1.13.3/sympy/parsing/c/c_parser.py.orig 2024-09-18 15:11:31.000000000 -0600 -+++ sympy-sympy-1.13.3/sympy/parsing/c/c_parser.py 2025-03-18 10:10:45.309887628 -0600 -@@ -180,6 +180,7 @@ if cin: - """ - file = tempfile.NamedTemporaryFile(mode = 'w+', suffix = '.cpp') - file.write(source) -+ file.flush() - file.seek(0) - self.tu = self.index.parse( - file.name, ---- sympy-sympy-1.13.3/sympy/parsing/tests/test_custom_latex.py.orig 2024-09-18 15:11:31.000000000 -0600 -+++ sympy-sympy-1.13.3/sympy/parsing/tests/test_custom_latex.py 2025-03-18 09:57:47.663484127 -0600 -@@ -30,6 +30,7 @@ def init_custom_parser(modification, tra - - with tempfile.NamedTemporaryFile() as f: - f.write(bytes(latex_grammar, encoding="utf8")) -+ f.flush() - - parser = LarkLaTeXParser(grammar_file=f.name, transformer=transformer) - diff --git a/sympy.spec b/sympy.spec index 3f0bdaa..8a4e86b 100644 --- a/sympy.spec +++ b/sympy.spec @@ -6,9 +6,10 @@ %global debug_package %{nil}
%global giturl https://github.com/sympy/sympy +%global commit fe935ceb303891d1f8bea4c03b19fd9ec9464b02
Name: sympy -Version: 1.13.3 +Version: 1.14.0 Release: %autorelease Summary: A Python library for symbolic mathematics
@@ -17,10 +18,13 @@ Summary: A Python library for symbolic mathematics License: BSD-3-Clause AND MIT URL: https://sympy.org/ VCS: git:%{giturl}.git -Source: %{giturl}/archive/%{name}-%{version}.tar.gz -# Fix a test failure with python 3.14 -# https://github.com/sympy/sympy/commit/613166ef5995b60610f94a729fa0412a103d47... -Patch: %{name}-tempfile-flush.patch +Source0: %{giturl}/archive/%{name}-%{version}.tar.gz +# For intersphinx +Source1: https://matplotlib.org/stable/objects.inv#/objects-matplotlib.inv +Source2: https://docs.scipy.org/doc/scipy/objects.inv#/objects-scipy.inv +Source3: https://numpy.org/doc/stable/objects.inv#/objects-numpy.inv +# Do not depend on intersphinx_registry, which is not available in Fedora +Patch: %{name}-intersphinx.patch
# This package used to be noarch, and should still be noarch. However, because # there is no JDK available on i686 anymore, the antlr4 package is also not @@ -74,10 +78,7 @@ BuildRequires: lfortran BuildRequires: %{py3_dist autowrap} BuildRequires: %{py3_dist cloudpickle} BuildRequires: %{py3_dist ipython} -# FIXME: parser failure in lark on ppc64le -%ifnarch ppc64le BuildRequires: %{py3_dist lark} -%endif # FIXME: Crashes in llvmlite on ppc64le, s390x and riscv64 %ifnarch ppc64le s390x riscv64 BuildRequires: %{py3_dist llvmlite} @@ -121,14 +122,6 @@ while keeping the code as simple as possible in order to be comprehensible and easily extensible. SymPy is written entirely in Python and does not require any external libraries.
-%package examples -License: BSD-3-Clause -Summary: Sympy examples -Requires: python3-%{name} = %{version}-%{release} - -%description examples -This package contains example input for sympy. - %package doc # This project is BSD-3-Clause. Other files bundled with the documentation # have the following licenses: @@ -156,6 +149,10 @@ Summary: Documentation for sympy Provides: bundled(js-jquery) Provides: bundled(js-underscore)
+# This can be removed when F46 reaches EOL +Obsoletes: %{name}-examples < 1.14.0 +Provides: %{name}-examples = %{version}-%{release} + %description doc HTML documentation for sympy.
@@ -182,9 +179,14 @@ for fil in $(grep -rl "^#![[:blank:]]*%{_bindir}/env" .); do done
# Use local objects.inv for intersphinx -sed -e "s|('https://mpmath%5C.org/doc/current/', )None|\1'%{_docdir}/python-mpmath-doc/html/objects.inv'|" \ +sed -e "s|('https://matplotlib%5C.org/stable/', )None|\1'%{SOURCE1}'|" \ + -e "s|(.https://docs%5C.scipy%5C.org/doc/scipy/., )None|\1'%{SOURCE2}'|" \ + -e "s|(.https://numpy%5C.org/doc/stable/., )None|\1'%{SOURCE3}'|" \ -i doc/src/conf.py
+# Help sphinx find the git commit +echo -n '%{commit}' > doc/commit_hash.txt + # Permit use of antlr4 4.13 sed -i s'/4.11/4.13/g' sympy/parsing/autolev/_parse_autolev_antlr.py \ sympy/parsing/latex/_parse_latex_antlr.py @@ -214,9 +216,6 @@ popd ## Remove extra files rm -f %{buildroot}%{_bindir}/{,doc}test
-# Don't let an executable script go into the documentation -chmod -R a-x+X examples - # Fix permissions chmod 0755 %{buildroot}%{python3_sitelib}/sympy/benchmarks/bench_symbench.py \ %{buildroot}%{python3_sitelib}/sympy/testing/tests/diagnose_imports.py @@ -228,9 +227,6 @@ rm -f %{buildroot}%{_docdir}/%{name}-doc/html/.buildinfo rm -fr %{buildroot}%{_docdir}/%{name}-doc/i18n %fdupes %{buildroot}%{_docdir}/%{name}-doc
-# Try to get rid of pyc files, which aren't useful for documentation -find examples/ -name '*.py[co]' -print -delete - %check %{python3} bin/test -v --parallel
@@ -241,9 +237,6 @@ find examples/ -name '*.py[co]' -print -delete %{_bindir}/isympy %{_mandir}/man1/isympy.1*
-%files examples -%doc examples/* - %files doc %docdir %{_docdir}/%{name}-doc/html %{_docdir}/%{name}-doc/html
arch-excludes@lists.fedoraproject.org