On Monday, 16 December 2019 at 10:19, Vít Ondruch wrote:
I though about this a bit and to be more constructive, I think that you should probably move the file list creation out of %files section. Do it probably in %install section instead. That way, you would have more flexibility. You could have something like "%pyfile %{python3_sitelib}/foo.py" and it would do on background something like:
echo %{python3_sitelib}/foo.py > pyfiles.lst echo %{python3_sitelib}/foo.pyc > pycache.lst
Later you would just submit these file lists to the appropriate packages. This would be IMO more flexible.
+1. %find_lang macro does this and is very flexible.
Regards, Dominik