fix libkrun conditionals

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
Lokesh Mandvekar 2022-08-11 15:59:09 -04:00
parent 9e192ca81a
commit f2635da7ab

View File

@ -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