|
|
@ -1,5 +1,15 @@
|
|
|
|
|
|
|
|
## START: Set by rpmautospec
|
|
|
|
|
|
|
|
## (rpmautospec version 0.6.5)
|
|
|
|
|
|
|
|
## RPMAUTOSPEC: autorelease, autochangelog
|
|
|
|
|
|
|
|
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
|
|
|
|
|
|
|
release_number = 1;
|
|
|
|
|
|
|
|
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
|
|
|
|
|
|
|
print(release_number + base_release_number - 1);
|
|
|
|
|
|
|
|
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
|
|
|
|
|
|
|
## END: Set by rpmautospec
|
|
|
|
|
|
|
|
|
|
|
|
%global forgeurl https://pagure.io/go-rpm-macros
|
|
|
|
%global forgeurl https://pagure.io/go-rpm-macros
|
|
|
|
Version: 3.2.0
|
|
|
|
Version: 3.6.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
|
|
|
@ -7,11 +17,11 @@ Version: 3.2.0
|
|
|
|
%global _docdir_fmt %{name}
|
|
|
|
%global _docdir_fmt %{name}
|
|
|
|
|
|
|
|
|
|
|
|
# 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 x86_64_v2 %{arm} aarch64 ppc64le s390x riscv64
|
|
|
|
%global golang_arches %{ix86} %{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 x86_64_v2 aarch64 ppc64le s390x
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
# Go sources can contain arch-specific files and our macros will package the
|
|
|
|
# Go sources can contain arch-specific files and our macros will package the
|
|
|
|
# correct files for each architecture. Therefore, move gopath to _libdir and
|
|
|
|
# correct files for each architecture. Therefore, move gopath to _libdir and
|
|
|
@ -19,38 +29,46 @@ Version: 3.2.0
|
|
|
|
%global gopath %{_datadir}/gocode
|
|
|
|
%global gopath %{_datadir}/gocode
|
|
|
|
|
|
|
|
|
|
|
|
# whether to bundle golist or require it as a dependency
|
|
|
|
# whether to bundle golist or require it as a dependency
|
|
|
|
|
|
|
|
%if 0%{?rhel}
|
|
|
|
|
|
|
|
%ifarch %{golang_arches} %{gccgo_arches}
|
|
|
|
%global bundle_golist 1
|
|
|
|
%global bundle_golist 1
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global golist_version 0.10.4
|
|
|
|
%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.1
|
|
|
|
%global golist_builddir golist-%{golist_version}
|
|
|
|
%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
|
|
|
|
%global golist_execdir %{_libexecdir}/go-rpm-macros/
|
|
|
|
%global golist_execdir %{_libexecdir}/go-rpm-macros
|
|
|
|
# define gobuild to avoid this package requiring itself to build
|
|
|
|
# define gobuild to avoid this package requiring itself to build
|
|
|
|
%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 %{?**};
|
|
|
|
%define gobuild(o:) GO111MODULE=on go build -buildmode pie -compiler gc -tags="rpm_crashtraceback ${BUILDTAGS:-}" -ldflags "-B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '${LDFLAGS:-} '" -a -v %{?**};
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{golang_arches} %{gccgo_arches}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: go-rpm-macros
|
|
|
|
Name: go-rpm-macros
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Release: %autorelease.inferit
|
|
|
|
Summary: Build-stage rpm automation for Go packages
|
|
|
|
Summary: Build-stage rpm automation for Go packages
|
|
|
|
|
|
|
|
|
|
|
|
License: GPLv3+
|
|
|
|
License: GPL-3.0-or-later
|
|
|
|
URL: %{forgeurl}
|
|
|
|
URL: %{forgeurl}
|
|
|
|
Source0: %{forgesource}
|
|
|
|
Source: %{forgesource}
|
|
|
|
%if 0%{?bundle_golist}
|
|
|
|
|
|
|
|
Source1: https://pagure.io/golist/archive/v%{golist_version}/golist-%{golist_version}.tar.gz
|
|
|
|
Source1: https://pagure.io/golist/archive/v%{golist_version}/golist-%{golist_version}.tar.gz
|
|
|
|
%endif
|
|
|
|
# vendored dependency tarball, to create:
|
|
|
|
|
|
|
|
# tar xf golist-%%{golist_version}.tar.gz ; pushd golist-%%{golist_version} ; \
|
|
|
|
|
|
|
|
# go mod init %%{golist_goipath} && go mod tidy && go mod vendor && \
|
|
|
|
|
|
|
|
# tar Jcf ../golist-%%{golist_version}-vendor.tar.xz go.mod go.sum vendor/ ; popd
|
|
|
|
|
|
|
|
Source2: golist-%{golist_version}-vendor.tar.xz
|
|
|
|
|
|
|
|
|
|
|
|
Requires: go-srpm-macros = %{version}-%{release}
|
|
|
|
Requires: go-srpm-macros = %{version}-%{release}
|
|
|
|
Requires: go-filesystem = %{version}-%{release}
|
|
|
|
Requires: go-filesystem = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?bundle_golist}
|
|
|
|
%if 0%{?bundle_golist}
|
|
|
|
BuildRequires: golang
|
|
|
|
BuildRequires: golang
|
|
|
|
|
|
|
|
Provides: bundled(golist) = %{golist_version}
|
|
|
|
%else
|
|
|
|
%else
|
|
|
|
Requires: golist
|
|
|
|
Requires: golist
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
@ -69,18 +87,6 @@ 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
|
|
|
|
|
|
|
|
# command line parser backend to bootstrap golist
|
|
|
|
|
|
|
|
# without dependencies.
|
|
|
|
|
|
|
|
Patch1: golist-bootstrap-cli-no-vendor.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 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.
|
|
|
|
|
|
|
|
# For a simple fix, this patch ports both RHEL 8 macros to macros.go-srpm.
|
|
|
|
|
|
|
|
# Resolves: rhbz#1965292
|
|
|
|
|
|
|
|
Patch2: add-gobuild-and-gotest.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
|
|
|
|
language (golang) packages.
|
|
|
|
language (golang) packages.
|
|
|
@ -105,7 +111,7 @@ go-srpm-macros will pull in for Go packages only.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n go-filesystem
|
|
|
|
%package -n go-filesystem
|
|
|
|
Summary: Directories used by Go packages
|
|
|
|
Summary: Directories used by Go packages
|
|
|
|
License: Public Domain
|
|
|
|
License: LicenseRef-Fedora-Public-Domain
|
|
|
|
|
|
|
|
|
|
|
|
%description -n go-filesystem
|
|
|
|
%description -n go-filesystem
|
|
|
|
This package contains the basic directory layout used by Go packages.
|
|
|
|
This package contains the basic directory layout used by Go packages.
|
|
|
@ -113,7 +119,7 @@ This package contains the basic directory layout used by Go packages.
|
|
|
|
%package -n go-rpm-templates
|
|
|
|
%package -n go-rpm-templates
|
|
|
|
Summary: RPM spec templates for Go packages
|
|
|
|
Summary: RPM spec templates for Go packages
|
|
|
|
License: MIT
|
|
|
|
License: MIT
|
|
|
|
BuildArch: noarch
|
|
|
|
# go-rpm-macros only exists on some architectures, so this package cannot be noarch
|
|
|
|
Requires: go-rpm-macros = %{version}-%{release}
|
|
|
|
Requires: go-rpm-macros = %{version}-%{release}
|
|
|
|
#https://src.fedoraproject.org/rpms/redhat-rpm-config/pull-request/51
|
|
|
|
#https://src.fedoraproject.org/rpms/redhat-rpm-config/pull-request/51
|
|
|
|
#Requires: redhat-rpm-templates
|
|
|
|
#Requires: redhat-rpm-templates
|
|
|
@ -123,10 +129,7 @@ This package contains documented rpm spec templates showcasing how to use the
|
|
|
|
macros provided by go-rpm-macros to create Go packages.
|
|
|
|
macros provided by go-rpm-macros to create Go packages.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%forgesetup
|
|
|
|
%autosetup -p1 %{forgesetupargs} -a1
|
|
|
|
|
|
|
|
|
|
|
|
%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")
|
|
|
@ -134,41 +137,30 @@ for template in templates/rpm/*\.spec ; do
|
|
|
|
touch -r "${template}" "${target}"
|
|
|
|
touch -r "${template}" "${target}"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
# unpack golist and patch
|
|
|
|
# unpack golist and vendor deps
|
|
|
|
%if 0%{?bundle_golist}
|
|
|
|
%if 0%{?bundle_golist}
|
|
|
|
pushd %{_builddir}
|
|
|
|
tar -C %{golist_builddir} -xf %{SOURCE2}
|
|
|
|
tar -xf %{_sourcedir}/golist-%{golist_version}.tar.gz
|
|
|
|
cp %{golist_builddir}/LICENSE LICENSE-golist
|
|
|
|
cd golist-%{golist_version}
|
|
|
|
|
|
|
|
%patch1 -p1
|
|
|
|
|
|
|
|
cp %{_builddir}/golist-%{golist_version}/LICENSE %{_builddir}/go-rpm-macros-%{version}/LICENSE-golist
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# create directory structure for a Go build
|
|
|
|
|
|
|
|
if [[ ! -e %{golist_builddir}/bin ]]; then
|
|
|
|
|
|
|
|
install -m 0755 -vd %{golist_builddir}/bin
|
|
|
|
|
|
|
|
export GOPATH=%{golist_builddir}:${GOPATH:+${GOPATH}:}/usr/share/gocode
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ ! -e %{golist_builddir}/src/%{golist_goipath} ]]; then
|
|
|
|
|
|
|
|
install -m 0755 -vd %{golist_builddir}/src/pagure.io
|
|
|
|
|
|
|
|
ln -sf $(dirname %{golist_builddir}) %{golist_builddir}/src/%{golist_goipath}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%patch2 -p1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
# build golist
|
|
|
|
# build golist
|
|
|
|
%if 0%{?bundle_golist}
|
|
|
|
%if 0%{?bundle_golist}
|
|
|
|
pushd %{golist_builddir}/src/%{golist_goipath}
|
|
|
|
pushd %{golist_builddir}
|
|
|
|
export GOPATH=%{golist_builddir}:${GOPATH:+${GOPATH}:}/usr/share/gocode
|
|
|
|
|
|
|
|
for cmd in cmd/* ; do
|
|
|
|
for cmd in cmd/* ; do
|
|
|
|
%gobuild -o %{golist_builddir}/bin/$(basename $cmd) %{golist_goipath}/$cmd
|
|
|
|
%gobuild -o bin/$(basename $cmd) ./$cmd
|
|
|
|
done
|
|
|
|
done
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
|
|
|
|
install -m 0755 -vd %{buildroot}%{rpmmacrodir}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
install -m 0755 -vd %{buildroot}%{_rpmluadir}/fedora/srpm
|
|
|
|
|
|
|
|
install -m 0644 -vp rpm/lua/srpm/*lua \
|
|
|
|
|
|
|
|
%{buildroot}%{_rpmluadir}/fedora/srpm
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%ifarch %{golang_arches} %{gccgo_arches}
|
|
|
|
# Some of those probably do not work with gcc-go right now
|
|
|
|
# Some of those probably do not work with gcc-go right now
|
|
|
|
# This is not intentional, but mips is not a primary Fedora architecture
|
|
|
|
# This is not intentional, but mips is not a primary Fedora architecture
|
|
|
|
# Patches and PRs are welcome
|
|
|
|
# Patches and PRs are welcome
|
|
|
@ -177,20 +169,14 @@ install -m 0755 -vd %{buildroot}%{gopath}/src
|
|
|
|
|
|
|
|
|
|
|
|
install -m 0755 -vd %{buildroot}%{_spectemplatedir}
|
|
|
|
install -m 0755 -vd %{buildroot}%{_spectemplatedir}
|
|
|
|
|
|
|
|
|
|
|
|
if ls templates/rpm/*\.spec; then
|
|
|
|
install -m 0644 -vp templates/rpm/*spec \
|
|
|
|
install -m 0644 -vp templates/rpm/*spec \
|
|
|
|
%{buildroot}%{_spectemplatedir}
|
|
|
|
%{buildroot}%{_spectemplatedir}
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
install -m 0755 -vd %{buildroot}%{_bindir}
|
|
|
|
install -m 0755 -vd %{buildroot}%{_bindir}
|
|
|
|
install -m 0755 bin/* %{buildroot}%{_bindir}
|
|
|
|
install -m 0755 bin/* %{buildroot}%{_bindir}
|
|
|
|
|
|
|
|
|
|
|
|
install -m 0755 -vd %{buildroot}%{rpmmacrodir}
|
|
|
|
install -m 0644 -vp rpm/macros.d/macros.go-*rpm* \
|
|
|
|
install -m 0644 -vp rpm/macros.d/macros.go-* \
|
|
|
|
|
|
|
|
%{buildroot}%{rpmmacrodir}
|
|
|
|
%{buildroot}%{rpmmacrodir}
|
|
|
|
install -m 0755 -vd %{buildroot}%{_rpmluadir}/fedora/srpm
|
|
|
|
|
|
|
|
install -m 0644 -vp rpm/lua/srpm/*lua \
|
|
|
|
|
|
|
|
%{buildroot}%{_rpmluadir}/fedora/srpm
|
|
|
|
|
|
|
|
install -m 0755 -vd %{buildroot}%{_rpmluadir}/fedora/rpm
|
|
|
|
install -m 0755 -vd %{buildroot}%{_rpmluadir}/fedora/rpm
|
|
|
|
install -m 0644 -vp rpm/lua/rpm/*lua \
|
|
|
|
install -m 0644 -vp rpm/lua/rpm/*lua \
|
|
|
|
%{buildroot}%{_rpmluadir}/fedora/rpm
|
|
|
|
%{buildroot}%{_rpmluadir}/fedora/rpm
|
|
|
@ -199,48 +185,50 @@ install -m 0644 -vp rpm/fileattrs/*.attr \
|
|
|
|
%{buildroot}%{_rpmconfigdir}/fileattrs/
|
|
|
|
%{buildroot}%{_rpmconfigdir}/fileattrs/
|
|
|
|
install -m 0755 -vp rpm/*\.{prov,deps} \
|
|
|
|
install -m 0755 -vp rpm/*\.{prov,deps} \
|
|
|
|
%{buildroot}%{_rpmconfigdir}/
|
|
|
|
%{buildroot}%{_rpmconfigdir}/
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
install -m 0644 -vp rpm/macros.d/macros.go-srpm \
|
|
|
|
|
|
|
|
%{buildroot}%{rpmmacrodir}
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%ifarch %{golang_arches}
|
|
|
|
%ifarch %{golang_arches}
|
|
|
|
install -m 0644 -vp rpm/macros.d/macros.go-compilers-golang \
|
|
|
|
install -m 0644 -vp rpm/macros.d/macros.go-compilers-golang{,-pie} \
|
|
|
|
%{buildroot}%{_rpmconfigdir}/macros.d/macros.go-compiler-golang
|
|
|
|
%{buildroot}%{_rpmconfigdir}/macros.d/
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%ifarch %{gccgo_arches}
|
|
|
|
%ifarch %{gccgo_arches}
|
|
|
|
install -m 0644 -vp rpm/macros.d/macros.go-compilers-gcc \
|
|
|
|
install -m 0644 -vp rpm/macros.d/macros.go-compilers-gcc \
|
|
|
|
%{buildroot}%{_rpmconfigdir}/macros.d/macros.go-compiler-gcc
|
|
|
|
%{buildroot}%{_rpmconfigdir}/macros.d/
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
# install golist
|
|
|
|
# install golist
|
|
|
|
%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
|
|
|
|
sed -i "s,golist ,%{golist_execdir}/golist ,g" \
|
|
|
|
|
|
|
|
%{buildroot}%{_bindir}/go-rpm-integration \
|
|
|
|
|
|
|
|
%{buildroot}%{_rpmconfigdir}/gosymlink.deps \
|
|
|
|
|
|
|
|
%{buildroot}%{_rpmmacrodir}/macros.go-rpm
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%ifarch %{golang_arches} %{gccgo_arches}
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%license LICENSE.txt LICENSE-golist
|
|
|
|
%license LICENSE.txt
|
|
|
|
|
|
|
|
%if %{defined bundle_golist}
|
|
|
|
|
|
|
|
%license LICENSE-golist %{golist_builddir}/vendor/modules.txt
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%doc README.md
|
|
|
|
%doc README.md
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_rpmconfigdir}/fileattrs/*.attr
|
|
|
|
%{_rpmconfigdir}/fileattrs/*.attr
|
|
|
|
%{_rpmconfigdir}/*.prov
|
|
|
|
%{_rpmconfigdir}/*.prov
|
|
|
|
%{_rpmconfigdir}/*.deps
|
|
|
|
%{_rpmconfigdir}/*.deps
|
|
|
|
%{_rpmconfigdir}/macros.d/macros.go-rpm*
|
|
|
|
%{_rpmmacrodir}/macros.go-rpm*
|
|
|
|
%{_rpmconfigdir}/macros.d/macros.go-compiler*
|
|
|
|
%{_rpmmacrodir}/macros.go-compiler*
|
|
|
|
%{_rpmluadir}/fedora/rpm/*.lua
|
|
|
|
%{_rpmluadir}/fedora/rpm/*.lua
|
|
|
|
# package golist
|
|
|
|
# package golist
|
|
|
|
%if 0%{?bundle_golist}
|
|
|
|
%if 0%{?bundle_golist}
|
|
|
|
%{golist_execdir}/golist
|
|
|
|
%{golist_execdir}/golist
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%files -n go-srpm-macros
|
|
|
|
|
|
|
|
%license LICENSE.txt
|
|
|
|
|
|
|
|
%doc README.md
|
|
|
|
|
|
|
|
%{_rpmconfigdir}/macros.d/macros.go-srpm
|
|
|
|
|
|
|
|
%{_rpmluadir}/fedora/srpm/*.lua
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n go-filesystem
|
|
|
|
|
|
|
|
%dir %{gopath}
|
|
|
|
|
|
|
|
%dir %{gopath}/src
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n go-rpm-templates
|
|
|
|
%files -n go-rpm-templates
|
|
|
|
%license LICENSE-templates.txt
|
|
|
|
%license LICENSE-templates.txt
|
|
|
@ -250,46 +238,124 @@ sed -i "s,golist,%{golist_execdir}/golist,g" %{buildroot}%{_bindir}/go-rpm-integ
|
|
|
|
%dir %{_spectemplatedir}
|
|
|
|
%dir %{_spectemplatedir}
|
|
|
|
%{_spectemplatedir}/*.spec
|
|
|
|
%{_spectemplatedir}/*.spec
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n go-filesystem
|
|
|
|
|
|
|
|
%dir %{gopath}
|
|
|
|
|
|
|
|
%dir %{gopath}/src
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# we only build go-srpm-macros on all architectures
|
|
|
|
|
|
|
|
%files -n go-srpm-macros
|
|
|
|
|
|
|
|
%license LICENSE.txt
|
|
|
|
|
|
|
|
%doc README.md
|
|
|
|
|
|
|
|
%{_rpmmacrodir}/macros.go-srpm
|
|
|
|
|
|
|
|
%{_rpmluadir}/fedora/srpm/*.lua
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Fri Jul 28 2023 Alejandro Sáez <asm@redhat.com> - 3.2.0-2
|
|
|
|
* Mon Dec 02 2024 Sergey Cherevko <s.cherevko@msvsphere-os.ru> - 3.6.0-1.inferit
|
|
|
|
- Add golang_arches_future
|
|
|
|
- Add x86_64_v2 to arch list
|
|
|
|
- Resolves: rhbz#2227224
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Nov 26 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 3.6.0-1
|
|
|
|
* Wed Nov 23 2022 Alejandro Sáez <asm@redhat.com> - 3.2.0-1
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
- Update to 3.2.0
|
|
|
|
|
|
|
|
- Add add-gobuild-and-gotest.patch
|
|
|
|
## START: Generated by rpmautospec
|
|
|
|
- Resolves: rhbz#1965292
|
|
|
|
* Wed Jul 24 2024 Alejandro Sáez <asm@redhat.com> - 3.6.0-1
|
|
|
|
|
|
|
|
- Update to 3.6.0
|
|
|
|
* Wed Jan 26 2022 Alejandro Sáez <asm@redhat.com> - 3.0.9-10
|
|
|
|
|
|
|
|
- Fix typos in update-default-gobuild-args.patch
|
|
|
|
* Wed Jun 26 2024 Edjunior Machado <emachado@redhat.com> - 3.3.0-5
|
|
|
|
- Related: rhbz#2043107
|
|
|
|
- Add rpminspect.yaml
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 18 2022 David Benoit <dbenoit@redhat.com> 3.0.9-9
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 3.3.0-4
|
|
|
|
- Delete remove-fedora-dependency-automation.patch
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
- Bundle golist in /usr/libexec
|
|
|
|
|
|
|
|
- Related: rhbz#2043107
|
|
|
|
* Thu May 23 2024 Alejandro Sáez <asm@redhat.com> - 3.3.0-3
|
|
|
|
|
|
|
|
- Remove explicit dependency of forge-srpm-macros
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com>
|
|
|
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
* Fri May 03 2024 Edjunior Machado <emachado@redhat.com> - 3.3.0-2
|
|
|
|
Related: rhbz#1991688
|
|
|
|
- gating.yaml: Add gating config for rhel-10
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Aug 03 2021 David Benoit <dbenoit@redhat.com> 3.0.9-7
|
|
|
|
* Sun Oct 29 2023 Robert-André Mauchin <zebob.m@gmail.com> - 3.3.0-1
|
|
|
|
- Escape quotation marks in gobuildflags
|
|
|
|
- Update to 3.3.0
|
|
|
|
- Resolves: rhbz#1988717
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Oct 29 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 3.2.0-9
|
|
|
|
* Tue Jul 27 2021 David Benoit <dbenoit@redhat.com> 3.0.9-6
|
|
|
|
- Update golist to 0.10.4
|
|
|
|
- Remove arch conditional on gocompilerflags
|
|
|
|
|
|
|
|
- Related: rhbz#1982298
|
|
|
|
* Thu Sep 07 2023 Maxwell G <maxwell@gtmx.me> - 3.2.0-8
|
|
|
|
|
|
|
|
- Add explicit dependency on forge-srpm-macros
|
|
|
|
* Fri Jul 23 2021 David Benoit <dbenoit@redhat.com> 3.0.9-5
|
|
|
|
|
|
|
|
- Remove fedora-specific Go dependency automation macros
|
|
|
|
* Thu Jun 22 2023 Maxwell G <maxwell@gtmx.me> - 3.2.0-7
|
|
|
|
- Remove dependency on golist
|
|
|
|
- Simplify golist tarball unpacking
|
|
|
|
- Temporarily remove incompatible template spec files
|
|
|
|
|
|
|
|
- Update gobuild flags
|
|
|
|
* Tue Jun 20 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 3.2.0-6
|
|
|
|
- Resolves: rhbz#1982298
|
|
|
|
- Bundle golist in RHEL builds
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com>
|
|
|
|
* Mon Apr 24 2023 Edjunior Machado <emachado@redhat.com> - 3.2.0-4
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
- tests: Fix fmf plan deprecated attributes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Apr 16 2023 Nianqing Yao <imbearchild@outlook.com> - 3.2.0-3
|
|
|
|
|
|
|
|
- Add riscv64 to %%golang_arches
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Sep 02 2022 Maxwell G <gotmax@e.email> - 3.2.0-1
|
|
|
|
|
|
|
|
- Update to 3.2.0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Sep 02 2022 Maxwell G <gotmax@e.email> - 3.1.0-5
|
|
|
|
|
|
|
|
- Use %%{_rpmmacrodir} macro
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Aug 09 2022 Maxwell G <gotmax@e.email> - 3.1.0-4
|
|
|
|
|
|
|
|
- Use correct SPDX identifier for Public Domain
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Aug 08 2022 Maxwell G <gotmax@e.email> - 3.1.0-3
|
|
|
|
|
|
|
|
- Convert top level license to SPDX.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Aug 08 2022 Maxwell G <gotmax@e.email> - 3.1.0-2
|
|
|
|
|
|
|
|
- Stop installing duplicate go-compilers macros
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Aug 08 2022 Maxwell G <gotmax@e.email> - 3.1.0-1
|
|
|
|
|
|
|
|
- Update to 3.1.0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 29 2022 Maxwell G <gotmax@e.email> - 3.0.15-4
|
|
|
|
|
|
|
|
- Add %%%%golang_arches_future macro
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.15-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jun 02 2022 Miro Hrončok <miro@hroncok.cz> - 3.0.15-2
|
|
|
|
|
|
|
|
- Drop ExclusiveArch, always build go-srpm-macros and go-filesystem
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Jan 30 2022 Maxwell G <gotmax@e.email> - 3.0.15-1
|
|
|
|
|
|
|
|
- Update to 3.0.15.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jan 29 2022 Maxwell G <gotmax@e.email> - 3.0.14-1
|
|
|
|
|
|
|
|
- Update to 3.0.14.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jan 22 2022 Robert-André Mauchin <zebob.m@gmail.com> - 3.0.13-4
|
|
|
|
|
|
|
|
- Fix typo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jan 22 2022 Robert-André Mauchin <zebob.m@gmail.com> - 3.0.13-3
|
|
|
|
|
|
|
|
- Fix typo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jan 22 2022 Robert-André Mauchin <zebob.m@gmail.com> - 3.0.13-2
|
|
|
|
|
|
|
|
- Fix archive upload
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jan 22 2022 Robert-André Mauchin <zebob.m@gmail.com> - 3.0.13-1
|
|
|
|
|
|
|
|
- Update to 3.0.13
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jan 22 2022 Robert-André Mauchin <zebob.m@gmail.com> - 3.0.12-3
|
|
|
|
|
|
|
|
- Update to 3.0.12
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.11-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.11-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon May 17 2021 Robert-André Mauchin <zebob.m@gmail.com> - 3.0.11-1
|
|
|
|
|
|
|
|
- Update to 3.0.11
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Apr 26 2021 Alejandro Sáez <asm@redhat.com> - 3.0.10-1
|
|
|
|
|
|
|
|
- Update to 3.0.10
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Feb 11 2021 Jeff Law <law@redhat.com> - 3.0.9-3
|
|
|
|
* Thu Feb 11 2021 Jeff Law <law@redhat.com> - 3.0.9-3
|
|
|
|
- Drop 32 bit arches in EL 9 (originally from Petr Sabata)
|
|
|
|
- Drop 32 bit arches in EL 9 (originally from Petr Sabata)
|
|
|
@ -312,3 +378,5 @@ sed -i "s,golist,%{golist_execdir}/golist,g" %{buildroot}%{_bindir}/go-rpm-integ
|
|
|
|
* Wed Jun 05 2019 Nicolas Mailhot <nim@fedoraproject.org>
|
|
|
|
* Wed Jun 05 2019 Nicolas Mailhot <nim@fedoraproject.org>
|
|
|
|
- 3.0.8-3
|
|
|
|
- 3.0.8-3
|
|
|
|
- initial Fedora import, for golist 0.10.0 and redhat-rpm-config 130
|
|
|
|
- initial Fedora import, for golist 0.10.0 and redhat-rpm-config 130
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## END: Generated by rpmautospec
|
|
|
|