Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37558539
en ru br
ALT Linux repos
S:0.7.91.0.198.git82c6640-alt5
5.0: 0.5-alt1
4.1: 0.5-alt1
4.0: 0.4-alt2.0
3.0: 0.3.36-alt2

Group :: Development/Debuggers
RPM: ltrace

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: ltrace
Version: 0.4
Release: alt2.0

Summary: Tracks runtime library calls from dynamically linked executables
License: GPL
Group: Development/Debuggers
Url: http://packages.debian.org/unstable/utils/ltrace
#ExclusiveArch: alpha arm %ix86 ia64 m68k ppc s390 sparc x86_64

Source: http://ftp.debian.org/debian/pool/main/l/%name/%{name}_%version.orig.tar.gz
Patch: ltrace-0.3.36-alt-rootinstall.patch

# Automatically added by buildreq on Sat Jan 08 2005

BuildRequires: libelf-devel libiberty-devel libstdc++-devel

Summary(ru_RU.KOI8-R): Трассировщик библиотечных вызовов из динамически скомпонованных приложений

%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.

%description -l ru_RU.KOI8-R
Ltrace представляет из себя утилиту отладки, которая запускает указанную
пользователем команду и дожидается её завершения. Пока команда выполняется,
Ltrace перехватывает и выводит все выполняемые процессом вызовы подпрограмм
из динамических библиотек, все системные вызовы и все получаемые сигналы.

Трассируемую программу не требуется перекомпилировать, так что отлаживать
с помощью Ltrace можно даже те приложения, исходные тексты которых недоступны.

%prep
%setup -q
%patch -p1

%build
%__mv elf.h ltrace_elf.h
find . -name "*.c" -print0 \
   | xargs -r0 %__grep -l -- '"elf\.h"' *.c \
   | xargs -r %__subst -p 's,"elf.h","ltrace_elf.h",g'
%__subst -p -- 's,-iquote,-I,g' Makefile.in
autoreconf -fisv
%configure
%make_build
bzip -9fk ChangeLog

%install
%make_install install DESTDIR=$RPM_BUILD_ROOT

for f in `find -mindepth 2 -type f -name README\*`; do
b="${f##*/}"
d="${f%%/*}"
%__install -p -m644 "$f" "$b.${d##*/}"
done

%files
%_bindir/*
%_mandir/man?/*
%config(noreplace) %_sysconfdir/*
%doc BUGS ChangeLog.bz2 README* TODO
%exclude %_docdir/%name

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin