From: Boris Ranto Date: Fri, 17 Jan 2020 14:24:44 +0000 (+0100) Subject: rpm: Relax the selinux policy version for centos builds X-Git-Tag: v15.1.0~186^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f4cf78dc5630332a1bf940e9ac8f6c42690a39f2;p=ceph.git rpm: Relax the selinux policy version for centos builds We are currently running into issues when installing the test builds produced on centos 8 as these might have older selinux-policy-base version than is available to the rhel 8 nodes. We still want the builds produced on RHEL 8 to use the proper version condition so the %{?centos} macro should help us achieve that, here. Signed-off-by: Boris Ranto --- diff --git a/ceph.spec.in b/ceph.spec.in index b4792e73134b..5a24223f179a 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -76,8 +76,13 @@ %endif %if %{with selinux} # get selinux policy version +# Force 0.0.0 policy version for centos builds to avoid repository sync issues between rhel and centos +%if %{?centos} +%global _selinux_policy_version 0.0.0 +%else %{!?_selinux_policy_version: %global _selinux_policy_version 0.0.0} %endif +%endif %{!?_udevrulesdir: %global _udevrulesdir /lib/udev/rules.d} %{!?tmpfiles_create: %global tmpfiles_create systemd-tmpfiles --create}