Blame SPECS/strace.spec

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