diff --git a/go-rpm-macros.spec b/go-rpm-macros.spec index f43d89b..1217f8f 100644 --- a/go-rpm-macros.spec +++ b/go-rpm-macros.spec @@ -7,7 +7,8 @@ Version: 3.0.15 %global _docdir_fmt %{name} # Master definition that will be written to macro files -%global golang_arches %{ix86} x86_64 %{arm} aarch64 ppc64le s390x +%global golang_arches_future x86_64 %{arm} aarch64 ppc64le s390x +%global golang_arches %{ix86} %{golang_arches_future} %global gccgo_arches %{mips} %if 0%{?rhel} >= 9 %global golang_arches x86_64 aarch64 ppc64le s390x @@ -85,8 +86,8 @@ This package contains documented rpm spec templates showcasing how to use the macros provided by go-rpm-macros to create Go packages. %prep -%forgeautosetup -%writevars -f rpm/macros.d/macros.go-srpm golang_arches gccgo_arches gopath +%forgeautosetup -p1 +%writevars -f rpm/macros.d/macros.go-srpm golang_arches golang_arches_future gccgo_arches gopath for template in templates/rpm/*\.spec ; do target=$(echo "${template}" | sed "s|^\(.*\)\.spec$|\1-bare.spec|g") grep -v '^#' "${template}" > "${target}"