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