--- rpms/smeserver-vacation/contribs7/smeserver-vacation-1.0.spec 2007/12/23 01:15:48 1.5 +++ rpms/smeserver-vacation/contribs7/smeserver-vacation-1.0.spec 2007/12/23 21:08:35 1.6 @@ -2,17 +2,20 @@ Summary: SME Server enhancement to enabl %define name smeserver-vacation Name: %{name} %define version 1.0 -%define release 11 +%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-vacation-1.0-frMenuSplit.patch +Patch1: smeserver-vacation-1.0-esLocale.patch BuildArchitectures: noarch BuildRoot: /var/tmp/%{name}-%{version} Requires: e-smith-release >= 7.0, -BuildRequires: e-smith-devtools +BuildRequires: e-smith-devtools >= 1.13.1-03 AutoReqProv: no %description @@ -21,10 +24,23 @@ Optionally provides a user-manager panel enable vacation for themselves and to modify their own message %changelog +* 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 + +* Sun Apr 29 2007 Shad L. Lords +- Clean up spec so package can be built by koji/plague + * Fri Dec 29 2006 Stephen Noble -- display Vacation status correctly on modify page in server-manager +- display Vacation status correctly on modify page in server-manager [sme 2200] - [1.0-11] +* Thu Dec 07 2006 Shad L. Lords +- Update to new release naming. No functional changes. +- Make Packager generic + * Mon Oct 30 2006 Stephen Noble - display description unshaded * - german lexicon fix @@ -114,6 +130,8 @@ enable vacation for themselves and to mo %prep %setup +%patch0 -p1 +%patch1 -p2 %build perl createlinks @@ -127,12 +145,13 @@ do /sbin/e-smith/validate-lexicon $lexicon done -#de en-us es fr de it -for LINK in en-us fr de +# 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 +# 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 done %install @@ -142,7 +161,7 @@ rm -f %{name}-%{version}-filelist /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ --file '/usr/local/bin/vacation' 'attr(0755,root,root)' \ > %{name}-%{version}-filelist -echo "%doc " >> %{name}-%{version}-filelist +echo "%doc COPYING" >> %{name}-%{version}-filelist %clean cd .. @@ -158,11 +177,13 @@ rm -rf %{name}-%{version} #fi #upgrades (and new installs) -/etc/e-smith/events/actions/navigation-conf 2>/dev/null +#/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 +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 @@ -173,7 +194,7 @@ if [ $1 = 0 ] ; then /sbin/e-smith/db $db delete userpanel-vacation 2>/dev/null /sbin/e-smith/db $db delete uservacations 2>/dev/null done - + #need to expand ~/.qmail for users who are still enabled /etc/e-smith/events/actions/qmail-update-user