python3-sphinx*: spec cleanups

fix description & summary

Change-Id: Ic8e02145aacf0d4ac03aa4ee5fc68b85f08aba6b
Signed-off-by: Shreenidhi Shedi <sshedi@vmware.com>
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/c/photon/+/21573
Tested-by: gerrit-photon <photon-checkins@vmware.com>
This commit is contained in:
Shreenidhi Shedi 2023-08-20 15:19:31 +05:30
parent 46aeeab821
commit a75f1cdccf
8 changed files with 156 additions and 220 deletions

View File

@ -1,15 +1,17 @@
%define srcname Sphinx
Summary: Python documentation generator
Name: python3-sphinx
Version: 5.1.1
Release: 2%{?dist}
Release: 3%{?dist}
Group: Development/Tools
License: BSD-2-Clause
URL: www.sphinx-doc.org
Vendor: VMware, Inc.
Distribution: Photon
Source0: https://github.com/sphinx-doc/sphinx/archive/refs/tags/Sphinx-%{version}.tar.gz
%define sha512 Sphinx=82cb4c435b0f6cee6bf80b81028f06e425e3d6fb5614e64b1f5a8c715ece80b697b5b55e04f3afe26236bb4590de9cd41008d6480c4b3d895803d83e914afff3
Source0: https://github.com/sphinx-doc/sphinx/archive/refs/tags/%{srcname}-%{version}.tar.gz
%define sha512 %{srcname}=82cb4c435b0f6cee6bf80b81028f06e425e3d6fb5614e64b1f5a8c715ece80b697b5b55e04f3afe26236bb4590de9cd41008d6480c4b3d895803d83e914afff3
BuildRequires: python3-devel
BuildRequires: python3-setuptools
@ -23,7 +25,6 @@ BuildRequires: python3-imagesize
BuildRequires: python3-requests
BuildRequires: python3-snowballstemmer
BuildRequires: python3-typing
BuildRequires: python3-pip
BuildRequires: python3-packaging
BuildRequires: python3-sphinxcontrib-applehelp
BuildRequires: python3-sphinxcontrib-devhelp
@ -34,28 +35,29 @@ BuildRequires: python3-sphinxcontrib-serializinghtml
%if 0%{?with_check}
BuildRequires: python3-pytest
BuildRequires: python3-pip
%endif
Requires: python3-sphinxcontrib-applehelp
Requires: python3-sphinxcontrib-devhelp
Requires: python3-sphinxcontrib-qthelp
Requires: python3-sphinxcontrib-htmlhelp
Requires: python3-sphinxcontrib-jsmath
Requires: python3-sphinxcontrib-serializinghtml
Requires: python3-packaging
Requires: python3
Requires: python3-babel
Requires: python3-docutils
Requires: python3-jinja2
Requires: python3-Pygments
Requires: python3-six
Requires: python3-alabaster
Requires: python3-imagesize
Requires: python3-requests
Requires: python3-snowballstemmer
Requires: python3-typing
Requires: python3-sphinxcontrib-applehelp
Requires: python3-sphinxcontrib-devhelp
Requires: python3-sphinxcontrib-qthelp
Requires: python3-sphinxcontrib-htmlhelp
Requires: python3-sphinxcontrib-jsmath
Requires: python3-sphinxcontrib-serializinghtml
Requires: python3-packaging
Requires: python3
Requires: python3-babel
Requires: python3-docutils
Requires: python3-jinja2
Requires: python3-Pygments
Requires: python3-six
Requires: python3-alabaster
Requires: python3-imagesize
Requires: python3-requests
Requires: python3-snowballstemmer
Requires: python3-typing
BuildArch: noarch
BuildArch: noarch
%description
Sphinx is a tool that makes it easy to create intelligent and
@ -66,36 +68,37 @@ documentation, but has now been cleaned up in the hope that it will be
useful to many other projects.
%prep
%autosetup -p1 -n Sphinx-%{version}
%autosetup -p1 -n %{srcname}-%{version}
%build
%py3_build
%{py3_build}
%install
%py3_install
mv %{buildroot}%{_bindir}/sphinx-quickstart %{buildroot}%{_bindir}/sphinx-quickstart3
mv %{buildroot}%{_bindir}/sphinx-build %{buildroot}%{_bindir}/sphinx-build3
mv %{buildroot}%{_bindir}/sphinx-autogen %{buildroot}%{_bindir}/sphinx-autogen3
mv %{buildroot}%{_bindir}/sphinx-apidoc %{buildroot}%{_bindir}/sphinx-apidoc3
%{py3_install}
for fn in quickstart build autogen apidoc; do
mv %{buildroot}%{_bindir}/sphinx-${fn} %{buildroot}%{_bindir}/sphinx-${fn}3
ln -sv sphinx-${fn}3 %{buildroot}%{_bindir}/sphinx-${fn}
done
%if 0%{?with_check}
%check
pip3 install html5lib
%pytest
%endif
%{pytest}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%{_bindir}/sphinx-quickstart3
%{_bindir}/sphinx-build3
%{_bindir}/sphinx-autogen3
%{_bindir}/sphinx-apidoc3
%{_bindir}/sphinx-quickstart*
%{_bindir}/sphinx-build*
%{_bindir}/sphinx-autogen*
%{_bindir}/sphinx-apidoc*
%{python3_sitelib}/*
%changelog
* Sun Aug 20 2023 Shreenidhi Shedi <sshedi@vmware.com> 5.1.1-3
- Fix file packaging
* Tue Dec 06 2022 Prashant S Chauhan <psinghchauha@vmware.com> 5.1.1-2
- Update release to compile with python 3.11
* Mon Sep 05 2022 Shreenidhi Shedi <sshedi@vmware.com> 5.1.1-1

View File

@ -1,50 +1,48 @@
%define srcname sphinxcontrib-applehelp
Name: python3-sphinxcontrib-applehelp
Version: 1.0.2
Release: 2%{?dist}
Summary: A platform independent file lock
Release: 3%{?dist}
Summary: Sphinx extension for Apple help books
License: MIT
Group: Development/Languages/Python
Vendor: VMware, Inc.
Distribution: Photon
URL: https://pypi.org/project/sphinxcontrib-applehelp
Source0: https://files.pythonhosted.org/packages/9f/01/ad9d4ebbceddbed9979ab4a89ddb78c9760e74e6757b1880f1b2760e8295/sphinxcontrib-applehelp-%{version}.tar.gz
%define sha512 sphinxcontrib-applehelp=1325ac83ff15dd28d6f2791caf64e6c08d1dd2f0946dc8891f5c4d8fd062a1e8650c9c39a7459195ef41f3b425f5b8d6c5e277ea85621a36dd870ca5162508da
BuildArch: noarch
Distribution: Photon
BuildRequires: python3-devel
BuildRequires: python3-setuptools
Source0: https://files.pythonhosted.org/packages/9f/01/ad9d4ebbceddbed9979ab4a89ddb78c9760e74e6757b1880f1b2760e8295/%{srcname}-%{version}.tar.gz
%define sha512 %{srcname}=1325ac83ff15dd28d6f2791caf64e6c08d1dd2f0946dc8891f5c4d8fd062a1e8650c9c39a7459195ef41f3b425f5b8d6c5e277ea85621a36dd870ca5162508da
Requires: python3
BuildArch: noarch
Provides: python%{python3_version}dist(sphinxcontrib-applehelp)
BuildRequires: python3-devel
BuildRequires: python3-setuptools
Requires: python3
Provides: python%{python3_version}dist(%{srcname})
%description
This package contains a single module, which implements a platform independent
file locking mechanism for Python.
The lock includes a lock counter and is thread safe. This means, when locking
the same lock object twice, it will not block.
sphinxcontrib-applehelp is a sphinx extension which outputs Apple help books.
%prep
%autosetup -p1 -n sphinxcontrib-applehelp-%{version}
%autosetup -p1 -n %{srcname}-%{version}
%build
%py3_build
%{py3_build}
%install
%py3_install
%check
%{__python3} test.py
%{py3_install}
%files
%defattr(-,root,root,-)
%{python3_sitelib}/*
%license LICENSE
%doc README.rst
%{python3_sitelib}/sphinxcontrib/
%{python3_sitelib}/*
%changelog
* Sun Aug 20 2023 Shreenidhi Shedi <sshedi@vmware.com> 1.0.2-3
- Fix summary & description
* Mon Nov 28 2022 Prashant S Chauhan <psinghchauha@vmware.com> 1.0.2-2
- Update release to compile with python 3.11
* Mon Dec 14 2020 Shreenidhi Shedi <sshedi@vmware.com> 1.0.2-1

View File

@ -1,51 +1,49 @@
%define srcname sphinxcontrib-devhelp
Name: python3-sphinxcontrib-devhelp
Version: 1.0.2
Release: 2%{?dist}
Summary: A platform independent file lock
Release: 3%{?dist}
Summary: Sphinx extension for Devhelp documents
License: MIT
Group: Development/Languages/Python
Vendor: VMware, Inc.
Distribution: Photon
URL: https://pypi.org/project/sphinxcontrib-devhelp
Source0: https://files.pythonhosted.org/packages/98/33/dc28393f16385f722c893cb55539c641c9aaec8d1bc1c15b69ce0ac2dbb3/sphinxcontrib-devhelp-%{version}.tar.gz
%define sha512 sphinxcontrib-devhelp=83b46eaf26df3932ea2136cfda1c0fca4fc08ce8bca564845b3efe5bb00d6c8c93991f4edd4913d4ec796e2d85bd2c7265adf28e98f42e8094daeb5ac11a0eb1
BuildArch: noarch
Distribution: Photon
BuildRequires: python3
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildArch: noarch
Requires: python3
Source0: https://files.pythonhosted.org/packages/98/33/dc28393f16385f722c893cb55539c641c9aaec8d1bc1c15b69ce0ac2dbb3/%{srcname}-%{version}.tar.gz
%define sha512 %{srcname}=83b46eaf26df3932ea2136cfda1c0fca4fc08ce8bca564845b3efe5bb00d6c8c93991f4edd4913d4ec796e2d85bd2c7265adf28e98f42e8094daeb5ac11a0eb1
Provides: python%{python3_version}dist(sphinxcontrib-devhelp)
BuildRequires: python3-devel
BuildRequires: python3-setuptools
Requires: python3
Requires: python3-docutils
Provides: python%{python3_version}dist(%{srcname})
%description
This package contains a single module, which implements a platform independent
file locking mechanism for Python.
The lock includes a lock counter and is thread safe. This means, when locking
the same lock object twice, it will not block.
sphinxcontrib-devhelp is a sphinx extension which outputs Devhelp document.
%prep
%autosetup -p1 -n sphinxcontrib-devhelp-%{version}
find -name '*.mo' -delete
%autosetup -p1 -n %{srcname}-%{version}
%build
%py3_build
%{py3_build}
%install
%py3_install
%check
%{_python3} test.py
%{py3_install}
%files
%defattr(-,root,root,-)
%{python3_sitelib}/*
%license LICENSE
%doc README.rst
%{python3_sitelib}/*
%changelog
* Sun Aug 20 2023 Shreenidhi Shedi <sshedi@vmware.com> 1.0.2-3
- Add python3-docutils to requires
* Mon Oct 31 2022 Prashant S Chauhan <psinghchauha@vmware.com> 1.0.2-2
- Update release to compile with python 3.11
* Mon Dec 14 2020 Shreenidhi Shedi <sshedi@vmware.com> 1.0.2-1

View File

@ -1,31 +0,0 @@
From 248ff52b3c3d39c20cdaef3052ac7507a407733a Mon Sep 17 00:00:00 2001
From: Takeshi KOMIYA <i.tkomiya@gmail.com>
Date: Sat, 17 Jul 2021 18:55:20 +0900
Subject: [PATCH] Fix #9457: RemovedInSphinx50Warning on testing
---
tests/test_htmlhelp.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/test_htmlhelp.py b/tests/test_htmlhelp.py
index a74c66a..8774d4b 100644
--- a/tests/test_htmlhelp.py
+++ b/tests/test_htmlhelp.py
@@ -21,7 +21,7 @@
def test_build_htmlhelp(app, status, warning):
app.build()
- hhp = (app.outdir / 'pythondoc.hhp').text()
+ hhp = (app.outdir / 'pythondoc.hhp').read_text()
assert 'Compiled file=pythondoc.chm' in hhp
assert 'Contents file=pythondoc.hhc' in hhp
assert 'Default Window=pythondoc' in hhp
@@ -84,7 +84,7 @@ def assert_sitemap(node, name, filename):
assert node[1].attrib == {'name': 'Local', 'value': filename}
# .hhc file
- hhc = (app.outdir / 'pythondoc.hhc').text()
+ hhc = (app.outdir / 'pythondoc.hhc').read_text()
tree = HTMLParser(namespaceHTMLElements=False).parse(hhc)
items = tree.find('.//body/ul')
assert len(items) == 4

View File

@ -1,65 +1,48 @@
%define srcname sphinxcontrib-htmlhelp
Name: python3-sphinxcontrib-htmlhelp
Version: 2.0.0
Release: 2%{?dist}
Summary: A platform independent file lock
Release: 3%{?dist}
Summary: Sphinx extension for HTML help files
License: MIT
Group: Development/Languages/Python
Vendor: VMware, Inc.
Distribution: Photon
URL: https://pypi.org/project/sphinxcontrib-htmlhelp
Distribution: Photon
Source0: https://files.pythonhosted.org/packages/eb/85/93464ac9bd43d248e7c74573d58a791d48c475230bcf000df2b2700b9027/sphinxcontrib-htmlhelp-%{version}.tar.gz
%define sha512 sphinxcontrib-htmlhelp=6ed673966615f3e818e00de4b7e59c27f0a0d7b494294f804540777c580480870c36002c08d8ad626b7b41a676fe40edc0b0b5ffc6ad8080f38f59c24e157636
%if 0%{?with_check}
Patch0: fix-tests.patch
%endif
Source0: https://files.pythonhosted.org/packages/c9/2e/a7a5fef38327b7f643ed13646321d19903a2f54b0a05868e4bc34d729e1f/%{srcname}-%{version}.tar.gz
%define sha512 %{srcname}=6ed673966615f3e818e00de4b7e59c27f0a0d7b494294f804540777c580480870c36002c08d8ad626b7b41a676fe40edc0b0b5ffc6ad8080f38f59c24e157636
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%if 0%{?with_check}
BuildRequires: python3-sphinx
BuildRequires: python3-pytest
BuildRequires: python3-pip
%endif
Requires: python3
Provides: python%{python3_version}dist(sphinxcontrib-htmlhelp)
Provides: python%{python3_version}dist(%{srcname})
%description
This package contains a single module, which implements a platform independent
file locking mechanism for Python.
The lock includes a lock counter and is thread safe. This means, when locking
the same lock object twice, it will not block.
sphinxcontrib-htmlhelp is a sphinx extension which renders HTML help files.
%prep
%autosetup -p1 -n sphinxcontrib-htmlhelp-%{version}
%autosetup -p1 -n %{srcname}-%{version}
%build
%py3_build
%{py3_build}
%install
%py3_install
%if 0%{?with_check}
%check
pip3 install html5lib
%pytest
%endif
%{py3_install}
%files
%defattr(-,root,root,-)
%{python3_sitelib}/*
%license LICENSE
%doc README.rst
%{python3_sitelib}/sphinxcontrib/
%{python3_sitelib}/*
%changelog
* Sun Aug 20 2023 Shreenidhi Shedi <sshedi@vmware.com> 2.0.0-3
- Fix summary & description
* Mon Oct 31 2022 Prashant S Chauhan <psinghchauha@vmware.com> 2.0.0-2
- Update release to compile with python 3.11
* Mon Sep 05 2022 Shreenidhi Shedi <sshedi@vmware.com> 2.0.0-1

View File

@ -1,51 +1,49 @@
%define srcname sphinxcontrib-jsmath
Name: python3-sphinxcontrib-jsmath
Version: 1.0.1
Release: 2%{?dist}
Summary: A platform independent file lock
Release: 3%{?dist}
Summary: Sphinx extension for math in HTML via JavaScript
License: MIT
Group: Development/Languages/Python
Vendor: VMware, Inc.
Distribution: Photon
URL: https://pypi.org/project/sphinxcontrib-jsmath
Source0: https://files.pythonhosted.org/packages/b2/e8/9ed3830aeed71f17c026a07a5097edcf44b692850ef215b161b8ad875729/sphinxcontrib-jsmath-%{version}.tar.gz
%define sha512 sphinxcontrib-jsmath=c1e6488f5c0ca4567c27ec7c597c9db321ac32ce354c4ad62fea534b2ae1c0acb183a921f46216bbc3891f14acfaac05ddf324b8fdaf99828df07bc91aa7e5c7
BuildArch: noarch
Distribution: Photon
BuildRequires: python3
BuildRequires: python3-devel
BuildRequires: python3-setuptools
Source0: https://files.pythonhosted.org/packages/b2/e8/9ed3830aeed71f17c026a07a5097edcf44b692850ef215b161b8ad875729/%{srcname}-%{version}.tar.gz
%define sha512 %{srcname}=c1e6488f5c0ca4567c27ec7c597c9db321ac32ce354c4ad62fea534b2ae1c0acb183a921f46216bbc3891f14acfaac05ddf324b8fdaf99828df07bc91aa7e5c7
Requires: python3
BuildArch: noarch
Provides: python%{python3_version}dist(sphinxcontrib-jsmath)
BuildRequires: python3-devel
BuildRequires: python3-setuptools
Requires: python3
Provides: python%{python3_version}dist(%{srcname})
%description
This package contains a single module, which implements a platform independent
file locking mechanism for Python.
The lock includes a lock counter and is thread safe. This means, when locking
the same lock object twice, it will not block.
sphinxcontrib-jsmath is a sphinx extension which renders display math in HTML
via JavaScript.
%prep
%autosetup -p1 -n sphinxcontrib-jsmath-%{version}
%autosetup -p1 -n %{srcname}-%{version}
%build
%py3_build
%{py3_build}
%install
%py3_install
%check
%{__python3} test.py
%{py3_install}
%files
%defattr(-,root,root,-)
%{python3_sitelib}/*
%license LICENSE
%doc README.rst
%{python3_sitelib}/sphinxcontrib/
%{python3_sitelib}/*
%changelog
* Sun Aug 20 2023 Shreenidhi Shedi <sshedi@vmware.com> 1.0.1-3
- Fix summary & description
* Mon Oct 31 2022 Prashant S Chauhan <psinghchauha@vmware.com> 1.0.1-2
- Update release to compile with python 3.11
* Mon Dec 14 2020 Shreenidhi Shedi <sshedi@vmware.com> 1.0.1-1

View File

@ -1,51 +1,48 @@
%define srcname sphinxcontrib-qthelp
Name: python3-sphinxcontrib-qthelp
Version: 1.0.3
Release: 2%{?dist}
Summary: A platform independent file lock
Release: 3%{?dist}
Summary: Sphinx extension for QtHelp documents
License: MIT
Group: Development/Languages/Python
Vendor: VMware, Inc.
Distribution: Photon
URL: https://pypi.org/project/sphinxcontrib-qthelp
Source0: https://files.pythonhosted.org/packages/b1/8e/c4846e59f38a5f2b4a0e3b27af38f2fcf904d4bfd82095bf92de0b114ebd/sphinxcontrib-qthelp-%{version}.tar.gz
%define sha512 sphinxcontrib-qthelp=29f77e4b3f1a4868c2a34dbd853415e5d813f482cd23b982aeed42d53acba09b896d77ba930c34cce8af043bb7d64a19acff610430e942038d95a410b6e0b5fa
BuildArch: noarch
Distribution: Photon
BuildRequires: python3
BuildRequires: python3-devel
BuildRequires: python3-setuptools
Source0: https://files.pythonhosted.org/packages/b1/8e/c4846e59f38a5f2b4a0e3b27af38f2fcf904d4bfd82095bf92de0b114ebd/%{srcname}-%{version}.tar.gz
%define sha512 %{srcname}=29f77e4b3f1a4868c2a34dbd853415e5d813f482cd23b982aeed42d53acba09b896d77ba930c34cce8af043bb7d64a19acff610430e942038d95a410b6e0b5fa
Requires: python3
BuildArch: noarch
Provides: python%{python3_version}dist(sphinxcontrib-qthelp)
BuildRequires: python3-devel
BuildRequires: python3-setuptools
Requires: python3
Provides: python%{python3_version}dist(%{srcname})
%description
This package contains a single module, which implements a platform independent
file locking mechanism for Python.
The lock includes a lock counter and is thread safe. This means, when locking
the same lock object twice, it will not block.
sphinxcontrib-qthelp is a sphinx extension which outputs QtHelp document.
%prep
%autosetup -p1 -n sphinxcontrib-qthelp-%{version}
%autosetup -p1 -n %{srcname}-%{version}
%build
%py3_build
%{py3_build}
%install
%py3_install
%check
%{__python3} test.py
%{py3_install}
%files
%defattr(-,root,root,-)
%{python3_sitelib}/*
%license LICENSE
%doc README.rst
%{python3_sitelib}/sphinxcontrib/
%{python3_sitelib}/*
%changelog
* Sun Aug 20 2023 Shreenidhi Shedi <sshedi@vmware.com> 1.0.3-3
- Fix summary & description
* Fri Dec 02 2022 Prashant S Chauhan <psinghchauha@vmware.com> 1.0.3-2
- Update release to compile with python 3.11
* Mon Dec 14 2020 Shreenidhi Shedi <sshedi@vmware.com> 1.0.3-1

View File

@ -1,59 +1,49 @@
%define srcname sphinxcontrib-serializinghtml
Name: python3-sphinxcontrib-serializinghtml
Version: 1.1.5
Release: 1%{?dist}
Summary: A platform independent file lock
Release: 2%{?dist}
Summary: Sphinx extension for serialized HTML
License: MIT
Group: Development/Languages/Python
Vendor: VMware, Inc.
Distribution: Photon
URL: https://pypi.org/project/sphinxcontrib-serializinghtml
Source0: https://files.pythonhosted.org/packages/ac/86/021876a9dd4eac9dae0b1d454d848acbd56d5574d350d0f835043b5ac2cd/sphinxcontrib-serializinghtml-%{version}.tar.gz
%define sha512 sphinxcontrib-serializinghtml=c5aabe4d29fd0455c269f8054089fdd61e1de5c35aa407740fc3baae4cfb3235d9fd5515c0489b0becd12abc8f18d0f42aa169ed315c00f30ba87e64ce851667
Source0: https://files.pythonhosted.org/packages/ac/86/021876a9dd4eac9dae0b1d454d848acbd56d5574d350d0f835043b5ac2cd/%{srcname}-%{version}.tar.gz
%define sha512 %{srcname}=c5aabe4d29fd0455c269f8054089fdd61e1de5c35aa407740fc3baae4cfb3235d9fd5515c0489b0becd12abc8f18d0f42aa169ed315c00f30ba87e64ce851667
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%if 0%{?with_check}
BuildRequires: python3-sphinx
BuildRequires: python3-pytest
%endif
Requires: python3
Requires: python3
Provides: python3.9dist(sphinxcontrib-serializinghtml)
Provides: python%{python3_version}dist(%{srcname})
%description
This package contains a single module, which implements a platform independent
file locking mechanism for Python.
The lock includes a lock counter and is thread safe. This means, when locking
the same lock object twice, it will not block.
sphinxcontrib-serializinghtml is a sphinx extension which outputs "serialized"
HTML files (json and pickle).
%prep
%autosetup -p1 -n sphinxcontrib-serializinghtml-%{version}
%autosetup -p1 -n %{srcname}-%{version}
%build
%py3_build
%{py3_build}
%install
%py3_install
%if 0%{?with_check}
%check
%pytest
%endif
%{py3_install}
%files
%defattr(-,root,root,-)
%{python3_sitelib}/*
%license LICENSE
%doc README.rst
%{python3_sitelib}/sphinxcontrib/
%changelog
* Sun Aug 20 2023 Shreenidhi Shedi <sshedi@vmware.com> 1.1.5-2
- Fix summary & description
* Mon Sep 05 2022 Shreenidhi Shedi <sshedi@vmware.com> 1.1.5-1
- Upgrade to v1.1.5
* Mon Dec 14 2020 Shreenidhi Shedi <sshedi@vmware.com> 1.1.4-1