From 0b9f7c1112240e25643dd133de9504334bce40b9 Mon Sep 17 00:00:00 2001 From: Petr Lautrbach Date: Dec 14 2023 17:08:50 +0000 Subject: sandbox to require xorg only in Fedora and RHEL <= 9 --- 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