From e7e5f0196ea3a974851636404f79a77629e96901 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Tue, 1 Jan 2013 13:32:21 -0500 Subject: [PATCH] Re-enable translation size reduction. --- evolution.spec | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/evolution.spec b/evolution.spec index 7cad8c5..3a076c6 100644 --- a/evolution.spec +++ b/evolution.spec @@ -29,7 +29,7 @@ Name: evolution Version: 3.7.3.2 -Release: 2%{?dist} +Release: 3%{?dist} Group: Applications/Productivity Summary: Mail and calendar client for GNOME License: GPLv2+ and GFDL @@ -245,16 +245,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. @@ -522,6 +521,9 @@ rm -rf $RPM_BUILD_ROOT # (evolution-devel) Requires: evolution-data-server-devel >= 3.7.3 %changelog +* Tue Jan 01 2013 Matthew Barnes - 3.7.3.2-3 +- Re-enable translation size reduction (RH bug #628073 is long fixed). + * Thu Dec 20 2012 Kalev Lember - 3.7.3.2-2 - Rebuilt for libgnome-desktop3 3.7.3 soname bump