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