[Rpm-maint] [rpm-software-management/rpm] Add a man page for rpm macro processor (PR #3781)

Panu Matilainen notifications at github.com
Mon Jun 16 06:24:28 UTC 2025


@pmatilai 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:

This made me realize we don't have any guidance on the spelling of rpm as-a-project in the template :sweat_smile: 

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

Message ID: <rpm-software-management/rpm/pull/3781/review/2930774449 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20250615/758d2ffe/attachment.htm>


More information about the Rpm-maint mailing list