From 116c17f5d29e214e989c7d2bd0475798e03c869a Mon Sep 17 00:00:00 2001 From: eastb233 Date: Tue, 5 Sep 2023 20:03:16 +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. --- binutils.spec | 32 ++++---------------------------- 1 file changed, 4 insertions(+), 28 deletions(-) diff --git a/binutils.spec b/binutils.spec index f4c7ee3..a58614f 100644 --- a/binutils.spec +++ b/binutils.spec @@ -1,7 +1,7 @@ Summary: Binary utilities Name: binutils Version: 2.37 -Release: 22 +Release: 23 License: GPLv3+ URL: https://sourceware.org/binutils @@ -332,12 +332,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 @@ -347,30 +341,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 @@ -404,6 +377,9 @@ fi %{_infodir}/bfd*info* %changelog +* Tue Sep 05 2023 eastb233 - 2.37-23 +- Delete post, preun, postun for help package + * Thu Aug 31 2023 eastb233 -2.37-22 - fix CVE-2022-4285 -- Gitee