[Rpm-maint] [rpm-software-management/rpm] docs: document %end marker for spec file sections (PR #4144)
Panu Matilainen
notifications at github.com
Thu Mar 12 07:32:41 UTC 2026
@pmatilai 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
The example would be more useful if it demonstrated a case where this actually matters. For example:
```
%post
/some/command
%end
# a comment about %preun
%preun
/other/command
```
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/4144#pullrequestreview-3934528157
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/4144/review/3934528157 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260312/2bd8dba4/attachment.htm>
More information about the Rpm-maint
mailing list