From 9547160cbbe41934fc99c7ee7efe0b1396e1475f Mon Sep 17 00:00:00 2001 From: tigro Date: Tue, 16 Jan 2024 22:51:07 +0300 Subject: [PATCH] Fix ExclusiveArch --- SPECS/go-rpm-macros.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SPECS/go-rpm-macros.spec b/SPECS/go-rpm-macros.spec index 61446f9..1ec43d3 100644 --- a/SPECS/go-rpm-macros.spec +++ b/SPECS/go-rpm-macros.spec @@ -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} i686 +ExclusiveArch: %{golang_arches} %{gccgo_arches} Name: go-rpm-macros Release: 2%{?dist}.inferit @@ -91,6 +91,7 @@ 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 @@ -114,6 +115,7 @@ 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