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:
parent
d620ca1705
commit
8ab4e101e9
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user