Blame SPECS/dwz.spec

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