2 |
%define name smeserver-mailsorting |
%define name smeserver-mailsorting |
3 |
Name: %{name} |
Name: %{name} |
4 |
%define version 1.2 |
%define version 1.2 |
5 |
%define release 10 |
%define release 12 |
6 |
Version: %{version} |
Version: %{version} |
7 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
8 |
License: GPL |
License: GPL |
11 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
12 |
Patch0: smeserver-mailsorting-1.2-maildropdups.patch |
Patch0: smeserver-mailsorting-1.2-maildropdups.patch |
13 |
Patch1: smeserver-mailsorting-1.2-esLocale.patch |
Patch1: smeserver-mailsorting-1.2-esLocale.patch |
14 |
#Patch2: smeserver-mailsorting-1.2-french.patch |
Patch2: smeserver-mailsorting-1.2-frLocale3.patch |
15 |
|
Patch3: smeserver-mailsorting-1.2-pootle.patch |
16 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
17 |
BuildRoot: /var/tmp/%{name}-%{version} |
BuildRoot: /var/tmp/%{name}-%{version} |
18 |
Requires: e-smith-release >= 7.0, |
Requires: e-smith-release >= 7.0, |
26 |
Optionally provides user panels where users can create mail rules for themselves |
Optionally provides user panels where users can create mail rules for themselves |
27 |
|
|
28 |
%changelog |
%changelog |
29 |
#* Tue Dec 25 2007 Stephen Noble <support@dungog.net> 1.2-10 |
* Sat Mar 07 2008 Stephen Noble <support@dungog.net> - 1.2.12 |
30 |
#- add french translation, thanks Sylvain Gomez |
- prepare en lexicons for pootle translations |
31 |
|
|
32 |
|
* Tue Dec 25 2007 Stephen Noble <support@dungog.net> 1.2-11 |
33 |
|
- french translation fix |
34 |
|
|
35 |
|
* Tue Dec 25 2007 Stephen Noble <support@dungog.net> 1.2-10 |
36 |
|
- add french translation, thanks Sylvain Gomez |
37 |
|
|
38 |
* Mon Oct 29 2007 Stephen Noble <support@dungog.net> 1.2-9 |
* Mon Oct 29 2007 Stephen Noble <support@dungog.net> 1.2-9 |
39 |
- add spanish translation, thanks Normando Hall [SME 3503] |
- add spanish translation, thanks Normando Hall [SME 3503] |
114 |
%setup |
%setup |
115 |
%patch0 -p1 |
%patch0 -p1 |
116 |
%patch1 -p1 |
%patch1 -p1 |
117 |
#%patch2 -p1 |
%patch2 -p1 |
118 |
|
%patch3 -p1 |
119 |
|
|
120 |
%build |
%build |
121 |
perl createlinks |
perl createlinks |
122 |
|
|
123 |
|
LEXICONS=$(find root/etc/e-smith/{locale/,web/functions/} -type f ) |
124 |
|
|
125 |
|
for lexicon in $LEXICONS |
126 |
|
do |
127 |
|
/sbin/e-smith/validate-lexicon $lexicon |
128 |
|
done |
129 |
|
|
130 |
%install |
%install |
131 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
132 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
144 |
%post |
%post |
145 |
#new installs |
#new installs |
146 |
if [ $1 = 1 ] ; then |
if [ $1 = 1 ] ; then |
|
|
|
|
/etc/e-smith/events/actions/navigation-conf 2>/dev/null |
|
|
|
|
|
echo ' ' |
|
|
echo 'to enable procmail or maildrop for all users' |
|
|
echo 'for Procmail' |
|
|
echo "config setprop qmail FilterType procmail" |
|
|
echo 'or for maildrop' |
|
|
echo "config setprop qmail FilterType maildrop" |
|
|
echo 'then' |
|
|
echo 'signal-event mailsorting-conf' |
|
147 |
echo ' ' |
echo ' ' |
148 |
|
echo 'http://www.dungog.net/wiki/Smeserver-mailsorting#Configuration' |
149 |
fi |
fi |
150 |
|
|
151 |
#upgrades (and new installs) |
#upgrades (and new installs) |
152 |
/bin/touch /home/e-smith/db/processmail |
/bin/touch /home/e-smith/db/processmail |
153 |
/sbin/e-smith/signal-event mailsorting-conf |
/sbin/e-smith/signal-event mailsorting-conf |
154 |
/sbin/e-smith/signal-event conf-userpanel |
if [ -d /etc/e-smith/events/conf-userpanel ] ; then |
155 |
|
/sbin/e-smith/signal-event conf-userpanel |
156 |
|
fi |
157 |
|
|
158 |
%postun |
%postun |
159 |
#uninstall |
#uninstall |