[Rpm-maint] [rpm-software-management/rpm] docs: document %end marker for spec file sections (PR #4144)

majianhan notifications at github.com
Sat Mar 14 05:53:22 UTC 2026


@crawfordxx commented on this pull request.



> @@ -137,6 +137,20 @@ runtime scripts is then passed on to the interpreter - possibly being
 stored in a header tag along the way. The syntax of the other sections is
 described below.
 
+Normally, a section ends when the next section starts. An optional
+`%end` marker can be used to explicitly mark the end of a section.
+(since rpm >= 4.14)
+
+```
+%install
+make install DESTDIR=%{buildroot}
+%end

Thanks for the suggestion — I've updated the example to show the case where `%end` actually matters (preventing the comment from being swallowed by the preceding section).

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

Message ID: <rpm-software-management/rpm/pull/4144/review/3948223940 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260313/30e16e91/attachment.htm>


More information about the Rpm-maint mailing list