From: Nathan Cutler Date: Sun, 11 Oct 2015 07:43:06 +0000 (+0200) Subject: rpm: drop python_sitelib/sitearch conditional X-Git-Tag: v10.2.2~38^2~19 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=928a8158aa71012db9f451a4302e8661783b5d37;p=ceph.git rpm: drop python_sitelib/sitearch conditional This conditional was required to support older versions of RHEL/CentOS that are no longer supported in infernalis and above. Signed-off-by: Nathan Cutler (cherry picked from commit 98d52120f89af3e93896d0518dbea4c4f660af48) --- diff --git a/ceph.spec.in b/ceph.spec.in index 11929bef485..2e66e9999a2 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -32,11 +32,6 @@ %bcond_without lttng %endif -%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 - %if %{with selinux} # get selinux policy version %{!?_selinux_policy_version: %global _selinux_policy_version %(sed -e 's,.*selinux-policy-\\([^/]*\\)/.*,\\1,' /usr/share/selinux/devel/policyhelp 2>/dev/null || echo 0.0.0)}