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


@pmatilai commented on this pull request.



> +RPM has a powerful built-in macro processor. The primary uses of macros
+are configuration and other utility functions for RPM itself,
+and as a packaging aid in spec files.
+
+In addition to simple text substitution, the macro processor supports
+the following facilities:
+- function-like parametric macros with options and arguments processing
+  and locally scoped automatic and user-defined macros
+- various built-in primitives for string processing and OS interaction
+- shell expansion
+- expression expansion
+- embedded Lua expansion
+
+The macro definition syntax is:
+
+	_NAME_[([_OPTIONS_])] _BODY_

A parametric macro that doesn't take any options is actually a rather common, and certainly a useful thing. So it's important to make it clear that is supported.

But perhaps it's more helpful to list normal macros and parametric macros as separate syntaxes:
- `_NAME_ _BODY_`
- `_NAME_(_[OPTIONS_]) _BODY_`



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

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


More information about the Rpm-maint mailing list