[Rpm-maint] [rpm-software-management/rpm] Implement prepend and append modes for all our normal build scriptlets (PR #2728)

Panu Matilainen notifications at github.com
Fri Oct 20 10:31:37 UTC 2023


@pmatilai commented on this pull request.



> @@ -461,6 +461,13 @@ when name is omitted, the description refers to the main package.
 Package build is divided into multiple separate steps, each executed
 in a separate shell.
 
+Only one of each section can be present in a spec, but all build scriptlets
+except for `%prep` accept options `-a` and `-p`, for append and prepend mode.
+Append and prepend append or prepend lines to the section in the order they
+appear in the spec. Both append and prepend can be used multiple times and
+without other restrictions, but a section without either mode can only
+appear first (eg `%build` cannot follow `%build -p`).

As it says, append and prepend can be used without any restrictions. So if eg %install does not already exist then '%install -a' or '%install -p' is simply equivalent to '%install'. However plain '%install' can only appear first because anything else would be ambiguous. 

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

Message ID: <rpm-software-management/rpm/pull/2728/review/1689742541 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20231020/8f944457/attachment.html>


More information about the Rpm-maint mailing list