DevHeads.net

not all languae files are found - error: Installed (but unpackaged) file(s) found:

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] <a href="https://martinkg.fedorapeople.org/Packages/olive/olive.spec" title="https://martinkg.fedorapeople.org/Packages/olive/olive.spec">https://martinkg.fedorapeople.org/Packages/olive/olive.spec</a>

How can i solve this ?

Regards Martin

Comments

Re: not all languae files are found - error: Installed (but unpa

By Tom Hughes at 11/15/2019 - 03:30

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

Re: not all languae files are found - error: Installed (but unpa

By Martin Gansser at 11/15/2019 - 03:57

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