Blame SPECS/dwz.spec

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