From f4cf78dc5630332a1bf940e9ac8f6c42690a39f2 Mon Sep 17 00:00:00 2001 From: Boris Ranto Date: Fri, 17 Jan 2020 15:24:44 +0100 Subject: [PATCH] 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 --- ceph.spec.in | 5 +++++ 1 file changed, 5 insertions(+) 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} -- 2.47.3