adjust golang dep for centos

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
(cherry picked from commit 92aa172150ea8b41407ae2196a3a2905aa0ad581)
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
Lokesh Mandvekar 2021-04-21 16:42:35 -04:00
parent 324019fa24
commit e4b509bd5e

View File

@ -44,7 +44,11 @@ Patch1: trimpath.patch
#ExclusiveArch: %%{?go_arches:%%{go_arches}}%%{!?go_arches:%%{ix86} x86_64 %%{arm}}
ExclusiveArch: %{ix86} x86_64 %{arm} aarch64 ppc64le %{mips} s390x
# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
%if 0%{?fedora}
BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
%else
BuildRequires: golang
%endif
BuildRequires: pkgconfig(libseccomp)
BuildRequires: go-md2man
BuildRequires: make