containernetworking-plugins-0.8.7-3.el9
- use dedicated macro to build only on supported arches - make build logs more readable - always compile with debuginfo enabled Signed-off-by: Jindrich Novy <jnovy@redhat.com>
This commit is contained in:
parent
52a6b65ae3
commit
00c0144d7e
@ -1,3 +0,0 @@
|
||||
# containernetworking-plugins
|
||||
|
||||
The containernetworking-plugins package
|
@ -1,16 +1,14 @@
|
||||
%global with_debug 1
|
||||
%global with_check 0
|
||||
|
||||
%if 0%{?with_debug}
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1904567
|
||||
%global _lto_cflags %%{nil}
|
||||
|
||||
%global _find_debuginfo_dwz_opts %{nil}
|
||||
%global _dwz_low_mem_die_limit 0
|
||||
%else
|
||||
%global debug_package %{nil}
|
||||
%endif
|
||||
|
||||
%if ! 0%{?gobuild:1}
|
||||
%define gobuild(o:) \
|
||||
go build -buildmode pie -compiler gc -tags="rpm_crashtraceback no_openssl ${BUILDTAGS:-}" -ldflags "${LDFLAGS:-} -linkmode=external -compressdwarf=false -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags'" -a -v -x %{?**};
|
||||
go build -buildmode pie -compiler gc -tags="rpm_crashtraceback no_openssl ${BUILDTAGS:-}" -ldflags "${LDFLAGS:-} -linkmode=external -compressdwarf=false -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags'" -a -v %{?**};
|
||||
%define gotest(o:) go test
|
||||
%endif
|
||||
|
||||
@ -24,12 +22,13 @@ go build -buildmode pie -compiler gc -tags="rpm_crashtraceback no_openssl ${BUIL
|
||||
|
||||
Name: containernetworking-plugins
|
||||
Version: 0.8.7
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: CNI network plugins
|
||||
License: ASL 2.0
|
||||
URL: https://%{provider_prefix}
|
||||
Source0: https://%{provider_prefix}/archive/v%{version}.tar.gz
|
||||
ExcludeArch: ppc64 i686
|
||||
# https://fedoraproject.org/wiki/PackagingDrafts/Go#Go_Language_Architectures
|
||||
ExclusiveArch: %{go_arches}
|
||||
BuildRequires: golang >= 1.12.12-4
|
||||
BuildRequires: git
|
||||
BuildRequires: go-md2man
|
||||
@ -120,6 +119,11 @@ export GOPATH=%{buildroot}/%{gopath}:$(pwd)/vendor:%{gopath}
|
||||
%{_libexecdir}/cni/*
|
||||
|
||||
%changelog
|
||||
* Mon Dec 07 2020 Jindrich Novy <jnovy@redhat.com> - 0.8.7-3
|
||||
- use dedicated macro to build only on supported arches
|
||||
- make build logs more readable
|
||||
- always compile with debuginfo enabled
|
||||
|
||||
* Thu Nov 05 2020 Jindrich Novy <jnovy@redhat.com> - 0.8.7-2
|
||||
- attempt to fix linker error with golang-1.15
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user