Blame SPECS/dwz.spec

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