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 -- Fedora https://getfedora.org | RPM Fusion http://rpmfusion.org There should be a science of discontent. People need hard times and oppression to develop psychic muscles. -- from "Collected Sayings of Muad'Dib" by the Princess Irulan _______________________________________________ packaging mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to packaging-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/packaging@xxxxxxxxxxxxxxxxxxxxxxx