1 Summary: DWARF optimization and duplicate removal tool
5 License: GPL v2+ and GPL v3+
6 Group: Development/Tools
7 # git archive --format=tar --remote=git://sourceware.org/git/dwz.git \
8 # --prefix=%{name}-%{version}/ %{name}-%{version} \
9 # | bzip2 -9 > %{name}-%{version}.tar.bz2
10 # using fedora tarballs from http://pkgs.fedoraproject.org/repo/pkgs/dwz/
11 Source0: %{name}-%{version}.tar.bz2
12 # Source0-md5: 69944ddd03b259eace1370e94e6dd955
13 BuildRequires: elfutils-devel
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 The dwz package contains a program that attempts to optimize DWARF
18 debugging information contained in ELF shared libraries and ELF
19 executables for size, by replacing DWARF information representation
20 with equivalent smaller representation where possible and by reducing
21 the amount of duplication using techniques from DWARF standard
22 appendix E - creating DW_TAG_partial_unit compilation units (CUs) for
23 duplicated information and using DW_TAG_imported_unit to import it
24 into each CU that needs it.
32 CFLAGS="%{rpmcflags}" \
39 rm -rf $RPM_BUILD_ROOT
44 DESTDIR=$RPM_BUILD_ROOT
47 rm -rf $RPM_BUILD_ROOT
50 %defattr(644,root,root,755)
52 %attr(755,root,root) %{_bindir}/dwz
53 %{_mandir}/man1/dwz.1*