Le 2019-12-16 12:46, Petr Viktorin a écrit :
> Also, "%pyfile" would introduce extra issues. For example, how would
> one split several Python modules across several subpackages?
Just look at how %gofiles and %fontfiles do it
https://pagure.io/fonts-rpm-macros/blob/master/f/templates/rpm/spectempla...
https://pagure.io/go-rpm-macros/blob/master/f/templates/rpm/spectemplate-...
I would be the last to call the supporting macro code in
redhat-rpm-config pretty but it works and is available for reuse by
other fedora packages.
It enables reusing the same macro set for as many upstream modules and
subpackages as one may need to (and it also allows the mixing of those
subpackages when an upstream project provides several kinds of modules,
as is common for language binding projects)
Reagrds,
--
Nicolas Mailhot