2006-12-19 00:17:52 +01:00
|
|
|
#
|
2010-04-16 01:40:04 +02:00
|
|
|
# spec file for package strace (Version 4.5.20)
|
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
|
|
|
|
Release: 5
|
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
|
2006-12-19 00:17:52 +01:00
|
|
|
Patch: strace-%{version}.diff
|
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
|
2010-04-15 17:06:57 +02:00
|
|
|
%patch -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
|
2010-12-09 16:19:27 +01:00
|
|
|
# strace-add-support-for-block-ioctls.patch modifies Makefile.am
|
|
|
|
autoreconf -fi
|
2010-09-27 16:04:04 +02:00
|
|
|
./configure \
|
|
|
|
%ifarch %sparc
|
|
|
|
--host=%_target_platform \
|
|
|
|
%endif
|
|
|
|
--prefix=%{_prefix} --mandir=%{_mandir}
|
|
|
|
make %{?_smp_mflags}
|
2006-12-19 00:17:52 +01:00
|
|
|
|
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
|