From ce2e67e4c299b072dc2b246277dad761056f7711 Mon Sep 17 00:00:00 2001 From: Mikhail Novosyolov Date: Mon, 13 Jul 2020 10:48:19 +0300 Subject: [PATCH] Make RPM mark files in both %%_mandir and %%_omandir as docs (RPM4-only) This is a better fix of rpmlint warning that files are not marked as documentation then marking with %doc manually --- libressl.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libressl.spec b/libressl.spec index 4edf2d9..6ea7895 100644 --- a/libressl.spec +++ b/libressl.spec @@ -21,6 +21,8 @@ %define _defaultdocdir %{_oprefix}/share/doc # RPM 4 by default looks for *.pc in %%_libdir which is redefined %global __pkgconfig_path ^(%{_olibdir}/pkgconfig/.*\\.pc|%{_obindir}/pkg-config)$ +# Make RPM mark files in both %%_mandir and %%_omandir as docs (RPM4-only) +%global __docdir_path %{__docdir_path}:%{_omandir} # Disable /usr/share/spec-helper/relink_symlinks # to make sure that symlinks are not broken %define dont_relink 1 @@ -61,7 +63,7 @@ Summary: LibreSSL utils and libs coexisting with OpenSSL Name: libressl Version: 3.2.0 -Release: 1 +Release: 2 # The code is distributed under ISC license except of original OpenSSL code License: ISC and BSD-like Group: System/Base @@ -187,7 +189,7 @@ pkg-config sets -I%{_libdir} in CFLAGS. %{_olibdir}/pkgconfig/*.pc %{_includedir} %{_mandir}/*/* -%doc %{_omandir}/man3/* +%{_omandir}/man3/* %{_rpmmacrodir}/*libressl* #-------------------------------------------------------------------------------------