buildable on centos7

Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
This commit is contained in:
Lokesh Mandvekar 2019-06-02 11:38:20 -04:00
parent a225687914
commit 7aa9b00b7d

View File

@ -8,6 +8,10 @@
%global debug_package %{nil}
%endif
%if ! 0%{?gobuild:1}
%define gobuild(o:) go build -buildmode pie -compiler gc -tags="rpm_crashtraceback ${BUILDTAGS:-}" -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld '" -a -v -x %{?**};
%endif
%global provider github
%global provider_tld com
%global project containers
@ -40,11 +44,14 @@ BuildRequires: libassuan-devel
BuildRequires: make
Requires: runc >= 1.0.0-17
Requires: containers-common
%if 0%{?fedora}
Recommends: container-selinux
Recommends: slirp4netns >= 0.3-0
%if 0%{?fedora} > 28
Recommends: fuse-overlayfs
%endif
%else
Requires: container-selinux
Requires: slirp4netns >= 0.3-0
%endif # fedora
%description
The %{name} package provides a command line tool which can be used to