[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 07:37:04 UTC 2025


@pmatilai commented on this pull request.



> +%[1 < 2 ? "true" : "false"]
+```
+
+Compare versions, expanding to *1* or *0* on true/false:
+
+```
+%[ v"3.1.0-1" < v"1.0~alpha-2" ? 1 : 0]
+```
+
+Expands to *1* if *%aa* expands to *5*, otherwise expands to *2*:
+
+```
+%[ "%{aa}" == "5" ? 1 : 2]
+```
+
+# DEBUGGING

Added a couple in the DEBUGGING section to demonstrate the difference between %define and %global.

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

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


More information about the Rpm-maint mailing list