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
46 echo 'no make check errors' > testresults.txt
48 for file in `find testsuite -name "*.ltrace"`
55 done >> testresults.txt
57 mv testresults.txt %{_target_cpu}-testresults.txt
58 ln testsuite/testrun.sum testsuite/%{_target_cpu}-testrun.sum
60 echo no make check > %{_target_cpu}-testresults.txt
61 echo no make check > testsuite/%{_target_cpu}-testrun.sum
65 make install DESTDIR=%{buildroot}
66 rm -rf %{buildroot}/usr/share/doc/ltrace
70 %doc COPYING README ChangeLog %{_target_cpu}-testresults.txt testsuite/%{_target_cpu}-testrun.sum
72 %{_mandir}/man1/ltrace.1.gz
73 %config /etc/ltrace.conf