From df1c8ae75a3704edb699ff842e81f48f8a40b690 Mon Sep 17 00:00:00 2001 From: panxiaohe Date: Thu, 1 Sep 2022 15:32:25 +0800 Subject: [PATCH] change the permission of eu-* to 750 and move some eu-* to elfutils-extra --- elfutils.spec | 54 +++++++++++++++++++++++++++++++++------------------ 1 file changed, 35 insertions(+), 19 deletions(-) diff --git a/elfutils.spec b/elfutils.spec index d8204c8..cae71ed 100644 --- a/elfutils.spec +++ b/elfutils.spec @@ -1,7 +1,7 @@ # -*- rpm-spec from http://elfutils.org/ -*- Name: elfutils Version: 0.180 -Release: 8 +Release: 9 Summary: A collection of utilities and DSOs to handle ELF files and DWARF data URL: http://elfutils.org/ License: GPLv3+ and (GPLv2+ or LGPLv3+) @@ -15,6 +15,7 @@ Patch3: Get-instance-correctly-for-eu-ar-N-option.patch Provides: elfutils-libelf elfutils-default-yama-scope default-yama-scope elfutils-libs Obsoletes: elfutils-libelf elfutils-default-yama-scope elfutils-libs Requires: glibc >= 2.7 libstdc++ +Recommends: elfutils-extra BuildRoot: %{_tmppath}/%{name}-root BuildRequires: gcc >= 4.1.2-33 m4 zlib-devel gdb-headless gcc-c++ @@ -35,8 +36,7 @@ BuildRequires: pkgconfig(libarchive) >= 3.1.2 Elfutils is a collection of utilities, including stack (to show backtraces), nm (for listing symbols from object files), size (for listing the section sizes of an object or archive file), -strip (for discarding symbols), readelf (to see the raw ELF file -structures), elflint (to check for well-formed ELF files) and +strip (for discarding symbols), elflint (to check for well-formed ELF files) and elfcompress (to compress or decompress ELF sections). Also included are helper libraries which implement DWARF, ELF, and machine-specific ELF handling and process introspection. @@ -51,6 +51,15 @@ interprocess services, communication and introspection (like synchronisation, signaling, debugging, tracing and profiling) of processes. +%package extra +Summary: extra package including debug tools. +Provides: elfutils-extra +Requires: elfutils = %{version}-%{release} + +%description extra +The extra package contains debug tools. +readelf - to see the raw ELF file structures + %package devel Summary: Development libraries to handle compiled objects. License: GPLv2+ or LGPLv3+ @@ -89,7 +98,7 @@ Requires(post): systemd Requires(preun): systemd Requires(postun): systemd Requires(pre): shadow-utils -# To extract .dep files with a bsdtar (=libarchive) subshell +# To extract .deb files with a bsdtar (=libarchive) subshell Requires: bsdtar %description debuginfod-client @@ -153,23 +162,20 @@ rm -rf ${RPM_BUILD_ROOT} %defattr(-,root,root) %license COPYING COPYING-GPLV2 COPYING-LGPLV3 %doc README TODO CONTRIBUTING -%{_bindir}/eu-addr2line -%{_bindir}/eu-ar -%{_bindir}/eu-elfclassify -%{_bindir}/eu-elfcmp %{_bindir}/eu-elfcompress -%{_bindir}/eu-elflint -%{_bindir}/eu-findtextrel -%{_bindir}/eu-make-debug-archive -%{_bindir}/eu-nm -%{_bindir}/eu-objdump -%{_bindir}/eu-ranlib -%{_bindir}/eu-readelf -%{_bindir}/eu-size -%{_bindir}/eu-stack -%{_bindir}/eu-strings %{_bindir}/eu-strip -%{_bindir}/eu-unstrip +%attr(750,root,root) %{_bindir}/eu-addr2line +%attr(750,root,root) %{_bindir}/eu-ar +%attr(750,root,root) %{_bindir}/eu-elfclassify +%attr(750,root,root) %{_bindir}/eu-elfcmp +%attr(750,root,root) %{_bindir}/eu-elflint +%attr(750,root,root) %{_bindir}/eu-findtextrel +%attr(750,root,root) %{_bindir}/eu-make-debug-archive +%attr(750,root,root) %{_bindir}/eu-ranlib +%attr(750,root,root) %{_bindir}/eu-size +%attr(750,root,root) %{_bindir}/eu-stack +%attr(750,root,root) %{_bindir}/eu-strings +%attr(750,root,root) %{_bindir}/eu-unstrip %{_libdir}/libasm-%{version}.so %{_libdir}/libasm.so.* %{_libdir}/libdw-%{version}.so @@ -180,6 +186,11 @@ rm -rf ${RPM_BUILD_ROOT} %{_sysctldir}/10-default-yama-scope.conf %config(noreplace) /etc/ld.so.conf.d/* +%files extra +%attr(750,root,root) %{_bindir}/eu-objdump +%attr(750,root,root) %{_bindir}/eu-readelf +%attr(750,root,root) %{_bindir}/eu-nm + %files devel %defattr(-,root,root) %{_includedir}/dwarf.h @@ -245,6 +256,11 @@ exit 0 %systemd_postun_with_restart debuginfod.service %changelog +* Thu Sep 1 2022 panxiaohe - 0.180-9 +- change the permission of eu-* to 750 +- add elfutils-extra +- move eu-objdump, eu-readelf, eu-nm to elfutils-extra + * Wed Aug 31 2022 zhangruifang - 0.180-8 - remove rpath and runpath of exec files and libraries -- Gitee