From f49fb86a7f8594a78b54604bd923c1a79dc13f18 Mon Sep 17 00:00:00 2001 From: Fabiano FidĂȘncio Date: Mar 23 2020 09:00:48 +0000 Subject: Define and use have_go_rpm_macros In order to keep things more organised, let's define and use have_go_rpm_macros instead of just checking for fedora. By doing this we follow what's already done by libvirt. Signed-off-by: Fabiano FidĂȘncio --- diff --git a/kata-proxy.spec b/kata-proxy.spec index e60b233..2648bb8 100644 --- a/kata-proxy.spec +++ b/kata-proxy.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: Proxy for Kata Containers 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)