From 6aff055821bddf0a2c0af72e69c0d0b556f45716 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 Related: rhbz#2003551 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 3b8c703..7e46677 100644 --- a/policycoreutils.spec +++ b/policycoreutils.spec @@ -283,7 +283,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.