[Rpm-maint] [rpm-software-management/rpm] Mark man pages with RPMFILE_MAN and info pages with RPMFILE_INFO (#1404)

David Cantrell notifications at github.com
Mon Oct 19 15:18:34 UTC 2020


Define two additional file flags.  One for man pages and one for info pages.  These files are currently marked as RPMFILE_DOC during rpmbuild.  This patch also marks man pages with RPMFILE_MAN and info pages with RPMFILE_INFO.  The idea is that while they are still documentation, there will be further file flag details in the RPM header indicating what kind of docs they are.  This patch could be extended to allow rpm to carry options like --excludeman and --excludeinfo, though if that happens the file flags may want to exclude man and info pages from RPMFILE_DOC entirely.

My motivation for these additional file flags are for use in rpminspect when performing tests on man pages or info pages.  Right
now tools like rpminspect have to match man pages based on path and file type, which rpm already knows about.  If the RPM header can carry a flag marking each man page, it makes tests in other tools easier.  The same for info pages.

Signed-off-by: David Cantrell <dcantrell at redhat.com>
You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/1404

-- Commit Summary --

  * Mark man pages with RPMFILE_MAN and info pages with RPMFILE_INFO

-- File Changes --

    M build/files.c (40)
    M lib/rpmfiles.h (2)
    M macros.in (6)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/1404.patch
https://github.com/rpm-software-management/rpm/pull/1404.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1404
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20201019/b9400723/attachment.html>


More information about the Rpm-maint mailing list