diff --git a/SPECS/buildah.spec b/SPECS/buildah.spec index 97691f5..caa6a9b 100644 --- a/SPECS/buildah.spec +++ b/SPECS/buildah.spec @@ -29,7 +29,7 @@ Summary: A command line tool used for creating OCI Images License: ASL 2.0 URL: https://%{name}.io Source: %{git0}/archive/%{commit0}/%{name}-%{shortcommit0}.tar.gz -ExclusiveArch: x86_64 %{arm} aarch64 ppc64le s390x +ExclusiveArch: x86_64 %{arm} aarch64 ppc64 ppc64le s390x # If go_compiler is not set to 1, there is no virtual provide. Use golang instead. BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang} @@ -81,6 +81,9 @@ mv vendor src export GOPATH=$(pwd)/_build:$(pwd) export BUILDTAGS='seccomp selinux' export GO111MODULE=off +%ifarch ppc64 +export CGO_ENABLED=1 +%endif %gobuild -o %{name} %{import_path}/cmd/%{name} GOMD2MAN=go-md2man %{__make} -C docs