From 0b9f7c1112240e25643dd133de9504334bce40b9 Mon Sep 17 00:00:00 2001 From: Petr Lautrbach Date: Thu, 14 Dec 2023 18:08:50 +0100 Subject: [PATCH] sandbox to require xorg only in Fedora and RHEL <= 9 --- policycoreutils.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/policycoreutils.spec b/policycoreutils.spec index d6c2e45..0e6dbc5 100644 --- a/policycoreutils.spec +++ b/policycoreutils.spec @@ -271,7 +271,10 @@ The policycoreutils-devel package contains the management tools use to develop p %package sandbox Summary: SELinux sandbox utilities Requires: python3-policycoreutils = %{version}-%{release} -Requires: xorg-x11-server-Xephyr >= 1.14.1-2 /usr/bin/rsync /usr/bin/xmodmap +%if 0%{?fedora} || 0%{?rhel} <= 9 +Requires: xorg-x11-server-Xephyr >= 1.14.1-2 +%endif +Requires: /usr/bin/rsync /usr/bin/xmodmap Requires: matchbox-window-manager BuildRequires: libcap-ng-devel