From 0fee3c89482d9df9fa4fc60408d6c3cc5e2596ff 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. (cherry picked from commit 116c17f5d29e214e989c7d2bd0475798e03c869a) --- binutils.spec | 32 ++++---------------------------- 1 file changed, 4 insertions(+), 28 deletions(-) diff --git a/binutils.spec b/binutils.spec index d8cbaf5..c44e037 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 @@ -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 - 2.37-23 +- Delete post, preun, postun for help package + * Thu Aug 31 2023 eastb233 -2.37-22 - fix CVE-2022-4285 -- Gitee