From 8ab4e101e913d60450696a41b5f2bf63448f7e2f Mon Sep 17 00:00:00 2001 From: Zdenek Pytela Date: Wed, 14 Feb 2024 09:31:56 +0100 Subject: [PATCH] Limit %selinux_requires to version, not release The %selinux_requires variable is used in packages with their own selinux policy modules (DSP adopters) as a dependency set to the selinux-policy package version which was installed at the time of building the DSP module. Using "%{version}-%{release}" in the variable can effect in such a state that updated package with selinux policy module is available, but selinux-policy is not, e. g. when the other package was released earlier in an ASYNC update. This commit cuts the release part out from the %selinux_requires variable, leaving only version there. --- selinux-policy.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selinux-policy.spec b/selinux-policy.spec index c9648983..80e13eb3 100644 --- a/selinux-policy.spec +++ b/selinux-policy.spec @@ -443,7 +443,7 @@ mv %{buildroot}%{_usr}/share/man/man8/style.css %{buildroot}%{_usr}/share/selinu mkdir -p %{buildroot}%{_rpmconfigdir}/macros.d install -m 644 %{SOURCE102} %{buildroot}%{_rpmconfigdir}/macros.d/macros.selinux-policy -sed -i 's/SELINUXPOLICYVERSION/%{version}-%{release}/' %{buildroot}%{_rpmconfigdir}/macros.d/macros.selinux-policy +sed -i 's/SELINUXPOLICYVERSION/%{version}/' %{buildroot}%{_rpmconfigdir}/macros.d/macros.selinux-policy sed -i 's@SELINUXSTOREPATH@%{_sharedstatedir}/selinux@' %{buildroot}%{_rpmconfigdir}/macros.d/macros.selinux-policy