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 82b4b465edb398ed7beba03a2db0aa7962446b98)
This commit is contained in:
eastb233 2023-09-05 20:17:27 +08:00 committed by openeuler-sync-bot
parent 3e6448a8cb
commit b4c520f7a7

View File

@ -1,7 +1,7 @@
Summary: Binary utilities
Name: binutils
Version: 2.34
Release: 27
Release: 28
License: GPLv3+
URL: https://sourceware.org/binutils
@ -275,42 +275,15 @@ 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
%{_sbindir}/alternatives --remove ld %{_bindir}/ld.gold
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
@ -342,6 +315,9 @@ fi
%{_infodir}/bfd*info*
%changelog
* Tue Sep 05 2023 eastb233 <xiezhiheng@huawei.com> - 2.34-28
- Delete post, preun, postun for help package
* Thu Aug 31 2023 liningjie <liningjie@xfusion.com> - 2.34-27
- fix CVE-2022-48064