Blame SPECS/dwz.spec

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