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