-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 07/01/2013 10:31 PM, Michael Schwendt wrote: > On Mon, 01 Jul 2013 20:57:46 +0200, Antonio wrote: > >> 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 ? > > No. > > Multiple invocations of %find_lang is a consecutive fault after > installing the locale files wrongly. You would run %find_lang once > only and give it the common name of the files to search for. Most > often that is the package %{name}: > > https://fedoraproject.org/wiki/Packaging:Guidelines#Handling_Locale_Files Indeed, > but in this case locale files are not named %{name} and I don't know why language files (pl.qm and ru.qm) are not found. :) Also indicating just one file, I obtain ever same error. > > In your review request, the original path is > > %{_datadir}/%{name}/locale/*.qm > > which looks more usual for Qt based projects. > >> /usr/share/locale/pl.qm /usr/share/locale/ru.qm > > This would conflict with any other project installing the files > like that. There is no %name prefix in there at all. No reference > to the qgifer name. > Genuinely, forcing /usr/share/locale/ directory is just a my attempt to find language files through find-lang.sh . - -- - ---- Antonio Trande mailto: sagitter@xxxxxxxxxxxxxxxxx Homepage: http://www.fedoraos.worpress.com GPG Key: D400D6C4 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJR0fRgAAoJED2vIvfUANbEiS4P/2arDNlBxx7/TPqDFPu68oAX Fa4Y372xI9fmRY1wrH/e4RC9rPiw1r7oNiqxR3K1C67G/xY4fb9xUsOQW4rk7GgR PkVUUxFhLDiehcbuXyIp92nAy/ben3D3ksIcarmiJN2rqREp62PvzgTcfa2KWV7S y/ZlYCUT8ZWxmj8P9jNafhUaOjo+1+tTJrEp0o+h2kYfM75++ES+im8U4aYhfLiv 01IOQIYK7EbYK8x5+sLQPkEYxEaikmpzLEcWIr9AnE8mksINje1yq1lwfEI2+WCL 7sV/SjL61GTNUxKw3NLWm/bg88TQIO/5KT4pcLeYRf5vv8GN9RAZSB7TjWBtu+K2 2orKZBHXHq+kNn7lT4rbik/F6pWV8cnA8v8CFJxm9nr1xPw8+mFAzpjmBk0ncVs9 1+lrwjVy7tECbietsnxmq1ZB0jLUnhTT1SmBsRDXICKEXrWT/5Uc0TpjGUvFA48L l+0/dNwR8PSXm6vVg9QCClg8rSjFUluPJuT0Bqz0pu08FXgJfJu8F3+89tpwSeKK KDjTbnaAqStaq3k6PgI75nRTgGZJt5m217iKmk6BSQNTGyQsNmWdsoP2LSjDDScs OrFPOkNpNZw0nKUQNAyEQ7sRjMHfxyvf5RIvM0EiXFvDSJDXuPjQdpbrdqh1OpYL s6Rgj/DoF2f9HsqgpYhT =hatN -----END PGP SIGNATURE----- -- devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/devel