|
|
|
@ -34,7 +34,7 @@ Patch0: 1807.patch
@@ -34,7 +34,7 @@ Patch0: 1807.patch
|
|
|
|
|
|
|
|
|
|
# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required |
|
|
|
|
#ExclusiveArch: %%{?go_arches:%%{go_arches}}%%{!?go_arches:%%{ix86} x86_64 %%{arm}} |
|
|
|
|
ExclusiveArch: %{ix86} x86_64 %{arm} aarch64 ppc64le %{mips} s390x |
|
|
|
|
ExclusiveArch: %{ix86} x86_64 %{arm} aarch64 ppc64 ppc64le %{mips} 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} |
|
|
|
|
BuildRequires: pkgconfig(libseccomp) |
|
|
|
@ -61,10 +61,10 @@ BuildRequires: golang(github.com/syndtr/gocapability/capability)
@@ -61,10 +61,10 @@ BuildRequires: golang(github.com/syndtr/gocapability/capability)
|
|
|
|
|
BuildRequires: golang(github.com/vishvananda/netlink) |
|
|
|
|
BuildRequires: golang(github.com/vishvananda/netlink/nl) |
|
|
|
|
%endif |
|
|
|
|
Recommends: container-selinux >= 2:2.85-1 |
|
|
|
|
Requires: container-selinux >= 2:2.74-1 |
|
|
|
|
|
|
|
|
|
%ifnarch s390x |
|
|
|
|
Recommends: criu |
|
|
|
|
#Requires: criu |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
%description |
|
|
|
@ -173,6 +173,10 @@ popd
@@ -173,6 +173,10 @@ popd
|
|
|
|
|
pushd GOPATH/src/%{import_path} |
|
|
|
|
export GOPATH=%{gopath}:$(pwd)/GOPATH |
|
|
|
|
|
|
|
|
|
%ifarch ppc64 |
|
|
|
|
sed 's/-buildmode=pie//g' -i Makefile |
|
|
|
|
export CGO_ENABLED=1 |
|
|
|
|
%endif |
|
|
|
|
make BUILDTAGS="seccomp selinux" all |
|
|
|
|
|
|
|
|
|
sed -i '/\#\!\/bin\/bash/d' contrib/completions/bash/%{name} |
|
|
|
|