diff --git a/kata-shim.spec b/kata-shim.spec index 114593e..74944ca 100644 --- a/kata-shim.spec +++ b/kata-shim.spec @@ -1,3 +1,9 @@ +%if (0%{?fedora} && 0%{?fedora >= 31}) + %define have_go_rpm_macros 1 +%else + %define have_go_rpm_macros 0 +%endif + %global with_debug 1 %if 0%{?with_debug} @@ -27,7 +33,7 @@ Summary: A shim running in the host for teh Kata Containers project Group: Development/Tools License: ASL 2.0 -%if 0%{?fedora} +%if 0%{?have_go_rpm_macros} BuildRequires: go-rpm-macros %else BuildRequires: compiler(go-compiler)