[Rpm-maint] [rpm-software-management/rpm] Add DYNAMIC SPEC PARTS section to rpm-spec(5) (PR #4299)
Panu Matilainen
notifications at github.com
Thu Sep 3 07:01:35 UTC 2026
@pmatilai commented on this pull request.
> +in and parsed after *%install* (but before *%check*). This mechanism enables the
+creation of sub-packages based on the build results.
+
+Spec parts cannot include preamble tags or directives that are needed for, or
+influence, the build process. This includes all build scriptlets, sources and
+patches, *BuildRequires*, *BuildArch* (except for *noarch* sub-packages),
+*BuildSystem*, *ExcludeArch*, *ExclusiveArch*, *ExcludeOS* and *ExclusiveOS*.
+These will terminate the build with an error if encountered in a spec part.
+Declaring macros meant to be used in build scriptlets is not an error, however
+they will not influence the build for obvious reasons.
+
+Generally, _.specpart_ files should be generated by separate executables invoked
+from build scriptlets rather than by the scriptlets directly. This is to ensure
+that the spec syntax meant for those files is not interpreted prematurely, when
+the spec is read. Spec directives starting at the beginning of the line, such as
+in here documents, should be avoided entirely as they would be interpreted right
And coming back to this after yet another break... bah, this is stuck on a nitpick over a vague thing. Let's just move on.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/4299#discussion_r3921923934
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/4299/review/5098799919 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260903/c7f680f2/attachment.htm>
More information about the Rpm-maint
mailing list