| | |
| | | %endif |
| | | |
| | | %if ! 0%{?gobuild:1} |
| | | %define gobuild(o:) go build -buildmode=pie -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n')" -tags "$BUILDTAGS" -a -v -x %{?**}; |
| | | %define gobuild(o:) \ |
| | | scl enable go-toolset-1.10 -- go build -buildmode pie -compiler gc -tags="rpm_crashtraceback no_openssl ${BUILDTAGS:-}" -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags'" -a -v -x %{?**}; |
| | | %endif |
| | | |
| | | %global provider github |
| | |
| | | |
| | | Name: %{repo} |
| | | Version: 1.0.0 |
| | | Release: 54.dev.git%{shortcommit0}%{?dist} |
| | | Release: 57.dev.git%{shortcommit0}%{?dist} |
| | | Summary: CLI for running Open Containers |
| | | License: ASL 2.0 |
| | | URL: http//%{provider_prefix} |
| | |
| | | Patch0: change-default-root.patch |
| | | Patch1: 0001-Revert-Apply-cgroups-earlier.patch |
| | | Patch2: 1807.patch |
| | | %ifnarch %{ix86} |
| | | %ifnarch i686 |
| | | Requires: criu |
| | | %endif |
| | | Requires(pre): container-selinux >= 2:2.2-2 |
| | | ExclusiveArch: aarch64 %{arm} ppc64le s390x x86_64 |
| | | ExclusiveArch: aarch64 %{arm} ppc64le s390x x86_64 %ix86} |
| | | |
| | | # 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} >= 1.6.2 |
| | | BuildRequires: go-toolset-7-golang-bin |
| | | BuildRequires: go-toolset-7-runtime |
| | | %if 0%{?fedora} |
| | | BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang} |
| | | %else |
| | | BuildRequires: go-toolset-1.10 |
| | | BuildRequires: openssl-devel |
| | | %endif #fedora |
| | | BuildRequires: git |
| | | BuildRequires: go-md2man |
| | | BuildRequires: libseccomp-devel |
| | | BuildRequires: openssl-devel |
| | | |
| | | %if ! 0%{?with_bundled} |
| | | BuildRequires: golang(github.com/Sirupsen/logrus) |
| | |
| | | export GOPATH=$(pwd)/GOPATH |
| | | export BUILDTAGS='selinux seccomp' |
| | | |
| | | GOPATH=$GOPATH %gobuild -o %{name} %{import_path} |
| | | GOPATH=$GOPATH %gobuild -o recvtty %{import_path}/contrib/cmd/recvtty |
| | | %gobuild -o %{name} %{import_path} |
| | | %gobuild -o recvtty %{import_path}/contrib/cmd/recvtty |
| | | |
| | | pushd man |
| | | ./md2man-all.sh |
| | |
| | | %endif |
| | | |
| | | %changelog |
| | | * Fri Nov 30 2018 Johnny Hughes <johnny@centos.org> - 1.0.0-57.dev.git2abd837 |
| | | - Manual CentOS Debranding |
| | | |
| | | * Wed Nov 28 2018 Lokesh Mandvekar <lsm5@redhat.com> - 1.0.0-57.dev.git2abd837 |
| | | - Resolves: #1650512 - build with the right golang dependency |
| | | |
| | | * Wed Nov 21 2018 Frantisek Kluknavsky <fkluknav@redhat.com> - 1.0.0-56.dev.git2abd837 |
| | | - openssl-devel required only with scl go toolset |
| | | |
| | | * Thu Nov 08 2018 Frantisek Kluknavsky <fkluknav@redhat.com> - 1.0.0-55.dev.git2abd837 |
| | | - buildrequires for centos |
| | | |
| | | * Wed Sep 26 2018 Frantisek Kluknavsky <fkluknav@redhat.com> - 1.0.0-54.dev.git2abd837 |
| | | - 1807.patch added |
| | | |