|
|
@ -1,5 +1,5 @@
|
|
|
|
%global forgeurl https://pagure.io/go-rpm-macros
|
|
|
|
%global forgeurl https://pagure.io/go-rpm-macros
|
|
|
|
Version: 3.6.0
|
|
|
|
Version: 3.2.0
|
|
|
|
%forgemeta
|
|
|
|
%forgemeta
|
|
|
|
|
|
|
|
|
|
|
|
#https://src.fedoraproject.org/rpms/redhat-rpm-config/pull-request/51
|
|
|
|
#https://src.fedoraproject.org/rpms/redhat-rpm-config/pull-request/51
|
|
|
@ -8,7 +8,7 @@ Version: 3.6.0
|
|
|
|
|
|
|
|
|
|
|
|
# Master definition that will be written to macro files
|
|
|
|
# Master definition that will be written to macro files
|
|
|
|
%global golang_arches_future x86_64 %{arm} aarch64 ppc64le s390x
|
|
|
|
%global golang_arches_future x86_64 %{arm} aarch64 ppc64le s390x
|
|
|
|
%global golang_arches %{golang_arches_future}
|
|
|
|
%global golang_arches %{ix86} %{golang_arches_future}
|
|
|
|
%global gccgo_arches %{mips}
|
|
|
|
%global gccgo_arches %{mips}
|
|
|
|
%if 0%{?rhel} >= 9
|
|
|
|
%if 0%{?rhel} >= 9
|
|
|
|
%global golang_arches x86_64 aarch64 ppc64le s390x
|
|
|
|
%global golang_arches x86_64 aarch64 ppc64le s390x
|
|
|
@ -24,7 +24,7 @@ Version: 3.6.0
|
|
|
|
%if 0%{?bundle_golist}
|
|
|
|
%if 0%{?bundle_golist}
|
|
|
|
# do not create debuginfo packages when we add a build section
|
|
|
|
# do not create debuginfo packages when we add a build section
|
|
|
|
%global debug_package %{nil}
|
|
|
|
%global debug_package %{nil}
|
|
|
|
%global golist_version 0.10.4
|
|
|
|
%global golist_version 0.10.1
|
|
|
|
%global golist_builddir %{_builddir}/golist-%{golist_version}/_build
|
|
|
|
%global golist_builddir %{_builddir}/golist-%{golist_version}/_build
|
|
|
|
%global golist_goipath pagure.io/golist
|
|
|
|
%global golist_goipath pagure.io/golist
|
|
|
|
# where to bundle the golist executable
|
|
|
|
# where to bundle the golist executable
|
|
|
@ -36,7 +36,7 @@ Version: 3.6.0
|
|
|
|
ExclusiveArch: %{golang_arches} %{gccgo_arches}
|
|
|
|
ExclusiveArch: %{golang_arches} %{gccgo_arches}
|
|
|
|
|
|
|
|
|
|
|
|
Name: go-rpm-macros
|
|
|
|
Name: go-rpm-macros
|
|
|
|
Release: 3%{?dist}.inferit
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Summary: Build-stage rpm automation for Go packages
|
|
|
|
Summary: Build-stage rpm automation for Go packages
|
|
|
|
|
|
|
|
|
|
|
|
License: GPLv3+
|
|
|
|
License: GPLv3+
|
|
|
@ -69,23 +69,17 @@ Provides: compiler(go-compiler) = 1
|
|
|
|
Obsoletes: go-compilers-gcc-go-compiler < %{version}-%{release}
|
|
|
|
Obsoletes: go-compilers-gcc-go-compiler < %{version}-%{release}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Patch0: update-default-gobuild-args.patch
|
|
|
|
# Replace golang-github-urfave-cli with a minimal
|
|
|
|
# Replace golang-github-urfave-cli with a minimal
|
|
|
|
# command line parser backend to bootstrap golist
|
|
|
|
# command line parser backend to bootstrap golist
|
|
|
|
# without dependencies.
|
|
|
|
# without dependencies.
|
|
|
|
Patch1: golist-bootstrap-cli-no-vendor.patch
|
|
|
|
Patch1: golist-bootstrap-cli-no-vendor.patch
|
|
|
|
# Add libexec to PATH in order to launch golist in every script
|
|
|
|
|
|
|
|
Patch2: 0001-Add-libexec-to-path-for-EPEL9-golist.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# RHEL 8 only provides the macros.go-srpm file which includes gobuild and gotest.
|
|
|
|
# RHEL 8 only provides the macros.go-srpm file which includes gobuild and gotest.
|
|
|
|
# C9S also only provides the macros.go-srpm file but it also follows upstream which includes gobuild and gotest in the macros.go-compilers-gcc.
|
|
|
|
# C9S also only provides the macros.go-srpm file but it also follows upstream which includes gobuild and gotest in the macros.go-compilers-gcc.
|
|
|
|
# For a simple fix, this patch ports both RHEL 8 macros to macros.go-srpm.
|
|
|
|
# For a simple fix, this patch ports both RHEL 8 macros to macros.go-srpm.
|
|
|
|
# This also sets the GOAMD64 variable to v2
|
|
|
|
|
|
|
|
# Resolves: rhbz#1965292
|
|
|
|
# Resolves: rhbz#1965292
|
|
|
|
# Resolves: RHEL-5529
|
|
|
|
Patch2: add-gobuild-and-gotest.patch
|
|
|
|
Patch3: add-gobuild-and-gotest.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Remove when rpm >= 4.17.0
|
|
|
|
|
|
|
|
Patch4: remove-isdefined-function.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
This package provides build-stage rpm automation to simplify the creation of Go
|
|
|
|
This package provides build-stage rpm automation to simplify the creation of Go
|
|
|
@ -131,6 +125,8 @@ macros provided by go-rpm-macros to create Go packages.
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%forgesetup
|
|
|
|
%forgesetup
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
|
|
|
|
%writevars -f rpm/macros.d/macros.go-srpm golang_arches golang_arches_future gccgo_arches gopath
|
|
|
|
%writevars -f rpm/macros.d/macros.go-srpm golang_arches golang_arches_future gccgo_arches gopath
|
|
|
|
for template in templates/rpm/*\.spec ; do
|
|
|
|
for template in templates/rpm/*\.spec ; do
|
|
|
|
target=$(echo "${template}" | sed "s|^\(.*\)\.spec$|\1-bare.spec|g")
|
|
|
|
target=$(echo "${template}" | sed "s|^\(.*\)\.spec$|\1-bare.spec|g")
|
|
|
@ -140,8 +136,6 @@ done
|
|
|
|
|
|
|
|
|
|
|
|
# unpack golist and patch
|
|
|
|
# unpack golist and patch
|
|
|
|
%if 0%{?bundle_golist}
|
|
|
|
%if 0%{?bundle_golist}
|
|
|
|
# Add libexec to PATH
|
|
|
|
|
|
|
|
%patch2 -p1
|
|
|
|
|
|
|
|
pushd %{_builddir}
|
|
|
|
pushd %{_builddir}
|
|
|
|
tar -xf %{_sourcedir}/golist-%{golist_version}.tar.gz
|
|
|
|
tar -xf %{_sourcedir}/golist-%{golist_version}.tar.gz
|
|
|
|
cd golist-%{golist_version}
|
|
|
|
cd golist-%{golist_version}
|
|
|
@ -161,8 +155,7 @@ if [[ ! -e %{golist_builddir}/src/%{golist_goipath} ]]; then
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%patch3 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch4 -p1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
# build golist
|
|
|
|
# build golist
|
|
|
@ -221,6 +214,7 @@ install -m 0644 -vp rpm/macros.d/macros.go-compilers-gcc \
|
|
|
|
%if 0%{?bundle_golist}
|
|
|
|
%if 0%{?bundle_golist}
|
|
|
|
install -m 0755 -vd %{buildroot}%{golist_execdir}
|
|
|
|
install -m 0755 -vd %{buildroot}%{golist_execdir}
|
|
|
|
install -m 0755 -vp %{golist_builddir}/bin/* %{buildroot}%{golist_execdir}/
|
|
|
|
install -m 0755 -vp %{golist_builddir}/bin/* %{buildroot}%{golist_execdir}/
|
|
|
|
|
|
|
|
sed -i "s,golist,%{golist_execdir}/golist,g" %{buildroot}%{_bindir}/go-rpm-integration
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
@ -257,33 +251,10 @@ install -m 0755 -vp %{golist_builddir}/bin/* %{buildroot}%{golist_execdir}/
|
|
|
|
%{_spectemplatedir}/*.spec
|
|
|
|
%{_spectemplatedir}/*.spec
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Wed Jul 31 2024 Alejandro Sáez <asm@redhat.com> - 3.6.0-3
|
|
|
|
|
|
|
|
- Fix typo in add-gobuild-and-gotest.patch
|
|
|
|
|
|
|
|
- Resolves: RHEL-7437
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 31 2024 Alejandro Sáez <asm@redhat.com> - 3.6.0-2
|
|
|
|
|
|
|
|
- Remove rpm.isdefined function
|
|
|
|
|
|
|
|
- Resolves: RHEL-51368
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jul 29 2024 Alejandro Sáez <asm@redhat.com> - 3.6.0-1
|
|
|
|
|
|
|
|
- Update to 3.6.0
|
|
|
|
|
|
|
|
- Revert the usage of rpmautospec, check git's history
|
|
|
|
|
|
|
|
- Resolves: RHEL-14963
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Jan 28 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 3.2.0-3.inferit
|
|
|
|
|
|
|
|
- Drop ix86 arch from exclusive
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Sep 22 2023 Alejandro Sáez <asm@redhat.com> - 3.2.0-3
|
|
|
|
|
|
|
|
- Update add-gobuild-and-gotest.patch to add GOPPC64 and GOAMD64
|
|
|
|
|
|
|
|
- Resolves: RHEL-5529
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 28 2023 Alejandro Sáez <asm@redhat.com> - 3.2.0-2
|
|
|
|
* Fri Jul 28 2023 Alejandro Sáez <asm@redhat.com> - 3.2.0-2
|
|
|
|
- Add golang_arches_future
|
|
|
|
- Add golang_arches_future
|
|
|
|
- Resolves: rhbz#2227224
|
|
|
|
- Resolves: rhbz#2227224
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Mar 15 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 3.2.0-1
|
|
|
|
|
|
|
|
- Rebuilt for MSVSphere 9.1.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Nov 23 2022 Alejandro Sáez <asm@redhat.com> - 3.2.0-1
|
|
|
|
* Wed Nov 23 2022 Alejandro Sáez <asm@redhat.com> - 3.2.0-1
|
|
|
|
- Update to 3.2.0
|
|
|
|
- Update to 3.2.0
|
|
|
|
- Add add-gobuild-and-gotest.patch
|
|
|
|
- Add add-gobuild-and-gotest.patch
|
|
|
|