|
|
@ -52,7 +52,7 @@ Source0: %{git0}/archive/%{commit0}/%{repo}-%{shortcommit0}.tar.gz |
|
|
|
Source1: %{git_conmon}/archive/%{commit_conmon}/cri-o-%{shortcommit_conmon}.tar.gz |
|
|
|
Source1: %{git_conmon}/archive/%{commit_conmon}/cri-o-%{shortcommit_conmon}.tar.gz |
|
|
|
# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required |
|
|
|
# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required |
|
|
|
#ExclusiveArch: %%{?go_arches:%%{go_arches}}%%{!?go_arches:%%{ix86} x86_64 aarch64 %%{arm}} |
|
|
|
#ExclusiveArch: %%{?go_arches:%%{go_arches}}%%{!?go_arches:%%{ix86} x86_64 aarch64 %%{arm}} |
|
|
|
ExclusiveArch: aarch64 %{arm} ppc64le s390x x86_64 |
|
|
|
ExclusiveArch: aarch64 %{arm} ppc64le s390x x86_64 ppc64 |
|
|
|
# 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} |
|
|
|
BuildRequires: btrfs-progs-devel |
|
|
|
BuildRequires: btrfs-progs-devel |
|
|
@ -392,8 +392,9 @@ popd |
|
|
|
ln -s vendor src |
|
|
|
ln -s vendor src |
|
|
|
export GOPATH=$(pwd)/_build:$(pwd) |
|
|
|
export GOPATH=$(pwd)/_build:$(pwd) |
|
|
|
export BUILDTAGS="varlink seccomp exclude_graphdriver_devicemapper $(hack/btrfs_installed_tag.sh) $(hack/btrfs_tag.sh) $(hack/libdm_tag.sh) $(hack/ostree_tag.sh) $(hack/selinux_tag.sh)" |
|
|
|
export BUILDTAGS="varlink seccomp exclude_graphdriver_devicemapper $(hack/btrfs_installed_tag.sh) $(hack/btrfs_tag.sh) $(hack/libdm_tag.sh) $(hack/ostree_tag.sh) $(hack/selinux_tag.sh)" |
|
|
|
%gogenerate ./cmd/%{name}/varlink/... |
|
|
|
export CGO_ENABLED=1 |
|
|
|
%gobuild -o bin/%{name} %{import_path}/cmd/%{name} |
|
|
|
go generate ./cmd/%{name}/varlink/... |
|
|
|
|
|
|
|
go build -o bin/%{name} %{import_path}/cmd/%{name} |
|
|
|
|
|
|
|
|
|
|
|
# build conmon |
|
|
|
# build conmon |
|
|
|
pushd cri-o-%{commit_conmon} |
|
|
|
pushd cri-o-%{commit_conmon} |
|
|
@ -405,6 +406,7 @@ popd |
|
|
|
ln -s vendor src |
|
|
|
ln -s vendor src |
|
|
|
export GOPATH=$(pwd)/_output:$(pwd) |
|
|
|
export GOPATH=$(pwd)/_output:$(pwd) |
|
|
|
export BUILDTAGS="selinux seccomp $(hack/btrfs_installed_tag.sh) $(hack/btrfs_tag.sh) containers_image_ostree_stub" |
|
|
|
export BUILDTAGS="selinux seccomp $(hack/btrfs_installed_tag.sh) $(hack/btrfs_tag.sh) containers_image_ostree_stub" |
|
|
|
|
|
|
|
export CGO_ENABLED=0 |
|
|
|
BUILDTAGS=$BUILDTAGS make -C conmon |
|
|
|
BUILDTAGS=$BUILDTAGS make -C conmon |
|
|
|
popd |
|
|
|
popd |
|
|
|
|
|
|
|
|
|
|
|