mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
change dep for docker-selinux in centos-7+
Use the policy files provided by CentOS for docker by depending on docker-selinux. Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
This commit is contained in:
@@ -86,7 +86,11 @@ Requires: device-mapper >= 1.02.90-2
|
||||
# RE: rhbz#1195804 - ensure min NVR for selinux-policy
|
||||
%if 0%{?with_selinux}
|
||||
Requires: selinux-policy >= %{selinux_policyver}
|
||||
%if 0%{?centos} >= 7
|
||||
Requires(pre): docker-selinux
|
||||
%else
|
||||
Requires(pre): %{name}-selinux >= %{version}-%{release}
|
||||
%endif # centos 7+
|
||||
%endif # with_selinux
|
||||
|
||||
# conflicting packages
|
||||
|
||||
Reference in New Issue
Block a user