[Rpm-maint] [rpm-software-management/rpm] Add a man page for rpm macro processor (PR #3781)
Michal Domonkos
notifications at github.com
Fri Jun 13 14:24:25 UTC 2025
@dmnks commented on this pull request.
> +Note that *%if*, *%ifarch* and the like are not macros, they are spec
+directives and only usable in that context.
+
+Note that in rpm >= 4.17, conditionals on built-in macros simply test for
+existence of that built-in, just like with any other macros.
+In older versions, the behavior of conditionals on built-ins is undefined.
+
+## Expression expansion
+Expression expansion can be performed using *%[expression]*. An
+expression consists of terms that can be combined using
+operators.
+
+Rpm supports three kinds of terms:
+- numbers made up from digits
+- strings enclosed in double quotes (eg *"somestring"*)
+- versions enclosed in double quotes preceded by *v* (eg *v"3:1.2-1"*).
Extra trailing period
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3781#pullrequestreview-2925023509
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/3781/review/2925023509 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20250613/8528c152/attachment.htm>
More information about the Rpm-maint
mailing list