1 |
dungog |
1.32 |
# $Id: smeserver-mailsorting.spec,v 1.31 2009/01/01 11:39:49 snetram Exp $ |
2 |
slords |
1.16 |
# Authority: dungog |
3 |
|
|
# Name: Stephen Noble |
4 |
|
|
|
5 |
slords |
1.1 |
Summary: Lets users configure procmail or maildrop rules. |
6 |
|
|
%define name smeserver-mailsorting |
7 |
|
|
Name: %{name} |
8 |
|
|
%define version 1.2 |
9 |
dungog |
1.32 |
%define release 28 |
10 |
slords |
1.1 |
Version: %{version} |
11 |
|
|
Release: %{release}%{?dist} |
12 |
|
|
License: GPL |
13 |
|
|
URL: http://www.dungog.net/sme |
14 |
|
|
Group: SMEserver/addon |
15 |
|
|
Source: %{name}-%{version}.tar.gz |
16 |
|
|
Patch0: smeserver-mailsorting-1.2-maildropdups.patch |
17 |
|
|
Patch1: smeserver-mailsorting-1.2-esLocale.patch |
18 |
dungog |
1.7 |
Patch2: smeserver-mailsorting-1.2-frLocale3.patch |
19 |
dungog |
1.10 |
Patch3: smeserver-mailsorting-1.2-pootle.patch |
20 |
dungog |
1.11 |
Patch4: smeserver-mailsorting-1.2-locale-2008-03-11.patch |
21 |
dungog |
1.13 |
Patch5: smeserver-mailsorting-1.2-locale-2008-03-14.patch |
22 |
dungog |
1.14 |
Patch6: smeserver-mailsorting-1.2-geekmode.patch |
23 |
slords |
1.15 |
Patch7: smeserver-mailsorting-1.2-locale-2008-04-01.patch |
24 |
snetram |
1.17 |
Patch8: smeserver-mailsorting-1.2-locale-2008-04-22.patch |
25 |
snetram |
1.18 |
Patch9: smeserver-mailsorting-1.2-add2general.patch |
26 |
snetram |
1.20 |
Patch10: smeserver-mailsorting-1.2-locale-2008-05-05.patch |
27 |
snetram |
1.21 |
Patch11: smeserver-mailsorting-1.2-locale-2008-05-21.patch |
28 |
snetram |
1.23 |
Patch12: smeserver-mailsorting-1.2-locale-2008-07-01.patch |
29 |
dungog |
1.26 |
Patch13: smeserver-mailsorting-1.2-locale-2008-09-27.patch |
30 |
|
|
Patch14: smeserver-mailsorting-1.2-76Filter.patch |
31 |
dungog |
1.27 |
Patch15: smeserver-mailsorting-1.2-removefwd.patch |
32 |
snetram |
1.28 |
Patch16: smeserver-mailsorting-1.2-locale-2008-10-14.patch |
33 |
snetram |
1.31 |
Patch17: smeserver-mailsorting-1.2-locale-2009-01-01.patch |
34 |
dungog |
1.32 |
Patch18: smeserver-mailsorting-1.2-zarafaprocmail.patch |
35 |
slords |
1.1 |
BuildArchitectures: noarch |
36 |
|
|
BuildRoot: /var/tmp/%{name}-%{version} |
37 |
|
|
Requires: e-smith-release >= 7.0, |
38 |
|
|
Requires: perl-Unicode-IMAPUtf7 |
39 |
slords |
1.19 |
Requires: e-smith-formmagick >= 1.4.0-12 |
40 |
slords |
1.1 |
#Requires: smeserver-userpanel, userpanel causes endless problems |
41 |
|
|
BuildRequires: e-smith-devtools >= 1.13.1-03 |
42 |
|
|
AutoReqProv: no |
43 |
|
|
|
44 |
|
|
%description |
45 |
|
|
SME Server enhancement to enable procmail or maildrop filtering for users. |
46 |
|
|
Optionally provides user panels where users can create mail rules for themselves |
47 |
|
|
|
48 |
|
|
%changelog |
49 |
dungog |
1.32 |
* Sat Feb 21 2009 Jonathan Martens Stephen Noble <support@dungog.net> 1.2-28 |
50 |
|
|
- procmail sort to zarafa folders if enabled [SME: 5016] |
51 |
|
|
|
52 |
snetram |
1.31 |
* Thu Jan 1 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2-27 |
53 |
|
|
- Apply 1 Jan 2009 locale patch [SME: 4900] |
54 |
|
|
|
55 |
snetram |
1.28 |
* Tue Oct 14 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2-26 |
56 |
|
|
- Apply 14 Oct 2008 locale patch |
57 |
|
|
|
58 |
dungog |
1.27 |
* Mon Sep 29 2008 Stephen Noble <support@dungog.net> - 1.2-25 |
59 |
|
|
- remove internal forwarding [SME: 4605] |
60 |
|
|
|
61 |
dungog |
1.25 |
* Sat Sep 27 2008 Stephen Noble <support@dungog.net> - 1.2-24 |
62 |
|
|
- move .qmail fragment after SME forwarding [SME: 4602] |
63 |
|
|
|
64 |
|
|
* Sat Sep 27 2008 Stephen Noble <support@dungog.net> - 1.2-23 |
65 |
|
|
- Apply 27 Sep 2008 locale patch |
66 |
dungog |
1.24 |
|
67 |
snetram |
1.23 |
* Tue Jul 1 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2-22 |
68 |
|
|
- Apply 1 July 2008 locale patch |
69 |
|
|
|
70 |
snetram |
1.21 |
* Thu May 21 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2-21 |
71 |
|
|
- Apply 21 May 2008 locale patch |
72 |
|
|
- Updating the release number (it was lagging behind about 10) |
73 |
|
|
|
74 |
snetram |
1.20 |
* Mon May 5 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2-20 |
75 |
|
|
- Apply 5 May 2008 locale patch |
76 |
|
|
|
77 |
snetram |
1.18 |
* Sun Apr 27 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2-19 |
78 |
|
|
- Add common <base> tags to e-smith-formmagick's general |
79 |
|
|
|
80 |
snetram |
1.17 |
* Tue Apr 22 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2-18 |
81 |
|
|
- Added 22 April 2008 locale patch |
82 |
|
|
|
83 |
slords |
1.15 |
* Tue Apr 1 2008 Shad L. Lords <slords@mail.com> 1.2-17 |
84 |
|
|
- Update to UTF-8 translations |
85 |
|
|
|
86 |
dungog |
1.14 |
* Fri Mar 14 2008 Stephen Noble <support@dungog.net> - 1.2-16 |
87 |
|
|
- block generation of procmail/maildrop rules [SME: 4051] |
88 |
|
|
|
89 |
dungog |
1.13 |
* Fri Mar 14 2008 Stephen Noble <support@dungog.net> - 1.2-15 |
90 |
|
|
- update locale 2008-03-14 |
91 |
|
|
|
92 |
slords |
1.12 |
* Wed Mar 12 2008 Shad L. Lords <slords@mail.com> - 1.2-14 |
93 |
|
|
- Add requires for e-smith-formmagick for UTF-8 support [SME: 3858] |
94 |
|
|
|
95 |
dungog |
1.11 |
* Tue Mar 11 2008 Stephen Noble <support@dungog.net> - 1.2-13 |
96 |
|
|
- Add 2008-03-11 locale patch |
97 |
|
|
|
98 |
|
|
* Sat Mar 07 2008 Stephen Noble <support@dungog.net> - 1.2-12 |
99 |
dungog |
1.10 |
- prepare en lexicons for pootle translations |
100 |
|
|
|
101 |
dungog |
1.8 |
* Tue Dec 25 2007 Stephen Noble <support@dungog.net> 1.2-11 |
102 |
|
|
- french translation fix |
103 |
|
|
|
104 |
dungog |
1.5 |
* Tue Dec 25 2007 Stephen Noble <support@dungog.net> 1.2-10 |
105 |
|
|
- add french translation, thanks Sylvain Gomez |
106 |
dungog |
1.3 |
|
107 |
slords |
1.1 |
* Mon Oct 29 2007 Stephen Noble <support@dungog.net> 1.2-9 |
108 |
|
|
- add spanish translation, thanks Normando Hall [SME 3503] |
109 |
|
|
|
110 |
|
|
* Sun Jul 29 2007 Stephen Noble <support@dungog.net> 1.2-8 |
111 |
|
|
- Add Requires perl-Unicode-IMAPUtf7 [SME: 3218] |
112 |
|
|
|
113 |
|
|
* Thu Jul 05 2007 Stephen Noble <support@dungog.net> 1.2-7 |
114 |
|
|
- touch processmail db, thanks dclarke |
115 |
|
|
|
116 |
|
|
* Wed Jun 13 2007 Stephen Noble <stephen@dungog.net> 1.2-6 |
117 |
|
|
- add global maildrop delete duplicate db value |
118 |
|
|
|
119 |
|
|
* Wed Jun 13 2007 Stephen Noble <stephen@dungog.net> |
120 |
|
|
- update .tar.gz to current version |
121 |
|
|
|
122 |
|
|
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
123 |
|
|
- Clean up spec so package can be built by koji/plague |
124 |
|
|
|
125 |
|
|
* Sat Mar 17 2007 Stephen Noble <stephen@dungog.net> |
126 |
|
|
- retry mail in .qmail [sme 2733] |
127 |
|
|
- [1.2-5] |
128 |
|
|
|
129 |
|
|
* Wed Feb 28 2007 Stephen Noble <stephen@dungog.net> |
130 |
|
|
- remove Requires: smeserver-userpanel |
131 |
|
|
- [1.2-4] |
132 |
|
|
|
133 |
|
|
* Tue Jan 9 2007 Stephen Noble <support@dungog.net> |
134 |
|
|
- remove .* after TO_ macro [sme 2264] |
135 |
|
|
- Existing mail folders search improved [sme 2265] |
136 |
|
|
- [1.2-3] |
137 |
|
|
|
138 |
|
|
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
139 |
|
|
- Update to new release naming. No functional changes. |
140 |
|
|
- Make Packager generic |
141 |
|
|
|
142 |
|
|
* Mon Oct 30 2006 Stephen Noble <support@dungog.net> |
143 |
|
|
- improved german support, thanks Dietmar |
144 |
|
|
- Unicode-IMAPUtf7 support [sme 1446] |
145 |
|
|
- [1.2-2] |
146 |
|
|
|
147 |
|
|
* Sat Oct 21 2006 Stephen Noble <support@dungog.net> |
148 |
|
|
- FormMagick version |
149 |
|
|
- [1.2-1] |
150 |
|
|
|
151 |
|
|
* Thu Aug 24 2006 Stephen Noble <support@dungog.net> |
152 |
|
|
- remove strict check on mailrule criterion [sme 1643] |
153 |
|
|
- fix log rotation |
154 |
|
|
- maildrop matching improved, [sme 1642] |
155 |
|
|
- allow for spaces in folder names for maildrop [sme 1640] |
156 |
|
|
- [0.9-6] |
157 |
|
|
|
158 |
|
|
* Sat May 6 2006 Stephen Noble <support@dungog.net> |
159 |
|
|
- default shell for maildrop set to /bin/bash |
160 |
|
|
- [contribs 1378] thanks mweinber neddix.de |
161 |
|
|
- [0.9-5] |
162 |
|
|
|
163 |
|
|
* Wed Apr 6 2006 Stephen Noble <support@dungog.net> |
164 |
|
|
- delete duplicates |
165 |
|
|
- globally enabled for procmail, works ok |
166 |
|
|
- per user for maildrop, worked ok for user A, but started deleting mail for user B |
167 |
|
|
- [0.9-4] |
168 |
|
|
|
169 |
|
|
* Thu Mar 9 2006 Stephen Noble <support@dungog.net> |
170 |
|
|
- remove preun actions |
171 |
|
|
- [0.9-3] |
172 |
|
|
|
173 |
|
|
* Thu Mar 9 2006 Stephen Noble <support@dungog.net> |
174 |
|
|
- Requires: smeserver-userpanel |
175 |
|
|
- bypass admin's .qmail |
176 |
|
|
- [0.9-2] |
177 |
|
|
|
178 |
|
|
* Sun Sep 25 2005 Stephen Noble <support@dungog.net> |
179 |
|
|
- initial release |
180 |
|
|
- [0.9-1] |
181 |
|
|
|
182 |
|
|
%prep |
183 |
|
|
%setup |
184 |
|
|
%patch0 -p1 |
185 |
|
|
%patch1 -p1 |
186 |
dungog |
1.7 |
%patch2 -p1 |
187 |
dungog |
1.10 |
%patch3 -p1 |
188 |
dungog |
1.11 |
%patch4 -p1 |
189 |
dungog |
1.13 |
%patch5 -p1 |
190 |
dungog |
1.14 |
%patch6 -p1 |
191 |
slords |
1.15 |
%patch7 -p1 |
192 |
snetram |
1.17 |
%patch8 -p1 |
193 |
snetram |
1.18 |
%patch9 -p1 |
194 |
snetram |
1.20 |
%patch10 -p1 |
195 |
snetram |
1.22 |
%patch11 -p1 |
196 |
snetram |
1.23 |
%patch12 -p1 |
197 |
dungog |
1.24 |
%patch13 -p1 |
198 |
|
|
%patch14 -p1 |
199 |
dungog |
1.27 |
%patch15 -p1 |
200 |
snetram |
1.28 |
%patch16 -p1 |
201 |
snetram |
1.31 |
%patch17 -p1 |
202 |
dungog |
1.32 |
%patch18 -p1 |
203 |
slords |
1.1 |
|
204 |
|
|
%build |
205 |
|
|
perl createlinks |
206 |
|
|
|
207 |
dungog |
1.9 |
LEXICONS=$(find root/etc/e-smith/{locale/,web/functions/} -type f ) |
208 |
|
|
for lexicon in $LEXICONS |
209 |
|
|
do |
210 |
|
|
/sbin/e-smith/validate-lexicon $lexicon |
211 |
|
|
done |
212 |
|
|
|
213 |
slords |
1.1 |
%install |
214 |
|
|
rm -rf $RPM_BUILD_ROOT |
215 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
216 |
|
|
rm -f %{name}-%{version}-filelist |
217 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
218 |
|
|
echo "%doc COPYING" >> %{name}-%{version}-filelist |
219 |
|
|
|
220 |
|
|
%clean |
221 |
|
|
cd .. |
222 |
|
|
rm -rf %{name}-%{version} |
223 |
|
|
|
224 |
|
|
%pre |
225 |
|
|
%preun |
226 |
|
|
|
227 |
|
|
%post |
228 |
|
|
#new installs |
229 |
|
|
if [ $1 = 1 ] ; then |
230 |
|
|
echo ' ' |
231 |
dungog |
1.10 |
echo 'http://www.dungog.net/wiki/Smeserver-mailsorting#Configuration' |
232 |
slords |
1.1 |
fi |
233 |
|
|
|
234 |
|
|
#upgrades (and new installs) |
235 |
|
|
/bin/touch /home/e-smith/db/processmail |
236 |
|
|
/sbin/e-smith/signal-event mailsorting-conf |
237 |
dungog |
1.10 |
if [ -d /etc/e-smith/events/conf-userpanel ] ; then |
238 |
|
|
/sbin/e-smith/signal-event conf-userpanel |
239 |
|
|
fi |
240 |
slords |
1.1 |
|
241 |
|
|
%postun |
242 |
|
|
#uninstall |
243 |
|
|
if [ $1 = 0 ] ; then |
244 |
|
|
|
245 |
|
|
echo '' |
246 |
|
|
echo 'to disable procmail or maildrop' |
247 |
|
|
echo 'config delprop qmail FilterType' |
248 |
|
|
echo 'signal-event email-update' |
249 |
|
|
echo '' |
250 |
|
|
|
251 |
|
|
DBS=`find /home/e-smith/db/navigation -type f -name "navigation.*"` |
252 |
|
|
for db in $DBS ; do |
253 |
|
|
/sbin/e-smith/db $db delete userpanel-mailsort 2>/dev/null |
254 |
|
|
done |
255 |
|
|
fi |
256 |
|
|
|
257 |
|
|
%files -f %{name}-%{version}-filelist |
258 |
|
|
%defattr(-,root,root) |