From 33ca7657a1b0b886100465d58494aaf68b3c27d1 Mon Sep 17 00:00:00 2001 From: rwx403335 Date: Fri, 5 Aug 2022 17:42:06 +0800 Subject: [PATCH] fix spec so that man lsof can execute correctly --- lsof.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lsof.spec b/lsof.spec index b6b32c2..6f5dd3b 100644 --- a/lsof.spec +++ b/lsof.spec @@ -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 4.94.0-4 +- fix spec so that man lsof can execute correctly + * Mon Jun 20 2022 renhongxun 4.94.0-3 - enable check -- Gitee