From f0838ca529d0b71ad8de8fddf5970c8e06f50f79 Mon Sep 17 00:00:00 2001 From: zmr_2020 Date: Fri, 21 Jun 2024 16:31:38 +0800 Subject: [PATCH] strip binary files --- containernetworking-plugins.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/containernetworking-plugins.spec b/containernetworking-plugins.spec index 1c2fce5..293fe3c 100644 --- a/containernetworking-plugins.spec +++ b/containernetworking-plugins.spec @@ -16,7 +16,7 @@ Name: %{project}-%{repo} Version: 1.1.1 -Release: 4 +Release: 5 Summary: Libraries for use by writing CNI plugin License: ASL 2.0 URL: https://github.com/containernetworking/plugins @@ -213,6 +213,7 @@ GO111MODULE=off CGO_ENABLED=0 GOPATH=$TMPDIR go build -tags "$TAGS" \ %install install -d -p %{buildroot}%{_libexecdir}/cni/ +strip bin/* install -p -m 0755 bin/* %{buildroot}/%{_libexecdir}/cni cp %{_builddir}/cni %{buildroot}%{_libexecdir}/cni/ install -d -p %{buildroot}/%{gopath}/src/github.com/containernetworking/plugins/ @@ -330,6 +331,9 @@ export GOPATH=%{buildroot}/%{gopath}:$(pwd)/vendor:%{gopath} %changelog +* Fri Jun 21 2024 zmr_2020 - 1.1.1-5 +- strip binary files + * Thu Dec 28 2023 yaoxin - 1.1.1-4 - Rebuild for golang cves: CVE-2023-24534,CVE-2023-24536,CVE-2023-24537 and CVE-2023-24538