[Rpm-maint] [rpm-software-management/rpm] Add a man page for RPM dependency generators (PR #3957)

Panu Matilainen notifications at github.com
Mon Sep 22 07:48:10 UTC 2025


@pmatilai commented on this pull request.



> +%__NAME_magic
+%__NAME_exclude_path
+%__NAME_exclude_magic
+```
+
+The values of these macros represent the inclusion and exclusion rules. They are
+macro-expanded on use and then interpreted as extended regular expressions (RE).
+Matching is inclusive unless changed by _flags_ (see below): If the path, magic
+or both match, the file is said to _have_ the attribute in question, unless
+there is a matching exclusion rule (also inclusive by default) or a flag that
+prevents the match.
+
+The path REs are matched against the packaged path, that is, without the
+*%buildroot* prefix (for example, _/bin/bash_). The magic REs are matched
+against the result of *magic*(5) classification and possibly the *FILECLASS* tag
+stored in the package (see *--fileclass* in *rpm*(8) for details).

The FILECLASS reference is a bit misleading here, it sounds as if rpm in some mystery circumstances would use the packaged FILECLASS data, when we're only in the process of building that package here. It's kinda the other way around - the magic/mime used to classify files is stored into the FILECLASS (v4) or FILEMIME (v6) tags. I'd maybe just leave that part out entirely, it's not particularly important for writing or understanding generators.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3957#pullrequestreview-3251015094
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/3957/review/3251015094 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20250922/ee188997/attachment.htm>


More information about the Rpm-maint mailing list