From 48dfa0cdf70afab150fffebf1e0f9d2599e82b29 Mon Sep 17 00:00:00 2001 From: hanchao Date: Thu, 8 Sep 2022 21:14:05 +0800 Subject: [PATCH] golang: modify the golang.spec to remove unnecessary files from golang-help package Reason: golang-help package include unnecessary files such as shared libs. now remove those unnecessary files. (cherry picked from commit eac443ba4af3b120d548c7c68e746c2a80f3537f) --- golang.spec | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/golang.spec b/golang.spec index 9ebf77f..2102d2f 100644 --- a/golang.spec +++ b/golang.spec @@ -41,11 +41,7 @@ %global fail_on_tests 1 %endif -%ifarch x86_64 aarch64 -%global shared 1 -%else %global shared 0 -%endif %ifarch x86_64 %global race 1 @@ -66,7 +62,7 @@ Name: golang Version: 1.17.3 -Release: 7 +Release: 8 Summary: The Go Programming Language License: BSD and Public Domain URL: https://golang.org/ @@ -378,7 +374,12 @@ if [ $1 = 0 ]; then %{_sbindir}/update-alternatives --remove go %{goroot}/bin/go fi +%if %{shared} +%files -f go-pkg.list -f go-shared.list +%else %files -f go-pkg.list +%endif + %doc AUTHORS CONTRIBUTORS LICENSE PATENTS %doc %{goroot}/VERSION %dir %{goroot}/doc @@ -388,6 +389,7 @@ fi %exclude %{goroot}/doc/ %exclude %{goroot}/misc/ %exclude %{goroot}/test/ +%exclude %goroot}/lib/ %{goroot}/* %dir %{gopath} %dir %{gopath}/src @@ -398,13 +400,18 @@ fi %dir %{gopath}/src/golang.org %dir %{gopath}/src/golang.org/x -%if %{shared} -%files help -f go-docs.list -f go-shared.list -%endif +%files help -f go-docs.list %files devel -f go-tests.list -f go-misc.list -f go-src.list %changelog +* Thu Sep 8 2022 hanchao - 1.17.3-8 +- Type:bugfix +- CVE:NA +- SUG:NA +- DESC: golang: modify the golang.spec to remove unnecessary files + from golang-help package + * Thu Aug 18 2022 hanchao - 1.17.3-7 - Type:CVE - CVE:CVE-2022-29804,CVE-2022-29526 -- Gitee