Blame SPECS/dwz.spec

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