Blame SPECS/dwz.spec

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