From 71bb01169aef1836c31679cf4609265757a11719 Mon Sep 17 00:00:00 2001 From: Petr Machata Date: Wed, 12 Sep 2007 17:52:47 +0000 Subject: [PATCH] - cleanup spec - resolves: #226109 --- .cvsignore | 2 +- ltrace.spec | 37 ++++++++++++++++++++++++------------- sources | 2 +- 3 files changed, 26 insertions(+), 15 deletions(-) diff --git a/.cvsignore b/.cvsignore index c7d2ec1..c63f4ee 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -ltrace-0.5.tar.gz +ltrace-0.5-svn45.tar.gz diff --git a/ltrace.spec b/ltrace.spec index 40d5cbf..80d6657 100644 --- a/ltrace.spec +++ b/ltrace.spec @@ -1,9 +1,19 @@ Summary: Tracks runtime library calls from dynamically linked executables Name: ltrace Version: 0.5 -Release: 8.45svn%{?dist} -URL: http://alioth.debian.org/projects/ltrace/ -Source: ltrace-0.5.tar.gz +Release: 9.45svn%{?dist} +URL: http://ltrace.alioth.debian.org/ +License: GPLv2+ +Group: Development/Debuggers +ExclusiveArch: %{ix86} x86_64 ia64 ppc ppc64 s390 s390x alpha sparc +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: elfutils-libelf-devel dejagnu + +# Tarball generated from svn checkout. To regenerate: +# svn co svn://svn.debian.org/ltrace -r 45 +# cd ltrace/ltrace/trunk && ./autogen.sh && ./configure && make dist +Source: ltrace-0.5-svn45.tar.gz + Patch0: ltrace-0.4-exec.patch Patch1: ltrace-0.4-fork.patch Patch2: ltrace-0.5-opd.patch @@ -18,11 +28,6 @@ Patch10: ltrace-0.5-exec.patch Patch11: ltrace-0.5-exec-tests.patch Patch12: ltrace-0.5-man.patch Patch13: ltrace-0.5-ia64-sigill.patch -License: GPLv2+ -Group: Development/Debuggers -ExclusiveArch: %{ix86} x86_64 ia64 ppc ppc64 s390 s390x alpha sparc -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: elfutils-libelf-devel dejagnu %description Ltrace is a debugging program which runs a specified command until the @@ -53,13 +58,15 @@ execution of processes. sed -i -e 's/-o root -g root//' Makefile.in %build +# This ugly hack is necessary to build and link files for correct +# architecture. It makes a difference on ppc. export CC="gcc`echo $RPM_OPT_FLAGS | sed -n 's/^.*\(-m[36][124]\).*$/ \1/p'`" -%configure CC="$CC" LDFLAGS="$LDFLAGS -Wl,-z,relro" -make +%configure CC="$CC" +make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT -make DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir} docdir=%{_docdir}/ltrace-%{version}/ install +make DESTDIR=$RPM_BUILD_ROOT bindir=%{_bindir} docdir=%{_docdir}/ltrace-%{version}/ install #%check #echo ====================TESTING========================= @@ -72,11 +79,15 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc COPYING README TODO BUGS ChangeLog -%{_prefix}/bin/ltrace +%{_bindir}/ltrace %{_mandir}/man1/ltrace.1* -%config(noreplace) /etc/ltrace.conf +%config(noreplace) %{_sysconfdir}/ltrace.conf %changelog +* Wed Sep 12 2007 Petr Machata - 0.5-9.45svn +- cleanup spec +- resolves: #226109 + * Thu Aug 16 2007 Petr Machata - 0.5-8.45svn - Fix licensing tag. diff --git a/sources b/sources index 3d9dd7a..5778529 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -9b96a0056e9ba88a54e938973bf83025 ltrace-0.5.tar.gz +9b96a0056e9ba88a54e938973bf83025 ltrace-0.5-svn45.tar.gz