diff options
author | Sol Jerome <sol.jerome@gmail.com> | 2012-03-13 09:52:28 -0500 |
---|---|---|
committer | Sol Jerome <sol.jerome@gmail.com> | 2012-03-13 09:52:52 -0500 |
commit | 2454e8c8a0db477b83817ca3fbe1a1b7622c454d (patch) | |
tree | 2bd7a37d218cb3ab9bbdd5a803f9ead5c9d7556a | |
parent | b6a7261c6aab12741ec52b1b152c0a84c3294e0a (diff) | |
download | bcfg2-2454e8c8a0db477b83817ca3fbe1a1b7622c454d.tar.gz bcfg2-2454e8c8a0db477b83817ca3fbe1a1b7622c454d.tar.bz2 bcfg2-2454e8c8a0db477b83817ca3fbe1a1b7622c454d.zip |
bcfg2.spec: Fix pythonpath detection on older versions of sphinx
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
-rw-r--r-- | misc/bcfg2.spec | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/bcfg2.spec b/misc/bcfg2.spec index f19b7ae8c..0c726bed0 100644 --- a/misc/bcfg2.spec +++ b/misc/bcfg2.spec @@ -42,11 +42,11 @@ BuildRequires: libsane1 # %{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 && 0%{?fedora} == 0 +%if "%{_vendor}" == "redhat" && 0%{?rhel} < 6 && 0%{?fedora} == 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 /usr/lib/python%{py_ver}/site-packages -name %Sphinx*.egg) %else BuildRequires: python-sphinx >= 0.6 %endif |