--- rpms/smeserver-mailsorting/contribs7/smeserver-mailsorting.spec 2007/12/23 21:06:43 1.1 +++ rpms/smeserver-mailsorting/contribs7/smeserver-mailsorting.spec 2008/03/12 07:11:00 1.11 @@ -2,16 +2,18 @@ Summary: Lets users configure procmail o %define name smeserver-mailsorting Name: %{name} %define version 1.2 -%define release 9 +%define release 13 Version: %{version} Release: %{release}%{?dist} -Distribution: SME Server License: GPL URL: http://www.dungog.net/sme Group: SMEserver/addon Source: %{name}-%{version}.tar.gz Patch0: smeserver-mailsorting-1.2-maildropdups.patch Patch1: smeserver-mailsorting-1.2-esLocale.patch +Patch2: smeserver-mailsorting-1.2-frLocale3.patch +Patch3: smeserver-mailsorting-1.2-pootle.patch +Patch4: smeserver-mailsorting-1.2-locale-2008-03-11.patch BuildArchitectures: noarch BuildRoot: /var/tmp/%{name}-%{version} Requires: e-smith-release >= 7.0, @@ -25,6 +27,18 @@ SME Server enhancement to enable procmai Optionally provides user panels where users can create mail rules for themselves %changelog +* Tue Mar 11 2008 Stephen Noble - 1.2-13 +- Add 2008-03-11 locale patch + +* Sat Mar 07 2008 Stephen Noble - 1.2-12 +- prepare en lexicons for pootle translations + +* Tue Dec 25 2007 Stephen Noble 1.2-11 +- french translation fix + +* Tue Dec 25 2007 Stephen Noble 1.2-10 +- add french translation, thanks Sylvain Gomez + * Mon Oct 29 2007 Stephen Noble 1.2-9 - add spanish translation, thanks Normando Hall [SME 3503] @@ -104,10 +118,19 @@ Optionally provides user panels where us %setup %patch0 -p1 %patch1 -p1 +%patch2 -p1 +%patch3 -p1 +%patch4 -p1 %build perl createlinks +LEXICONS=$(find root/etc/e-smith/{locale/,web/functions/} -type f ) +for lexicon in $LEXICONS +do + /sbin/e-smith/validate-lexicon $lexicon +done + %install rm -rf $RPM_BUILD_ROOT (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) @@ -125,24 +148,16 @@ rm -rf %{name}-%{version} %post #new installs if [ $1 = 1 ] ; then - - /etc/e-smith/events/actions/navigation-conf 2>/dev/null - - echo ' ' - echo 'to enable procmail or maildrop for all users' - echo 'for Procmail' - echo "config setprop qmail FilterType procmail" - echo 'or for maildrop' - echo "config setprop qmail FilterType maildrop" - echo 'then' - echo 'signal-event mailsorting-conf' echo ' ' + echo 'http://www.dungog.net/wiki/Smeserver-mailsorting#Configuration' fi #upgrades (and new installs) /bin/touch /home/e-smith/db/processmail /sbin/e-smith/signal-event mailsorting-conf -/sbin/e-smith/signal-event conf-userpanel +if [ -d /etc/e-smith/events/conf-userpanel ] ; then + /sbin/e-smith/signal-event conf-userpanel +fi %postun #uninstall