find-lang.sh search path

Antonio anto.trande at gmail.com
Mon Jul 1 18:57:46 UTC 2013


On Mon 01 Jul 2013 08:53:44 PM CEST, Michael Schwendt wrote:
> On Mon, 01 Jul 2013 20:36:25 +0200, Antonio wrote:
>
>> In qgifer package building (Bug#979702), I need to include language
>> *.qm files from source software.
>>
>> Currently, 'cmake' command puts language files into /usr/share/locale
>> directory but find-lang.sh doesn't locate them in $RPM_BUILD_ROOT. Why ?
>
> The usage of %find_lang seems incorrect:
>
>> + /usr/lib/rpm/find-lang.sh
>> /home/sagitter/rpmbuild/BUILDROOT/qgifer-0.2.1-1.fc19.x86_64 pl --with-qt
>> No translations found for pl in
>> /home/sagitter/rpmbuild/BUILDROOT/qgifer-0.2.1-1.fc19.x86_64
>
> There's a suspicious "pl" in there.
>

"pl" is the file name without extension (pl.qm). In .spec file:

...
%find_lang pl --with-qt
%find_lang ru --with-qt
...

Are they correct ?

----
Antonio Trande

mailto: sagitter at fedoraproject.org
Homepage: http://www.fedoraos.worpress.com
GPG Key: D400D6C4


More information about the devel mailing list