2008-02-29 18:33:20 +01:00
|
|
|
#
|
2010-05-03 17:00:10 +02:00
|
|
|
# spec file for package dwarves (Version 1.8)
|
2008-02-29 18:33:20 +01:00
|
|
|
#
|
2010-05-03 17:00:10 +02:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2008-02-29 18:33:20 +01:00
|
|
|
# This file and all modifications and additions to the pristine
|
|
|
|
# package are under the same license as the package itself.
|
|
|
|
#
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
Name: dwarves
|
2011-08-12 22:47:55 +02:00
|
|
|
URL: http://acmel.wordpress.com/
|
2008-02-29 18:33:20 +01:00
|
|
|
Summary: DWARF utilities
|
2011-08-12 22:23:09 +02:00
|
|
|
Version: 1.9
|
|
|
|
Release: 0
|
2010-05-03 17:00:10 +02:00
|
|
|
License: GPLv2
|
2011-08-12 22:23:09 +02:00
|
|
|
Group: Development/Tools/Debuggers
|
|
|
|
|
|
|
|
#Git-Clone: git://git.kernel.org/pub/scm/linux/kernel/git/acme/pahole
|
2011-08-12 22:47:55 +02:00
|
|
|
#DL-URL: http://fedorapeople.org/~acme/dwarves/
|
2010-05-03 17:00:10 +02:00
|
|
|
Source: http://fedorapeople.org/~acme/dwarves/%{name}-%{version}.tar.bz2
|
2008-02-29 18:33:20 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2008-02-29 19:21:01 +01:00
|
|
|
BuildRequires: cmake libdw-devel libdwarf-devel libebl-devel libelf-devel
|
2011-08-12 22:23:09 +02:00
|
|
|
BuildRequires: zlib-devel
|
|
|
|
# Also known by its most prominent tool
|
|
|
|
Provides: pahole = %version-%release
|
2008-02-29 18:33:20 +01:00
|
|
|
|
|
|
|
%description
|
2011-08-12 22:23:09 +02:00
|
|
|
dwarves is a set of tools that use the DWARF debugging information
|
|
|
|
inserted in ELF binaries by compilers such as GCC, used by well known
|
|
|
|
debuggers such as GDB, and more recent ones such as systemtap.
|
|
|
|
|
|
|
|
Utilities in the dwarves suite include pahole, that can be used to
|
|
|
|
find alignment holes in structs and classes in languages such as C,
|
|
|
|
C++, but not limited to these.
|
|
|
|
|
|
|
|
It also extracts other information such as CPU cacheline alignment,
|
|
|
|
helping pack those structures to achieve more cache hits.
|
|
|
|
|
|
|
|
A diff like tool, codiff can be used to compare the effects changes
|
|
|
|
in source code generate on the resulting binaries.
|
|
|
|
|
|
|
|
Another tool is pfunct, that can be used to find all sorts of
|
|
|
|
information about functions, inlines, decisions made by the compiler
|
|
|
|
about inlining, etc.
|
|
|
|
|
|
|
|
The documentation about ctracer is not updated to the latest
|
|
|
|
developments: it now generates systemtap scripts, stay tuned for
|
|
|
|
improvements in this area!
|
|
|
|
|
2008-02-29 18:33:20 +01:00
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Arnaldo Carvalho de Melo <acme@redhat.com>
|
|
|
|
|
|
|
|
%package -n libdwarves1
|
2008-02-29 19:21:01 +01:00
|
|
|
Summary: DWARF processing libraries of dwarves tools
|
2011-08-12 22:23:09 +02:00
|
|
|
Group: System/Libraries
|
2008-02-29 18:33:20 +01:00
|
|
|
|
|
|
|
%description -n libdwarves1
|
2011-08-12 22:23:09 +02:00
|
|
|
This package contains the libdwarves shared library for the dwarves
|
|
|
|
toolset, providing processing for DWARF, a debugging data format
|
|
|
|
for ELF files.
|
|
|
|
|
|
|
|
dwarves is a set of tools that use the DWARF debugging information
|
|
|
|
inserted in ELF binaries by compilers such as GCC, used by well known
|
|
|
|
debuggers such as GDB, and more recent ones such as systemtap.
|
2008-02-29 18:33:20 +01:00
|
|
|
|
|
|
|
%package -n libdwarves-devel
|
2008-02-29 19:21:01 +01:00
|
|
|
Summary: DWARF processing library development files
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: libdwarves1 = %{version}-%{release}
|
2008-02-29 18:33:20 +01:00
|
|
|
|
|
|
|
%description -n libdwarves-devel
|
2011-08-12 22:23:09 +02:00
|
|
|
This package contains the development files for libdwarves, a library
|
|
|
|
for processing DWARF, a debugging data format for ELF files.
|
2008-02-29 18:33:20 +01:00
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Arnaldo Carvalho de Melo <acme@redhat.com>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -c
|
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -D__LIB=%{_lib} .
|
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR=%{buildroot} install
|
|
|
|
|
|
|
|
%post -n libdwarves1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libdwarves1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc README NEWS
|
|
|
|
%{_bindir}/*
|
2011-08-12 22:23:09 +02:00
|
|
|
%{_mandir}/man*/*
|
2008-02-29 18:33:20 +01:00
|
|
|
|
|
|
|
%files -n libdwarves1
|
|
|
|
%defattr(-,root,root)
|
2011-08-12 22:23:09 +02:00
|
|
|
%{_libdir}/*.so.*
|
2008-02-29 18:33:20 +01:00
|
|
|
|
|
|
|
%files -n libdwarves-devel
|
|
|
|
%defattr(-,root,root)
|
2011-08-12 22:23:09 +02:00
|
|
|
%{_libdir}/*.so
|
2008-02-29 18:33:20 +01:00
|
|
|
%{_includedir}/*
|
2011-08-12 22:23:09 +02:00
|
|
|
%{_datadir}/%{name}
|
2008-02-29 18:33:20 +01:00
|
|
|
|
|
|
|
%changelog
|