On 24. 05. 23 8:06, Alexander Ploumistos wrote:
@churchyard:
Miro, is it possible to tell %pyproject_save_files about the locale
directory or should I resort to one of the workarounds mentioned in
the ticket?
%pyproject_save_files currently detects and marks %lang files if they:
- have a .mo suffix
- are directly in a directory called LC_MESSAGES
The parent directory of LC_MESSAGES is considered the language code. If it has
_ in it, the part after it is removed.
For example:
/usr/lib/python3.11/site-packages/notebook/i18n/fr_FR/LC_MESSAGES/nbui.mo
...is marked as %lang(fr).
Does the %lang tag serve any purpose when there aren't
separate language-specific packages?
I honestly don't know. I guess RPM can be instructed not to install %lang(...)
files of disabled languages, but I don't know how/when that actually happens.
--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok