From c80d82a98dd53db46ac1f35554f0107fb7d858df Mon Sep 17 00:00:00 2001 From: Andrew Hsu Date: Tue, 6 Dec 2016 14:14:01 -0800 Subject: [PATCH] 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 --- hack/make/.build-rpm/docker-engine.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hack/make/.build-rpm/docker-engine.spec b/hack/make/.build-rpm/docker-engine.spec index 88836f4ca9..9dbdc9105b 100644 --- a/hack/make/.build-rpm/docker-engine.spec +++ b/hack/make/.build-rpm/docker-engine.spec @@ -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