]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: rm EOL Fedoras; add OBS RHEL5 instead
authorKen Dreyer <kdreyer@redhat.com>
Mon, 16 Mar 2015 16:02:35 +0000 (10:02 -0600)
committerNathan Cutler <ncutler@suse.com>
Mon, 26 Oct 2015 11:41:01 +0000 (12:41 +0100)
Fedora 12 has been EOL for a long time. Remove the reference in the
RPM .spec file.

Since RHEL 5 support for Ceph is a work in progress, we won't remove
this entire python_sitelib / python_sitearch conditional for now, since
those are still needed on RHEL 5.

Add the rhel_version macro to make the conditional compatible with
SUSE's OBS.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
(cherry picked from commit 353a3258968f76deaea4542d2165e9ab32b88de8)

ceph.spec.in

index 8eac871751e695b728b63c454626cd38f757cd4b..8d12e05d3452314bece231fe7c1919b79ca219fb 100644 (file)
@@ -1,7 +1,7 @@
 %bcond_with ocf
 %bcond_without cephfs_java
 
-%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
+%if (0%{?el5} || (0%{?rhel_version} >= 500 && 0%{?rhel_version} <= 600))
 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
 %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
 %endif