Require a matching server package for the selinux subpackage

Ensure that the selinux subpackage is upgraded along with the
rest of IPA if it is built.

https://pagure.io/freeipa/issue/8511

Signed-off-by: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Francois Cami <fcami@redhat.com>
This commit is contained in:
Rob Crittenden 2020-09-22 17:17:02 -04:00
parent 2f2bce4310
commit 84bbf68781

View File

@ -832,6 +832,7 @@ This package contains tests that verify IPA functionality under Python 3.
%package selinux %package selinux
Summary: FreeIPA SELinux policy Summary: FreeIPA SELinux policy
BuildArch: noarch BuildArch: noarch
Requires: %{name}-server = %{version}-%{release}
Requires: selinux-policy-%{selinuxtype} Requires: selinux-policy-%{selinuxtype}
Requires(post): selinux-policy-%{selinuxtype} Requires(post): selinux-policy-%{selinuxtype}
%{?selinux_requires} %{?selinux_requires}