- .spec file cleanup
This commit is contained in:
parent
f731f136cb
commit
37e86b1997
35
lsof.spec
35
lsof.spec
@ -1,8 +1,10 @@
|
|||||||
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.86
|
Version: 4.86
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
License: zlib
|
# Sendmail .. lib/snpf.c
|
||||||
|
# LGPLv2+ .. lib/regex.c, regex.h
|
||||||
|
License: zlib and Sendmail and LGPLv2+
|
||||||
Group: Development/Debuggers
|
Group: Development/Debuggers
|
||||||
|
|
||||||
# lsof contains licensed code that we cannot ship. Therefore we use
|
# lsof contains licensed code that we cannot ship. Therefore we use
|
||||||
@ -10,14 +12,12 @@ Group: Development/Debuggers
|
|||||||
#
|
#
|
||||||
# The script you can found in SCM or download from:
|
# The script you can found in SCM or download from:
|
||||||
# http://pkgs.fedoraproject.org/gitweb/?p=lsof.git;a=blob_plain;f=upstream2downstream.sh
|
# http://pkgs.fedoraproject.org/gitweb/?p=lsof.git;a=blob_plain;f=upstream2downstream.sh
|
||||||
#
|
|
||||||
%define lsofrh lsof_%{version}-rh
|
|
||||||
Source0: %{lsofrh}.tar.bz2
|
|
||||||
URL: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof
|
|
||||||
|
|
||||||
Patch0: lsof-4.86-anoninodfs.patch
|
%global lsofrh lsof_%{version}-rh
|
||||||
|
URL: http://people.freebsd.org/~abe/
|
||||||
|
Source: %{lsofrh}.tar.bz2
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
Patch: lsof-4.86-anoninodfs.patch
|
||||||
|
|
||||||
BuildRequires: libselinux-devel
|
BuildRequires: libselinux-devel
|
||||||
|
|
||||||
@ -28,30 +28,27 @@ UNIX system.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{lsofrh}
|
%setup -q -n %{lsofrh}
|
||||||
%patch0 -p1
|
%patch -p1 -b .anoninodfs
|
||||||
|
|
||||||
%build
|
%build
|
||||||
LSOF_VSTR=2.6.16 LINUX_BASE=/proc ./Configure -n linux
|
./Configure -n linux
|
||||||
|
|
||||||
make DEBUG="$RPM_OPT_FLAGS" %{?_smp_mflags}
|
make DEBUG="$RPM_OPT_FLAGS" %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf ${RPM_BUILD_ROOT}
|
|
||||||
mkdir -p ${RPM_BUILD_ROOT}%{_sbindir}
|
mkdir -p ${RPM_BUILD_ROOT}%{_sbindir}
|
||||||
install -p -m 0755 lsof ${RPM_BUILD_ROOT}%{_prefix}/sbin
|
install -p -m 0755 lsof ${RPM_BUILD_ROOT}%{_sbindir}
|
||||||
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man8
|
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man8
|
||||||
install -p -m 0644 lsof.8 ${RPM_BUILD_ROOT}%{_mandir}/man8/
|
install -p -m 0644 lsof.8 ${RPM_BUILD_ROOT}%{_mandir}/man8
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf ${RPM_BUILD_ROOT}
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%doc 00* README.lsof_*
|
||||||
%doc 00*
|
|
||||||
%{_sbindir}/lsof
|
%{_sbindir}/lsof
|
||||||
%{_mandir}/man*/*
|
%{_mandir}/man*/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Aug 28 2012 Peter Schiffer <pschiffe@redhat.com> - 4.86-4
|
||||||
|
- .spec file cleanup
|
||||||
|
|
||||||
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.86-3
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.86-3
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user