Blame SPECS/dwz.spec

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