Blame SPECS/dwz.spec

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