<div>In the %install of my spec file I do this:</div><div><br></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">Name: sunny</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br>
</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">...</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">rm -rf $RPM_BUILD_ROOT</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">%{__python} setup.py install -01 --skip-build --root $RPM_BUILD_ROOT</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">%find_lang %{name}</font></div>
<div><br></div><div>unfortunately, my rpmbuild dies with this error:</div><div>&quot;<font class="Apple-style-span" face="&#39;courier new&#39;, monospace">No translations found for sunny in /home/erikb/rpmbuild/BUILDROOT/sunny-1.0-1.i386</font>&quot;</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>