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.
This commit is contained in:
Zdenek Pytela 2024-02-14 09:31:56 +01:00
parent d620ca1705
commit 8ab4e101e9
1 changed files with 1 additions and 1 deletions

View File

@ -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