Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > e72eb2727502f300cc04281af5e07022 > files > 1

lsof-4.65-3mdk.src.rpm

%define dname %{name}_%version

Summary: Lists files open by processes
Name:    lsof
Version: 4.65
Release: 3mdk
License: Free
Url:	ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/
Group: Monitoring
Source0: ftp://vic.cc.purdue.edu/pub/tools/unix/%name/%dname.tar.bz2
Patch0: lsof_4.64-perl-example-fix.patch.bz2
Patch1: lsof_4.60-has-security.patch.bz2
BuildRoot: %_tmppath/%name-%version-build

%description
Lsof's name 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 %dname

#
# Sort out whether this is the wrapped or linux specific tar ball.
#
[ -d %dname ] && cd %dname
[ -f %{dname}_src.tar ] && tar xf %{dname}_src.tar
[ -d %dname.linux -a ! -d %dname ] && \
	mv %dname.linux %dname
[ -d %{dname}_src ] && cd %{dname}_src
%patch0 -p1
%patch1 -p1

%build
rm -rf $RPM_BUILD_ROOT
[ -d %{dname}/%{dname}_src ] && cd %{dname}/%{dname}_src

LINUX_BASE=/proc
export LINUX_BASE
./Configure -n linux

%make DEBUG="$RPM_OPT_FLAGS"

%install
rm -rf $RPM_BUILD_ROOT
[ -d %{dname}/%{dname}_src ] && cd %{dname}/%{dname}_src
mkdir -p $RPM_BUILD_ROOT{%_sbindir,%_mandir/man8}
install -s %name $RPM_BUILD_ROOT%_sbindir
cp lsof.8 $RPM_BUILD_ROOT%_mandir/man8

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc %dname/00*
%attr(0755,root,kmem) %_sbindir/%name
%_mandir/man8/lsof.8*

%changelog
* Thu Jan 02 2003 Thierry Vignaud <tvignaud@mandrakesoft.com> 4.65-3mdk
- build release

* Mon Oct 14 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 4.65-2mdk
- add url (Yura Gusev)

* Fri Oct 11 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 4.65-1mdk
- new release

* Wed Jul 10 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 4.64-1mdk
- new release
- get rid of useless prefix
- various spec cleaning
- rediff patch 0

* Tue Apr 16 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 4.60-2mdk
- fix example scripts to call perl in the proper location [Patch0]
- compile with the HASSECURITY option enabled meaning you can only see
  open files for your own processes [Patch1]

* Thu Jan 03 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 4.60-1mdk
- new release

* Sat Jul 21 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 4.57-1mdk
- 4.57 out for general consumption.
- s/Copyright/License/;

* Sat May 05 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 4.56-1mdk
- 4.56 for general consumption.
- Attempt to build without explicitly defining the kernel version.

* Sat Feb 17 2001 Geoffrey lee <snailtalk@mandrakesoft.com> 4.55-1mdk
- 4.55 out for general consumption.

* Fri Dec 08 2000 Geoffrey Lee <snailtlak@mandrakesoft.com> 4.53-1mdk
- new and shiny source.

* Wed Aug 23 2000 Thierry Vignaud <tvignaud@mandrakesoft.com> 4.51-1mdk
- new release
- stop manually stripping binaries and compressing man pages :-(

* Wed Aug 23 2000 Lenny Cartier <lenny@mandrakesoft.com> 4.49-2mdk
- Used srpm from Alexander Skwar <ASkwar@DigitalProjects.com> :
	A little bit more macros
	Only use "install" when actually needed, else use mkdir -p or cp

* Mon Apr 17 2000 Jeff Garzik <jgarzik@mandrakesoft.com> 4.49-1mdk
- version 4.49

* Tue Apr 11 2000 Christopher Molnar <molnarc@mandrakesoft.com> 4.45-4mdk
- Updated group

* Wed Apr  5 2000 Jeff Garzik <jgarzik@mandrakesoft.com> 4.45-3mdk
- updated BuildRoot

* Wed Oct 20 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
- Build release.

* Fri Oct  1 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
- 4.45.

* Sat Jul  3 1999 Bernhard Rosenkraenzer <bero@mandrakesoft.de>
- 4.44
- remove obsolete kernel 2.2 patch
- handle RPM_OPT_FLAGS
- build for kernel 2.2.10

* Tue May 11 1999 Bernhard Rosenkraenzer <bero@mandrakesoft.com>
- Mandrake adaptions

* 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