14
0
forked from pool/python-pbr

- Version update to 4.1.1:

* Fixes on python 3.x

- Version update to 4.1.1:
  * Fixes on python 3.x

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pbr?expand=0&rev=85
This commit is contained in:
Tomáš Chvátal
2018-08-06 09:54:55 +00:00
committed by Git OBS Bridge
parent 79ac976ff3
commit ab89682632
6 changed files with 32 additions and 15 deletions

View File

@@ -21,7 +21,7 @@
# enable testing with a build conditional (off by default):
%bcond_with test
Name: python-pbr
Version: 4.0.3
Version: 4.1.1
Release: 0
Summary: Python Build Reasonableness
License: Apache-2.0
@@ -29,7 +29,6 @@ Group: Development/Languages/Python
URL: http://pypi.python.org/pypi/pbr
Source: https://files.pythonhosted.org/packages/source/p/pbr/pbr-%{version}.tar.gz
Source1: python-pbr-rpmlintrc
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -37,17 +36,20 @@ Requires: python-setuptools
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
# Test requirements:
%if %{with test}
#BuildRequires: python-coverage >= 3.6
BuildRequires: %{python_module fixtures >= 1.3.1}
BuildRequires: %{python_module mock >= 1.2}
BuildRequires: %{python_module python-subunit >= 0.0.18}
BuildRequires: %{python_module Sphinx >= 1.6.2}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module fixtures >= 3.0.0}
BuildRequires: %{python_module mock >= 2.0}
BuildRequires: %{python_module six >= 1.9.0}
BuildRequires: %{python_module testrepository >= 0.0.18}
BuildRequires: %{python_module testresources >= 0.2.4}
BuildRequires: %{python_module testresources >= 2.0.0}
BuildRequires: %{python_module testscenarios >= 0.4}
BuildRequires: %{python_module testtools >= 1.4.0}
BuildRequires: %{python_module testtools >= 2.2.0}
BuildRequires: %{python_module virtualenv >= 14.0.6}
BuildRequires: %{python_module wheel}
BuildRequires: git
BuildRequires: gpg2
%endif
%python_subpackages
@@ -72,14 +74,17 @@ chmod -x pbr/tests/testpackage/setup.py
%install
%python_install
%python_expand rm -rf %{buildroot}%{$python_sitelib}/pbr/tests
%python_clone -a %{buildroot}%{_bindir}/pbr
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
%check
%python_exec %{_bindir}/testr init
%python_exec %{_bindir}/testr run --parallel
%{python_expand rm -rf .testrepository
$python %{_bindir}/testr init
$python %{_bindir}/testr run --parallel
}
%endif
%post