strace/strace.spec
Marcus Meissner 45aed90fa0 Accepting request 187005 from home:Andreas_Schwab:Factory
- strace-linux-ptrace-h.patch: handle conflict with struct
  ptrace_peeksiginfo_args between <sys/ptrace.h> and <linux/ptrace.h>

OBS-URL: https://build.opensuse.org/request/show/187005
OBS-URL: https://build.opensuse.org/package/show/devel:tools/strace?expand=0&rev=31
2013-08-14 12:25:16 +00:00

97 lines
2.6 KiB
RPMSpec

#
# spec file for package strace
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: strace
Version: 4.8
Release: 0
Summary: A utility to trace the system calls of a program
License: BSD-3-Clause
Group: Development/Tools/Debuggers
Url: http://sourceforge.net/projects/strace/
#Freecode-URL: http://freecode.com/projects/strace
#Git-Clone: git://git.code.sf.net/p/strace/code
Source: http://downloads.sourceforge.net/strace/%name-%version.tar.xz
Source2: http://downloads.sourceforge.net/strace/%name-%version.tar.xz.asc
Source3: %name.keyring
Source4: baselibs.conf
Patch1: strace-4.7.diff
Patch2: strace-linux-ptrace-h.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libacl-devel
BuildRequires: libaio-devel
BuildRequires: lksctp-tools-devel
BuildRequires: xz
%if 0%{?suse_version} >= 1230
BuildRequires: gpg-offline
%endif
# bug437293
%ifarch ppc64
Obsoletes: strace-64bit
%endif
%description
With strace, you can trace the activity of a program. Information
about any system calls the program makes and the signals it receives
and processes can be seen. Child processes can also be tracked.
Authors:
--------
Paul Kranenburg <pk@cs.few.eur.nl>
Branko Lankester <branko@hacktic.nl>
Rick Sladkey <rs@world.std.com>
%prep
%{?gpg_verify: %gpg_verify %{S:2}}
%setup -q
%patch -P 1 -p1
%patch2 -p1
%build
export CFLAGS="$RPM_OPT_FLAGS"
%ifarch alpha
CFLAGS="$CFLAGS -ffixed-8"
%endif
%configure \
%ifarch %sparc
--host=%_target_platform
%endif
make %{?_smp_mflags}
# Have to exclude make check for qemu builds, which apparently don't support PTRACE.
%if !(0%{?qemu_user_space_build})
%check
make check
%endif
%install
make install DESTDIR=$RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc README README-linux NEWS
%{_prefix}/bin/strace
%{_prefix}/bin/strace-graph
%{_prefix}/bin/strace-log-merge
%doc %{_mandir}/man1/strace.1.gz
%changelog