!242 [sync] PR-239: Delete post, preun, postun for help package

From: @openeuler-sync-bot 
Reviewed-by: @eastb233 
Signed-off-by: @eastb233
This commit is contained in:
openeuler-ci-bot 2023-09-06 02:26:42 +00:00 committed by Gitee
commit 4ca030ed54
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,7 +1,7 @@
Summary: Binary utilities Summary: Binary utilities
Name: binutils Name: binutils
Version: 2.34 Version: 2.34
Release: 27 Release: 28
License: GPLv3+ License: GPLv3+
URL: https://sourceware.org/binutils URL: https://sourceware.org/binutils
@ -275,42 +275,15 @@ fi
/sbin/ldconfig /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 %preun
if [ $1 = 0 ]; then if [ $1 = 0 ]; then
%{_sbindir}/alternatives --remove ld %{_bindir}/ld.bfd %{_sbindir}/alternatives --remove ld %{_bindir}/ld.bfd
%{_sbindir}/alternatives --remove ld %{_bindir}/ld.gold %{_sbindir}/alternatives --remove ld %{_bindir}/ld.gold
fi 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 %postun
/sbin/ldconfig /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 %files -f binutils.lang
%doc README %doc README
@ -342,6 +315,9 @@ fi
%{_infodir}/bfd*info* %{_infodir}/bfd*info*
%changelog %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 * Thu Aug 31 2023 liningjie <liningjie@xfusion.com> - 2.34-27
- fix CVE-2022-48064 - fix CVE-2022-48064