summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--redhat/bcfg2.spec.in10
1 files changed, 5 insertions, 5 deletions
diff --git a/redhat/bcfg2.spec.in b/redhat/bcfg2.spec.in
index 4a5f05bc6..2211dc99e 100644
--- a/redhat/bcfg2.spec.in
+++ b/redhat/bcfg2.spec.in
@@ -26,15 +26,15 @@ BuildRequires: python-setuptools-devel
BuildRequires: python-setuptools
%endif
-# %{rhel} wasn't set before rhel 6. so this checks for old RHEL
-# %systems (and potentially very old Fedora systems, too)
-%if "%{_vendor}" == "redhat" && 0%{?rhel} < 6
+# RHEL 5 and 6 ship with sphinx 0.6, but sphinx 1.0 is available with
+# a different package name in EPEL.
+%if "%{_vendor}" == "redhat" && 0%{?rhel} != 0
BuildRequires: python-sphinx10
# the python-sphinx10 package doesn't set sys.path correctly, so we
# have to do it for them
-%define pythonpath /usr/lib/python%{py_ver}/site-packages/Sphinx-1.0.4-py%{py_ver}.egg
+%define pythonpath %(find %{python_sitelib} -name Sphinx*.egg)
%else
-BuildRequires: python-sphinx >= 0.6
+BuildRequires: python-sphinx >= 1.0
%endif
BuildRequires: python-lxml