Blame SPECS/dwz.spec

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