!44 strip binary files

From: @zmr_2020 
Reviewed-by: @xuxuepeng, @taotao-sauce, @zhangsong234 
Signed-off-by: @zhangsong234, @xuxuepeng
This commit is contained in:
openeuler-ci-bot 2024-06-21 10:39:58 +00:00 committed by Gitee
commit aa59b30467
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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 <zhang_jian7@hoperun.com> - 1.1.1-5
- strip binary files
* Thu Dec 28 2023 yaoxin <yao_xin001@hoperun.com> - 1.1.1-4
- Rebuild for golang cves: CVE-2023-24534,CVE-2023-24536,CVE-2023-24537 and CVE-2023-24538