2006-12-19 00:17:52 +01:00
|
|
|
#
|
2011-04-12 12:26:00 +02:00
|
|
|
# spec file for package strace
|
2006-12-19 00:17:52 +01:00
|
|
|
#
|
2011-03-16 11:18:45 +01:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-19 00:17:52 +01:00
|
|
|
#
|
2008-08-06 01:58:14 +02:00
|
|
|
# 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.
|
|
|
|
|
2006-12-19 00:17:52 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2008-04-10 15:33:29 +02:00
|
|
|
|
2006-12-19 00:17:52 +01:00
|
|
|
Name: strace
|
2011-03-16 11:28:29 +01:00
|
|
|
BuildRequires: libacl-devel libaio-devel lksctp-tools-devel
|
2010-02-09 22:28:08 +01:00
|
|
|
License: BSD3c
|
2006-12-19 00:17:52 +01:00
|
|
|
Group: Development/Tools/Debuggers
|
2007-12-03 23:39:40 +01:00
|
|
|
AutoReqProv: on
|
2008-11-02 15:45:04 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: strace-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2011-03-16 11:18:45 +01:00
|
|
|
Version: 4.6
|
2011-04-12 12:26:00 +02:00
|
|
|
Release: 1
|
2006-12-19 00:17:52 +01:00
|
|
|
Summary: A utility to trace the system calls of a program
|
2008-09-02 12:15:43 +02:00
|
|
|
Source: http://dl.sourceforge.net/strace/strace-%{version}.tar.bz2
|
2010-02-09 22:28:08 +01:00
|
|
|
Source2: baselibs.conf
|
2011-04-12 12:26:00 +02:00
|
|
|
Patch0: strace-%{version}.diff
|
|
|
|
Patch1: io-submit-fix.patch
|
2007-12-03 23:39:40 +01:00
|
|
|
Url: http://sourceforge.net/projects/strace/
|
2006-12-19 00:17:52 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%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
|
|
|
|
%setup -q
|
2011-04-11 15:32:03 +02:00
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
2006-12-19 00:17:52 +01:00
|
|
|
|
|
|
|
%build
|
2007-01-18 01:47:16 +01:00
|
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
2006-12-19 00:17:52 +01:00
|
|
|
%ifarch alpha
|
|
|
|
CFLAGS="$CFLAGS -ffixed-8"
|
|
|
|
%endif
|
2011-03-17 11:43:47 +01:00
|
|
|
%configure \
|
2010-09-27 16:04:04 +02:00
|
|
|
%ifarch %sparc
|
2011-03-17 11:43:47 +01:00
|
|
|
--host=%_target_platform
|
2010-09-27 16:04:04 +02:00
|
|
|
%endif
|
2011-03-17 12:00:29 +01:00
|
|
|
|
2010-09-27 16:04:04 +02:00
|
|
|
make %{?_smp_mflags}
|
2006-12-19 00:17:52 +01:00
|
|
|
|
2011-03-16 11:52:22 +01:00
|
|
|
%check
|
2011-03-16 11:28:29 +01:00
|
|
|
make check
|
|
|
|
|
2006-12-19 00:17:52 +01:00
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc README README-linux NEWS
|
|
|
|
%{_prefix}/bin/strace
|
|
|
|
%{_prefix}/bin/strace-graph
|
|
|
|
%doc %{_mandir}/man1/strace.1.gz
|
|
|
|
|
2007-03-16 14:44:03 +01:00
|
|
|
%changelog
|