SPECS/strace/strace.spec
f4d17450
 Summary:	Tracks system calls that are made by a running process
 Name:		strace
31204a78
 Version:	4.16
f36af574
 Release:	3%{?dist}
f4d17450
 License:	BSD
 URL:		http://sourceforge.net/p/strace/code/ci/master/tree/
 Group:		Development/Debuggers
 Vendor:		VMware, Inc.
 Distribution:	Photon
82353903
 Source0:	http://downloads.sourceforge.net/project/strace/strace/%{version}/%{name}-%{version}.tar.xz
31204a78
 %define sha1 strace=b780a8cd2e60ea836cfd3468e0f81623a346d180
f4d17450
 BuildRequires:	libacl-devel, libaio-devel
518aa3f5
 %global __requires_exclude ^/usr/bin/perl$
f4d17450
 
 %description
 The strace program intercepts and displays the system calls made by a running process. strace also records 
 all the arugments and return values from the system calls. This is useful in debugging a process. 
 
 %prep
 %setup -q
 
31204a78
 %build
f4d17450
 ./configure \
 	--prefix=%{_prefix} \
 
92f724ea
 # to resolve build issue with glibc-2.26
 sed -i 's/struct ucontext/ucontext_t/g' linux/x86_64/arch_sigreturn.c
f36af574
 sed -i 's/struct ucontext/ucontext_t/g' linux/arm/arch_sigreturn.c
92f724ea
 
f4d17450
 make %{?_smp_mflags}
 
 %install
 [ %{buildroot} != "/"] && rm -rf %{buildroot}/*
 make install DESTDIR=%{buildroot}
 
 %check
 make -k check 
 
 %clean
 rm -rf %{buildroot}/*
 
 %files 
 %defattr(-,root,root)
 %{_bindir}/*
 %{_mandir}/man1/*
31204a78
 
f4d17450
 %changelog
f36af574
 *   Tue Nov 14 2017 Alexey Makhalov <amakhalov@vmware.com> 4.16-3
 -   Aarch64 support
92f724ea
 *   Wed Aug 23 2017 Alexey Makhalov <amakhalov@vmware.com> 4.16-2
 -   Fix compilation issue for glibc-2.26
 *   Wed Apr 12 2017 Vinay Kulkarni <kulkarniv@vmware.com> 4.16-1
 -   Update to version 4.16
 *   Thu Oct 20 2016 Alexey Makhalov <amakhalov@vmware.com> 4.11-3
 -   Exclude perl dependency
 *   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 4.11-2
 -   GA - Bump release of all rpms
 *   Wed Jan 20 2016 Anish Swaminathan <anishs@vmware.com> 4.11-1
 -   Upgrade version.
 *   Thu Oct 09 2014 Divya Thaluru <dthaluru@vmware.com> 4.10-1
 -   Initial build. First version