|
|
@ -29,7 +29,7 @@ Summary: A command line tool used for creating OCI Images |
|
|
|
License: ASL 2.0 |
|
|
|
License: ASL 2.0 |
|
|
|
URL: https://%{name}.io |
|
|
|
URL: https://%{name}.io |
|
|
|
Source: %{git0}/archive/%{commit0}/%{name}-%{shortcommit0}.tar.gz |
|
|
|
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. |
|
|
|
# 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} |
|
|
|
BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang} |
|
|
@ -81,6 +81,9 @@ mv vendor src |
|
|
|
export GOPATH=$(pwd)/_build:$(pwd) |
|
|
|
export GOPATH=$(pwd)/_build:$(pwd) |
|
|
|
export BUILDTAGS='seccomp selinux' |
|
|
|
export BUILDTAGS='seccomp selinux' |
|
|
|
export GO111MODULE=off |
|
|
|
export GO111MODULE=off |
|
|
|
|
|
|
|
%ifarch ppc64 |
|
|
|
|
|
|
|
export CGO_ENABLED=1 |
|
|
|
|
|
|
|
%endif |
|
|
|
%gobuild -o %{name} %{import_path}/cmd/%{name} |
|
|
|
%gobuild -o %{name} %{import_path}/cmd/%{name} |
|
|
|
GOMD2MAN=go-md2man %{__make} -C docs |
|
|
|
GOMD2MAN=go-md2man %{__make} -C docs |
|
|
|
|
|
|
|
|
|
|
|