From 34bf0d5e8bbb5c563ed4d597772f957050251d05 Mon Sep 17 00:00:00 2001 From: h30032433 Date: Tue, 10 Sep 2024 10:02:13 +0800 Subject: [PATCH] add binutils-help to keep consistent with the old version (cherry picked from commit 416b50b637a486499815018b0bd1d7511fa35f56) --- binutils.spec | 52 +++++++++++++++++++++++++++++---------------------- 1 file changed, 30 insertions(+), 22 deletions(-) diff --git a/binutils.spec b/binutils.spec index 075e215..b1a64f6 100644 --- a/binutils.spec +++ b/binutils.spec @@ -2,7 +2,7 @@ Summary: A GNU collection of binary utilities Name: binutils%{?_with_debug:-debug} Version: 2.41 -Release: 8 +Release: 9 License: GPL-3.0-or-later AND (GPL-3.0-or-later WITH Bison-exception-2.2) AND (LGPL-2.0-or-later WITH GCC-exception-2.0) AND BSD-3-Clause AND GFDL-1.3-or-later AND GPL-2.0-or-later AND LGPL-2.1-or-later AND LGPL-2.0-or-later URL: https://sourceware.org/binutils @@ -368,6 +368,16 @@ using libelf instead of BFD. #---------------------------------------------------------------------------- +%if %{with docs} +%package help +Summary: Manual and information files + +%description help +This package contains binutils manual and information files. +%endif + +#---------------------------------------------------------------------------- + %if %{with gprofng} %package gprofng @@ -1152,24 +1162,6 @@ exit 0 %exclude %dir %{_exec_prefix}/lib/debug -%if %{with docs} -%{_mandir}/man1/ -%exclude %{_mandir}/man1/gp-* -%exclude %{_mandir}/man1/gprofng* -%{_infodir}/as.info.* -%{_infodir}/binutils.info.* -%{_infodir}/ld.info.* -%{_infodir}/ldint.info.* -%{_infodir}/bfd.info.* -%{_infodir}/ctf-spec*.info.* -%{_infodir}/gprof.info.* -%{_infodir}/sframe-spec.info.* - -%if %{with gprofng} -%exclude %{_infodir}/gprofng* -%endif -%endif - %if %{enable_shared} %{_libdir}/lib*.so %{_libdir}/lib*.so.* @@ -1196,13 +1188,26 @@ exit 0 %exclude %{_libdir}/lib*.la %endif +%if %{with docs} +%files help +%{_mandir}/man1/* +%{_infodir}/as.info.* +%{_infodir}/binutils.info.* +%{_infodir}/ld.info.* +%{_infodir}/ldint.info.* +%{_infodir}/bfd.info.* +%{_infodir}/ctf-spec*.info.* +%{_infodir}/gprof.info.* +%{_infodir}/sframe-spec.info.* +%if %{with gprofng} +%{_infodir}/gprofng.info.* +%endif +%endif + %if %{with gprofng} %files gprofng %{_bindir}/gp-* %{_bindir}/gprofng -%{_mandir}/man1/gp-* -%{_mandir}/man1/gprofng* -%{_infodir}/gprofng.info.* %dir %{_libdir}/gprofng %{_libdir}/gprofng/* %{_sysconfdir}/gprofng.rc @@ -1238,6 +1243,9 @@ exit 0 #---------------------------------------------------------------------------- %changelog +* Thu Sep 19 2024 huyubiao - 2.41-9 +- add binutils-help to keep consistent with the old version + * Mon Sep 2 2024 huyubiao - 2.41-8 - delete binutils-gold package and ld.gold move to binutils package -- Gitee