]> git.pld-linux.org Git - packages/strace.git/blobdiff - strace.spec
- up to 4.19
[packages/strace.git] / strace.spec
index 04a5c0152fe34b8b2a24a045dbb13c49d41e36b8..23a9374e6714c492d57e4e36429720b1bfe40076 100644 (file)
@@ -1,3 +1,10 @@
+#
+# 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
@@ -8,17 +15,18 @@ 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.10
+Version:       4.19
 Release:       1
 License:       BSD-like
 Group:         Development/Debuggers
 Source0:       http://downloads.sourceforge.net/strace/%{name}-%{version}.tar.xz
-# Source0-md5: 107a5be455493861189e9b57a3a51912
+# Source0-md5: 846a9a26e74e797f42d77a0348104072
 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)
@@ -96,7 +104,15 @@ Doda wtedy upływający czas dla każdego procesu.
 %setup -q
 
 %build
-%configure
+%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
This page took 0.351442 seconds and 4 git commands to generate.