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 0548e7a6e5dff3d2e35f1083469192e6f31473bf)
This commit is contained in:
parent
adb530b92b
commit
555fcebc87
21
golang.spec
21
golang.spec
@ -41,11 +41,7 @@
|
|||||||
%global fail_on_tests 1
|
%global fail_on_tests 1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%ifarch x86_64 aarch64
|
|
||||||
%global shared 1
|
|
||||||
%else
|
|
||||||
%global shared 0
|
%global shared 0
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifarch x86_64
|
%ifarch x86_64
|
||||||
%global race 1
|
%global race 1
|
||||||
@ -62,7 +58,7 @@
|
|||||||
|
|
||||||
Name: golang
|
Name: golang
|
||||||
Version: 1.15.7
|
Version: 1.15.7
|
||||||
Release: 16
|
Release: 17
|
||||||
Summary: The Go Programming Language
|
Summary: The Go Programming Language
|
||||||
License: BSD and Public Domain
|
License: BSD and Public Domain
|
||||||
URL: https://golang.org/
|
URL: https://golang.org/
|
||||||
@ -431,7 +427,12 @@ if [ $1 = 0 ]; then
|
|||||||
%{_sbindir}/update-alternatives --remove go %{goroot}/bin/go
|
%{_sbindir}/update-alternatives --remove go %{goroot}/bin/go
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
%if %{shared}
|
||||||
|
%files -f go-pkg.list -f go-shared.list
|
||||||
|
%else
|
||||||
%files -f go-pkg.list
|
%files -f go-pkg.list
|
||||||
|
%endif
|
||||||
|
|
||||||
%doc AUTHORS CONTRIBUTORS LICENSE PATENTS
|
%doc AUTHORS CONTRIBUTORS LICENSE PATENTS
|
||||||
%doc %{goroot}/VERSION
|
%doc %{goroot}/VERSION
|
||||||
%dir %{goroot}/doc
|
%dir %{goroot}/doc
|
||||||
@ -441,6 +442,7 @@ fi
|
|||||||
%exclude %{goroot}/doc/
|
%exclude %{goroot}/doc/
|
||||||
%exclude %{goroot}/misc/
|
%exclude %{goroot}/misc/
|
||||||
%exclude %{goroot}/test/
|
%exclude %{goroot}/test/
|
||||||
|
%exclude %goroot}/lib/
|
||||||
%{goroot}/*
|
%{goroot}/*
|
||||||
%dir %{gopath}
|
%dir %{gopath}
|
||||||
%dir %{gopath}/src
|
%dir %{gopath}/src
|
||||||
@ -451,12 +453,19 @@ fi
|
|||||||
%dir %{gopath}/src/golang.org
|
%dir %{gopath}/src/golang.org
|
||||||
%dir %{gopath}/src/golang.org/x
|
%dir %{gopath}/src/golang.org/x
|
||||||
|
|
||||||
%files help -f go-docs.list -f go-shared.list
|
%files help -f go-docs.list
|
||||||
|
|
||||||
%files devel -f go-tests.list -f go-misc.list -f go-src.list
|
%files devel -f go-tests.list -f go-misc.list -f go-src.list
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|
||||||
|
* Tue Aug 30 2022 hanchao<hanchao47@huawei.com> - 1.15.7-17
|
||||||
|
- Type:bugfix
|
||||||
|
- CVE:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC: golang: modify the golang.spec to remove unnecessary files
|
||||||
|
from golang-help package
|
||||||
|
|
||||||
* Tue Aug 18 2022 hanchao<hanchao47@huawei.com> - 1.15.7-16
|
* Tue Aug 18 2022 hanchao<hanchao47@huawei.com> - 1.15.7-16
|
||||||
- fix CVE-2022-29804,CVE-2022-29526
|
- fix CVE-2022-29804,CVE-2022-29526
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user