2013-07-03 10:26:40 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-pbr
|
|
|
|
#
|
2014-01-17 16:14:30 +01:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2013-07-03 10:26:40 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2013-12-03 10:49:53 +01:00
|
|
|
# NOTE(saschpe): git invocation and pythonpath issues with testrepository
|
2013-07-04 18:06:10 +02:00
|
|
|
# enable testing with a build conditional (off by default):
|
2013-12-03 10:49:53 +01:00
|
|
|
%bcond_with test
|
2013-07-04 18:06:10 +02:00
|
|
|
|
2013-07-03 10:26:40 +02:00
|
|
|
Name: python-pbr
|
2014-07-31 17:51:52 +02:00
|
|
|
Version: 0.10.0
|
2013-07-03 10:26:40 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Python Build Reasonableness
|
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
Url: http://pypi.python.org/pypi/pbr
|
2014-03-26 10:47:58 +01:00
|
|
|
Source: https://pypi.python.org/packages/source/p/pbr/pbr-%{version}.tar.gz
|
2013-07-03 10:26:40 +02:00
|
|
|
BuildRequires: python-devel
|
|
|
|
# Documentation requirements:
|
2013-12-03 10:49:53 +01:00
|
|
|
BuildRequires: python-Sphinx >= 1.1.2
|
2013-07-03 10:26:40 +02:00
|
|
|
# Test requirements:
|
2013-12-03 10:49:53 +01:00
|
|
|
%if %{with test}
|
|
|
|
#BuildRequires: python-coverage >= 3.6
|
2013-07-03 10:26:40 +02:00
|
|
|
%if 0%{?suse_version} <= 1110
|
|
|
|
BuildRequires: python-discover
|
|
|
|
%endif
|
2014-03-18 15:48:30 +01:00
|
|
|
BuildRequires: python-fixtures >= 0.3.14
|
2014-07-31 17:51:52 +02:00
|
|
|
BuildRequires: python-hacking >=0.8
|
2014-03-18 15:48:30 +01:00
|
|
|
BuildRequires: python-mock >= 1.0
|
|
|
|
BuildRequires: python-python-subunit >= 0.0.18
|
2014-07-31 17:51:52 +02:00
|
|
|
BuildRequires: python-testrepository >= 0.0.18
|
2014-03-18 15:48:30 +01:00
|
|
|
BuildRequires: python-testresources >= 0.2.4
|
2013-12-03 10:49:53 +01:00
|
|
|
BuildRequires: python-testscenarios >= 0.4
|
2014-03-18 15:48:30 +01:00
|
|
|
BuildRequires: python-testtools >= 0.9.34
|
2013-07-04 18:06:10 +02:00
|
|
|
%endif
|
2014-03-18 15:48:30 +01:00
|
|
|
Requires: python-pip >= 1.4
|
2013-07-03 10:26:40 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
|
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
%else
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
PBR is a library to automatically do a bunch of standard
|
|
|
|
things you want in your setup.py without you having to repeat
|
|
|
|
them every time. It will set versions, process requirements
|
|
|
|
files and generate AUTHORS and ChangeLog file all from git
|
|
|
|
information.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n pbr-%{version}
|
|
|
|
# Get rid of ugly build-time deps that require network:
|
|
|
|
sed -i "s/, 'sphinx\.ext\.intersphinx'//" doc/source/conf.py
|
|
|
|
|
|
|
|
%build
|
|
|
|
python setup.py build
|
|
|
|
python setup.py build_sphinx
|
|
|
|
|
|
|
|
%install
|
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
|
2013-12-03 10:49:53 +01:00
|
|
|
%if %{with test}
|
2013-07-03 10:26:40 +02:00
|
|
|
%check
|
2014-03-26 10:47:58 +01:00
|
|
|
testr init && testr run --parallel
|
2013-07-04 18:06:10 +02:00
|
|
|
%endif
|
2013-07-03 10:26:40 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc README.rst AUTHORS LICENSE
|
2014-03-18 15:48:30 +01:00
|
|
|
%{python_sitelib}/pbr
|
|
|
|
%{python_sitelib}/pbr-%{version}-py%{py_ver}.egg-info
|
2013-07-03 10:26:40 +02:00
|
|
|
|
|
|
|
%changelog
|