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 %if 0%{?fedora} >= 37
%ifarch aarch64,x86_64 %ifarch aarch64 || x86_64
%global krun_support enabled %global krun_support enabled
%global krun_opts --with-libkrun
%endif %endif
%else
%global krun_support disabled
%endif %endif
%global built_tag 1.5 %global built_tag 1.5
@ -64,13 +65,7 @@ Provides: oci-runtime
%build %build
./autogen.sh ./autogen.sh
%configure --disable-silent-rules %{krun_opts}
%if "%{krun_support}" == "enabled"
%configure --disable-silent-rules --with-libkrun
%else
%configure --disable-silent-rules
%endif
%make_build %make_build
%install %install