From f9787d65c81060af44a2dd28b7c991900429bea0 Mon Sep 17 00:00:00 2001 From: Hackintosh Five Date: Thu, 22 Jun 2023 15:21:49 +0100 Subject: [PATCH] Fix user_namespace support detection Signed-off-by: Hackintosh Five --- rpm/container-selinux.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpm/container-selinux.spec b/rpm/container-selinux.spec index 42816ae..cff37ef 100644 --- a/rpm/container-selinux.spec +++ b/rpm/container-selinux.spec @@ -31,7 +31,7 @@ %endif # https://github.com/containers/container-selinux/issues/203 -%if 0%{?fedora} <= 37 || 0%{?rhel} <= 9 +%if %{!defined fedora} && %{!defined rhel} || %{defined fedora} && 0%{?fedora} <= 37 || %{defined rhel} && 0%{?rhel} <= 9 %bcond_without no_user_namespace %else %bcond_with no_user_namespace