Blame SPECS/strace.spec

7e4834
%{?scl:%{?scl_package:%scl_package strace}}
7e4834
7e4834
Summary: Tracks and displays system calls associated with a running process
7e4834
Name: %{?scl_prefix}strace
7e4834
Version: 4.12
7e4834
Release: 3%{?dist}
7e4834
License: BSD
7e4834
Group: Development/Debuggers
7e4834
URL: http://sourceforge.net/projects/strace/
7e4834
# The upstream source really comes in .xz format.  Unfortunately
7e4834
# DTS builds using .xz seem to want to use /opt/rh/<...>/xz rather
7e4834
# than the one in /usr/bin.  Using the .gz extension seems to avoid
7e4834
# this problem.  This should be fixed at some point.
7e4834
Source: http://downloads.sourceforge.net/strace/strace-%{version}.tar.gz
7e4834
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
7e4834
7e4834
%define alternatives_cmd %{!?scl:%{_sbindir}}%{?scl:%{_root_sbindir}}/alternatives
7e4834
%define alternatives_cmdline %{alternatives_cmd}%{?scl: --altdir %{_sysconfdir}/alternatives --admindir %{_scl_root}/var/lib/alternatives}
7e4834
7e4834
BuildRequires: libacl-devel, time
7e4834
%{?scl:Requires:%scl_runtime}
7e4834
7e4834
Patch1000: strace-strict-aliasing.patch
7e4834
Patch1001: strace-rh948577.patch
7e4834
Patch1002: strace-rh851457.patch
7e4834
Patch1005: strace-no-net-tests.patch
7e4834
Patch1007: strace-no-uio-tests.patch
7e4834
7e4834
# Hack as the RHEL 6 used for DTS is too old and doesn't define MADV_DODUMP
7e4834
# and MADV_DONTDUMP.
7e4834
Patch2000: strace-rh921550.patch
7e4834
7e4834
Patch2001: strace-4.12-vhangup.patch
7e4834
Patch2002: strace-4.12-chown.patch
7e4834
7e4834
Patch3000: strace-no-setgid-rhel6.patch
7e4834
Patch3001: strace-rpmbuild-m64.patch
7e4834
7e4834
# In the past we had a separate strace64 package, these days the
7e4834
# stndard 64 bit build provides that functionality.  For tracing
7e4834
# 32 bit applications on ppc and s390 we still have strace32
7e4834
Obsoletes: strace64
7e4834
7e4834
%define strace32_arches ppc s390
7e4834
7e4834
%description
7e4834
The strace program intercepts and records the system calls called and
7e4834
received by a running process.  Strace can print a record of each
7e4834
system call, its arguments and its return value.  Strace is useful for
7e4834
diagnosing problems and debugging, as well as for instructional
7e4834
purposes.
7e4834
7e4834
Install strace if you need a tool to track the system calls made and
7e4834
received by a process.
7e4834
7e4834
%ifarch %{strace32_arches}
7e4834
%package -n strace32
7e4834
Summary: Tracks and displays system calls associated with a running process.
7e4834
Group: Development/Debuggers
7e4834
7e4834
%description -n strace32
7e4834
The strace program intercepts and records the system calls called and
7e4834
received by a running process.  Strace can print a record of each
7e4834
system call, its arguments and its return value.  Strace is useful for
7e4834
diagnosing problems and debugging, as well as for instructional
7e4834
purposes.
7e4834
7e4834
Install strace if you need a tool to track the system calls made and
7e4834
received by a process.
7e4834
7e4834
This package provides the `strace32' program to trace 32-bit processes on
7e4834
64-bit IBM P and Z series platforms.
7e4834
%endif
7e4834
7e4834
%prep
7e4834
%setup -q -n strace-%{version}
7e4834
%patch1000 -p1
7e4834
%patch1001 -p1
7e4834
%patch1002 -p1
7e4834
%patch1005 -p1
7e4834
%patch1007 -p1
7e4834
%patch2000 -p1
7e4834
%patch2001 -p1
7e4834
%patch2002 -p1
7e4834
%if 0%{?rhel} == 6
7e4834
%patch3000 -p1
7e4834
%endif
7e4834
%patch3001 -p1
7e4834
7e4834
%build
7e4834
%configure
7e4834
make %{?_smp_mflags}
7e4834
7e4834
%install
7e4834
rm -rf %{buildroot}
7e4834
make DESTDIR=%{buildroot} install
7e4834
7e4834
# remove unpackaged files from the buildroot
7e4834
rm -f %{buildroot}%{_bindir}/strace-graph
7e4834
7e4834
%define copy64 ln
7e4834
%if 0%{?rhel}
7e4834
%if 0%{?rhel} < 6
7e4834
%endif
7e4834
%define copy64 cp -p
7e4834
%endif
7e4834
7e4834
%ifarch %{strace32_arches}
7e4834
%{copy64} %{buildroot}%{_bindir}/strace %{buildroot}%{_bindir}/strace32
7e4834
%endif
7e4834
7e4834
%check
7e4834
# Temporary until we dig deeper into the failures
7e4834
%ifnarch s390x ppc64
7e4834
make -k check
7e4834
%endif
7e4834
7e4834
%clean
7e4834
rm -rf %{buildroot}
7e4834
7e4834
%files
7e4834
%defattr(-,root,root)
7e4834
%doc CREDITS ChangeLog ChangeLog-CVS COPYING NEWS README
7e4834
%{_bindir}/strace
7e4834
%{_bindir}/strace-log-merge
7e4834
%{_mandir}/man1/*
7e4834
7e4834
%ifarch %{strace32_arches}
7e4834
%files -n strace32
7e4834
%defattr(-,root,root)
7e4834
%{_bindir}/strace32
7e4834
%endif
7e4834
7e4834
%changelog
7e4834
* Fri Aug 12 2016 DJ Delorie <dj@redhat.com> - 4.12-3
7e4834
- Merge upstream patches for vhangup and chown
7e4834
- Skip some tests on older kernels (RHEL 6)
7e4834
- Remove -m64 that rpm macros adds
7e4834
- Duplicate vhangup/chown patch for -m32 also.
7e4834
7e4834
* Wed Jul 27 2016 Jeff Law <law@redhat.com> - 4.12-2
7e4834
- Disable testing on s390x and ppc64 until we can determine
7e4834
  root causes of their failures.
7e4834
7e4834
* Thu Jul 21 2016 DJ Delorie <dj@redhat.com> - 4.12-1
7e4834
- Rebase to fc24's 4.12
7e4834
7e4834
* Wed Aug  5 2015 DJ Delorie <dj@redhat.com> - 4.10-2
7e4834
- Add --re-interval to caps tests also
7e4834
7e4834
* Fri Jul 17 2015 DJ Delorie <dj@redhat.com> - 4.10-1
7e4834
- Rebase to fc23's 4.10
7e4834
7e4834
* Wed May 21 2014 Jeff Law <law@redhat.com> - 4.8-8
7e4834
- Import from RHEL 7 and build
7e4834