2 BuildRequires: binutils-devel
5 BuildRequires: libelf-devel
6 Url: http://ltrace.org/
7 Summary: Trace the Library and System Calls a Program Makes
9 Group: Development/Tools/Debuggers
12 BuildRoot: %{_tmppath}/%{name}-%{version}-build
13 Source: ltrace-%{version}.tar.bz2
14 Source2: baselibs.conf
17 Ltrace is a program that runs the specified command until it exits. It
18 intercepts and records the dynamic library calls that are called by the
19 executed process and the signals that are received by that process. It
20 can also intercept and print the system calls executed by the program.
22 The program to trace need not be recompiled for this, so you can use
23 ltrace on binaries for which you do not have access to the source.
25 This is still a work in progress, so, for example, the tracking to
26 child processes may fail or some things may not work as expected.
33 export CFLAGS="%{optflags} -W -Wall"
34 ./configure --prefix=/usr \
38 --build=arm-tizen-linux
40 --build=%{_target_cpu}-tizen-linux
45 make install DESTDIR=%{buildroot}
46 rm -rf %{buildroot}/usr/share/doc/ltrace
52 %{_mandir}/man1/ltrace.1.gz
53 %config /etc/ltrace.conf