- src.rpm cleanup (see #150864 )
This commit is contained in:
parent
c7c50216b7
commit
e27ccff237
@ -1 +1 @@
|
|||||||
lsof_4.74.tar.bz2
|
lsof_4.74-rh.tar.bz2
|
||||||
|
38
lsof.spec
38
lsof.spec
@ -1,10 +1,11 @@
|
|||||||
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.74
|
Version: 4.74
|
||||||
Release: 3
|
Release: 4
|
||||||
License: Free
|
License: Free
|
||||||
|
%define lsofrh lsof_%{version}-rh
|
||||||
Group: Development/Debuggers
|
Group: Development/Debuggers
|
||||||
Source0: ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/lsof_%{version}.tar.bz2
|
Source0: %{lsofrh}.tar.bz2
|
||||||
Prefix: %{_prefix}
|
Prefix: %{_prefix}
|
||||||
BuildRoot: %{_tmppath}/%{name}-root
|
BuildRoot: %{_tmppath}/%{name}-root
|
||||||
|
|
||||||
@ -14,29 +15,10 @@ information about files that are open by the processes running on a
|
|||||||
UNIX system.
|
UNIX system.
|
||||||
|
|
||||||
%prep
|
%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
|
%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 \
|
#LINUX_KERNEL=`pwd`/../linux LSOF_INCLUDE=`pwd`/../linux/include \
|
||||||
#LSOF_VERS=20036 LSOF_VSTR=2.0.36 LINUX_BASE=/dev/kmem \
|
#LSOF_VERS=20036 LSOF_VSTR=2.0.36 LINUX_BASE=/dev/kmem \
|
||||||
LSOF_VERS=24018 LSOF_VSTR=2.4.18 LINUX_BASE=/proc \
|
LSOF_VERS=24018 LSOF_VSTR=2.4.18 LINUX_BASE=/proc \
|
||||||
@ -46,13 +28,6 @@ make DEBUG="$RPM_OPT_FLAGS"
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf ${RPM_BUILD_ROOT}
|
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}
|
mkdir -p ${RPM_BUILD_ROOT}%{_sbindir}
|
||||||
install -s lsof ${RPM_BUILD_ROOT}%{_prefix}/sbin
|
install -s lsof ${RPM_BUILD_ROOT}%{_prefix}/sbin
|
||||||
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man8
|
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man8
|
||||||
@ -63,11 +38,14 @@ rm -rf ${RPM_BUILD_ROOT}
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(644,root,root,755)
|
%defattr(644,root,root,755)
|
||||||
%doc lsof_%{version}_src/00*
|
%doc 00*
|
||||||
%attr(0755,root,root) %{_sbindir}/*
|
%attr(0755,root,root) %{_sbindir}/*
|
||||||
%{_mandir}/man*/*
|
%{_mandir}/man*/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Mar 14 2005 Karel Zak <kzak@redhat.com> 4.74-4
|
||||||
|
- src.rpm cleanup
|
||||||
|
|
||||||
* Sat Mar 5 2005 Karel Zak <kzak@redhat.com> 4.74-3
|
* Sat Mar 5 2005 Karel Zak <kzak@redhat.com> 4.74-3
|
||||||
- rebuilt
|
- rebuilt
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user