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