133 lines
3.3 KiB
RPMSpec
133 lines
3.3 KiB
RPMSpec
|
Summary: A utility which lists open files on a Linux/UNIX system.
|
||
|
Name: lsof
|
||
|
Version: 4.47
|
||
|
Release: 5
|
||
|
Copyright: Free
|
||
|
Group: Development/Debuggers
|
||
|
Source0: ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/lsof_%{version}_W.tar.gz
|
||
|
Prefix: %{_prefix}
|
||
|
BuildRoot: %{_tmppath}/%{name}-root
|
||
|
|
||
|
%description
|
||
|
Lsof stands for LiSt Open Files, and it does just that: it lists
|
||
|
information about files that are open by the processes running on a
|
||
|
UNIX system.
|
||
|
|
||
|
%prep
|
||
|
%setup -q -c -n lsof_%{version}
|
||
|
|
||
|
# 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
|
||
|
[ -d lsof_%{version}.linux -a ! -d lsof_%{version} ] && \
|
||
|
mv lsof_%{version}.linux lsof_%{version}
|
||
|
[ -d lsof_%{version} ] && cd lsof_%{version}
|
||
|
|
||
|
%build
|
||
|
|
||
|
#
|
||
|
# ### Sort out whether this is the wrapped or linux specific tar ball.
|
||
|
#
|
||
|
[ -d lsof_%{version} ] && cd lsof_%{version}
|
||
|
|
||
|
#LINUX_KERNEL=`pwd`/../linux LSOF_INCLUDE=`pwd`/../linux/include \
|
||
|
#LSOF_VERS=20036 LSOF_VSTR=2.0.36 LINUX_BASE=/dev/kmem \
|
||
|
LSOF_VERS=22012 LSOF_VSTR=2.2.12 LINUX_BASE=/proc \
|
||
|
./Configure -n linux
|
||
|
|
||
|
make
|
||
|
|
||
|
%install
|
||
|
rm -rf ${RPM_BUILD_ROOT}
|
||
|
|
||
|
#
|
||
|
# ### Sort out whether this is the wrapped or linux specific tar ball.
|
||
|
#
|
||
|
[ -d lsof_%{version} ] && cd lsof_%{version}
|
||
|
|
||
|
mkdir -p ${RPM_BUILD_ROOT}%{_sbindir}
|
||
|
install -s lsof ${RPM_BUILD_ROOT}%{_prefix}/sbin
|
||
|
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man8
|
||
|
install lsof.8 ${RPM_BUILD_ROOT}%{_mandir}/man8/
|
||
|
|
||
|
%clean
|
||
|
rm -rf ${RPM_BUILD_ROOT}
|
||
|
|
||
|
%files
|
||
|
%defattr(644,root,root,755)
|
||
|
%doc lsof_%{version}/00*
|
||
|
%attr(0755,root,root) %{_sbindir}/*
|
||
|
%{_mandir}/man*/*
|
||
|
|
||
|
%changelog
|
||
|
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
|
||
|
- automatic rebuild
|
||
|
|
||
|
* Wed Jun 14 2000 Jeff Johnson <jbj@redhat.com>
|
||
|
- FHS packaging.
|
||
|
|
||
|
* Sun Mar 26 2000 Florian La Roche <Florian.LaRoche@redhat.com>
|
||
|
- change to root:root perms
|
||
|
|
||
|
* Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com>
|
||
|
- fix description
|
||
|
- man pages are compressed
|
||
|
|
||
|
* Wed Dec 22 1999 Jeff Johnson <jbj@redhat.com>
|
||
|
- update to 4.47.
|
||
|
|
||
|
* Tue Aug 3 1999 Jeff Johnson <jbj@redhat.com>
|
||
|
- update to 4.45.
|
||
|
|
||
|
* Fri Jun 25 1999 Jeff Johnson <jbj@redhat.com>
|
||
|
- update to 4.44.
|
||
|
|
||
|
* Fri May 14 1999 Jeff Johnson <jbj@redhat.com>
|
||
|
- upgrade to 4.43 with sparc64 tweak (#2803)
|
||
|
|
||
|
* Thu Apr 08 1999 Preston Brown <pbrown@redhat.com>
|
||
|
- upgrade to 4.42 (security fix)
|
||
|
|
||
|
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
|
||
|
- auto rebuild in the new build environment (release 5)
|
||
|
|
||
|
* Fri Mar 19 1999 Jeff Johnson <jbj@redhat.com>
|
||
|
- turn off setgid kmem "just in case".
|
||
|
|
||
|
* Thu Feb 18 1999 Jeff Johnson <jbj@redhat.com>
|
||
|
- buffer overflow patch.
|
||
|
- upgrade to 4.40.
|
||
|
|
||
|
* Wed Dec 30 1998 Jeff Johnson <jbj@redhat.com>
|
||
|
- update to "official" 4.39 release.
|
||
|
|
||
|
* Wed Dec 16 1998 Jeff Johnson <jbj@redhat.com>
|
||
|
- update to 4.39B (linux) with internal kernel src.
|
||
|
|
||
|
* Tue Dec 15 1998 Jeff Johnson <jbj@redhat.com>
|
||
|
- update to 4.39A (linux)
|
||
|
|
||
|
* Sat Sep 19 1998 Jeff Johnson <jbj@redhat.com>
|
||
|
- update to 4.37
|
||
|
|
||
|
* Thu Sep 10 1998 Jeff Johnson <jbj@redhat.com>
|
||
|
- update to 4.36
|
||
|
|
||
|
* Thu Jul 23 1998 Jeff Johnson <jbj@redhat.com>
|
||
|
- upgrade to 4.35.
|
||
|
- rewrap for RH 5.2.
|
||
|
|
||
|
* Mon Jun 29 1998 Maciej Lesniewski <nimir@kis.p.lodz.pl>
|
||
|
[4.34-1]
|
||
|
- New version
|
||
|
- Spec rewriten to use %{name} and %{version} macros
|
||
|
- Removed old log enteries
|
||
|
|
||
|
* Tue Apr 28 1998 Maciej Lesniewski <nimir@kis.p.lodz.pl>
|
||
|
- Built under RH5
|
||
|
- %install was changed
|