]>
Commit | Line | Data |
---|---|---|
dca65dd8 ER |
1 | Summary: DWARF optimization and duplicate removal tool |
2 | Name: dwz | |
4e07ed19 | 3 | Version: 0.11 |
dca65dd8 ER |
4 | Release: 1 |
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 | |
4e07ed19 | 12 | # Source0-md5: 69944ddd03b259eace1370e94e6dd955 |
dca65dd8 ER |
13 | BuildRequires: elfutils-devel |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %description | |
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. | |
25 | ||
26 | %prep | |
27 | %setup -q | |
28 | ||
29 | %build | |
30 | %{__make} \ | |
31 | CC="%{__cc}" \ | |
32 | CFLAGS="%{rpmcflags}" \ | |
33 | prefix=%{_prefix} \ | |
34 | mandir=%{_mandir} \ | |
35 | bindir=%{_bindir} \ | |
36 | %{nil} | |
37 | ||
38 | %install | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | %{__make} install \ | |
41 | prefix=%{_prefix} \ | |
42 | mandir=%{_mandir} \ | |
43 | bindir=%{_bindir} \ | |
44 | DESTDIR=$RPM_BUILD_ROOT | |
45 | ||
46 | %clean | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %files | |
50 | %defattr(644,root,root,755) | |
51 | %doc COPYING.RUNTIME | |
52 | %attr(755,root,root) %{_bindir}/dwz | |
53 | %{_mandir}/man1/dwz.1* |