From 5e4ac5cabbe307b161d8972d04c3b808ae8caea8 Mon Sep 17 00:00:00 2001 From: renxichen Date: Wed, 16 Nov 2022 11:40:27 +0800 Subject: [PATCH] exclude some redundant pages from help (cherry picked from commit 4f38e6cf95c1daf46bdca652c9d6b03592b2f450) --- man-pages.spec | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/man-pages.spec b/man-pages.spec index abf1bb1..bd0f515 100644 --- a/man-pages.spec +++ b/man-pages.spec @@ -1,6 +1,6 @@ Name: man-pages Version: 5.13 -Release: 3 +Release: 4 Summary: Linux kernel and user-space C library interfaces documentation License: GPL+ and GPLv2+ and BSD and MIT and Copyright only and IEEE URL: http://www.kernel.org/doc/man-pages/ @@ -23,6 +23,7 @@ other C libraries available for Linux is also included. %prep %autosetup -p1 +sed -i 's/prefix := \/usr\/local/prefix := \/usr/g' Makefile %build @@ -44,9 +45,17 @@ make install DESTDIR=%{buildroot} %doc README man-pages-%{version}.Announce Changes %files help -/usr/local/share/man*/* +%{_mandir}/man*/* +%exclude %{_mandir}/man3/crypt_r.3.gz +%exclude %{_mandir}/man3/crypt.3.gz +%exclude %{_mandir}/man7/bpf-helpers.7.gz +%exclude %{_mandir}/man3/MAX.3.gz +%exclude %{_mandir}/man3/MIN.3.gz %changelog +* Wed Nov 16 2022 renhongxun - 5.13-4 +- exclude some redundant pages from help + * Tue May 24 2022 renhongxun - 5.13-3 - change 'Tue Mon 15 2022' to 'Tue Mar 15 2022' in last changelog -- Gitee