[Rpm-maint] [rpm-software-management/rpm] Dynamic Spec generation (#1485)

Florian Festi notifications at github.com
Thu Jan 14 13:46:07 UTC 2021


> Do I understand it correctly that you'd essentially do a `my_spec_generator > %_builddir/__rpm/subpac.spec` which would e.g. contain a new subpackage definition?

Basically yes. As this is run in the %build or %install section you would need to modify your spec generator to not output these.
Note that this is not the only possible use. I just did a POC for find_lang.sh to generate language sub packages. This is surprisingly simple and can easily be done in bash.

Long term this may also be used to generate the debuginfo sub packages. But as they are more closely coupled to the rpmbuild internals there are some more pieces needed to make this feasible.

-- 
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/pull/1485#issuecomment-760205838
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20210114/ba430898/attachment-0001.html>


More information about the Rpm-maint mailing list