mirror of
https://github.com/release-engineering/dist-git.git
synced 2025-02-23 15:02:54 +00:00
Don't depend on dist-git-selinux inside containers
Container environments usually don't have the selinux-policy-targeted package installed, and SELinux isn't enabled from the "inside" perspective. Therefore, let's don't depend on the selinux sub-package as long as the selinux-policy-targeted package isn't installed. This dependency conditional idiom is for quite some time used in copr-backend.spec (and friends) with the corresponding copr-selinux package.
This commit is contained in:
parent
4384c300a3
commit
79fcac3fd1
1 changed files with 4 additions and 0 deletions
|
@ -21,7 +21,11 @@ BuildRequires: systemd
|
|||
|
||||
Requires: httpd
|
||||
Requires: perl(Sys::Syslog)
|
||||
%if 0%{?fedora} || 0%{?rhel} > 7
|
||||
Requires: (dist-git-selinux if selinux-policy-targeted)
|
||||
%else
|
||||
Requires: dist-git-selinux
|
||||
%endif
|
||||
Requires: git
|
||||
Requires: git-daemon
|
||||
Requires: mod_ssl
|
||||
|
|
Loading…
Add table
Reference in a new issue