2 |
%define name smeserver-vacation |
%define name smeserver-vacation |
3 |
Name: %{name} |
Name: %{name} |
4 |
%define version 1.0 |
%define version 1.0 |
5 |
%define release 11 |
%define release 13 |
6 |
Version: %{version} |
Version: %{version} |
7 |
Release: %{release} |
Release: %{release}%{?dist} |
|
Distribution: SME Server |
|
8 |
License: GPL |
License: GPL |
9 |
URL: http://www.dungog.net/sme |
URL: http://www.dungog.net/sme |
10 |
Group: SMEserver/addon |
Group: SMEserver/addon |
11 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
12 |
Packager: Stephen Noble <support@dungog.net> |
Patch0: smeserver-vacation-1.0-frMenuSplit.patch |
13 |
|
Patch1: smeserver-vacation-1.0-esLocale.patch |
14 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
15 |
BuildRoot: /var/tmp/%{name}-%{version} |
BuildRoot: /var/tmp/%{name}-%{version} |
16 |
Requires: e-smith-release >= 7.0, |
Requires: e-smith-release >= 7.0, |
17 |
|
BuildRequires: e-smith-devtools >= 1.13.1-03 |
18 |
AutoReqProv: no |
AutoReqProv: no |
19 |
|
|
20 |
%description |
%description |
23 |
enable vacation for themselves and to modify their own message |
enable vacation for themselves and to modify their own message |
24 |
|
|
25 |
%changelog |
%changelog |
26 |
|
* Mon Oct 29 2007 Stephen Noble <support@dungog.net> 1.0-13 |
27 |
|
- add spanish translation, thanks Normando Hall [SME 3503] |
28 |
|
|
29 |
|
* Thu Jun 14 2007 Stephen Noble <support@dungog.net> |
30 |
|
- apply updates up to -11 |
31 |
|
|
32 |
|
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
33 |
|
- Clean up spec so package can be built by koji/plague |
34 |
|
|
35 |
* Fri Dec 29 2006 Stephen Noble <support@dungog.net> |
* Fri Dec 29 2006 Stephen Noble <support@dungog.net> |
36 |
- display Vacation status correctly on modify page in server-manager |
- display Vacation status correctly on modify page in server-manager [sme 2200] |
37 |
- [1.0-11] |
- [1.0-11] |
38 |
|
|
39 |
|
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
40 |
|
- Update to new release naming. No functional changes. |
41 |
|
- Make Packager generic |
42 |
|
|
43 |
* Mon Oct 30 2006 Stephen Noble <support@dungog.net> |
* Mon Oct 30 2006 Stephen Noble <support@dungog.net> |
44 |
- display description unshaded * |
- display description unshaded * |
45 |
- german lexicon fix |
- german lexicon fix |
129 |
|
|
130 |
%prep |
%prep |
131 |
%setup |
%setup |
132 |
|
%patch0 -p1 |
133 |
|
%patch1 -p2 |
134 |
|
|
135 |
%build |
%build |
136 |
perl createlinks |
perl createlinks |
144 |
/sbin/e-smith/validate-lexicon $lexicon |
/sbin/e-smith/validate-lexicon $lexicon |
145 |
done |
done |
146 |
|
|
147 |
#de en-us es fr de it |
# it sv |
148 |
for LINK in en-us fr de |
for LINK in en-us fr de es |
149 |
do |
do |
150 |
# if [ -z "/etc/e-smith/locale/$LINK/etc/e-smith/web/functions/uservacations"] ; then |
# if [ -z "/etc/e-smith/locale/$LINK/etc/e-smith/web/functions/uservacations"] ; then |
151 |
/bin/ln -s uservacations root/etc/e-smith/locale/$LINK/etc/e-smith/web/functions/userpanel-vacation |
/bin/ln -s uservacations \ |
152 |
# fi |
root/etc/e-smith/locale/$LINK/etc/e-smith/web/functions/userpanel-vacation |
153 |
|
# fi |
154 |
done |
done |
155 |
|
|
156 |
%install |
%install |
160 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
161 |
--file '/usr/local/bin/vacation' 'attr(0755,root,root)' \ |
--file '/usr/local/bin/vacation' 'attr(0755,root,root)' \ |
162 |
> %{name}-%{version}-filelist |
> %{name}-%{version}-filelist |
163 |
echo "%doc " >> %{name}-%{version}-filelist |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
164 |
|
|
165 |
%clean |
%clean |
166 |
cd .. |
cd .. |
176 |
#fi |
#fi |
177 |
|
|
178 |
#upgrades (and new installs) |
#upgrades (and new installs) |
179 |
/etc/e-smith/events/actions/navigation-conf 2>/dev/null |
#/etc/e-smith/events/actions/navigation-conf 2>/dev/null |
180 |
|
|
181 |
#if [ -d /etc/e-smith/events/conf-userpanel ] ; then |
if [ -d /etc/e-smith/events/conf-userpanel ] ; then |
182 |
# /sbin/e-smith/signal-event conf-userpanel |
/sbin/e-smith/signal-event conf-userpanel |
183 |
#fi |
fi |
184 |
|
|
185 |
|
#/bin/chmod a+x /usr/local/bin/vacation |
186 |
|
|
187 |
%postun |
%postun |
188 |
#uninstall |
#uninstall |
193 |
/sbin/e-smith/db $db delete userpanel-vacation 2>/dev/null |
/sbin/e-smith/db $db delete userpanel-vacation 2>/dev/null |
194 |
/sbin/e-smith/db $db delete uservacations 2>/dev/null |
/sbin/e-smith/db $db delete uservacations 2>/dev/null |
195 |
done |
done |
196 |
|
|
197 |
#need to expand ~/.qmail for users who are still enabled |
#need to expand ~/.qmail for users who are still enabled |
198 |
/etc/e-smith/events/actions/qmail-update-user |
/etc/e-smith/events/actions/qmail-update-user |
199 |
|
|