Blame SPECS/dwz.spec

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