From b4c520f7a73b801c9d7acf1866e0b9396f2f2f93 Mon Sep 17 00:00:00 2001 From: eastb233 Date: Tue, 5 Sep 2023 20:17:27 +0800 Subject: [PATCH] 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) --- binutils.spec | 32 ++++---------------------------- 1 file changed, 4 insertions(+), 28 deletions(-) diff --git a/binutils.spec b/binutils.spec index ac21cb4..af9cfb6 100644 --- a/binutils.spec +++ b/binutils.spec @@ -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 - 2.34-28 +- Delete post, preun, postun for help package + * Thu Aug 31 2023 liningjie - 2.34-27 - fix CVE-2022-48064 -- Gitee