diff --git a/evolution.spec b/evolution.spec index b6b6bc2..60f103b 100644 --- a/evolution.spec +++ b/evolution.spec @@ -253,15 +253,15 @@ make %{?_smp_mflags} LIBTOOL=/usr/bin/libtool CFLAGS="$CFLAGS -fno-strict-aliasi # Strip unneeded translations from .mo files. # This reduces the RPM size by several megabytes. #disabled since 2.31.91 because of a msgmerge floating point exception (see RH bug 628073) -#cd po -#grep -v ".*[.]desktop[.]in[.]in$" POTFILES.in > POTFILES.keep -#mv POTFILES.keep POTFILES.in -#intltool-update --gettext-package=%{name}-%{evo_base_version} --pot -#for p in *.po; do -# msgmerge $p %{name}-%{evo_base_version}.pot > $p.out -# msgfmt -o `basename $p .po`.gmo $p.out -#done -#cd - +cd po +grep -v ".*[.]desktop[.]in[.]in$" POTFILES.in > POTFILES.keep +mv POTFILES.keep POTFILES.in +intltool-update --gettext-package=%{name}-%{evo_base_version} --pot +for p in *.po; do + msgmerge $p %{name}-%{evo_base_version}.pot > $p.out + msgfmt -o `basename $p .po`.gmo $p.out +done +cd - # Replace identical images in the help by links. # This reduces the RPM size by several megabytes.