diff --git a/python-sphinx.spec b/python-sphinx.spec index e3ca37feb2b7e8f6269c1e8f075e355ff012ea8c..c6d3fb8cc09c57a501e254d8c2ea4abc40204340 100644 --- a/python-sphinx.spec +++ b/python-sphinx.spec @@ -1,5 +1,5 @@ Name: python-sphinx -Version: 8.1.3 +Version: 8.2.3 Release: 1 Epoch: 1 Summary: Python documentation generator @@ -35,6 +35,7 @@ BuildRequires: python3-html5lib BuildRequires: python3-mock BuildRequires: python3-pytest BuildRequires: python3-snowballstemmer +BuildRequires: python3-roman-numerals-py BuildRequires: gettext BuildRequires: graphviz @@ -133,7 +134,18 @@ This package contains locale files for Sphinx. %prep %autosetup -n sphinx-%{version} -p1 - +sed -i '/"defusedxml/d' pyproject.toml +sed -i 's/from defusedxml./from xml.etree./' sphinx/testing/util.py tests/test_theming/test_theming.py +%if %{without snowballstemmer} +# Drop dependency on snowballstemmer for RHEL, implement dummy method instead +sed -i -e '/snowballstemmer/d' pyproject.toml +sed -i -e 's/^import \(snowballstemmer\)/from . import dummystemmer as \1/' sphinx/search/*.py +cat > sphinx/search/dummystemmer.py <<_EOF +class stemmer: + def __init__(self, *args, **kwargs): pass + def stemWord(self, word): return word +_EOF +%endif %build %pyproject_build @@ -144,12 +156,16 @@ export SPHINXBUILD="%{__python3} ../sphinx/cmd/build.py" make html SPHINXBUILD="$SPHINXBUILD" make man SPHINXBUILD="$SPHINXBUILD" rm -rf _build/html/.buildinfo +# Those files are copied to _build/html/_images and loaded to the +# html pages from there - we can safely remove the duplicated and unused files +rm -rf _build/html/_static/themes _build/html/_static/tutorial +rm -f _build/html/_static/more.png _build/html/_static/translation.svg mv _build/html .. popd %install -%pyproject_install sphinx==%{version} +%pyproject_install # For backwards compatibility. Remove around Fedora 33 (with care) install -d %{buildroot}%{_libexecdir}/python3-sphinx @@ -223,6 +239,18 @@ export PATH=%{buildroot}%{_bindir}:$PATH %{_mandir}/man1/* %changelog +* Fri May 23 2025 Dongxing Wang - 1:8.2.3-1 +- Update package to version 8.2.3 + Fix _CurrentDocument membership testing with '{c,cpp}:parent_symbol' + Fix apidoc extension not setting default header/package name + Work around flit error with annotated assignments + Fix viewcode extension importing modules more than once + Switch transifex workflow trigger from 'push' to 'pull_request' + Use PEP 639 licence metadata + Mark autodoc singledispatchmethod tests as expected failures + Install pypi-attestations before inspecting attestations + Add annotations to several single-argument ('app') test functions + * Tue Oct 29 2024 Dongxing Wang - 1:8.1.3-1 - Update package to version 8.1.3 Restore support for cut_lines() with no object type diff --git a/sphinx-8.1.3.tar.gz b/sphinx-8.2.3.tar.gz similarity index 53% rename from sphinx-8.1.3.tar.gz rename to sphinx-8.2.3.tar.gz index 872e526274155b8fa6027693214563dd988bd59a..715c3506732f206234dfea5ef570900d6001da5f 100644 Binary files a/sphinx-8.1.3.tar.gz and b/sphinx-8.2.3.tar.gz differ