diff --git a/Don-t-invoke-Python-to-check-version.patch b/Don-t-invoke-Python-to-check-version.patch new file mode 100644 index 0000000000000000000000000000000000000000..54cb4462664c676a266465b1d6737ff847e07045 --- /dev/null +++ b/Don-t-invoke-Python-to-check-version.patch @@ -0,0 +1,27 @@ +From 7cbf4782858908f3d182468653a9b473cb58020c Mon Sep 17 00:00:00 2001 +From: Jeremy Cline +Date: Wed, 19 Sep 2018 10:36:39 -0400 +Subject: [PATCH] Don't invoke Python to check version + +Signed-off-by: Jeremy Cline +--- + docs/source/conf.py | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/docs/source/conf.py b/docs/source/conf.py +index b37cee2..48e6212 100644 +--- a/docs/source/conf.py ++++ b/docs/source/conf.py +@@ -51,8 +51,7 @@ copyright = u'2012, Doug Hellmann' + # built documents. + # + # The short X.Y version. +-version = subprocess.check_output(['sh', '-c', 'cd ../..; python setup.py --version']) +-version = version.strip() ++version = "1.2" + # The full version, including alpha/beta/rc tags. + release = version + +-- +2.19.0 + diff --git a/python-sphinxcontrib-fulltoc.spec b/python-sphinxcontrib-fulltoc.spec new file mode 100644 index 0000000000000000000000000000000000000000..f59119e3257e9cc82f3ea032919795d555dcc845 --- /dev/null +++ b/python-sphinxcontrib-fulltoc.spec @@ -0,0 +1,81 @@ +%global srcname sphinxcontrib-fulltoc +%global sum Include a full table of contents in your Sphinx HTML sidebar +%global desc sphinxcontrib-fulltoc is an extension for the Sphinx \ +documentation system that changes the HTML output to include a more detailed \ +table of contents in the sidebar. By default Sphinx only shows the local \ +headers for the current page. With the extension installed, all of the page \ +titles are included, and the local headers for the current page are also \ +included in the appropriate place within the document. + + +Name: python-%{srcname} +Version: 1.2 +Release: 1 +Summary: %{sum} +License: ASL 2.0 +URL: https://github.com/sphinxcontrib/%{srcname} +Source0: https://files.pythonhosted.org/packages/source/s/%{srcname}/%{srcname}-%{version}.0.tar.gz +Patch0: Don-t-invoke-Python-to-check-version.patch +BuildArch: noarch + + +%description +%{desc} + + +%package -n python3-%{srcname} +Summary: %{sum} +BuildRequires: python3-devel +BuildRequires: python3-pbr +Requires: python3-sphinx +%{?python_provide:%python_provide python3-%{srcname}} + +%description -n python3-%{srcname} +%{desc} + + +%package -n python-%{srcname}-doc +Summary: %{sum} +BuildRequires: python3-sphinx +%{?python_provide:%python_provide python3-%{srcname}} + +%description -n python-%{srcname}-doc +%{desc} + +This package contains the documentation for sphinxcontrib-fulltoc. + + +%prep +%autosetup -p1 -n %{srcname}-%{version}.0 +rm -rf *.egg-info + + +%build +%py3_build +make SPHINXBUILD=sphinx-build-3 -C docs html PYTHONPATH=$(pwd) +make SPHINXBUILD=sphinx-build-3 -C docs man PYTHONPATH=$(pwd) +rm docs/build/html/.buildinfo + + +%install +%py3_install + +# Install the man pages +install -p -D -T -m 0644 docs/build/man/%{srcname}.1 %{buildroot}%{_mandir}/man1/python3-%{srcname}.1 + + +%files -n python3-%{srcname} +%license LICENSE +%doc README.rst AUTHORS ChangeLog announce.rst +%{_mandir}/man1/python3-%{srcname}.1* +%{python3_sitelib}/* + + +%files -n python-%{srcname}-doc +%license LICENSE +%doc docs/build/html/* + + +%changelog +* Fri Jul 09 2021 baiguanglei 1.2-1 +- Initial package diff --git a/sphinxcontrib-fulltoc-1.2.0.tar.gz b/sphinxcontrib-fulltoc-1.2.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..530d7f76fad502dd30788877c22464a44dbcad64 Binary files /dev/null and b/sphinxcontrib-fulltoc-1.2.0.tar.gz differ