finally fix build under rhel6

epel8
Matthias Runge 12 years ago
parent fdf9f19dc6
commit 4aa6093800

@ -20,7 +20,6 @@ BuildRequires: python-sphinx
# BuildRequires: python-setuptools_git # BuildRequires: python-setuptools_git
BuildRequires: python-testtools BuildRequires: python-testtools
#BuildRequires: python-testscenarios #BuildRequires: python-testscenarios
#BuildRequires: python-testresources
# not in the repos, yet # not in the repos, yet
# BuildRequires: python-discover # BuildRequires: python-discover
# BuildRequires: python-coverage >= 3.6 # BuildRequires: python-coverage >= 3.6
@ -29,6 +28,14 @@ BuildRequires: python-testtools
# not in the repos, yet # not in the repos, yet
# BuildRequires: python-testrepository # BuildRequires: python-testrepository
# BuildRequires: python-subunit # BuildRequires: python-subunit
# BuildRequires: python-testresources
%if 0%{?rhel}==6
BuildRequires: python-sphinx10
%else
BuildRequires: python-sphinx >= 1.1.3
%endif
%description %description
PBR is a library that injects some useful and sensible default behaviors into PBR is a library that injects some useful and sensible default behaviors into
@ -50,7 +57,11 @@ rm -rf %{pypi_name}.egg-info
%{__python} setup.py build %{__python} setup.py build
# generate html docs # generate html docs
%if 0%{?rhel}==6
sphinx-1.0-build doc/source html
%else
sphinx-build doc/source html sphinx-build doc/source html
%endif
# remove the sphinx-build leftovers # remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo} rm -rf html/.{doctrees,buildinfo}
@ -70,6 +81,7 @@ rm -rf html/.{doctrees,buildinfo}
%changelog %changelog
* Fri May 31 2013 Matthias Runge <mrunge@redhat.com> - 0.5.11-2 * Fri May 31 2013 Matthias Runge <mrunge@redhat.com> - 0.5.11-2
- remove requirement setuptools_git - remove requirement setuptools_git
- fix docs build under rhel
* Fri May 17 2013 Matthias Runge <mrunge@redhat.com> - 0.5.11-1 * Fri May 17 2013 Matthias Runge <mrunge@redhat.com> - 0.5.11-1
- update to 0.5.11 (rhbz#962132) - update to 0.5.11 (rhbz#962132)

Loading…
Cancel
Save