[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 11:25:40 UTC 2025
@pmatilai commented on this pull request.
> +from being added:
+
+```
+%define __provides_exclude_from ^%{_libdir}/mypkg/.*.so$
+```
+
+The *exclude* variants operate on generated dependency strings. For example, the
+following macro will prevent all typical library requires from being added,
+regardless of which files they originate from:
+
+```
+%define __requires_exclude ^lib.*$
+```
+
+Note that, within spec files, any backslashes need to be double-escaped in order
+to prevent the spec parser from consuming them.
As a special case there's also %__global_DEPTYPE_exclude_from, which is not something folks should be using from the generators or specs, but maybe it should be mentioned from the POV that such a thing exists because it can and does affect the generator output, and so can be a bit baffling in the "why isn't my generator working for X".
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3957#pullrequestreview-3252071061
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/3957/review/3252071061 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20250922/4a7b51b1/attachment.htm>
More information about the Rpm-maint
mailing list