El Sábado, 31 de mayo de 2014 00:06:48 jcsl escribió:
Hi.
The Solaar package is in several repositories, but none of them install the translations files. I've branched the package to try to build it with the translations but if I do what I have done with other packages, use the %lang_package macro and add %files lang -f %{name}.lang in the spec file, it doesn't work. I get this:
find: '/home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-22.1.x86_64/usr/share/locale/' : No such file or directory find: '/home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-22.1.x86_64/usr/share/help/': No such file or directory No translations found for solaar in /home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-22.1.x86_64 error: Bad exit status from /var/tmp/rpm-tmp.GyVbWN (%install)
I have no clue on how to fix this. Any hints? I've tried copying the .po files to the locale dir and it doesn't work. I'm making the translation for my languaje and I'd like it to be included in the package.
Greetings.
If, for example, I add this to the install section of the spec file
install -m 755 -d %{buildroot}%{_datadir}/locale/pl/ install -m 644 ./po/pl.po %{buildroot}%{_datadir}/locale/pl/%{name}.po
I get this error:
[ 40s] + /usr/lib/rpm/find-lang.sh /home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-36.1.x86_64 solaar [ 40s] find: '/home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-36.1.x86_64/usr/share/help/': No such file or directory [ 40s] No translations found for solaar in /home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-36.1.x86_64 [ 40s] error: Bad exit status from /var/tmp/rpm-tmp.gtEYu7 (%install)
If I don't, I get:
[ 37s] + /usr/lib/rpm/find-lang.sh /home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-37.1.x86_64 solaar [ 37s] find: '/home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-37.1.x86_64/usr/share/locale/': No such file or directory [ 37s] find: '/home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-37.1.x86_64/usr/share/help/': No such file or directory [ 37s] No translations found for solaar in /home/abuild/rpmbuild/BUILDROOT/solaar-0.9.2-37.1.x86_64 [ 37s] error: Bad exit status from /var/tmp/rpm-tmp.e7R35l (%install)
So the offending dir is different en each case, but the error is the same.
Greetings. Hi But you need to convert (compile) the po files so they are mo files and install those. There must be some python setup routines to do
On Sat 31 May 2014 08:15:15 PM CDT, jcsl wrote: that, they would then be patched into the setup.py file. -- Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890) openSUSE 13.1 (Bottle) (x86_64) GNOME 3.10.1 Kernel 3.11.10-11-desktop up 6:31, 3 users, load average: 0.33, 0.17, 0.09 CPU Intel® B840@1.9GHz | GPU Intel® Sandybridge Mobile -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org