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