| %define package ltrace |
| %define version @VERSION@ |
| %define release 1 |
| %define _mandir /usr/share/man |
| Summary: Tracks runtime library calls for dynamically linked executables |
| Name: %{package} |
| Version: %{version} |
| Release: %{release} |
| Copyright: GPL |
| Group: Development/Debuggers |
| ExclusiveArch: arm i386 m68k s390 |
| Source0: ftp://ftp.debian.org/debian/dists/unstable/main/source/utils/ltrace_%{version}.tar.gz |
| Prefix: %{_prefix} |
| BuildRoot: /tmp/%{name}-root |
| |
| %description |
| ltrace is a debugging program which runs a specified command until it |
| exits. While the command is executing, ltrace intercepts and records |
| the dynamic library calls which are called by |
| the executed process and the signals 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. |
| |
| You should install ltrace if you need a sysadmin tool for tracking the |
| execution of processes. |
| |
| %prep |
| %setup -q |
| ./configure --prefix=/usr --sysconfdir=/etc |
| |
| %build |
| make |
| |
| %install |
| rm -rf $RPM_BUILD_ROOT |
| mkdir -p $RPM_BUILD_ROOT |
| make DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir} install |
| |
| %clean |
| rm -rf $RPM_BUILD_ROOT |
| |
| %files |
| %defattr(-,root,root) |
| %config /etc/ltrace.conf |
| %doc COPYING README TODO BUGS ChangeLog |
| /usr/bin/ltrace |
| %{_mandir}/ltrace.1 |
| %changelog |