From ad77419a1d43956b586fa72f3d9c8192a4c15cf2 Mon Sep 17 00:00:00 2001 From: Ondrej Mosnacek Date: Sun, 27 Sep 2020 15:32:11 +0200 Subject: [PATCH] Make p-devel's selinux-policy-devel dep conditional on selinux-policy The policycoreutils-devel package is used not only for working with an installed policy, but also for building the policy from sources. In the latter case, there is no need to install selinux-policy-devel (and selinux-policy along with it), so make the dependency conditional on selinux-policy. Since policy is often built from source in a mock chroot or a container, this will avoid the awkward and unnecessary cyclic build dependency of selinux-policy on itself. Signed-off-by: Ondrej Mosnacek --- policycoreutils.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/policycoreutils.spec b/policycoreutils.spec index b8a08b3..89373ea 100644 --- a/policycoreutils.spec +++ b/policycoreutils.spec @@ -281,7 +281,7 @@ by python 3 in an SELinux environment. Summary: SELinux policy core policy devel utilities Requires: policycoreutils-python-utils = %{version}-%{release} Requires: /usr/bin/make dnf -Requires: selinux-policy-devel +Requires: (selinux-policy-devel if selinux-policy) %description devel The policycoreutils-devel package contains the management tools use to develop policy in an SELinux environment.