From 353a3258968f76deaea4542d2165e9ab32b88de8 Mon Sep 17 00:00:00 2001 From: Ken Dreyer Date: Mon, 16 Mar 2015 10:02:35 -0600 Subject: [PATCH] ceph.spec.in: rm EOL Fedoras; add OBS RHEL5 instead 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 --- ceph.spec.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ceph.spec.in b/ceph.spec.in index 61e350ad41ce..d7aaf8a3e403 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -1,6 +1,6 @@ %bcond_with ocf -%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 -- 2.47.3