From f2635da7ab5bb509307222f7c97689266727cde2 Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Thu, 11 Aug 2022 15:59:09 -0400 Subject: [PATCH] fix libkrun conditionals Signed-off-by: Lokesh Mandvekar --- crun.spec | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/crun.spec b/crun.spec index b1f3200..eca3ce3 100644 --- a/crun.spec +++ b/crun.spec @@ -1,9 +1,10 @@ +%global krun_opts %{nil} + %if 0%{?fedora} >= 37 -%ifarch aarch64,x86_64 +%ifarch aarch64 || x86_64 %global krun_support enabled +%global krun_opts --with-libkrun %endif -%else -%global krun_support disabled %endif %global built_tag 1.5 @@ -64,13 +65,7 @@ Provides: oci-runtime %build ./autogen.sh - -%if "%{krun_support}" == "enabled" -%configure --disable-silent-rules --with-libkrun -%else -%configure --disable-silent-rules -%endif - +%configure --disable-silent-rules %{krun_opts} %make_build %install