Browse Source

buildah add ppc64 changes

Signed-off-by: virtbuilder_pel7ppc64bebuilder0 <virtbuilder@powerel.org>
master
virtbuilder_pel7ppc64bebuilder0 5 years ago
parent
commit
6eac5c1b3b
  1. 5
      SPECS/buildah.spec

5
SPECS/buildah.spec

@ -29,7 +29,7 @@ Summary: A command line tool used for creating OCI Images @@ -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 @@ -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


Loading…
Cancel
Save