!65 elfutils: change permission to 750 and move debug tools into extra package
From: @hubin95 Reviewed-by: @xiezhipeng1 Signed-off-by: @xiezhipeng1
This commit is contained in:
commit
4deb1c0018
@ -1,7 +1,7 @@
|
|||||||
# -*- rpm-spec from http://elfutils.org/ -*-
|
# -*- rpm-spec from http://elfutils.org/ -*-
|
||||||
Name: elfutils
|
Name: elfutils
|
||||||
Version: 0.187
|
Version: 0.187
|
||||||
Release: 6
|
Release: 7
|
||||||
Summary: A collection of utilities and DSOs to handle ELF files and DWARF data
|
Summary: A collection of utilities and DSOs to handle ELF files and DWARF data
|
||||||
URL: http://elfutils.org/
|
URL: http://elfutils.org/
|
||||||
License: GPLv3+ and (GPLv2+ or LGPLv3+)
|
License: GPLv3+ and (GPLv2+ or LGPLv3+)
|
||||||
@ -15,6 +15,7 @@ Patch3: Get-instance-correctly-for-eu-ar-N-option.patch
|
|||||||
Requires: elfutils-libelf = %{version}-%{release}
|
Requires: elfutils-libelf = %{version}-%{release}
|
||||||
Requires: elfutils-libs = %{version}-%{release}
|
Requires: elfutils-libs = %{version}-%{release}
|
||||||
Requires: glibc >= 2.7 libstdc++
|
Requires: glibc >= 2.7 libstdc++
|
||||||
|
Recommends: elfutils-extra
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-root
|
BuildRoot: %{_tmppath}/%{name}-root
|
||||||
BuildRequires: gcc >= 4.1.2-33 m4 zlib-devel gdb-headless gcc-c++
|
BuildRequires: gcc >= 4.1.2-33 m4 zlib-devel gdb-headless gcc-c++
|
||||||
@ -33,8 +34,7 @@ BuildRequires: pkgconfig(libarchive) >= 3.1.2
|
|||||||
Elfutils is a collection of utilities, including stack (to show
|
Elfutils is a collection of utilities, including stack (to show
|
||||||
backtraces), nm (for listing symbols from object files), size
|
backtraces), nm (for listing symbols from object files), size
|
||||||
(for listing the section sizes of an object or archive file),
|
(for listing the section sizes of an object or archive file),
|
||||||
strip (for discarding symbols), readelf (to see the raw ELF file
|
strip (for discarding symbols), elflint (to check for well-formed ELF files) and
|
||||||
structures), elflint (to check for well-formed ELF files) and
|
|
||||||
elfcompress (to compress or decompress ELF sections).
|
elfcompress (to compress or decompress ELF sections).
|
||||||
Also included are helper libraries which implement DWARF, ELF,
|
Also included are helper libraries which implement DWARF, ELF,
|
||||||
and machine-specific ELF handling and process introspection.
|
and machine-specific ELF handling and process introspection.
|
||||||
@ -49,6 +49,15 @@ interprocess services, communication and introspection
|
|||||||
(like synchronisation, signaling, debugging, tracing and
|
(like synchronisation, signaling, debugging, tracing and
|
||||||
profiling) of processes.
|
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 libs
|
%package libs
|
||||||
Summary: Libraries to handle compiled objects
|
Summary: Libraries to handle compiled objects
|
||||||
License: GPLv2+ or LGPLv3+
|
License: GPLv2+ or LGPLv3+
|
||||||
@ -138,7 +147,7 @@ Requires(post): systemd
|
|||||||
Requires(preun): systemd
|
Requires(preun): systemd
|
||||||
Requires(postun): systemd
|
Requires(postun): systemd
|
||||||
Requires(pre): shadow-utils
|
Requires(pre): shadow-utils
|
||||||
# To extract .dep files with a bsdtar (=libarchive) subshell
|
# To extract .deb files with a bsdtar (=libarchive) subshell
|
||||||
Requires: bsdtar
|
Requires: bsdtar
|
||||||
|
|
||||||
%description debuginfod-client
|
%description debuginfod-client
|
||||||
@ -204,23 +213,20 @@ fi
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%license COPYING COPYING-GPLV2 COPYING-LGPLV3
|
%license COPYING COPYING-GPLV2 COPYING-LGPLV3
|
||||||
%doc README TODO CONTRIBUTING
|
%doc README TODO CONTRIBUTING
|
||||||
%{_bindir}/eu-addr2line
|
|
||||||
%{_bindir}/eu-ar
|
|
||||||
%{_bindir}/eu-elfclassify
|
|
||||||
%{_bindir}/eu-elfcmp
|
|
||||||
%{_bindir}/eu-elfcompress
|
%{_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-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
|
||||||
|
|
||||||
%files libs
|
%files libs
|
||||||
%license COPYING-GPLV2 COPYING-LGPLV3
|
%license COPYING-GPLV2 COPYING-LGPLV3
|
||||||
@ -229,6 +235,11 @@ fi
|
|||||||
%{_libdir}/libasm.so.*
|
%{_libdir}/libasm.so.*
|
||||||
%{_libdir}/libdw.so.*
|
%{_libdir}/libdw.so.*
|
||||||
|
|
||||||
|
%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
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_includedir}/dwarf.h
|
%{_includedir}/dwarf.h
|
||||||
@ -307,6 +318,12 @@ exit 0
|
|||||||
%systemd_postun_with_restart debuginfod.service
|
%systemd_postun_with_restart debuginfod.service
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Sep 20 2022 hubin <hubin73@huawei.com> - 0.187-7
|
||||||
|
- Type:bugfix
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:change permission to 750 and move debug tools into extra package
|
||||||
|
|
||||||
* Fri Sep 9 2022 fuanan <fuanan3@h-partners.com> - 0.187-6
|
* Fri Sep 9 2022 fuanan <fuanan3@h-partners.com> - 0.187-6
|
||||||
- Fix "/usr/lib64/libdebuginfod.so.1" not found when uninstall elfutils-debuginfod-client-devel
|
- Fix "/usr/lib64/libdebuginfod.so.1" not found when uninstall elfutils-debuginfod-client-devel
|
||||||
- Fix Obsoletes in spec
|
- Fix Obsoletes in spec
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user