%endif
# for -k option
%{?buildrequires_stacktrace}
-%define strace64_arches ppc64 sparc64
%{?!buildroot:BuildRoot: %_tmppath/buildroot-%name-%version-%release}
%description
Install strace if you need a tool to track the system calls made and
received by a process.
-%ifarch %{strace64_arches}
-%package -n strace64
-Summary: Tracks and displays system calls associated with a running process.
-Group: Development/Debuggers
-
-%description -n strace64
-The strace program intercepts and records the system calls called and
-received by a running process. Strace can print a record of each
-system call, its arguments and its return value. Strace is useful for
-diagnosing problems and debugging, as well as for instructional
-purposes.
-
-Install strace if you need a tool to track the system calls made and
-received by a process.
-
-This package provides the `strace64' program to trace 64-bit processes.
-The `strace' program in the `strace' package is for 32-bit processes.
-%endif
-
%prep
%setup -q
echo -n %version-%release > .tarball-version
# remove unpackaged files from the buildroot
rm -f %{buildroot}%{_bindir}/strace-graph
-%define copy64 ln
-%if 0%{?rhel}
-%if 0%{?rhel} < 6
-%endif
-%define copy64 cp -p
-%endif
-
-%ifarch %{strace64_arches}
-%{copy64} %{buildroot}%{_bindir}/strace %{buildroot}%{_bindir}/strace64
-%endif
-
%check
%{buildroot}%{_bindir}/strace -V
make %{?_smp_mflags} -k check VERBOSE=1
%{_bindir}/strace-log-merge
%{_mandir}/man1/*
-%ifarch %{strace64_arches}
-%files -n strace64
-%{?suse_version:%defattr(-,root,root)}
-%{_bindir}/strace64
-%endif
-
%changelog
* @RPM_CHANGELOGTIME@ @PACKAGE_BUGREPORT@ - @PACKAGE_VERSION@-1
- @PACKAGE_STRING@ snapshot.