[python-ceilometerclient/f22] Fix EL6 build
Haïkel Guémar
hguemar at fedoraproject.org
Fri Mar 6 14:01:17 UTC 2015
commit 36b229742fe3472a6e238a2d048ba018ea7183ef
Author: Haikel Guemar <hguemar at fedoraproject.org>
Date: Fri Mar 6 15:01:11 2015 +0100
Fix EL6 build
python-ceilometerclient.spec | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/python-ceilometerclient.spec b/python-ceilometerclient.spec
index 5bd26c9..ce5cecd 100644
--- a/python-ceilometerclient.spec
+++ b/python-ceilometerclient.spec
@@ -35,7 +35,12 @@ provides a Python API (the ceilometerclient module) and a command-line tool
Summary: Documentation for OpenStack Ceilometer API Client
Group: Documentation
+%if 0%{?rhel} && 0%{?rhel} <= 6
+BuildRequires: python-sphinx10
+%else
BuildRequires: python-sphinx
+%endif
+
BuildRequires: python-oslo-sphinx
%description doc
@@ -69,7 +74,11 @@ sed -i 's/oslosphinx/oslo.sphinx/' doc/source/conf.py
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
export PYTHONPATH="$( pwd ):$PYTHONPATH"
+%if 0%{?rhel} && 0%{?rhel} <= 6
+sphinx-1.0-build -b html doc/source html
+%else
sphinx-build -b html doc/source html
+%endif
# Fix hidden-file-or-dir warnings
rm -rf html/.doctrees html/.buildinfo
More information about the scm-commits
mailing list