[packages/python-oslosphinx] - updated to 4.18.0; now obsolete in favour of openstackdocstheme

qboosh qboosh at pld-linux.org
Tue Jan 14 15:46:53 CET 2020


commit 6ff271e7e4d56de11200a1872e58c783569cf453
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Jan 14 15:46:55 2020 +0100

    - updated to 4.18.0; now obsolete in favour of openstackdocstheme

 python-oslosphinx.spec | 78 ++++++++++++++++++++++++++++++++++++--------------
 1 file changed, 57 insertions(+), 21 deletions(-)
---
diff --git a/python-oslosphinx.spec b/python-oslosphinx.spec
index 0729955..33f4f72 100644
--- a/python-oslosphinx.spec
+++ b/python-oslosphinx.spec
@@ -2,82 +2,111 @@
 # Conditional build:
 %bcond_without	python2	# CPython 2.x module
 %bcond_without	python3	# CPython 3.x module
-%bcond_with	tests	# test target
+%bcond_without	doc	# Sphinx documentation
+%bcond_with	tests	# unit tests (not included in dist tarball?)
 
 Summary:	OpenStack Sphinx extensions
 Summary(pl.UTF-8):	Rozszerzenia modułu Sphinx z projektu OpenStack
 Name:		python-oslosphinx
-Version:	4.3.0
-Release:	6
+Version:	4.18.0
+Release:	1
 License:	Apache v2.0
 Group:		Development/Languages/Python
 #Source0Download: https://pypi.python.org/simple/oslosphinx/
-Source0:	https://pypi.python.org/packages/source/o/oslosphinx/oslosphinx-%{version}.tar.gz
-# Source0-md5:	5670ad4369ef54b67a3a4002bcbe091c
+Source0:	https://files.pythonhosted.org/packages/source/o/oslosphinx/oslosphinx-%{version}.tar.gz
+# Source0-md5:	f2e63063eeae74ca0f92452d964b9b5c
 URL:		http://www.openstack.org/
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
 %if %{with python2}
 BuildRequires:	python-devel >= 1:2.7
-BuildRequires:	python-pbr >= 1.8
+BuildRequires:	python-pbr >= 2.0.0
 BuildRequires:	python-setuptools
 %if %{with tests}
-BuildRequires:	python-Sphinx >= 1.1.2
-BuildRequires:	python-hacking >= 0.10.0
-BuildRequires:	python-hacking < 0.11
+BuildRequires:	python-hacking >= 0.12.0
+BuildRequires:	python-hacking < 0.14
+BuildRequires:	python-requests >= 2.14.2
+BuildRequires:	python-six >= 1.10.0
 %endif
 %endif
 %if %{with python3}
 BuildRequires:	python3-devel >= 1:3.4
-BuildRequires:	python3-pbr >= 1.8
+BuildRequires:	python3-pbr >= 2.0.0
 BuildRequires:	python3-setuptools
 %if %{with tests}
-BuildRequires:	python3-Sphinx >= 1.1.2
-BuildRequires:	python3-hacking >= 0.10.0
-BuildRequires:	python3-hacking < 0.11
+BuildRequires:	python3-hacking >= 0.12.0
+BuildRequires:	python3-hacking < 0.14
+BuildRequires:	python3-requests >= 2.14.2
+BuildRequires:	python3-six >= 1.10.0
 %endif
 %endif
+%if %{with doc}
+BuildRequires:	python3-openstackdocstheme >= 1.17.0
+BuildRequires:	python3-reno >= 2.5.0
+BuildRequires:	sphinx-pdg-3 >= 1.6.2
+%endif
 Requires:	python-modules >= 1:2.7
-Requires:	python-pbr >= 1.6
-Requires:	python-requests >= 2.8.1
-Requires:	python-six >= 1.9.0
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 Theme and extension support for Sphinx documentation from the
 OpenStack project.
 
+Note: this package is obsolete, the openstackdocstheme module should
+be used instead.
+
 %description -l pl.UTF-8
 Motyw oraz rozszerzenia wspomagające tworzenie dokumentacji w systemie
 Sphinx w projekcie OpenStack.
 
+Uwaga: ten pakiet jest przestarzały, zamiast niego należy używać
+modułu openstackdocstheme.
+
 %package -n python3-oslosphinx
 Summary:	OpenStack Sphinx extensions
 Summary(pl.UTF-8):	Rozszerzenia modułu Sphinx z projektu OpenStack
 Group:		Development/Languages/Python
 Requires:	python3-modules >= 1:3.2
-Requires:	python3-pbr >= 1.6
-Requires:	python3-requests >= 2.8.1
-Requires:	python3-six >= 1.9.0
 
 %description -n python3-oslosphinx
 Theme and extension support for Sphinx documentation from the
 OpenStack project.
 
+Note: this package is obsolete, the openstackdocstheme module should
+be used instead.
+
 %description -n python3-oslosphinx -l pl.UTF-8
 Motyw oraz rozszerzenia wspomagające tworzenie dokumentacji w systemie
 Sphinx w projekcie OpenStack.
 
+Uwaga: ten pakiet jest przestarzały, zamiast niego należy używać
+modułu openstackdocstheme.
+
+%package apidocs
+Summary:	API documentation for Python oslosphinx module
+Summary(pl.UTF-8):	Dokumentacja API modułu Pythona oslosphinx
+Group:		Documentation
+
+%description apidocs
+API documentation for Python oslosphinx module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona oslosphinx.
+
 %prep
 %setup -q -n oslosphinx-%{version}
 
 %build
 %if %{with python2}
-%py_build %{?with_tests:test}
+%py_build
 %endif
 
 %if %{with python3}
-%py3_build %{?with_tests:test}
+%py3_build
+%endif
+
+%if %{with doc}
+sphinx-build-3 -b html doc/source doc/_build/html
 %endif
 
 %install
@@ -85,6 +114,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %if %{with python2}
 %py_install
+
 %py_postclean
 %endif
 
@@ -110,3 +140,9 @@ rm -rf $RPM_BUILD_ROOT
 %{py3_sitescriptdir}/oslosphinx
 %{py3_sitescriptdir}/oslosphinx-%{version}-py*.egg-info
 %endif
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc doc/_build/html/{_static,*.html,*.js}
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-oslosphinx.git/commitdiff/6ff271e7e4d56de11200a1872e58c783569cf453



More information about the pld-cvs-commit mailing list