[Rpm-maint] [rpm-software-management/rpm] Add a man page for rpm macro processor (PR #3781)
Neal Gompa (ニール・ゴンパ)
notifications at github.com
Tue Jun 10 10:16:53 UTC 2025
@Conan-Kudo commented on this pull request.
> +Some useful tools for working with and troubleshooting macros:
+
+*rpm --eval "*_EXPRESSION_*"*
+ Expand macro _EXPRESSION_ on the command line.
+
+*rpm --define "aa 11" --eval "%aa"*
+ Define and evalue a macro on the command line.
+
+*rpmlua -e 'print(macros.defined("\_libdir"))'*
+ Using the embedded Lua interpreter in standalone form, print
+ print 1/0 whether macro *\_libdir* is defined or not.
+
+*rpmspec --shell telnet.spec*
+ Run interactive shell on the macro environment after parsing
+ *telnet.spec*.
+
TIL about `rpmspec --shell`, it's rather handy!
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3781#discussion_r2137478981
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/3781/review/2912869858 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20250610/ae3346a3/attachment.htm>
More information about the Rpm-maint
mailing list