X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=strace.spec;h=9bdb42783fb40fe871a09a6c15ebee9300626114;hb=12d7f6784bcb7b9d1f49d7bfd195b8eaa807e76e;hp=190018209607409b918c4b8443ffc43b589e553e;hpb=43c21c026eada4839eb3789bc9c335dd2f86b40b;p=packages%2Fstrace.git diff --git a/strace.spec b/strace.spec index 1900182..9bdb427 100644 --- a/strace.spec +++ b/strace.spec @@ -1,72 +1,139 @@ -Summary: prints system call strace of a running process -Summary(de): druckt ein Protokoll der Systemaufrufe eines laufenden Prozesses. -Summary(fr): affiche l'appel système strace d'un processus en exécution. -Summary(pl): strace wy¶wietla funkcje systemowe wywo³ywane przez uruchomiony proces -Summary(tr): Çalýþan bir sürecin yaptýðý sistem çaðrýlarýný listeler -Name: strace -Version: 4.1 -Release: 1 -Copyright: distributable -Group: Development/Debuggers -Group(pl): Programowanie/Odpluskwiacze -Source: http://www.wi.leidenuniv.nl/~wichert/strace/%{name}-%{version}.tar.gz -Patch0: strace-fhs.patch -Patch1: strace-linux.patch -Patch2: strace-ipv6.patch -BuildRoot: /tmp/%{name}-%{version}-root +# +# Conditional build: +%bcond_without libunwind # strack tracing using libunwind +# +%ifnarch %{ix86} %{x8664} arm hppa ia64 mips ppc ppc64 sh +%undefine with_libunwind +%endif +Summary: prints system call strace of a running process +Summary(de.UTF-8): druckt ein Protokoll der Systemaufrufe eines laufenden Prozesses +Summary(es.UTF-8): Enseña las llamadas de sistema de un proceso en ejecución +Summary(fr.UTF-8): affiche l'appel système strace d'un processus en exécution +Summary(pl.UTF-8): strace wyświetla funkcje systemowe wywoływane przez uruchomiony proces +Summary(pt_BR.UTF-8): Mostra as chamadas de sistema de um processo rodando +Summary(ru.UTF-8): Отслеживает и показывает системные вызовы, связанные с запущенным процессом +Summary(tr.UTF-8): Çalışan bir sürecin yaptığı sistem çağrılarını listeler +Summary(uk.UTF-8): Відслідковує та показує системні виклики, пов'язані із запущеним процесом +Name: strace +Version: 4.12 +Release: 1 +License: BSD-like +Group: Development/Debuggers +Source0: http://downloads.sourceforge.net/strace/%{name}-%{version}.tar.xz +# Source0-md5: efb8611fc332e71ec419c53f59faa93e +Source1: %{name}.1.pl +URL: http://sourceforge.net/projects/strace/ +# acl and libaio for headers only +BuildRequires: acl-devel +BuildRequires: libaio-devel +%{?with_libunwind:BuildRequires: libunwind-devel} +BuildRequires: tar >= 1:1.22 +BuildRequires: xz +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description -Strace prints a record of each system call another program makes, including -all of the arguments passed to it and the system call's return value. +Strace prints a record of each system call another program makes, +including all of the arguments passed to it and the system call's +return value. -%description -l de -Strace druckt ein Protokoll aller von einem anderen Programm ausgegebenen -Systemaufrufe, einschließlich aller weitergeleiteten Argumente und dem -Ausgabewert des Systemaufrufs. +%description -l de.UTF-8 +Strace druckt ein Protokoll aller von einem anderen Programm +ausgegebenen Systemaufrufe, einschließlich aller weitergeleiteten +Argumente und dem Ausgabewert des Systemaufrufs. -%description -l fr -strace affiche l'enregistrement de chaque appel système que fait un programme -ainsi que tous les arguments qui lui ont été passés et la valeur de retour de -l'appel. +%description -l es.UTF-8 +Strace imprime una "grabación" de cada llamada de sistema que el +programa hace, incluyendo todos los argumentos pasados para él, si la +vuelta de cada llamada de sistema es verdadera, o si hay creado error. -%description -l pl -Strace wy¶wietla informacje o ka¿dym wywo³aniu funkcji systemowych przez -uruchamiany program, w tym równie¿ wszystkie argumenty wywo³ania i zwrócon± -warto¶æ. +%description -l fr.UTF-8 +strace affiche l'enregistrement de chaque appel système que fait un +programme ainsi que tous les arguments qui lui ont été passés et la +valeur de retour de l'appel. -%description -l tr -strace bir programýn çalýþtýðý sürece yaptýðý bütün sistem çaðrýlarýný, -gönderdiði parametreler ve geri dönüþ deðerleriyle birlikte döker. +%description -l pl.UTF-8 +Strace wyświetla informacje o każdym wywołaniu funkcji systemowych +przez uruchamiany program, w tym również wszystkie argumenty wywołania +i zwróconą wartość. + +%description -l pt_BR.UTF-8 +Strace imprime uma "gravação" de cada chamada de sistema que o +programa faz, incluindo todos os argumentos passados para ele e se o +retorno de cada chamada de sistema é verdadeiro ou gerou erro. + +%description -l ru.UTF-8 +Программа strace перехватывает и регистрирует системные вызовы, +произведенные и полученные исполняющимся процессом. Strace может +вывести список всех системных вызовов, их аргументов и возвращаемые +ими значения. Strace полезна для диагностики проблем и отладки. + +%description -l tr.UTF-8 +strace bir programın çalıştığı sürece yaptığı bütün sistem +çağrılarını, gönderdiği parametreler ve geri dönüş değerleriyle +birlikte döker. + +%description -l uk.UTF-8 +Програма strace перехоплює та регіструє системні визови, зроблені та +отримані процесом, який виконується. Strace може вивести список усіх +системних визовів, їх аргументів та значень, які вони повернули. +Strace корисний для діагностики проблем та відладки. + +%package graph +Summary: strace graph +Summary(pl.UTF-8): Graf strace +Group: Development/Debuggers +# NOTE: doesn't require directly strace binary. + +%description graph +strace-graph script processes strace -f output. It displays a graph of +invoked subprocesses, and is useful for finding out what complex +commands do. + +The script can also handle the output with strace -t, -tt, or -ttt. It +will add elapsed time for each process in that case. + +%description graph -l pl.UTF-8 +Skrypt strace-graph przetwarza wynik strace -f i wyświetla graf +wywoływanych podprocesów. Jest przydatny do sprawdzania co robią +złożone polecenia. + +Skrypt jest w stanie obsłużyć także wyjście ze strace -t, -tt i -ttt. +Doda wtedy upływający czas dla każdego procesu. %prep -%setup -q -%patch0 -p1 -%patch1 -p1 -%patch2 -p1 +%setup -q %build -autoconf && autoheader -%configure -make LDFLAGS="-s" +%if %{with libunwind} +# workaround for: +# /usr/bin/ld: copy reloc against protected `_UPT_accessors' is invalid +# /usr/bin/ld: failed to set dynamic section sizes: Bad value +# (should be fixed in gcc >(=?) 5.1) +CFLAGS="%{rpmcflags} -fPIE" +%endif +%configure \ + %{!?with_libunwind:--without-libunwind} +%{__make} %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1} - -make install \ - prefix=$RPM_BUILD_ROOT%{_prefix} \ - mandir=$RPM_BUILD_ROOT%{_mandir} \ - bindir=$RPM_BUILD_ROOT%{_bindir} +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT -gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/* ChangeLog README-linux +install -D %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/pl/man1/strace.1 %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%doc {ChangeLog,README-linux}.gz - +%doc COPYING CREDITS ChangeLog NEWS README-linux-ptrace %attr(755,root,root) %{_bindir}/strace -%{_mandir}/man1/* +%attr(755,root,root) %{_bindir}/strace-log-merge +%{_mandir}/man1/strace.1* +%lang(pl) %{_mandir}/pl/man1/strace.1* + +%files graph +%defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/strace-graph