From a960da073665de3bc7bbda8aee17e990b9cd5ead Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Mon, 30 May 2022 15:24:34 -0400 Subject: [PATCH] use golang-1.16 for ubuntu 20.04 or less Signed-off-by: Lokesh Mandvekar --- skopeo.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/skopeo.spec b/skopeo.spec index 7d69e13..e837730 100644 --- a/skopeo.spec +++ b/skopeo.spec @@ -44,7 +44,11 @@ Source0: %{git0}/archive/%{built_tag}.tar.gz BuildRequires: go-md2man %if "%{_vendor}" == "debbuild" BuildRequires: git +%if 0%{?ubuntu} <= 2004 +BuildRequires: golang-1.16 +%else BuildRequires: golang +%endif BuildRequires: libassuan-dev BuildRequires: libbtrfs-dev BuildRequires: libglib2.0-dev