|
|
c71fe8 |
%global __python /usr/bin/python3
|
|
|
c71fe8 |
%{?scl:%scl_package gcc}
|
|
|
c71fe8 |
Summary: DWARF optimization and duplicate removal tool
|
|
|
c71fe8 |
Name: %{?scl_prefix}dwz
|
|
|
c71fe8 |
Version: 0.14
|
|
|
c71fe8 |
Release: 4%{?dist}
|
|
|
c71fe8 |
License: GPLv2+ and GPLv3+
|
|
|
c71fe8 |
# git archive --format=tar --remote=git://sourceware.org/git/dwz.git \
|
|
|
c71fe8 |
# --prefix=dwz-%%{version}/ dwz-%%{version} \
|
|
|
c71fe8 |
# | bzip2 -9 > dwz-%%{version}.tar.bz2
|
|
|
c71fe8 |
Source: dwz-%{version}.tar.xz
|
|
|
c71fe8 |
BuildRequires: gcc, gcc-c++, gdb, elfutils-libelf-devel, dejagnu
|
|
|
c71fe8 |
BuildRequires: make
|
|
|
c71fe8 |
%{?scl:Requires:%scl_runtime}
|
|
|
c71fe8 |
|
|
|
c71fe8 |
%description
|
|
|
c71fe8 |
The dwz package contains a program that attempts to optimize DWARF
|
|
|
c71fe8 |
debugging information contained in ELF shared libraries and ELF executables
|
|
|
c71fe8 |
for size, by replacing DWARF information representation with equivalent
|
|
|
c71fe8 |
smaller representation where possible and by reducing the amount of
|
|
|
c71fe8 |
duplication using techniques from DWARF standard appendix E - creating
|
|
|
c71fe8 |
DW_TAG_partial_unit compilation units (CUs) for duplicated information
|
|
|
c71fe8 |
and using DW_TAG_imported_unit to import it into each CU that needs it.
|
|
|
c71fe8 |
|
|
|
c71fe8 |
%prep
|
|
|
c71fe8 |
%setup -q -n dwz
|
|
|
c71fe8 |
|
|
|
c71fe8 |
%build
|
|
|
c71fe8 |
%make_build CFLAGS='%{optflags}' LDFLAGS='%{build_ldflags}' \
|
|
|
c71fe8 |
prefix=%{_prefix} mandir=%{_mandir} bindir=%{_bindir}
|
|
|
c71fe8 |
|
|
|
c71fe8 |
%install
|
|
|
c71fe8 |
rm -rf %{buildroot}
|
|
|
c71fe8 |
%make_install prefix=%{_prefix} mandir=%{_mandir} bindir=%{_bindir}
|
|
|
c71fe8 |
|
|
|
c71fe8 |
%check
|
|
|
c71fe8 |
make check
|
|
|
c71fe8 |
|
|
|
c71fe8 |
%files
|
|
|
c71fe8 |
%license COPYING COPYING3 COPYING.RUNTIME
|
|
|
c71fe8 |
%{_bindir}/dwz
|
|
|
c71fe8 |
%{_mandir}/man1/dwz.1*
|
|
|
c71fe8 |
|
|
|
c71fe8 |
%changelog
|
|
|
c71fe8 |
* Mon Jun 13 2022 Marek Polacek <polacek@redhat.com> 0.14-4
|
|
|
c71fe8 |
- NVR bump and rebuild
|
|
|
c71fe8 |
|
|
|
c71fe8 |
* Tue May 11 2021 Marek Polacek <polacek@redhat.com> 0.14-2
|
|
|
c71fe8 |
- update to dwz 0.14 (#1841830)
|
|
|
c71fe8 |
- add make check
|
|
|
c71fe8 |
- use make macros
|
|
|
c71fe8 |
|
|
|
c71fe8 |
* Wed May 20 2020 Marek Polacek <polacek@redhat.com> 0.12-1
|
|
|
c71fe8 |
- new package
|