From 573c256ed67c0bb7a5887133effe721e2a3ca5fb Mon Sep 17 00:00:00 2001 From: Petr Lautrbach Date: Tue, 9 Dec 2025 07:22:08 +0100 Subject: [PATCH] Fix manpages pattern https://docs.fedoraproject.org/en-US/packaging-guidelines/#_manpages When installing man pages, note that RPM will re-compress them into its preferred format. So the %files section MUST reference manpages with a pattern that takes this into account: %files %{_mandir}/man1/foo.1* --- checkpolicy.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/checkpolicy.spec b/checkpolicy.spec index b1f4705..549296f 100644 --- a/checkpolicy.spec +++ b/checkpolicy.spec @@ -58,8 +58,8 @@ install test/dispol ${RPM_BUILD_ROOT}%{_bindir}/sedispol %license LICENSE %{_bindir}/checkpolicy %{_bindir}/checkmodule -%{_mandir}/man8/checkpolicy.8.gz -%{_mandir}/man8/checkmodule.8.gz +%{_mandir}/man8/checkpolicy.8* +%{_mandir}/man8/checkmodule.8* %{_bindir}/sedismod %{_bindir}/sedispol