[packages/python-pbr] - updated to 5.4.4 - added doc subpackage
qboosh
qboosh at pld-linux.org
Thu Jan 2 05:25:48 CET 2020
commit a62517a0d5845dd6e04fe68d1eeb6678153867b8
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Thu Jan 2 05:25:41 2020 +0100
- updated to 5.4.4
- added doc subpackage
python-pbr.spec | 51 +++++++++++++++++++++++++++++++++++++--------------
1 file changed, 37 insertions(+), 14 deletions(-)
---
diff --git a/python-pbr.spec b/python-pbr.spec
index f137606..ab7a915 100644
--- a/python-pbr.spec
+++ b/python-pbr.spec
@@ -14,13 +14,13 @@
Summary: Python Build Reasonableness
Summary(pl.UTF-8): Python Build Reasonableness - rozsądne budowanie modułów pythonowych
Name: python-%{module}
-Version: 4.0.4
-Release: 2
+Version: 5.4.4
+Release: 1
License: Apache v2.0
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/pbr/
Source0: https://files.pythonhosted.org/packages/source/p/pbr/%{module}-%{version}.tar.gz
-# Source0-md5: 000aac4d2bae0d8a9bc53b08634797c5
+# Source0-md5: 65cdc32e1a1ff56d481fc15aa8caf988
URL: https://launchpad.net/pbr
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
@@ -29,42 +29,45 @@ BuildRequires: python-devel >= 1:2.7
%if %{with tests}
BuildRequires: python-coverage >= 4.0
BuildRequires: python-fixtures >= 3.0.0
-BuildRequires: python-hacking >= 0.12.0
-BuildRequires: python-hacking < 0.14
-BuildRequires: python-mock >= 2.0
+BuildRequires: python-hacking >= 1.1.0
+BuildRequires: python-hacking < 1.2.0
+BuildRequires: python-mock >= 2.0.0
BuildRequires: python-reno >= 2.5.0
BuildRequires: python-six >= 1.10.0
-BuildRequires: python-subunit >= 1.0.0
+BuildRequires: python-stestr >= 2.1.0
BuildRequires: python-testrepository >= 0.0.18
BuildRequires: python-testresources >= 2.0.0
BuildRequires: python-testscenarios >= 0.4
BuildRequires: python-testtools >= 2.2.0
BuildRequires: python-virtualenv >= 14.0.6
-BuildRequires: python-wheel
+BuildRequires: python-wheel >= 0.32.0
%endif
%endif
%if %{with python3}
-BuildRequires: python3-devel >= 1:3.3
+BuildRequires: python3-devel >= 1:3.5
%if %{with tests}
BuildRequires: python3-coverage >= 4.0
BuildRequires: python3-fixtures >= 3.0.0
-BuildRequires: python3-hacking >= 0.12.0
-BuildRequires: python3-hacking < 0.14
+BuildRequires: python3-hacking >= 1.1.0
+BuildRequires: python3-hacking < 1.2.0
BuildRequires: python3-reno >= 2.5.0
BuildRequires: python3-six >= 1.10.0
-BuildRequires: python3-subunit >= 1.0.0
+BuildRequires: python3-stestr >= 2.1.0
BuildRequires: python3-testrepository >= 0.0.18
BuildRequires: python3-testresources >= 2.0.0
BuildRequires: python3-testscenarios >= 0.4
BuildRequires: python3-testtools >= 2.2.0
BuildRequires: python3-virtualenv >= 14.0.6
-BuildRequires: python3-wheel
+BuildRequires: python3-wheel >= 0.32.0
%endif
%endif
%if %{with doc}
BuildRequires: python3-openstackdocstheme >= 1.18.1
+BuildRequires: python3-reno >= 2.5.0
+BuildRequires: python3-sphinxcontrib-apidoc >= 0.2.0
BuildRequires: sphinx-pdg-3 >= 1.6.2
%endif
+Requires: python-modules >= 1:2.7
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -88,6 +91,7 @@ wydzielenie kodu do biblioteki.
Summary: Python Build Reasonableness
Summary(pl.UTF-8): Python Build Reasonableness - rozsądne budowanie modułów pythonowych
Group: Libraries/Python
+Requires: python3-modules >= 1:3.5
%description -n python3-pbr
PBR is a library that injects some useful and sensible default
@@ -105,6 +109,19 @@ Kiedy OpenStack dorobił się 18 różnych projektów, z których każdy miał
przynajmniej 3 aktywne gałęzie, uznano to za dobry moment na
wydzielenie kodu do biblioteki.
+%package doc
+Summary: Documentation for Python pbr package
+Summary(pl.UTF-8): Dokumentacja do pakietu Pythona pbr
+Group: Documentation
+
+%description doc
+Documentation for Python pbr package (both user and API
+documentation).
+
+%description doc -l pl.UTF-8
+Dokumentacja do pakietu Pythona pbr (zarówno dokumentacja użytkownika,
+jak i API).
+
%prep
%setup -q -n %{module}-%{version}
@@ -160,7 +177,7 @@ rm -rf $RPM_BUILD_ROOT
%if %{with python2}
%files
%defattr(644,root,root,755)
-%doc %{?with_doc:html} README.rst LICENSE
+%doc AUTHORS ChangeLog README.rst
%attr(755,root,root) %{_bindir}/pbr
%attr(755,root,root) %{_bindir}/pbr-2
%{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
@@ -175,3 +192,9 @@ rm -rf $RPM_BUILD_ROOT
%{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
%{py3_sitescriptdir}/%{module}
%endif
+
+%if %{with doc}
+%files doc
+%defattr(644,root,root,755)
+%doc html/*
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-pbr.git/commitdiff/a62517a0d5845dd6e04fe68d1eeb6678153867b8
More information about the pld-cvs-commit
mailing list