2012-07-06 13:26:32 +02:00
|
|
|
#
|
2015-01-11 19:54:18 +01:00
|
|
|
# spec file for package dwz
|
2012-07-06 13:26:32 +02:00
|
|
|
#
|
2018-03-14 14:59:09 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-07-06 13:26:32 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2017-02-23 13:22:03 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2012-07-06 13:26:32 +02:00
|
|
|
Name: dwz
|
2016-11-29 09:51:59 +01:00
|
|
|
Version: 0.12
|
2017-02-23 13:22:03 +01:00
|
|
|
Release: 0
|
2015-01-11 19:54:18 +01:00
|
|
|
Summary: DWARF optimization and duplicate removal tool
|
|
|
|
#Git-Clone: git://sourceware.org/git/dwz
|
|
|
|
#Git-Web: https://sourceware.org/git/?p=dwz.git;a=summary
|
2018-03-14 14:59:09 +01:00
|
|
|
License: GPL-2.0-or-later AND LGPL-2.0-or-later
|
|
|
|
Group: Development/Tools/Building
|
|
|
|
Source: %{name}-%{version}.tar.xz
|
|
|
|
Patch0: dwz-0.12-ignore-nobits.patch
|
2012-07-06 13:26:32 +02:00
|
|
|
BuildRequires: libelf-devel
|
2015-01-11 19:54:18 +01:00
|
|
|
BuildRequires: xz
|
2012-07-06 13:26:32 +02:00
|
|
|
|
|
|
|
%description
|
2015-01-11 19:54:18 +01:00
|
|
|
dwz optimizes DWARF debugging information contained in ELF shared
|
|
|
|
libraries and executables for size, by replacing DWARF information
|
|
|
|
representation with equivalent smaller representation where possible,
|
|
|
|
and by reducing the amount of duplication using techniques from the
|
|
|
|
DWARF standard appendix E - creating DW_TAG_partial_unit compilation
|
|
|
|
units (CUs) for duplicated information and using DW_TAG_imported_unit
|
|
|
|
to import it into each CU that needs it.
|
2012-07-06 13:26:32 +02:00
|
|
|
|
|
|
|
The tool handles DWARF 32-bit format debugging sections of versions
|
|
|
|
2, 3 and 4 and GNU extensions on top of those, though using DWARF 4
|
|
|
|
or worst case DWARF 3 is strongly recommended.
|
|
|
|
|
|
|
|
When not using the -m option (multifile mode), GDB CVS snapshot (soon to be
|
|
|
|
7.5) is sufficient, when using -m option, GDB from a git branch
|
|
|
|
http://sources.redhat.com/git/?p=archer.git;a=shortlog;h=refs/heads/archer-tromey-dwz-multifile
|
|
|
|
is needed.
|
|
|
|
|
|
|
|
%prep
|
2018-03-14 14:59:09 +01:00
|
|
|
%setup -q -n %{name}
|
|
|
|
%patch0 -p1
|
2012-07-06 13:26:32 +02:00
|
|
|
|
|
|
|
%build
|
2018-03-14 14:59:09 +01:00
|
|
|
make %{?_smp_mflags} CFLAGS="%{optflags}"
|
2012-07-06 13:26:32 +02:00
|
|
|
|
|
|
|
%install
|
2015-01-11 19:54:18 +01:00
|
|
|
%make_install
|
2012-07-06 13:26:32 +02:00
|
|
|
|
|
|
|
%files
|
2018-03-14 14:59:09 +01:00
|
|
|
%license COPYING
|
2012-07-06 13:26:32 +02:00
|
|
|
%{_bindir}/dwz
|
2018-03-14 14:59:09 +01:00
|
|
|
%{_mandir}/man1/dwz.1%{?ext_man}
|
2012-07-06 13:26:32 +02:00
|
|
|
|
|
|
|
%changelog
|