From 7c7dbdede5697ef08f51873110fa12894ceaf48c Mon Sep 17 00:00:00 2001 From: Peter Schiffer Date: Mon, 30 Nov 2015 13:27:53 +0100 Subject: [PATCH] Moved lsof to /usr/bin, it's not sysadmin only utility - resolves #1260300 --- lsof-man-page-section.patch | 10 ++++++++++ lsof.spec | 20 ++++++++++++++------ 2 files changed, 24 insertions(+), 6 deletions(-) create mode 100644 lsof-man-page-section.patch diff --git a/lsof-man-page-section.patch b/lsof-man-page-section.patch new file mode 100644 index 0000000..60ec974 --- /dev/null +++ b/lsof-man-page-section.patch @@ -0,0 +1,10 @@ +diff -upr lsof_4.89-rh.orig/lsof.8 lsof_4.89-rh/lsof.8 +--- lsof_4.89-rh.orig/lsof.8 2015-11-30 13:09:37.785075681 +0100 ++++ lsof_4.89-rh/lsof.8 2015-11-30 13:10:11.663029129 +0100 +@@ -1,5 +1,5 @@ + .ds VN 4.89 +-.TH LSOF 8 Revision-\*(VN ++.TH LSOF 1 Revision-\*(VN + \" Register )P is used neither by this file nor any groff macro. However, + \" some versions of nroff require it. + .if !\n(.g \{\ diff --git a/lsof.spec b/lsof.spec index 2611789..58fff8c 100644 --- a/lsof.spec +++ b/lsof.spec @@ -1,7 +1,7 @@ Summary: A utility which lists open files on a Linux/UNIX system Name: lsof Version: 4.89 -Release: 1%{?dist} +Release: 2%{?dist} # Sendmail .. lib/snpf.c # LGPLv2+ .. lib/regex.c, regex.h License: zlib and Sendmail and LGPLv2+ @@ -18,6 +18,9 @@ URL: http://people.freebsd.org/~abe/ Source0: %{lsofrh}.tar.xz Source1: upstream2downstream.sh +# BZ#1260300 - move lsof man page to section 1 +Patch0: lsof-man-page-section.patch + BuildRequires: libselinux-devel %description @@ -26,23 +29,28 @@ about files that are open by the processes running on a UNIX system. %prep %setup -q -n %{lsofrh} +%patch0 -p1 -b .man-page-section %build ./Configure -n linux make DEBUG="$RPM_OPT_FLAGS" %{?_smp_mflags} %install -mkdir -p ${RPM_BUILD_ROOT}%{_sbindir} -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 +mkdir -p ${RPM_BUILD_ROOT}%{_bindir} +install -p -m 0755 lsof ${RPM_BUILD_ROOT}%{_bindir} +mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1 +install -p -m 0644 lsof.8 ${RPM_BUILD_ROOT}%{_mandir}/man1/lsof.1 %files %doc 00* README* RELEASE* -%{_sbindir}/lsof +%{_bindir}/lsof %{_mandir}/man*/* %changelog +* Mon Nov 30 2015 Peter Schiffer - 4.89-2 +- resolves #1260300 + moved lsof to /usr/bin, it's not sysadmin only utility + * Wed Jul 29 2015 Peter Schiffer - 4.89-1 - updated to 4.89