|
@@ -1,25 +1,27 @@
|
|
|
-Summary: A utility which lists open files on a Linux/UNIX system
|
|
|
+Summary: A utility which lists open files on a Linux/UNIX system
|
|
|
Summary(ja): 開かれているファイルの一覧を表示するツール
|
|
|
-Name: lsof
|
|
|
-Version: 4.86
|
|
|
-Release: 1%{?_dist_release}
|
|
|
-License: zlib
|
|
|
-Group: Applications/System
|
|
|
-
|
|
|
-Vendor: Project Vine
|
|
|
+Name: lsof
|
|
|
+Version: 4.93.2
|
|
|
+Release: 1%{?_dist_release}
|
|
|
+Group: Applications/System
|
|
|
+Vendor: Project Vine
|
|
|
Distribution: Vine Linux
|
|
|
-
|
|
|
+# Sendmail .. lib/snpf.c
|
|
|
+# LGPLv2+ .. lib/regex.c, regex.h
|
|
|
+License: zlib and Sendmail and LGPLv2+
|
|
|
+URL: https://github.com/lsof-org/lsof
|
|
|
# lsof contains licensed code that we cannot ship. Therefore we use
|
|
|
# upstream2downstream.sh script to remove the code before shipping it.
|
|
|
#
|
|
|
-# 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
|
|
|
+# The script can be found in SCM or downloaded from:
|
|
|
+# http://pkgs.fedoraproject.org/cgit/lsof.git/tree/upstream2downstream.sh
|
|
|
+%global lsofrh lsof-%{version}-rh
|
|
|
+Source0: %{lsofrh}.tar.xz
|
|
|
+Source1: upstream2downstream.sh
|
|
|
+Patch0: lsof-man-page-section.patch
|
|
|
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
+BuildRequires: groff
|
|
|
|
|
|
%description
|
|
|
Lsof stands for LiSt Open Files, and it does just that: it lists
|
|
@@ -32,31 +34,42 @@ Lsof は UNIX 特有の診断ツールです。その名前は LiSt Open Files
|
|
|
このプログラムは、システムで現在動作しているプロセスによって開かれている
|
|
|
全てのファイルに関する情報を表示します。
|
|
|
|
|
|
+
|
|
|
%prep
|
|
|
%setup -q -n %{lsofrh}
|
|
|
+%patch0 -p1 -b .man-page-section
|
|
|
+
|
|
|
|
|
|
%build
|
|
|
-LSOF_VSTR=2.6.23 LINUX_BASE=/proc ./Configure -n linux
|
|
|
+./Configure -n linux
|
|
|
+%make_build DEBUG="%{?optflags} -I/usr/include/tirpc" CFGL="%{?build_ldflags} -L./lib -llsof -ltirpc"
|
|
|
+# rebase to 4.93 introduced change in Lsof.8 with unhandled .so inclusion
|
|
|
+soelim -r Lsof.8 > lsof.1
|
|
|
|
|
|
-make DEBUG="%{optflags}" %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
|
rm -rf %{buildroot}
|
|
|
mkdir -p %{buildroot}%{_sbindir}
|
|
|
-install -p -m 0755 lsof %{buildroot}%{_prefix}/sbin
|
|
|
-mkdir -p %{buildroot}%{_mandir}/man8
|
|
|
-install -p -m 0644 lsof.8 %{buildroot}%{_mandir}/man8/
|
|
|
+install -p -m 0755 lsof %{buildroot}%{_sbindir}
|
|
|
+mkdir -p %{buildroot}%{_mandir}/man1
|
|
|
+install -p -m 0644 lsof.1 %{buildroot}%{_mandir}/man1/lsof.1
|
|
|
+
|
|
|
|
|
|
%clean
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
+
|
|
|
%files
|
|
|
%defattr(-,root,root,-)
|
|
|
%doc 00*
|
|
|
%{_sbindir}/lsof
|
|
|
%{_mandir}/man*/*
|
|
|
|
|
|
+
|
|
|
%changelog
|
|
|
+* Fri Mar 20 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 4.93.2-1
|
|
|
+- new upstream release.
|
|
|
+
|
|
|
* Mon May 07 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 4.86-1
|
|
|
- new upstream release
|
|
|
- rebased on Fedora's 4.86-1 (previous Vine changelog as follows)
|