Skip to content

Commit

Permalink
update spec file to require docker-engine-selinux policy
Browse files Browse the repository at this point in the history
Signed-off-by: Jessica Frazelle <[email protected]>
  • Loading branch information
jessfraz committed Aug 29, 2015
1 parent 0b2cff3 commit df6d928
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions hack/make/.build-rpm/docker-engine.spec
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,27 @@ Requires: kernel-uek >= 3.8
Requires: device-mapper >= 1.02.90-2
%endif

# docker-selinux conditional
%if 0%{?fedora} >= 22 || 0%{?centos} >= 7 || 0%{?rhel} >= 7 || 0%{?oracle} >= 7
%global with_selinux 1
%endif

# start if with_selinux
%if 0%{?with_selinux}
# Version of SELinux we were using
%if 0%{?fedora} >= 22
%global selinux_policyver 3.13.1-119
%else
%global selinux_policyver 3.13.1-39
%endif
%endif # with_selinux

# RE: rhbz#1195804 - ensure min NVR for selinux-policy
%if 0%{?with_selinux}
Requires: selinux-policy >= %{selinux_policyver}
Requires(pre): %{name}-selinux >= %{epoch}:%{version}-%{release}
%endif # with_selinux

# conflicting packages
Conflicts: docker
Conflicts: docker-io
Expand Down

0 comments on commit df6d928

Please sign in to comment.