|
|
|
@ -33,7 +33,7 @@ Version: 3.2.0
|
|
|
|
|
%define gobuild(o:) GO111MODULE=off 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 %{?**};
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{golang_arches} %{gccgo_arches}
|
|
|
|
|
ExclusiveArch: %{golang_arches} %{gccgo_arches} i686
|
|
|
|
|
|
|
|
|
|
Name: go-rpm-macros
|
|
|
|
|
Release: 2%{?dist}.inferit
|
|
|
|
@ -91,7 +91,6 @@ pull it in for Go packages only.
|
|
|
|
|
%package -n go-srpm-macros
|
|
|
|
|
Summary: Source-stage rpm automation for Go packages
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
ExclusiveArch: %{golang_arches} %{gccgo_arches} i686
|
|
|
|
|
Requires: redhat-rpm-config
|
|
|
|
|
|
|
|
|
|
%description -n go-srpm-macros
|
|
|
|
@ -115,7 +114,6 @@ This package contains the basic directory layout used by Go packages.
|
|
|
|
|
Summary: RPM spec templates for Go packages
|
|
|
|
|
License: MIT
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
ExclusiveArch: %{golang_arches} %{gccgo_arches} i686
|
|
|
|
|
Requires: go-rpm-macros = %{version}-%{release}
|
|
|
|
|
#https://src.fedoraproject.org/rpms/redhat-rpm-config/pull-request/51
|
|
|
|
|
#Requires: redhat-rpm-templates
|
|
|
|
|