]> git.pld-linux.org Git - packages/strace.git/blame - strace.spec
- updated to 4.12
[packages/strace.git] / strace.spec
CommitLineData
b293a863
JB
1#
2# Conditional build:
3%bcond_without libunwind # strack tracing using libunwind
4#
5%ifnarch %{ix86} %{x8664} arm hppa ia64 mips ppc ppc64 sh
6%undefine with_libunwind
7%endif
036a93b3 8Summary: prints system call strace of a running process
cd04e52d
ER
9Summary(de.UTF-8): druckt ein Protokoll der Systemaufrufe eines laufenden Prozesses
10Summary(es.UTF-8): Enseña las llamadas de sistema de un proceso en ejecución
11Summary(fr.UTF-8): affiche l'appel système strace d'un processus en exécution
12Summary(pl.UTF-8): strace wyświetla funkcje systemowe wywoływane przez uruchomiony proces
13Summary(pt_BR.UTF-8): Mostra as chamadas de sistema de um processo rodando
14Summary(ru.UTF-8): Отслеживает и показывает системные вызовы, связанные с запущенным процессом
15Summary(tr.UTF-8): Çalışan bir sürecin yaptığı sistem çağrılarını listeler
16Summary(uk.UTF-8): Відслідковує та показує системні виклики, пов'язані із запущеним процесом
036a93b3 17Name: strace
12d7f678 18Version: 4.12
8bd91441 19Release: 1
2d0dae9a 20License: BSD-like
036a93b3 21Group: Development/Debuggers
c56589b6 22Source0: http://downloads.sourceforge.net/strace/%{name}-%{version}.tar.xz
12d7f678 23# Source0-md5: efb8611fc332e71ec419c53f59faa93e
28ee5e69 24Source1: %{name}.1.pl
a40da014 25URL: http://sourceforge.net/projects/strace/
dae62021
JB
26# acl and libaio for headers only
27BuildRequires: acl-devel
dae62021 28BuildRequires: libaio-devel
b293a863 29%{?with_libunwind:BuildRequires: libunwind-devel}
e05c672f
JB
30BuildRequires: tar >= 1:1.22
31BuildRequires: xz
0071ddd9 32BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
894ff4c4 33
34%description
036a93b3 35Strace prints a record of each system call another program makes,
36including all of the arguments passed to it and the system call's
37return value.
894ff4c4 38
3cbe5ca9 39%description -l de.UTF-8
036a93b3 40Strace druckt ein Protokoll aller von einem anderen Programm
3cbe5ca9 41ausgegebenen Systemaufrufe, einschließlich aller weitergeleiteten
036a93b3 42Argumente und dem Ausgabewert des Systemaufrufs.
894ff4c4 43
3cbe5ca9
JR
44%description -l es.UTF-8
45Strace imprime una "grabación" de cada llamada de sistema que el
46programa hace, incluyendo todos los argumentos pasados para él, si la
263949c7 47vuelta de cada llamada de sistema es verdadera, o si hay creado error.
48
3cbe5ca9
JR
49%description -l fr.UTF-8
50strace affiche l'enregistrement de chaque appel système que fait un
51programme ainsi que tous les arguments qui lui ont été passés et la
036a93b3 52valeur de retour de l'appel.
894ff4c4 53
3cbe5ca9
JR
54%description -l pl.UTF-8
55Strace wyświetla informacje o każdym wywołaniu funkcji systemowych
56przez uruchamiany program, w tym również wszystkie argumenty wywołania
57i zwróconą wartość.
894ff4c4 58
3cbe5ca9
JR
59%description -l pt_BR.UTF-8
60Strace imprime uma "gravação" de cada chamada de sistema que o
263949c7 61programa faz, incluindo todos os argumentos passados para ele e se o
3cbe5ca9 62retorno de cada chamada de sistema é verdadeiro ou gerou erro.
263949c7 63
3cbe5ca9
JR
64%description -l ru.UTF-8
65Программа strace перехватывает и регистрирует системные вызовы,
66произведенные и полученные исполняющимся процессом. Strace может
67вывести список всех системных вызовов, их аргументов и возвращаемые
68ими значения. Strace полезна для диагностики проблем и отладки.
263949c7 69
3cbe5ca9
JR
70%description -l tr.UTF-8
71strace bir programın çalıştığı sürece yaptığı bütün sistem
72çağrılarını, gönderdiği parametreler ve geri dönüş değerleriyle
73birlikte döker.
894ff4c4 74
3cbe5ca9
JR
75%description -l uk.UTF-8
76Програма strace перехоплює та регіструє системні визови, зроблені та
77отримані процесом, який виконується. Strace може вивести список усіх
78системних визовів, їх аргументів та значень, які вони повернули.
79Strace корисний для діагностики проблем та відладки.
263949c7 80
5e3bd75e
ER
81%package graph
82Summary: strace graph
cd04e52d 83Summary(pl.UTF-8): Graf strace
5e3bd75e
ER
84Group: Development/Debuggers
85# NOTE: doesn't require directly strace binary.
86
87%description graph
88strace-graph script processes strace -f output. It displays a graph of
89invoked subprocesses, and is useful for finding out what complex
90commands do.
91
dba2718d 92The script can also handle the output with strace -t, -tt, or -ttt. It
93will add elapsed time for each process in that case.
5e3bd75e 94
3cbe5ca9
JR
95%description graph -l pl.UTF-8
96Skrypt strace-graph przetwarza wynik strace -f i wyświetla graf
97wywoływanych podprocesów. Jest przydatny do sprawdzania co robią
98złożone polecenia.
ee51cf7a 99
3cbe5ca9
JR
100Skrypt jest w stanie obsłużyć także wyjście ze strace -t, -tt i -ttt.
101Doda wtedy upływający czas dla każdego procesu.
ee51cf7a 102
894ff4c4 103%prep
e4d3dd6d 104%setup -q
894ff4c4 105
106%build
b293a863
JB
107%if %{with libunwind}
108# workaround for:
109# /usr/bin/ld: copy reloc against protected `_UPT_accessors' is invalid
110# /usr/bin/ld: failed to set dynamic section sizes: Bad value
111# (should be fixed in gcc >(=?) 5.1)
112CFLAGS="%{rpmcflags} -fPIE"
113%endif
114%configure \
115 %{!?with_libunwind:--without-libunwind}
e30af45e 116%{__make}
894ff4c4 117
118%install
119rm -rf $RPM_BUILD_ROOT
894ff4c4 120
6af10d02 121%{__make} install \
d39e6e99 122 DESTDIR=$RPM_BUILD_ROOT
3d70ec26 123
d39e6e99 124install -D %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/pl/man1/strace.1
28ee5e69 125
894ff4c4 126%clean
127rm -rf $RPM_BUILD_ROOT
128
129%files
99dfeeca 130%defattr(644,root,root,755)
8bd91441 131%doc COPYING CREDITS ChangeLog NEWS README-linux-ptrace
5e3bd75e 132%attr(755,root,root) %{_bindir}/strace
417f4f42 133%attr(755,root,root) %{_bindir}/strace-log-merge
723b1654 134%{_mandir}/man1/strace.1*
135%lang(pl) %{_mandir}/pl/man1/strace.1*
5e3bd75e
ER
136
137%files graph
ee51cf7a 138%defattr(644,root,root,755)
5e3bd75e 139%attr(755,root,root) %{_bindir}/strace-graph
This page took 0.073474 seconds and 4 git commands to generate.