Make selinux subpackage dependency in -common versioned

This commit is contained in:
Alexander Bokovoy 2020-09-27 18:11:56 +03:00
parent cc0d18ca0a
commit 649963736f

View File

@ -739,7 +739,7 @@ Conflicts: %{alt_name}-python < %{version}
# This ensures that the *-selinux package and all its dependencies are not
# pulled into containers and other systems that do not use SELinux. The
# policy defines types and file contexts for client and server.
Requires: (%{name}-selinux if selinux-policy-%{selinuxtype})
Requires: (%{name}-selinux = %{version}-%{release} if selinux-policy-%{selinuxtype})
%endif
%description common
@ -789,7 +789,6 @@ This package contains tests that verify IPA functionality under Python 3.
%package selinux
Summary: FreeIPA SELinux policy
BuildArch: noarch
Requires: %{name}-common = %{version}-%{release}
Requires: selinux-policy-%{selinuxtype}
Requires(post): selinux-policy-%{selinuxtype}
%{?selinux_requires}