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