aboutsummaryrefslogtreecommitdiff
path: root/ltrace.spec
blob: eb43541a376f57d3f1e7473fc936b3ef8f29055a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Summary: Shows runtime library call information for dynamically linked executables
Name: ltrace
%define version 0.3.16
Version: %{version}
Release: 1
Source: ftp://ftp.debian.org/debian/dists/unstable/main/source/utils/ltrace_%{version}.tar.gz
Copyright: GPL
Group: Development/Debuggers
BuildRoot: /tmp/ltrace-root

%description
ltrace is a program that simply runs the specified command until it exits.
It intercepts and records the dynamic library calls which are called by
the executed process and the signals which are received by that process.
It can also intercept and print the system calls executed by the program.

The program to be traced need not be recompiled for this, so you can
use it on binaries for which you don't have the source handy.

%prep 
%setup -q
./configure --prefix=/usr

%build
make

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
rm -rf $RPM_BUILD_ROOT/usr/doc

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%config /etc/ltrace.conf
%doc COPYING README TODO BUGS ChangeLog
/usr/bin/ltrace
/usr/man/man1/ltrace.1
%changelog