[python-cinderclient/f22] Fix EL6 build
Haïkel Guémar
hguemar at fedoraproject.org
Thu Mar 5 16:23:28 UTC 2015
commit 26a2e48dd9e13f792b998bb885a624e9065cf83a
Author: Haikel Guemar <hguemar at fedoraproject.org>
Date: Thu Mar 5 17:23:21 2015 +0100
Fix EL6 build
python-cinderclient.spec | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/python-cinderclient.spec b/python-cinderclient.spec
index 62615e9..2d4bbd9 100644
--- a/python-cinderclient.spec
+++ b/python-cinderclient.spec
@@ -34,7 +34,11 @@ Client library (cinderclient python module) and command line utility
Summary: Documentation for OpenStack Nova API Client
Group: Documentation
+%if 0%{?rhel} && %{?rhel} <= 6
+BuildRequires: python-sphinx10
+%else
BuildRequires: python-sphinx
+%endif
BuildRequires: python-oslo-sphinx
%description doc
@@ -73,8 +77,13 @@ install -p -D -m 644 tools/cinder.bash_completion %{buildroot}%{_sysconfdir}/bas
rm -fr %{buildroot}%{python_sitelib}/cinderclient/tests
export PYTHONPATH="$( pwd ):$PYTHONPATH"
+%if 0%{?rhel} && %{?rhel} <= 6
+sphinx-1.0-build -b html doc/source html
+sphinx-1.0-build -b man doc/source man
+%else
sphinx-build -b html doc/source html
sphinx-build -b man doc/source man
+%endif
install -p -D -m 644 man/cinder.1 %{buildroot}%{_mandir}/man1/cinder.1
More information about the scm-commits
mailing list