- fix #226108 - Merge Review: lsof

This commit is contained in:
kzak 2007-03-01 16:10:36 +00:00
parent 043c656fa7
commit 4bf0c0c559

View File

@ -1,14 +1,13 @@
Summary: A utility which lists open files on a Linux/UNIX system. Summary: A utility which lists open files on a Linux/UNIX system
Name: lsof Name: lsof
Version: 4.78 Version: 4.78
Release: 3 Release: 4%{?dist}
License: Free License: Free
%define lsofrh lsof_4.78C-rh
Group: Development/Debuggers Group: Development/Debuggers
%define lsofrh lsof_4.78C-rh
Source0: %{lsofrh}.tar.bz2 Source0: %{lsofrh}.tar.bz2
Prefix: %{_prefix} URL: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof
BuildRoot: %{_tmppath}/%{name}-root BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libselinux-devel BuildRequires: libselinux-devel
@ -21,20 +20,19 @@ UNIX system.
%prep %prep
%setup -q -n %{lsofrh} %setup -q -n %{lsofrh}
%patch1 -p1 %patch1 -p1
%build %build
LSOF_VSTR=2.6.16 LINUX_BASE=/proc ./Configure -n linux LSOF_VSTR=2.6.16 LINUX_BASE=/proc ./Configure -n linux
make DEBUG="$RPM_OPT_FLAGS" make DEBUG="$RPM_OPT_FLAGS" %{?_smp_mflags}
%install %install
rm -rf ${RPM_BUILD_ROOT} rm -rf ${RPM_BUILD_ROOT}
mkdir -p ${RPM_BUILD_ROOT}%{_sbindir} mkdir -p ${RPM_BUILD_ROOT}%{_sbindir}
install -m 0755 lsof ${RPM_BUILD_ROOT}%{_prefix}/sbin install -p -m 0755 lsof ${RPM_BUILD_ROOT}%{_prefix}/sbin
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man8 mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man8
install lsof.8 ${RPM_BUILD_ROOT}%{_mandir}/man8/ install -p lsof.8 ${RPM_BUILD_ROOT}%{_mandir}/man8/
%clean %clean
rm -rf ${RPM_BUILD_ROOT} rm -rf ${RPM_BUILD_ROOT}
@ -46,6 +44,9 @@ rm -rf ${RPM_BUILD_ROOT}
%{_mandir}/man*/* %{_mandir}/man*/*
%changelog %changelog
* Thu Mar 1 2007 Karel Zak <kzak@redhat.com> 4.78-4
- fix #226108 - Merge Review: lsof
* Thu Aug 10 2006 Karel Zak <kzak@redhat.com> 4.78-3 * Thu Aug 10 2006 Karel Zak <kzak@redhat.com> 4.78-3
- minor changes to thread patch - minor changes to thread patch
@ -205,4 +206,4 @@ rm -rf ${RPM_BUILD_ROOT}
* Tue Apr 28 1998 Maciej Lesniewski <nimir@kis.p.lodz.pl> * Tue Apr 28 1998 Maciej Lesniewski <nimir@kis.p.lodz.pl>
- Built under RH5 - Built under RH5
- %install was changed - install macro was changed