[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 15:01:35 UTC 2025


@dmnks 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

I'd add an example for `%{macrobody: ... }`, too. It's something I've only learned today (by reading about it here) and immediately thought - yes, that's what I needed many times in the past when debugging some unexpected macro expansions! :smile: 

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

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


More information about the Rpm-maint mailing list