[Rpm-maint] [rpm-software-management/rpm] Add support for defining literal macros via a new modifier syntax (PR #4129)
Panu Matilainen
notifications at github.com
Tue Mar 24 10:28:18 UTC 2026
@pmatilai commented on this pull request.
> @@ -738,6 +748,19 @@ Expands to *1* if *%aa* expands to *5*, otherwise expands to *2*:
%[ "%{aa}" == "5" ? 1 : 2]
```
+## Example 7. Literal macros
+
+Define a macro whose body contains literal *%* characters, possibly
+overlapping with other macros:
+
+```
+%mymacro 1.2.3
+%aa %mymacro
+%bb<l> %mymacro
Yeah it's technically correct, it's just not a very good example :smile:
Maybe just add one or two other examples instead of trying to find the perfect one. This is a niche thing for most people, but those who need it...
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/4129#discussion_r2980527484
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/4129/review/3997998270 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260324/236d70f8/attachment-0001.htm>
More information about the Rpm-maint
mailing list