> 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
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to