!241 [sync] PR-237: Delete post, preun, postun for help package
From: @openeuler-sync-bot Reviewed-by: @eastb233 Signed-off-by: @eastb233
This commit is contained in:
commit
7a4c98622b
@ -1,7 +1,7 @@
|
||||
Summary: Binary utilities
|
||||
Name: binutils
|
||||
Version: 2.37
|
||||
Release: 22
|
||||
Release: 23
|
||||
License: GPLv3+
|
||||
URL: https://sourceware.org/binutils
|
||||
|
||||
@ -331,12 +331,6 @@ fi
|
||||
|
||||
/sbin/ldconfig
|
||||
|
||||
%post help
|
||||
for info in as.info.gz binutils.info.gz gprof.info.gz ld.info.gz
|
||||
do
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/$info
|
||||
done
|
||||
|
||||
%preun
|
||||
if [ $1 = 0 ]; then
|
||||
%{_sbindir}/alternatives --remove ld %{_bindir}/ld.bfd
|
||||
@ -346,30 +340,9 @@ if [ $1 = 0 ]; then
|
||||
%endif
|
||||
fi
|
||||
|
||||
%preun help
|
||||
if [ $1 = 0 ]; then
|
||||
if [ -e %{_infodir}/binutils.info.gz ]
|
||||
then
|
||||
for info in as.info.gz binutils.info.gz gprof.info.gz ld.info.gz
|
||||
do
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/$info
|
||||
done
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
%postun
|
||||
/sbin/ldconfig
|
||||
|
||||
%postun help
|
||||
if [ -e %{_infodir}/binutils.info.gz ]
|
||||
then
|
||||
for info in as.info.gz binutils.info.gz gprof.info.gz ld.info.gz
|
||||
do
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/$info
|
||||
done
|
||||
fi
|
||||
|
||||
|
||||
%files -f binutils.lang
|
||||
%doc README
|
||||
@ -403,6 +376,9 @@ fi
|
||||
%{_infodir}/bfd*info*
|
||||
|
||||
%changelog
|
||||
* Tue Sep 05 2023 eastb233 <xiezhiheng@huawei.com> - 2.37-23
|
||||
- Delete post, preun, postun for help package
|
||||
|
||||
* Thu Aug 31 2023 eastb233 <xiezhiheng@huawei.com> -2.37-22
|
||||
- fix CVE-2022-4285
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user