--- rpms/smeserver-vacation/contribs7/smeserver-vacation.spec 2008/03/08 02:58:07 1.2 +++ rpms/smeserver-vacation/contribs7/smeserver-vacation.spec 2008/03/11 11:39:21 1.3 @@ -1,6 +1,6 @@ %define name smeserver-vacation %define version 1.0 -%define release 15 +%define release 16 Summary: SME Server enhancement to enable vacation messages for users. Name: %{name} Version: %{version} @@ -12,6 +12,8 @@ Source: %{name}-%{version}.tar.gz Patch0: smeserver-vacation-1.0-frMenuSplit.patch Patch1: smeserver-vacation-1.0-esLocale2.patch Patch2: smeserver-vacation-1.0-pootle.patch +Patch3: smeserver-vacation-1.0-locale-2008-03-11.patch + BuildArchitectures: noarch BuildRoot: /var/tmp/%{name}-%{version} Requires: e-smith-release >= 7.0, @@ -24,15 +26,14 @@ Optionally provides a user-manager panel enable vacation for themselves and to modify their own message %changelog +* Tue Mar 11 2008 Stephen Noble - 1.0-16 +- update locale 2008-03-11 * Sat Mar 07 2008 Stephen Noble - 1.0-15 - prepare en lexicons for pootle translations - * Wed Dec 26 2007 Stephen Noble 1.0-14 - fix spanish translation - * Mon Oct 29 2007 Stephen Noble 1.0-13 - add spanish translation, thanks Normando Hall [SME 3503] - * Thu Jun 14 2007 Stephen Noble - apply updates up to -11 @@ -139,21 +140,21 @@ enable vacation for themselves and to mo %patch0 -p1 %patch1 -p1 %patch2 -p1 +%patch3 -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 -#todo it sv -for LINK in en-us fr de es +LINKS=$(find /etc/e-smith/locale/ -type d -maxdepth 1 | sed 's/\/etc\/e-smith\/locale\///') +for link in $LINKS do - /bin/ln -s uservacations root/etc/e-smith/locale/$LINK/etc/e-smith/web/functions/userpanel-vacation + /bin/ln -s uservacations root/etc/e-smith/locale/$link/etc/e-smith/web/functions/userpanel-vacation done %install