%define svn 81 %if %svn %define release %mkrel 0.%svn.1 %else %define release %mkrel 1 %endif Summary: Track runtime library calls from dynamically linked executables Name: ltrace Version: 0.6 Release: %{release} License: GPLv2+ Group: Development/Other URL: http://svn.debian.org/wsvn/ltrace # check out svn://svn.debian.org/ltrace/ltrace/trunk and compress Source0: ltrace-%{svn}.tar.bz2 # fedora patch: Patch5: ltrace-0.5-testsuite.patch ExclusiveArch: %{ix86} x86_64 ppc x86_64 sparc alpha BuildRequires: elfutils-devel %if %svn BuildRequires: autoconf %endif BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %description Ltrace is a debugging program which runs a specified command until the command exits. While the command is executing, ltrace intercepts and records both the dynamic library calls called by the executed process and the signals received by the executed process. Ltrace can also intercept and print system calls executed by the process. You should install ltrace if you need a sysadmin tool for tracking the execution of processes. %prep %if %svn %setup -q -n %{name} %else %setup -q %endif %patch5 -p1 %build export CFLAGS="%{optflags} -D_GNU_SOURCE=1" %if %svn ./autogen.sh %endif %configure %make %install rm -rf %{buildroot} %makeinstall_std # remove unpackaged files rm -rf %{buildroot}%{_prefix}/doc rm -fr %{buildroot}%_docdir/%name %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc README TODO BUGS %config(noreplace) %{_sysconfdir}/ltrace.conf %{_bindir}/ltrace %{_mandir}/man1/ltrace.1* %changelog * Fri Aug 01 2008 Oden Eriksson <oeriksson@mandriva.com> 0.6-0.81.1mdv2009.0 + Revision: 259366 - new svn snap (r81) - drop P100, it's in there - fix build * Mon Jun 16 2008 Thierry Vignaud <tvignaud@mandriva.com> 0.6-0.77.1mdv2009.0 + Revision: 219562 - rebuild - rebuild - rebuild - kill re-definition of %%buildroot on Pixel's request + Oden Eriksson <oeriksson@mandriva.com> - rebuild + Olivier Blin <oblin@mandriva.com> - restore BuildRoot * Wed Aug 22 2007 Adam Williamson <awilliamson@mandriva.com> 0.6-0.77.1mdv2008.0 + Revision: 68826 - rebuild for 2008 - don't package debian changelog and license - strip debian patch of debian-specific stuff - drop patches 2, 3 and 4 (merged or equivalent merged upstream) - update URLs - use Fedora license policy - update to latest SVN rev 77 - correct versioning - spec clean * Fri Aug 18 2006 Thierry Vignaud <tvignaud@mandriva.com> 0.5-1.45svnmdv2007.0 - new release - added fedorad patches - updated debian (useless for now) * Fri Aug 18 2006 Thierry Vignaud <tvignaud@mandriva.com> 0.4-1mdv2007.0 - new release (#24430) - kill patch 2: merged upstream * Sun Jan 01 2006 Mandriva Linux Team <http://www.mandrivaexpert.com/> 0.3.36-3mdk - Rebuild * Thu Jan 13 2005 Per Ãyvind Karlsen <peroyvind@linux-mandrake.com> 0.3.36-2mdk - fix buildrequires * Thu Jan 13 2005 Per Ãyvind Karlsen <peroyvind@linux-mandrake.com> 0.3.36-1mdk - 0.3.36 (sync with fedora) - build on alpha & sparc too