ykarel / rpms / python-pbr

Forked from rpms/python-pbr 5 years ago
Clone
775b644
%global pypi_name pbr
775b644
775b644
Name:           python-%{pypi_name}
97e9a58
Version:        0.5.11
5d3fd27
Release:        2%{?dist}
775b644
Summary:        Python Build Reasonableness
775b644
775b644
License:        ASL 2.0
775b644
URL:            http://pypi.python.org/pypi/pbr
775b644
Source0:        http://pypi.python.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
775b644
BuildArch:      noarch
775b644
 
775b644
BuildRequires:  python2-devel
97e9a58
# very new required, when also using tests
97e9a58
#BuildRequires:  python-d2to1 >= 0.2.10
775b644
BuildRequires:  python-d2to1
775b644
BuildRequires:  python-sphinx
775b644
Requires:       python-setuptools_git
775b644
BuildRequires:  python-setuptools_git
056c4cc
BuildRequires:  python-testtools
97e9a58
#BuildRequires:  python-testscenarios
97e9a58
#BuildRequires:  python-testresources
97e9a58
# not in the repos, yet
97e9a58
#BuildRequires:  python-discover
97e9a58
# BuildRequires:  python-coverage >= 3.6
97e9a58
#BuildRequires:  python-flake8
97e9a58
# BuildRequires:  python-mox
97e9a58
# not in the repos, yet
97e9a58
#BuildRequires:  python-testrepository
97e9a58
# BuildRequires:  python-subunit
775b644
775b644
%description
775b644
PBR is a library that injects some useful and sensible default behaviors into 
775b644
your setuptools run. It started off life as the chunks of code that were copied
775b644
between all of the OpenStack projects. Around the time that OpenStack hit 18 
775b644
different projects each with at least 3 active branches, it seems like a good 
775b644
time to make that code into a proper re-usable library.
775b644
775b644
%prep
775b644
%setup -q -n %{pypi_name}-%{version}
5d3fd27
5d3fd27
# remove unused requirement
5d3fd27
sed -i '/setuptools_git/d' requirements.txt
775b644
# Remove bundled egg-info
775b644
rm -rf %{pypi_name}.egg-info
775b644
775b644
775b644
%build
775b644
%{__python} setup.py build
775b644
775b644
# generate html docs 
775b644
sphinx-build doc/source html
775b644
# remove the sphinx-build leftovers
775b644
rm -rf html/.{doctrees,buildinfo}
775b644
775b644
775b644
%install
775b644
%{__python} setup.py install --skip-build --root %{buildroot}
775b644
775b644
%check
97e9a58
# we don't have the necessary br's, yet
97e9a58
#%{__python} setup.py test
775b644
775b644
%files
775b644
%doc html README.rst LICENSE
775b644
%{python_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
775b644
%{python_sitelib}/%{pypi_name}
7421937
775b644
%changelog
5d3fd27
* Fri May 31 2013 Matthias Runge <mrunge@redhat.com> - 0.5.11-2
5d3fd27
- remove requirement setuptools_git
5d3fd27
97e9a58
* Fri May 17 2013 Matthias Runge <mrunge@redhat.com> - 0.5.11-1
97e9a58
- update to 0.5.11 (rhbz#962132)
97e9a58
- disable tests, as requirements can not be fulfilled right now
7421937
775b644
* Thu Apr 25 2013 Matthias Runge <mrunge@redhat.com> - 0.5.8-1
775b644
- Initial package.