<div>In the %install of my spec file I do this:</div><div><br></div><div><font class="Apple-style-span" face="'courier new', monospace">Name: sunny</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><br>
</font></div><div><font class="Apple-style-span" face="'courier new', monospace">...</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace">rm -rf $RPM_BUILD_ROOT</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">%{__python} setup.py install -01 --skip-build --root $RPM_BUILD_ROOT</font></div><div><font class="Apple-style-span" face="'courier new', monospace">%find_lang %{name}</font></div>
<div><br></div><div>unfortunately, my rpmbuild dies with this error:</div><div>"<font class="Apple-style-span" face="'courier new', monospace">No translations found for sunny in /home/erikb/rpmbuild/BUILDROOT/sunny-1.0-1.i386</font>"</div>
<meta charset="utf-8"><div><br></div><div>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):</div><div>BUILDROOT/sunny-1.0-1.i386/usr/share/sunny/locale/da/sunny.mo</div>
<div><meta charset="utf-8"><meta charset="utf-8">BUILDROOT/sunny-1.0-1.i386/usr/share/sunny/locale/de/sunny.mo</div><div><meta charset="utf-8">BUILDROOT/sunny-1.0-1.i386/usr/share/sunny/po/da.po</div><div><meta charset="utf-8">BUILDROOT/sunny-1.0-1.i386/usr/share/sunny/po/de.po</div>
<div><br></div><div>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! </div><div><br></div><div>(Note: if I remove %find_lang, my rpm builds successfully)</div>