diff --git a/.cvsignore b/.cvsignore index a8b554d..6a4d1fc 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -lsof_4.74.tar.bz2 +lsof_4.74-rh.tar.bz2 diff --git a/lsof.spec b/lsof.spec index 8d252fc..f79edde 100644 --- a/lsof.spec +++ b/lsof.spec @@ -1,10 +1,11 @@ Summary: A utility which lists open files on a Linux/UNIX system. Name: lsof Version: 4.74 -Release: 3 +Release: 4 License: Free +%define lsofrh lsof_%{version}-rh Group: Development/Debuggers -Source0: ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/lsof_%{version}.tar.bz2 +Source0: %{lsofrh}.tar.bz2 Prefix: %{_prefix} BuildRoot: %{_tmppath}/%{name}-root @@ -14,29 +15,10 @@ information about files that are open by the processes running on a UNIX system. %prep -%setup -q #-c -n lsof_%{version} +%setup -q -n %{lsofrh} -# add -a 1 above -#tar xzf %SOURCE1 - -# -# Sort out whether this is the wrapped or linux specific tar ball. -# -[ -f lsof_%{version}.tar ] && tar xf lsof_%{version}.tar -[ -f lsof_%{version}_src.tar ] && tar xf lsof_%{version}_src.tar -[ -d lsof_%{version}.linux -a ! -d lsof_%{version} ] && \ - mv lsof_%{version}.linux lsof_%{version} -[ -d lsof_%{version} ] && cd lsof_%{version} -[ -d lsof_%{version}_src ] && cd lsof_%{version}_src %build - -# -# ### Sort out whether this is the wrapped or linux specific tar ball. -# -[ -d lsof_%{version} ] && cd lsof_%{version} -[ -d lsof_%{version}_src ] && cd lsof_%{version}_src - #LINUX_KERNEL=`pwd`/../linux LSOF_INCLUDE=`pwd`/../linux/include \ #LSOF_VERS=20036 LSOF_VSTR=2.0.36 LINUX_BASE=/dev/kmem \ LSOF_VERS=24018 LSOF_VSTR=2.4.18 LINUX_BASE=/proc \ @@ -46,13 +28,6 @@ make DEBUG="$RPM_OPT_FLAGS" %install rm -rf ${RPM_BUILD_ROOT} - -# -# ### Sort out whether this is the wrapped or linux specific tar ball. -# -[ -d lsof_%{version} ] && cd lsof_%{version} -[ -d lsof_%{version}_src ] && cd lsof_%{version}_src - mkdir -p ${RPM_BUILD_ROOT}%{_sbindir} install -s lsof ${RPM_BUILD_ROOT}%{_prefix}/sbin mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man8 @@ -63,11 +38,14 @@ rm -rf ${RPM_BUILD_ROOT} %files %defattr(644,root,root,755) -%doc lsof_%{version}_src/00* +%doc 00* %attr(0755,root,root) %{_sbindir}/* %{_mandir}/man*/* %changelog +* Mon Mar 14 2005 Karel Zak 4.74-4 +- src.rpm cleanup + * Sat Mar 5 2005 Karel Zak 4.74-3 - rebuilt diff --git a/sources b/sources index 5da00dc..d936eee 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -f3259008d6cca746da6bb48278a56e59 lsof_4.74.tar.bz2 +c6883f8089d25d882a5216228c93c3be lsof_4.74-rh.tar.bz2