[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:23:54 UTC 2025


@dmnks commented on this pull request.



> +	Shorthand for *%{?macro_name:%macro_name}*.
+
+For more complex tests, use *expressions* or embedded *Lua*.
+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:

Rpm -> RPM

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

Message ID: <rpm-software-management/rpm/pull/3781/review/2925021774 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20250613/7d984a2c/attachment-0001.htm>


More information about the Rpm-maint mailing list