From 537d4afa2d8743c58b6037352a896434d99a0c17 Mon Sep 17 00:00:00 2001 From: Petr Lautrbach Date: Tue, 9 Dec 2025 07:27:48 +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* --- libsepol.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libsepol.spec b/libsepol.spec index 4c52503..f71cfc4 100644 --- a/libsepol.spec +++ b/libsepol.spec @@ -89,7 +89,7 @@ rm -rf ${RPM_BUILD_ROOT}%{_mandir}/ru/man8 %{_libdir}/libsepol.so %{_libdir}/pkgconfig/libsepol.pc %{_includedir}/sepol/*.h -%{_mandir}/man3/*.3.gz +%{_mandir}/man3/*.3* %dir %{_includedir}/sepol %dir %{_includedir}/sepol/policydb %{_includedir}/sepol/policydb/*.h @@ -107,7 +107,7 @@ rm -rf ${RPM_BUILD_ROOT}%{_mandir}/ru/man8 %{_bindir}/sepol_compute_member %{_bindir}/sepol_compute_relabel %{_bindir}/sepol_validate_transition -%{_mandir}/man8/chkcon.8.gz +%{_mandir}/man8/chkcon.8* %changelog %autochangelog