Vitaly Zaitsev via devel wrote:
> On 03/11/2022 17:01, Gary Buhrmaster wrote:
>> As I recall(*), there are spec files that just
>> find the various installed files (categorized
>> as needed), and then use the -f option
>> on the %files section.
> 
> IMO, such behavior should be strictly prohibited.

Congratulations, you have just banned %find_lang…

There are cases where automatically generating a file list is clearly the 
most reasonable solution, and we even have macros for that (e.g., %find_lang 
and some KDE-specific variants of the concept). (Hint: A wildcard would 
actually be wrong to use there because it misses the %lang(…) tags that the 
macro automatically adds. And you really do not want to have to list every 
single language manually, and update the list for every single new upstream 
release, since translations come and go.)

        Kevin Kofler
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
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/devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to