]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rpm: drop python_sitelib/sitearch conditional
authorNathan Cutler <ncutler@suse.com>
Sun, 11 Oct 2015 07:43:06 +0000 (09:43 +0200)
committerNathan Cutler <ncutler@suse.com>
Mon, 23 May 2016 21:13:40 +0000 (23:13 +0200)
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 <ncutler@suse.com>
(cherry picked from commit 98d52120f89af3e93896d0518dbea4c4f660af48)

ceph.spec.in

index 11929bef4859afb3a7dcdd20dadacecacb60945f..2e66e9999a2651a7c3187b869ecbaa2b557914a6 100644 (file)
 %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)}