[Rpm-maint] [rpm-software-management/rpm] RFE: add %prep/%build/%install scriptlets to SRPM headers (#467)
Jeff Johnson
notifications at github.com
Sat Jul 14 20:10:53 UTC 2018
Adding the parsed scriptlet sections to a SRPM header would permit (module %setup/%patch expansions) generating s simple shell script using --queryformat capable of building software without using rpmbuild.
(aside)
There is no reason that %setup and %patch expansions could not also be expanded into %prep as well.
The immediate usage cases are generating bootstrap shell scripts on systems that do not yet have a functional rpmbuild, as well as streamlining the steps necessary to import a SRPM build into an IDE, two processes that often have to reinvent an already existing wheel.
The largest issue is deciding whether scriptlets should be included in SRPM header tags before or after macro expansion. Personally I'd suggest before expansion and include the macros that were used in order to preserve useful abstraction of common strings; one can also argue for true WYSIWYG in tag content.
In bothe cases %setup/%patch would need special handling. The is also %{lua:...} embedding, but there are few widespread usage cases that preclude adding scriptlet tags to SRPM headers in spite of embedded lua (and other interpreters)
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/467
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20180714/882f83f8/attachment.html>
More information about the Rpm-maint
mailing list