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

Michal Domonkos notifications at github.com
Mon Jun 16 07:55:45 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:

Indeed :smile: There are basically two variants I can think of, if we want to standardize this:
1) lowercase, bold "rpm" (including when a sentence starts with it) - this is what many projects do
2) uppercase "RPM" - this is also fine IMHO

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

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


More information about the Rpm-maint mailing list