[packages/python3-openstackdocstheme] - python-openstackdocstheme.spec updated to 3.5.0 for python 3.8+

qboosh qboosh at pld-linux.org
Wed Jul 9 21:32:54 CEST 2025


commit 75130de486290978ab2aa5a18a57a86fe7c4d1d8
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Jul 9 21:34:28 2025 +0200

    - python-openstackdocstheme.spec updated to 3.5.0 for python 3.8+

 python-openstackdocstheme.spec  | 128 ----------------------------------------
 python3-openstackdocstheme.spec |  66 +++++++++++++++++++++
 2 files changed, 66 insertions(+), 128 deletions(-)
---
diff --git a/python-openstackdocstheme.spec b/python-openstackdocstheme.spec
deleted file mode 100644
index e171155..0000000
--- a/python-openstackdocstheme.spec
+++ /dev/null
@@ -1,128 +0,0 @@
-#
-# Conditional build:
-%bcond_without	python2	# CPython 2.x module
-%bcond_without	python3	# CPython 3.x module
-%bcond_with	doc	# Sphinx documentation
-%bcond_with	tests	# test target (not included in dist tarball?)
-
-Summary:	OpenStack Sphinx extensions
-Summary(pl.UTF-8):	Rozszerzenia modułu Sphinx z projektu OpenStack
-Name:		python-openstackdocstheme
-# keep 1.x here for python2 support
-Version:	1.31.2
-Release:	10
-License:	Apache v2.0
-Group:		Development/Languages/Python
-#Source0Download: https://pypi.org/simple/openstackdocstheme/
-Source0:	https://files.pythonhosted.org/packages/source/o/openstackdocstheme/openstackdocstheme-%{version}.tar.gz
-# Source0-md5:	24ff0af7dd233e78e9f388e7e0876426
-URL:		https://docs.openstack.org/openstackdocstheme/
-%if %{with python2}
-BuildRequires:	python-devel >= 1:2.7
-BuildRequires:	python-pbr >= 2.0.0
-BuildRequires:	python-setuptools
-%if %{with tests}
-BuildRequires:	python-Sphinx >= 1.6.2
-BuildRequires:	python-bindep
-BuildRequires:	python-dulwich >= 0.15.0
-BuildRequires:	python-hacking >= 1.1.0
-BuildRequires:	python-hacking < 1.2.0
-%endif
-%endif
-%if %{with python3}
-BuildRequires:	python3-devel >= 1:3.5
-BuildRequires:	python3-pbr >= 2.0.0
-BuildRequires:	python3-setuptools
-%if %{with tests}
-BuildRequires:	python3-Sphinx >= 1.6.2
-BuildRequires:	python3-bindep
-BuildRequires:	python3-dulwich >= 0.15.0
-BuildRequires:	python3-hacking >= 1.1.0
-BuildRequires:	python3-hacking < 1.2.0
-%endif
-%endif
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
-%if %{with doc}
-BuildRequires:	python3-os-api-ref >= 1.4.0
-BuildRequires:	python3-reno >= 2.5.0
-BuildRequires:	sphinx-pdg-3 >= 1.6.6
-%endif
-Requires:	python-modules >= 1:2.7
-BuildArch:	noarch
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-Theme and extension support for Sphinx documentation from the
-OpenStack project.
-
-%description -l pl.UTF-8
-Motyw oraz rozszerzenia wspomagające tworzenie dokumentacji w systemie
-Sphinx w projekcie OpenStack.
-
-%package -n python3-openstackdocstheme
-Summary:	OpenStack Sphinx extensions
-Summary(pl.UTF-8):	Rozszerzenia modułu Sphinx z projektu OpenStack
-Group:		Development/Languages/Python
-Requires:	python3-modules >= 1:3.5
-
-%description -n python3-openstackdocstheme
-Theme and extension support for Sphinx documentation from the
-OpenStack project.
-
-%description -n python3-openstackdocstheme -l pl.UTF-8
-Motyw oraz rozszerzenia wspomagające tworzenie dokumentacji w systemie
-Sphinx w projekcie OpenStack.
-
-%prep
-%setup -q -n openstackdocstheme-%{version}
-
-%build
-%if %{with python2}
-%py_build
-%endif
-
-%if %{with python3}
-%py3_build
-%endif
-
-%if %{with doc}
-sphinx-build-3 -b html doc/source doc-build/html/doc
-sphinx-build-3 -b html api-ref/source doc-build/html/api-ref
-sphinx-build-3 -b html releasenotes/source doc-build/html/releasenotes
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
-
-# too custom scripts
-%{__rm} $RPM_BUILD_ROOT%{_bindir}/docstheme-{build-pdf,build-translated.sh,lang-display-name.py}
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog README.rst
-%{py_sitescriptdir}/openstackdocstheme
-%{py_sitescriptdir}/openstackdocstheme-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-openstackdocstheme
-%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog README.rst
-%{py3_sitescriptdir}/openstackdocstheme
-%{py3_sitescriptdir}/openstackdocstheme-%{version}-py*.egg-info
-%endif
diff --git a/python3-openstackdocstheme.spec b/python3-openstackdocstheme.spec
new file mode 100644
index 0000000..531618f
--- /dev/null
+++ b/python3-openstackdocstheme.spec
@@ -0,0 +1,66 @@
+# TODO: finish docs
+#
+# Conditional build:
+%bcond_with	doc	# Sphinx documentation
+
+Summary:	OpenStack Sphinx extensions
+Summary(pl.UTF-8):	Rozszerzenia modułu Sphinx z projektu OpenStack
+Name:		python3-openstackdocstheme
+Version:	3.5.0
+Release:	1
+License:	Apache v2.0
+Group:		Development/Languages/Python
+#Source0Download: https://pypi.org/simple/openstackdocstheme/
+Source0:	https://files.pythonhosted.org/packages/source/o/openstackdocstheme/openstackdocstheme-%{version}.tar.gz
+# Source0-md5:	3022cad341ab31d1ad0ef6c83829d7a1
+URL:		https://docs.openstack.org/openstackdocstheme/
+BuildRequires:	python3-devel >= 1:3.8
+BuildRequires:	python3-pbr >= 2.0.0
+BuildRequires:	python3-setuptools
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+%if %{with doc}
+BuildRequires:	python3-os-api-ref >= 1.4.0
+BuildRequires:	python3-reno >= 3.1.0
+BuildRequires:	sphinx-pdg-3 >= 6.0.0
+%endif
+Requires:	python3-modules >= 1:3.8
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Theme and extension support for Sphinx documentation from the
+OpenStack project.
+
+%description -l pl.UTF-8
+Motyw oraz rozszerzenia wspomagające tworzenie dokumentacji w systemie
+Sphinx w projekcie OpenStack.
+
+%prep
+%setup -q -n openstackdocstheme-%{version}
+
+%build
+%py3_build
+
+%if %{with doc}
+sphinx-build-3 -b html doc/source doc-build/html/doc
+sphinx-build-3 -b html api-ref/source doc-build/html/api-ref
+sphinx-build-3 -b html releasenotes/source doc-build/html/releasenotes
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+# too custom scripts
+%{__rm} $RPM_BUILD_ROOT%{_bindir}/docstheme-{build-pdf,build-translated.sh,lang-display-name.py}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog README.rst
+%{py3_sitescriptdir}/openstackdocstheme
+%{py3_sitescriptdir}/openstackdocstheme-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-openstackdocstheme.git/commitdiff/75130de486290978ab2aa5a18a57a86fe7c4d1d8



More information about the pld-cvs-commit mailing list