- .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
|
||||
Name: lsof
|
||||
Version: 4.86
|
||||
Release: 3%{?dist}
|
||||
License: zlib
|
||||
Release: 4%{?dist}
|
||||
# Sendmail .. lib/snpf.c
|
||||
# LGPLv2+ .. lib/regex.c, regex.h
|
||||
License: zlib and Sendmail and LGPLv2+
|
||||
Group: Development/Debuggers
|
||||
|
||||
# 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:
|
||||
# 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
|
||||
|
||||
@ -28,30 +28,27 @@ UNIX system.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{lsofrh}
|
||||
%patch0 -p1
|
||||
%patch -p1 -b .anoninodfs
|
||||
|
||||
%build
|
||||
LSOF_VSTR=2.6.16 LINUX_BASE=/proc ./Configure -n linux
|
||||
|
||||
./Configure -n linux
|
||||
make DEBUG="$RPM_OPT_FLAGS" %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
rm -rf ${RPM_BUILD_ROOT}
|
||||
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
|
||||
install -p -m 0644 lsof.8 ${RPM_BUILD_ROOT}%{_mandir}/man8/
|
||||
|
||||
%clean
|
||||
rm -rf ${RPM_BUILD_ROOT}
|
||||
install -p -m 0644 lsof.8 ${RPM_BUILD_ROOT}%{_mandir}/man8
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc 00*
|
||||
%doc 00* README.lsof_*
|
||||
%{_sbindir}/lsof
|
||||
%{_mandir}/man*/*
|
||||
|
||||
%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
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user