Bump to lsof 4.91
[platform/upstream/lsof.git] / packaging / lsof.spec
1 Name:           lsof
2 Version:        4.91
3 Release:        0
4 License:        Zlib
5 Summary:        A utility which lists open files on a Linux/UNIX system
6 URL:            http://people.freebsd.org/~abe/
7 Group:          Base/Tools
8 # lsof contains licensed code that we cannot ship.  Therefore we use
9 # upstream2downstream.sh script to remove the code before shipping it.
10 Source0:        %{name}_%{version}-linux-only.tar.xz
11 #Source1:        upstream2downstream.sh
12 Source1001:     lsof.manifest
13
14 %description
15 Lsof stands for LiSt Open Files, and it does just that: it lists
16 information about files that are open by the processes running on a
17 UNIX system.
18
19 %prep
20 %setup -q -n %{name}_%{version}-linux-only
21 cp %{SOURCE1001} .
22
23 %build
24 LSOF_VSTR=2.6.16 LINUX_BASE=/proc ./Configure -n linux
25
26 make DEBUG="%{optflags} -fPIC" CFGL="-pie " %{?_smp_mflags}
27
28 %install
29 install -Dm755 lsof %{buildroot}%{_sbindir}/lsof
30 install -Dm644 lsof.8 %{buildroot}%{_mandir}/man8/lsof.8
31
32
33 %docs_package
34
35 %files
36 %manifest %{name}.manifest
37 %{_sbindir}/lsof