Alan Pevec 5cfc0ba
# Created by pyp2rpm-1.1.1
Alan Pevec 5cfc0ba
%global pypi_name oslotest
Alan Pevec 5cfc0ba
Alan Pevec 5cfc0ba
Name:           python-%{pypi_name}
Alan Pevec 5cfc0ba
Version:        1.1.0
Alan Pevec 461ee23
Release:        2%{?dist}
Alan Pevec 5cfc0ba
Summary:        OpenStack test framework
Alan Pevec 5cfc0ba
Alan Pevec 59a5606
License:        ASL 2.0
Alan Pevec 5cfc0ba
URL:            http://launchpad.net/oslo
Alan Pevec 5cfc0ba
Source0:        https://pypi.python.org/packages/source/o/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
Alan Pevec 5cfc0ba
BuildArch:      noarch
Alan Pevec 59a5606
Alan Pevec 59a5606
BuildRequires:  python2-devel
Alan Pevec 5cfc0ba
BuildRequires:  python-pbr
Alan Pevec 5cfc0ba
BuildRequires:  python-sphinx
Alan Pevec 503732a
BuildRequires:  python-oslo-sphinx
Alan Pevec 5cfc0ba
Alan Pevec 461ee23
Requires: python-six
Alan Pevec 461ee23
Requires: python-testrepository
Alan Pevec 461ee23
Requires: python-testscenarios
Alan Pevec 461ee23
Requires: python-mock
Alan Pevec 461ee23
Requires: python-mox
Alan Pevec 5cfc0ba
Alan Pevec 5cfc0ba
%description
Alan Pevec 5cfc0ba
OpenStack test framework and test fixtures.
Alan Pevec 5cfc0ba
Alan Pevec 5cfc0ba
Alan Pevec 5cfc0ba
%prep
Alan Pevec 5cfc0ba
%setup -q -n %{pypi_name}-%{version}
Alan Pevec 5cfc0ba
# Remove bundled egg-info
Alan Pevec 5cfc0ba
rm -rf %{pypi_name}.egg-info
Alan Pevec 5cfc0ba
Alan Pevec 503732a
# make doc build compatible with python-oslo-sphinx RPM
Alan Pevec 503732a
sed -i 's/oslosphinx/oslo.sphinx/' doc/source/conf.py
Alan Pevec 5cfc0ba
Alan Pevec 5cfc0ba
Alan Pevec 5cfc0ba
%build
Alan Pevec 5cfc0ba
%{__python2} setup.py build
Alan Pevec 5cfc0ba
Alan Pevec 503732a
# generate html docs
Alan Pevec 503732a
sphinx-build doc/source html
Alan Pevec 503732a
# remove the sphinx-build leftovers
Alan Pevec 503732a
rm -rf html/.{doctrees,buildinfo}
Alan Pevec 5cfc0ba
Alan Pevec 5cfc0ba
%install
Alan Pevec 5cfc0ba
%{__python2} setup.py install --skip-build --root %{buildroot}
Alan Pevec 5cfc0ba
Alan Pevec 5cfc0ba
Alan Pevec 5cfc0ba
%files
Alan Pevec 5cfc0ba
%doc html README.rst LICENSE
Alan Pevec 5cfc0ba
%{_bindir}/oslo_debug_helper.sh
Alan Pevec 5cfc0ba
%{python2_sitelib}/%{pypi_name}
Alan Pevec 5cfc0ba
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
Alan Pevec 5cfc0ba
Alan Pevec 5cfc0ba
%changelog
Alan Pevec 461ee23
* Mon Oct 20 2014 Alan Pevec <apevec@redhat.com> - 1.1.0-2
Alan Pevec 461ee23
- add dependencies
Alan Pevec 461ee23
Alan Pevec 59a5606
* Mon Oct 20 2014 Alan Pevec <apevec@redhat.com> - 1.1.0-1
Alan Pevec 59a5606
- Initial package.