summaryrefslogtreecommitdiff
path: root/packaging/ltrace.spec
blob: 3cca313123fd42619060b7e8151cbc4236ea8467 (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
43
44
45
46
47
Name:           ltrace
Version:        0.7.2
Release:        0
BuildRequires:  binutils-devel
BuildRequires:  gcc-c++
BuildRequires:  libelf-devel
Url:            http://ltrace.org/
Summary:        Trace the Library and System Calls a Program Makes
License:        GPL-2.0+
Group:          Development/Tools
Source:         ltrace-%{version}.tar.bz2
Source2:        baselibs.conf

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

The program to trace need not be recompiled for this, so you can use
ltrace on binaries for which you do not have access to the source.

This is still a work in progress, so, for example, the tracking to
child processes may fail or some things may not work as expected.


%prep
%setup -q

%build
export CFLAGS="%{optflags}"
%configure --build=%{_target_cpu}-tizen-linux
make

%install
%make_install
rm -rf %{buildroot}/usr/share/doc/ltrace

%files
%defattr(-,root,root)
%license COPYING
%{_bindir}/ltrace
%{_mandir}/man?/ltrace.?.gz
%{_mandir}/man?/ltrace.conf.?.gz
%config /etc/ltrace.conf

%changelog