[packages/python-stevedore] - updated to 1.32.0, added -apidocs
qboosh
qboosh at pld-linux.org
Sun Jan 14 12:27:37 CET 2024
commit ba176720d9f2547222d1d275dd75e8345b412116
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Jan 14 11:28:09 2024 +0100
- updated to 1.32.0, added -apidocs
python-stevedore.spec | 96 ++++++++++++++++++++++++++++++++++-----------------
1 file changed, 64 insertions(+), 32 deletions(-)
---
diff --git a/python-stevedore.spec b/python-stevedore.spec
index ed7a45d..3c0a574 100644
--- a/python-stevedore.spec
+++ b/python-stevedore.spec
@@ -1,66 +1,86 @@
#
# Conditional build:
-%bcond_with tests # do not perform "make test"
+%bcond_without doc # Sphinx documentation
+%bcond_with tests # unit tests
%bcond_without python2 # CPython 2.x module
%bcond_without python3 # CPython 3.x module
%define module stevedore
Summary: Manage dynamic plugins for Python applications
+Summary(pl.UTF-8): Zarządzanie dynamicznymi wtyczkami dla aplikacji Pythona
Name: python-%{module}
-Version: 1.25.0
-Release: 6
+# keep 1.x here for python2 support
+Version: 1.32.0
+Release: 1
License: Apache v2.0
-Group: Development/Languages
-Source0: https://pypi.python.org/packages/08/58/e21f4691e8e75a290bdbfa366f06b9403c653642ef31f879e07f6f9ad7db/stevedore-1.25.0.tar.gz
-# Source0-md5: 8de5610a69f8066191d3e4b9af82c437
-URL: https://pypi.python.org/pypi/stevedore
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/stevedore/
+Source0: https://files.pythonhosted.org/packages/source/s/stevedore/stevedore-%{version}.tar.gz
+# Source0-md5: f854d6ed0f6fcaf93a32c755d706ce19
+URL: https://pypi.org/project/stevedore/
BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.710
+BuildRequires: rpmbuild(macros) >= 1.714
%if %{with python2}
+BuildRequires: python-modules >= 1:2.7
BuildRequires: python-setuptools
BuildRequires: python-pbr >= 2.0.0
%if %{with tests}
-BuildRequires: python-six >= 1.9.0
-BuildRequires: python-pillow >= 2.4.0
-BuildRequires: sphinx-pdg-2 >= 1.6.2
-BuildRequires: python-mock >= 2.0
-BuildRequires: python-coverage >=4.0
-BuildRequires: python-testrepository >= 0.0.18
-BuildRequires: python-openstackdocstheme >=1.11.0
-BuildRequires: python-reno >=1.8.0
+BuildRequires: python-coverage >= 4.0
+BuildRequires: python-six >= 1.10.0
+BuildRequires: python-mock >= 2.0.0
+BuildRequires: python-stestr >= 2.0.0
+BuildRequires: sphinx-pdg-2 >= 1.7.0
%endif
%endif
%if %{with python3}
BuildRequires: python3-setuptools
BuildRequires: python3-pbr >= 2.0.0
%if %{with tests}
-BuildRequires: python3-six >= 1.9.0
-BuildRequires: python3-pillow >= 2.4.0
-BuildRequires: sphinx-pdg-3 >= 1.6.2
-BuildRequires: python3-mock >= 2.0
-BuildRequires: python3-coverage >=4.0
-BuildRequires: python3-testrepository >= 0.0.18
-BuildRequires: python3-openstackdocstheme >=1.11.0
-BuildRequires: python3-reno >=1.8.0
+BuildRequires: python3-coverage >= 4.0
+BuildRequires: python3-six >= 1.10.0
+#BuildRequires: python3-mock >= 2.0.0
+BuildRequires: python3-stestr >= 2.0.0
+BuildRequires: sphinx-pdg-3 >= 1.7.0
%endif
%endif
-Requires: python-setuptools
-Requires: python-six
+%if %{with doc}
+BuildRequires: python-openstackdocstheme >= 1.11.0
+BuildRequires: python-reno >= 2.5.0
+BuildRequires: sphinx-pdg-2 >= 1.7.0
+%endif
+Requires: python-modules >= 1:2.7
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-Manage dynamic plugins for Python applications
+Manage dynamic plugins for Python applications.
+
+%description -l pl.UTF-8
+Zarządzanie dynamicznymi wtyczkami dla aplikacji Pythona.
%package -n python3-stevedore
Summary: Manage dynamic plugins for Python applications
-Group: Development/Libraries
-Requires: python3-setuptools
-Requires: python3-six
+Summary(pl.UTF-8): Zarządzanie dynamicznymi wtyczkami dla aplikacji Pythona
+Group: Libraries/Python
+Requires: python3-modules >= 1:3.6
%description -n python3-stevedore
Manage dynamic plugins for Python applications
+%description -n python3-stevedore -l pl.UTF-8
+Zarządzanie dynamicznymi wtyczkami dla aplikacji Pythona.
+
+%package apidocs
+Summary: API documentation for Python stevedore module
+Summary(pl.UTF-8): Dokumentacja API modułu Pythona stevedore
+Group: Documentation
+
+%description apidocs
+API documentation for Python stevedore module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona stevedore.
+
%prep
%setup -q -n stevedore-%{version}
@@ -73,6 +93,12 @@ Manage dynamic plugins for Python applications
%py3_build %{?with_tests:test}
%endif
+%if %{with doc}
+PYTHONPATH=$(pwd) \
+%{__make} -C doc html \
+ SPHINXBUILD=sphinx-build-2
+%endif
+
%install
rm -rf $RPM_BUILD_ROOT
@@ -98,7 +124,7 @@ rm -rf $RPM_BUILD_ROOT
%if %{with python2}
%files
%defattr(644,root,root,755)
-%doc README.rst LICENSE
+%doc AUTHORS ChangeLog README.rst announce.rst
%{py_sitescriptdir}/stevedore
%{py_sitescriptdir}/stevedore-%{version}-py*.egg-info
%endif
@@ -106,7 +132,13 @@ rm -rf $RPM_BUILD_ROOT
%if %{with python3}
%files -n python3-stevedore
%defattr(644,root,root,755)
-%doc README.rst LICENSE
+%doc AUTHORS ChangeLog README.rst announce.rst
%{py3_sitescriptdir}/stevedore
%{py3_sitescriptdir}/stevedore-%{version}-py*.egg-info
%endif
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc doc/build/html/{_images,_static,install,reference,user,*.html,*.js}
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-stevedore.git/commitdiff/ba176720d9f2547222d1d275dd75e8345b412116
More information about the pld-cvs-commit
mailing list