10 |
Group: SMEserver/addon |
Group: SMEserver/addon |
11 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
12 |
Patch0: smeserver-vacation-1.0-frMenuSplit.patch |
Patch0: smeserver-vacation-1.0-frMenuSplit.patch |
13 |
Patch1: smeserver-vacation-1.0-esLocale.patch |
#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, |
130 |
%prep |
%prep |
131 |
%setup |
%setup |
132 |
%patch0 -p1 |
%patch0 -p1 |
133 |
%patch1 -p2 |
#%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 |
# it sv |
#todo it sv |
148 |
for LINK in en-us fr de es |
for LINK in en-us fr de es |
149 |
do |
do |
|
# if [ -z "/etc/e-smith/locale/$LINK/etc/e-smith/web/functions/uservacations"] ; then |
|
150 |
/bin/ln -s uservacations \ |
/bin/ln -s uservacations \ |
151 |
root/etc/e-smith/locale/$LINK/etc/e-smith/web/functions/userpanel-vacation |
root/etc/e-smith/locale/$LINK/etc/e-smith/web/functions/userpanel-vacation |
|
# fi |
|
152 |
done |
done |
153 |
|
|
154 |
%install |
%install |
168 |
%preun |
%preun |
169 |
|
|
170 |
%post |
%post |
|
#new installs |
|
|
#if [ $1 = 1 ] ; then |
|
|
|
|
|
#fi |
|
|
|
|
|
#upgrades (and new installs) |
|
|
#/etc/e-smith/events/actions/navigation-conf 2>/dev/null |
|
171 |
|
|
172 |
if [ -d /etc/e-smith/events/conf-userpanel ] ; then |
if [ -d /etc/e-smith/events/conf-userpanel ] ; then |
173 |
/sbin/e-smith/signal-event conf-userpanel |
/sbin/e-smith/signal-event conf-userpanel |
174 |
fi |
fi |
175 |
|
|
|
#/bin/chmod a+x /usr/local/bin/vacation |
|
|
|
|
176 |
%postun |
%postun |
177 |
#uninstall |
#uninstall |
178 |
if [ $1 = 0 ] ; then |
if [ $1 = 0 ] ; then |