fix spec so that man lsof can execute correctly

This commit is contained in:
rwx403335 2022-08-05 17:42:56 +08:00
parent ce60a860c2
commit 9b8b680e67

View File

@ -1,6 +1,6 @@
Name: lsof
Version: 4.94.0
Release: 3
Release: 4
Summary: A tool for list open files
License: zlib and Sendmail and LGPLv2+
URL: https://people.freebsd.org/~abe/
@ -26,12 +26,13 @@ The %{name}-help package contains doc files for %{name}.
%build
./Configure -n linux
%make_build DEBUG="%{build_cflags} -I/usr/include/tirpc" CFGL="%{build_ldflags} -L./lib -llsof -lselinux -ltirpc"
soelim -r Lsof.8 > lsof.1
%install
mkdir -p %{buildroot}/%{_bindir}
install -p -m 0755 lsof %{buildroot}/%{_bindir}
mkdir -p %{buildroot}/%{_mandir}/man1
install -p -m 0644 Lsof.8 %{buildroot}/%{_mandir}/man1/lsof.1
install -p -m 0644 lsof.1 %{buildroot}/%{_mandir}/man1/lsof.1
%check
pushd tests
@ -49,6 +50,9 @@ popd
%{_mandir}/man*/*
%changelog
* Fri Aug 05 2022 renhongxun <renhongxun@h-partners.com> 4.94.0-4
- fix spec so that man lsof can execute correctly
* Mon Jun 20 2022 renhongxun <renhongxun@h-partners.com> 4.94.0-3
- enable check