Compare commits

..

No commits in common. "407757b365e1fe86e89bf087813f8f65c7d1b939" and "21591d692a238c35e7a31d467c5ee8e9c1aa0545" have entirely different histories.

4 changed files with 21 additions and 22 deletions

BIN
Sphinx-3.4.3.tar.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,11 +1,12 @@
Name: python-sphinx
Version: 7.0.1
Version: 3.4.3
Release: 1
Epoch: 1
Summary: Python documentation generator
License: BSD and MIT
License: BSD and Public Domain and Python and (MIT or GPLv2)
URL: http://sphinx-doc.org/
Source0: https://files.pythonhosted.org/packages/source/S/Sphinx/Sphinx-%{version}.tar.gz
Patch1: sphinx-test_theming.diff
BuildArch: noarch
@ -25,8 +26,6 @@ BuildRequires: python3-sphinxcontrib-jsmath
BuildRequires: python3-sphinxcontrib-qthelp
BuildRequires: python3-sphinxcontrib-serializinghtml
BuildRequires: python3-sphinx-theme-alabaster
BuildRequires: python3-pip python3-hatchling python3-hatch-vcs python3-wheel python3-pytest
BuildRequires: python3-flit-core
BuildRequires: dos2unix
@ -134,9 +133,10 @@ This package contains locale files for Sphinx.
%prep
%autosetup -n Sphinx-%{version} -p1
dos2unix -k ./sphinx/themes/basic/static/jquery.js
%build
%pyproject_build
%py3_build
export PYTHONPATH=$PWD
pushd doc
@ -149,7 +149,7 @@ popd
%install
%pyproject_install sphinx==%{version}
%py3_install
# For backwards compatibility. Remove around Fedora 33 (with care)
install -d %{buildroot}%{_libexecdir}/python3-sphinx
@ -215,7 +215,9 @@ export PATH=%{buildroot}%{_bindir}:$PATH
%license LICENSE
%doc AUTHORS CHANGES EXAMPLES README.rst
%{_bindir}/sphinx-*
%{python3_sitelib}/sphinx*
%{python3_sitelib}/sphinx/
%dir %{python3_sitelib}/sphinxcontrib/
%{python3_sitelib}/Sphinx-%{version}-py%{python3_version}.egg-info/
%{_libexecdir}/python3-sphinx/
%files help
@ -223,21 +225,6 @@ export PATH=%{buildroot}%{_bindir}:$PATH
%{_mandir}/man1/*
%changelog
* Fri Jul 28 2023 xu_ping <707078654@qq.com> - 1:7.0.1-1
- Upgrade version to 7.0.1
* Thu Jul 20 2023 shixuantong <shixuantong1@huawei.com> - 1:4.4.0-2
- html: Updated jQuery version from 3.5.1 to 3.6.0
* Thu Jun 16 2022 zhangy1317 <zhangy1317@foxmail.com> - 1:4.4.0-1
- Upgrade version for openstack yoga
* Mon Dec 13 2021 shixuantong <shixuantong@huawei.com> - 4.3.1-1
- update version to 4.3.1
* Tue Jul 27 2021 OpenStack_SIG <openstack@openeuler.org> - 3.5.2-1
- update to 3.5.2
* Wed Jan 13 2021 SimpleUpdate Robot <tc@openeuler.org> - 3.4.3-1
- Upgrade to version 3.4.3

12
sphinx-test_theming.diff Normal file
View File

@ -0,0 +1,12 @@
diff -ru Sphinx-1.7.6/tests/test_theming.py Sphinx-1.7.6_patched/tests/test_theming.py
--- Sphinx-1.7.6/tests/test_theming.py 2018-07-16 11:24:40.000000000 +0200
+++ Sphinx-1.7.6_patched/tests/test_theming.py 2018-07-20 15:17:35.049263077 +0200
@@ -31,7 +31,7 @@
themes.append('alabaster')
# test Theme class API
- assert set(app.html_themes.keys()) == set(themes)
+ assert set(app.html_themes.keys()) >= set(themes)
assert app.html_themes['test-theme'] == app.srcdir / 'test_theme' / 'test-theme'
assert app.html_themes['ziptheme'] == app.srcdir / 'ziptheme.zip'
assert app.html_themes['staticfiles'] == app.srcdir / 'test_theme' / 'staticfiles'