[Fedora-packaging] "No translations found" error in rpmbuild

Erik Blankinship erikb at mediamods.com
Wed Jan 26 21:21:43 UTC 2011


In the %install of my spec file I do this:

Name: sunny

...

rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -01 --skip-build --root $RPM_BUILD_ROOT
%find_lang %{name}

unfortunately, my rpmbuild dies with this error:
"No translations found for sunny in
/home/erikb/rpmbuild/BUILDROOT/sunny-1.0-1.i386"

Peeking into the BUILDROOT, I find I have these valid .mo and .po files with
my translations in my buildroot (all copied over by my setup.py):
BUILDROOT/sunny-1.0-1.i386/usr/share/sunny/locale/da/sunny.mo
BUILDROOT/sunny-1.0-1.i386/usr/share/sunny/locale/de/sunny.mo
BUILDROOT/sunny-1.0-1.i386/usr/share/sunny/po/da.po
BUILDROOT/sunny-1.0-1.i386/usr/share/sunny/po/de.po

Any suggestions how to get the translations into my application?  I am not
sure why rpmbuild is not finding the files it needs.  Thank you!

(Note: if I remove %find_lang, my rpm builds successfully)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/packaging/attachments/20110126/5a8f826c/attachment.html 


More information about the packaging mailing list