]>
Commit | Line | Data |
---|---|---|
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 | 8 | Summary: prints system call strace of a running process |
cd04e52d ER |
9 | Summary(de.UTF-8): druckt ein Protokoll der Systemaufrufe eines laufenden Prozesses |
10 | Summary(es.UTF-8): Enseña las llamadas de sistema de un proceso en ejecución | |
11 | Summary(fr.UTF-8): affiche l'appel système strace d'un processus en exécution | |
12 | Summary(pl.UTF-8): strace wyświetla funkcje systemowe wywoływane przez uruchomiony proces | |
13 | Summary(pt_BR.UTF-8): Mostra as chamadas de sistema de um processo rodando | |
14 | Summary(ru.UTF-8): Отслеживает и показывает системные вызовы, связанные с запущенным процессом | |
15 | Summary(tr.UTF-8): Çalışan bir sürecin yaptığı sistem çağrılarını listeler | |
16 | Summary(uk.UTF-8): Відслідковує та показує системні виклики, пов'язані із запущеним процесом | |
036a93b3 | 17 | Name: strace |
f33d183f | 18 | Version: 4.11 |
8bd91441 | 19 | Release: 1 |
2d0dae9a | 20 | License: BSD-like |
036a93b3 | 21 | Group: Development/Debuggers |
c56589b6 | 22 | Source0: http://downloads.sourceforge.net/strace/%{name}-%{version}.tar.xz |
f33d183f | 23 | # Source0-md5: a15d2555a7febb56d00c6e1a51c655dc |
28ee5e69 | 24 | Source1: %{name}.1.pl |
a40da014 | 25 | URL: http://sourceforge.net/projects/strace/ |
dae62021 JB |
26 | # acl and libaio for headers only |
27 | BuildRequires: acl-devel | |
dae62021 | 28 | BuildRequires: libaio-devel |
b293a863 | 29 | %{?with_libunwind:BuildRequires: libunwind-devel} |
e05c672f JB |
30 | BuildRequires: tar >= 1:1.22 |
31 | BuildRequires: xz | |
0071ddd9 | 32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
894ff4c4 | 33 | |
34 | %description | |
036a93b3 | 35 | Strace prints a record of each system call another program makes, |
36 | including all of the arguments passed to it and the system call's | |
37 | return value. | |
894ff4c4 | 38 | |
3cbe5ca9 | 39 | %description -l de.UTF-8 |
036a93b3 | 40 | Strace druckt ein Protokoll aller von einem anderen Programm |
3cbe5ca9 | 41 | ausgegebenen Systemaufrufe, einschließlich aller weitergeleiteten |
036a93b3 | 42 | Argumente und dem Ausgabewert des Systemaufrufs. |
894ff4c4 | 43 | |
3cbe5ca9 JR |
44 | %description -l es.UTF-8 |
45 | Strace imprime una "grabación" de cada llamada de sistema que el | |
46 | programa hace, incluyendo todos los argumentos pasados para él, si la | |
263949c7 | 47 | vuelta de cada llamada de sistema es verdadera, o si hay creado error. |
48 | ||
3cbe5ca9 JR |
49 | %description -l fr.UTF-8 |
50 | strace affiche l'enregistrement de chaque appel système que fait un | |
51 | programme ainsi que tous les arguments qui lui ont été passés et la | |
036a93b3 | 52 | valeur de retour de l'appel. |
894ff4c4 | 53 | |
3cbe5ca9 JR |
54 | %description -l pl.UTF-8 |
55 | Strace wyświetla informacje o każdym wywołaniu funkcji systemowych | |
56 | przez uruchamiany program, w tym również wszystkie argumenty wywołania | |
57 | i zwróconą wartość. | |
894ff4c4 | 58 | |
3cbe5ca9 JR |
59 | %description -l pt_BR.UTF-8 |
60 | Strace imprime uma "gravação" de cada chamada de sistema que o | |
263949c7 | 61 | programa faz, incluindo todos os argumentos passados para ele e se o |
3cbe5ca9 | 62 | retorno 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 |
71 | strace 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 | |
73 | birlikte döker. | |
894ff4c4 | 74 | |
3cbe5ca9 JR |
75 | %description -l uk.UTF-8 |
76 | Програма strace перехоплює та регіструє системні визови, зроблені та | |
77 | отримані процесом, який виконується. Strace може вивести список усіх | |
78 | системних визовів, їх аргументів та значень, які вони повернули. | |
79 | Strace корисний для діагностики проблем та відладки. | |
263949c7 | 80 | |
5e3bd75e ER |
81 | %package graph |
82 | Summary: strace graph | |
cd04e52d | 83 | Summary(pl.UTF-8): Graf strace |
5e3bd75e ER |
84 | Group: Development/Debuggers |
85 | # NOTE: doesn't require directly strace binary. | |
86 | ||
87 | %description graph | |
88 | strace-graph script processes strace -f output. It displays a graph of | |
89 | invoked subprocesses, and is useful for finding out what complex | |
90 | commands do. | |
91 | ||
dba2718d | 92 | The script can also handle the output with strace -t, -tt, or -ttt. It |
93 | will add elapsed time for each process in that case. | |
5e3bd75e | 94 | |
3cbe5ca9 JR |
95 | %description graph -l pl.UTF-8 |
96 | Skrypt strace-graph przetwarza wynik strace -f i wyświetla graf | |
97 | wywoływanych podprocesów. Jest przydatny do sprawdzania co robią | |
98 | złożone polecenia. | |
ee51cf7a | 99 | |
3cbe5ca9 JR |
100 | Skrypt jest w stanie obsłużyć także wyjście ze strace -t, -tt i -ttt. |
101 | Doda 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) | |
112 | CFLAGS="%{rpmcflags} -fPIE" | |
113 | %endif | |
114 | %configure \ | |
115 | %{!?with_libunwind:--without-libunwind} | |
e30af45e | 116 | %{__make} |
894ff4c4 | 117 | |
118 | %install | |
119 | rm -rf $RPM_BUILD_ROOT | |
894ff4c4 | 120 | |
6af10d02 | 121 | %{__make} install \ |
d39e6e99 | 122 | DESTDIR=$RPM_BUILD_ROOT |
3d70ec26 | 123 | |
d39e6e99 | 124 | install -D %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/pl/man1/strace.1 |
28ee5e69 | 125 | |
894ff4c4 | 126 | %clean |
127 | rm -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 |