https://bugzilla.redhat.com/show_bug.cgi?id=871092 --- Comment #16 from Antonio Trande <trpost@xxxxxxxxxxxx> --- (In reply to comment #15) > (In reply to comment #11) > > > > Mario already pointed out one of the problems with the %files section: You > > are hardcoding the languages. Whenever a new translation is added, the build > > will fail. %find_lang does not work because the locales are in > > /usr/share/locale-langpack. This is wrong. Can you try patching the package > > to use /usr/share/locale instead? > > > > Hint: I had a similar problem and solved it with sed, see line 45-50 at > > http://pkgs.fedoraproject.org/cgit/rednotebook.git/tree/rednotebook. > > spec?id=de7097c1#n45 > > Ok. These lines: > > # heavily borrowed from /usr/lib/rpm/find-lang.sh > #find %{buildroot} -type f -o -type l|sort|sed ' > #s:'"%{buildroot}"':: > #s:\(.*/i18n/\)\([^/_]\+\)\(.*\.mo$\):%lang(\2) \1\2\3: > #s:^\([^%].*\):: > #/^$/d' > %{name}.lang > Could be right like that ... %install %{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -o -type l|sort| \ sed ' s:'"$RPM_BUILD_ROOT%{_datadir}"':: s:\(.*/locale-langpack/\)\([^/_]\+\)\(.*\.mo$\):%lang(\2) \1\2\3: s:^\([^%].*\):: /^$/d' \ > %{name}.lang %find_lang %{name} ... ? -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ package-review mailing list package-review@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/package-review