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 9 |
%define release 13 |
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-frLocale3.patch |
15 |
|
Patch3: smeserver-mailsorting-1.2-pootle.patch |
16 |
|
Patch4: smeserver-mailsorting-1.2-locale-2008-03-11.patch |
17 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
18 |
BuildRoot: /var/tmp/%{name}-%{version} |
BuildRoot: /var/tmp/%{name}-%{version} |
19 |
Requires: e-smith-release >= 7.0, |
Requires: e-smith-release >= 7.0, |
27 |
Optionally provides user panels where users can create mail rules for themselves |
Optionally provides user panels where users can create mail rules for themselves |
28 |
|
|
29 |
%changelog |
%changelog |
30 |
|
* Tue Mar 11 2008 Stephen Noble <support@dungog.net> - 1.2-13 |
31 |
|
- Add 2008-03-11 locale patch |
32 |
|
|
33 |
|
* Sat Mar 07 2008 Stephen Noble <support@dungog.net> - 1.2-12 |
34 |
|
- prepare en lexicons for pootle translations |
35 |
|
|
36 |
|
* Tue Dec 25 2007 Stephen Noble <support@dungog.net> 1.2-11 |
37 |
|
- french translation fix |
38 |
|
|
39 |
|
* Tue Dec 25 2007 Stephen Noble <support@dungog.net> 1.2-10 |
40 |
|
- add french translation, thanks Sylvain Gomez |
41 |
|
|
42 |
* Mon Oct 29 2007 Stephen Noble <support@dungog.net> 1.2-9 |
* Mon Oct 29 2007 Stephen Noble <support@dungog.net> 1.2-9 |
43 |
- add spanish translation, thanks Normando Hall [SME 3503] |
- add spanish translation, thanks Normando Hall [SME 3503] |
44 |
|
|
118 |
%setup |
%setup |
119 |
%patch0 -p1 |
%patch0 -p1 |
120 |
%patch1 -p1 |
%patch1 -p1 |
121 |
|
%patch2 -p1 |
122 |
|
%patch3 -p1 |
123 |
|
%patch4 -p1 |
124 |
|
|
125 |
%build |
%build |
126 |
perl createlinks |
perl createlinks |
127 |
|
|
128 |
|
LEXICONS=$(find root/etc/e-smith/{locale/,web/functions/} -type f ) |
129 |
|
for lexicon in $LEXICONS |
130 |
|
do |
131 |
|
/sbin/e-smith/validate-lexicon $lexicon |
132 |
|
done |
133 |
|
|
134 |
%install |
%install |
135 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
136 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
148 |
%post |
%post |
149 |
#new installs |
#new installs |
150 |
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' |
|
151 |
echo ' ' |
echo ' ' |
152 |
|
echo 'http://www.dungog.net/wiki/Smeserver-mailsorting#Configuration' |
153 |
fi |
fi |
154 |
|
|
155 |
#upgrades (and new installs) |
#upgrades (and new installs) |
156 |
/bin/touch /home/e-smith/db/processmail |
/bin/touch /home/e-smith/db/processmail |
157 |
/sbin/e-smith/signal-event mailsorting-conf |
/sbin/e-smith/signal-event mailsorting-conf |
158 |
/sbin/e-smith/signal-event conf-userpanel |
if [ -d /etc/e-smith/events/conf-userpanel ] ; then |
159 |
|
/sbin/e-smith/signal-event conf-userpanel |
160 |
|
fi |
161 |
|
|
162 |
%postun |
%postun |
163 |
#uninstall |
#uninstall |