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