Delete post, preun, postun for help package

I think it is useless to do it because these info files
are placed under standard info dir and they can be read
by info command directly.

(cherry picked from commit 116c17f5d29e214e989c7d2bd0475798e03c869a)
This commit is contained in:
eastb233 2023-09-05 20:03:16 +08:00 committed by openeuler-sync-bot
parent b6175e60c1
commit 9f3d1dca8d

View File

@ -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