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
This commit is contained in:
Mikhail Novosyolov 2020-07-13 10:48:19 +03:00
parent 2d4e2f6ffa
commit ce2e67e4c2

View file

@ -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*
#-------------------------------------------------------------------------------------