use golang-1.16 for ubuntu 20.04 or less

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
Lokesh Mandvekar 2022-05-30 15:24:34 -04:00
parent 9845ad0ca6
commit a960da0736

View File

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