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