diff --git a/evolution.spec b/evolution.spec index a88541e..a3dcd4d 100644 --- a/evolution.spec +++ b/evolution.spec @@ -29,7 +29,7 @@ Name: evolution Version: 3.25.1 -Release: 1%{?dist} +Release: 2%{?dist} Group: Applications/Productivity Summary: Mail and calendar client for GNOME License: GPLv2+ and GFDL @@ -51,6 +51,7 @@ Obsoletes: evolution-NetworkManager < %{last_evo_nm_version} Requires: gvfs Requires: gtkspell3 Requires: highlight +Requires: %{name}-langpacks = %{version}-%{release} ### Build Dependencies ### @@ -147,6 +148,14 @@ BuildArch: noarch %description devel-docs This package contains developer documentation for Evolution. +%package langpacks +Summary: Translations for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description langpacks +This package contains translations for %{name}. + %if %{with_docs} %package help Group: Applications/Productivity @@ -250,20 +259,6 @@ make %{?_smp_mflags} cd .. -# Disable this part, because it breaks multilib -# -## Strip unneeded translations from .mo files. -## This reduces the RPM size by several megabytes. -#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. helpdir=$RPM_BUILD_ROOT%{_datadir}/gnome/help/%{name} @@ -317,7 +312,7 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || : %clean rm -rf $RPM_BUILD_ROOT -%files -f _build/translations.lang +%files %doc AUTHORS COPYING NEWS README # GSettings schemas: @@ -495,6 +490,8 @@ rm -rf $RPM_BUILD_ROOT %doc %{_datadir}/gtk-doc/html/evolution-shell %doc %{_datadir}/gtk-doc/html/evolution-util +%files langpacks -f _build/translations.lang + %if %{with_docs} %files help -f _build/help.lang %endif @@ -519,6 +516,9 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/installed-tests %changelog +* Thu Apr 27 2017 Milan Crha - 3.25.1-2 +- Split translations into separate package + * Mon Apr 24 2017 Milan Crha - 3.25.1-1 - Update to 3.25.1