[python-novaclient/f22] Fix EL6 build

Haïkel Guémar hguemar at fedoraproject.org
Thu Mar 5 16:11:52 UTC 2015


commit 8732f3618dc2a2f9efbacf29a7e71e8d47f6f645
Author: Haikel Guemar <hguemar at fedoraproject.org>
Date:   Thu Mar 5 17:11:42 2015 +0100

    Fix EL6 build

 python-novaclient.spec | 9 +++++++++
 1 file changed, 9 insertions(+)
---
diff --git a/python-novaclient.spec b/python-novaclient.spec
index d05554b..a3a6efb 100644
--- a/python-novaclient.spec
+++ b/python-novaclient.spec
@@ -39,7 +39,11 @@ the OpenStack Nova API.
 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
@@ -77,8 +81,13 @@ install -pm 644 tools/nova.bash_completion \
 # Delete tests
 rm -fr %{buildroot}%{python_sitelib}/novaclient/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/nova.1 %{buildroot}%{_mandir}/man1/nova.1
 


More information about the scm-commits mailing list