Hi,
i want to create a rpm package [1] of the program olive, i use the macro %find_lang, but not all language files are found.
this is the error message, it get. Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/martin/rpmbuild/BUILDROOT/olive-0.1.2-1.fc31.x86_64 error: Installed (but unpackaged) file(s) found: /usr/share/olive-editor/ts/olive_pt-BR.qm /usr/share/olive-editor/ts/olive_zh-CN.qm /usr/share/olive-editor/ts/olive_zh-TW.qm
[1] https://martinkg.fedorapeople.org/Packages/olive/olive.spec
How can i solve this ?
Regards Martin
On 15/11/2019 08:22, Martin Gansser wrote:
i want to create a rpm package [1] of the program olive, i use the macro %find_lang, but not all language files are found.
this is the error message, it get. Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/martin/rpmbuild/BUILDROOT/olive-0.1.2-1.fc31.x86_64 error: Installed (but unpackaged) file(s) found: /usr/share/olive-editor/ts/olive_pt-BR.qm /usr/share/olive-editor/ts/olive_zh-CN.qm /usr/share/olive-editor/ts/olive_zh-TW.qm
[1] https://martinkg.fedorapeople.org/Packages/olive/olive.spec
Looking at /usr/lib/rpm/find-lang.sh I think it doesn't like the hyphen - it wants olive_pt_BR not olive_pt-BR as the name of the file.
Tom
ok, i think this is not simply to resolve, i will take the command
find %{buildroot}%{_datadir}/%{name}-editor/ts -name "*.qm" | sed 's:'%{buildroot}':: s:.*/([a-zA-Z]{2}).qm:%lang(\1) \0:' > %{name}.lang
for now, and report the issue upstream.
Regards Martin
Hi Tom, I am totally unsure what is right and not. I reported the issue upstream and they answerd me this [1]:
"@martinkg, the Qt library requires the language and country to be separated by a hyphen rather than an underscore:
https://wiki.qt.io/Basics_of_Locales
Olive does not recognize translation files renamed with underscore."
Means this, that the macro %find_lang can't handle transation files with underscrore ?
[1] https://github.com/olive-editor/olive/pull/1117
Regards Martin
Martin Gansser wrote:
I am totally unsure what is right and not. I reported the issue upstream and they answerd me this [1]:
"@martinkg, the Qt library requires the language and country to be separated by a hyphen rather than an underscore:
https://wiki.qt.io/Basics_of_Locales
Olive does not recognize translation files renamed with underscore."
Means this, that the macro %find_lang can't handle transation files with underscrore ?
No, it means that their application (Olive) cannot handle them. IMHO, the application is broken and needs to be fixed: https://github.com/olive-editor/olive/pull/1117#issuecomment-554740824
Kevin Kofler
Thanks for the clarification, I hope upstream will correct this.
greetings Martin