--- rpms/smeserver-vacation/contribs7/smeserver-vacation-1.0.spec 2007/12/23 21:11:36 1.7 +++ rpms/smeserver-vacation/contribs7/smeserver-vacation-1.0.spec 2007/12/26 02:44:15 1.9 @@ -1,16 +1,16 @@ -Summary: SME Server enhancement to enable vacation messages for users. %define name smeserver-vacation -Name: %{name} %define version 1.0 -%define release 13 +%define release 14 +Summary: SME Server enhancement to enable vacation messages for users. +Name: %{name} Version: %{version} Release: %{release}%{?dist} -License: GPL +License: GNU GPL version 2 URL: http://www.dungog.net/sme Group: SMEserver/addon Source: %{name}-%{version}.tar.gz Patch0: smeserver-vacation-1.0-frMenuSplit.patch -Patch1: smeserver-vacation-1.0-esLocale.patch +Patch1: smeserver-vacation-1.0-esLocale2.patch BuildArchitectures: noarch BuildRoot: /var/tmp/%{name}-%{version} Requires: e-smith-release >= 7.0, @@ -23,6 +23,9 @@ Optionally provides a user-manager panel enable vacation for themselves and to modify their own message %changelog +* 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] @@ -136,21 +139,17 @@ enable vacation for themselves and to mo perl createlinks LEXICONS1=$(find root/etc/e-smith/locale/ -type f ) -LEXICONS2=$(find root/etc/e-smith/web/functions/uservacations -type f ) -LEXICONS2=$(find root/etc/e-smith/web/functions/userpanel-vacation -type f ) +LEXICONS2=$(find root/etc/e-smith/web/functions/ -type f ) -for lexicon in $LEXICONS1 $LEXICONS2 $LEXICONS3 +for lexicon in $LEXICONS1 $LEXICONS2 do /sbin/e-smith/validate-lexicon $lexicon done -# it sv +#todo it sv for LINK in en-us fr de es do -# if [ -z "/etc/e-smith/locale/$LINK/etc/e-smith/web/functions/uservacations"] ; then - /bin/ln -s uservacations \ - root/etc/e-smith/locale/$LINK/etc/e-smith/web/functions/userpanel-vacation -# fi + /bin/ln -s uservacations root/etc/e-smith/locale/$LINK/etc/e-smith/web/functions/userpanel-vacation done %install @@ -163,27 +162,16 @@ rm -f %{name}-%{version}-filelist echo "%doc COPYING" >> %{name}-%{version}-filelist %clean -cd .. -rm -rf %{name}-%{version} +rm -rf $RPM_BUILD_ROOT %pre %preun %post -#new installs -#if [ $1 = 1 ] ; then - -#fi - -#upgrades (and new installs) -#/etc/e-smith/events/actions/navigation-conf 2>/dev/null - if [ -d /etc/e-smith/events/conf-userpanel ] ; then /sbin/e-smith/signal-event conf-userpanel fi -#/bin/chmod a+x /usr/local/bin/vacation - %postun #uninstall if [ $1 = 0 ] ; then @@ -202,4 +190,3 @@ fi %files -f %{name}-%{version}-filelist %defattr(-,root,root) -