Blame SPECS/dwz.spec

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