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}
4250a76
Version:        1.5.3
4250a76
Release:        1%{?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
4250a76
BuildRequires:  python-six
4250a76
BuildRequires:  python-fixtures
4250a76
BuildRequires:  python-mock
4250a76
BuildRequires:  python-mox3
4250a76
Alan Pevec 5cfc0ba
Alan Pevec 461ee23
Requires: python-six
Alan Pevec 461ee23
Requires: python-testrepository
Alan Pevec 461ee23
Requires: python-testscenarios
4250a76
Requires: python-fixtures
Alan Pevec 461ee23
Requires: python-mock
4250a76
Requires: python-mox3
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
4250a76
%doc html README.rst
4250a76
%license LICENSE
4250a76
%{_bindir}/oslo_debug_helper
4250a76
%{_bindir}/oslo_run_cross_tests
4250a76
%{_bindir}/oslo_run_pre_release_tests
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
4250a76
* Tue Jun 21 2016 Haikel Guemar <hguemar@fedoraproject.org> 1.5.3-1
4250a76
- Update to 1.5.3
4250a76
- Update requirements
4250a76
d1fc933
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-3
d1fc933
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
d1fc933
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.