Blame SPECS/dwz.spec

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