diff --git a/buildah.spec b/buildah.spec index bba613f..93ee766 100644 --- a/buildah.spec +++ b/buildah.spec @@ -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