Blame SPECS/dwz.spec

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