1 |
|
# $Id: smeserver-mailsorting.spec,v 1.39 2009/06/12 13:18:59 dungog Exp $ |
2 |
|
# Authority: dungog |
3 |
|
# Name: Stephen Noble |
4 |
|
|
5 |
Summary: Lets users configure procmail or maildrop rules. |
Summary: Lets users configure procmail or maildrop rules. |
6 |
%define name smeserver-mailsorting |
%define name smeserver-mailsorting |
7 |
Name: %{name} |
Name: %{name} |
8 |
%define version 1.2 |
%define version 1.2 |
9 |
%define release 10 |
%define release 36 |
10 |
Version: %{version} |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
12 |
License: GPL |
License: GPL |
15 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
16 |
Patch0: smeserver-mailsorting-1.2-maildropdups.patch |
Patch0: smeserver-mailsorting-1.2-maildropdups.patch |
17 |
Patch1: smeserver-mailsorting-1.2-esLocale.patch |
Patch1: smeserver-mailsorting-1.2-esLocale.patch |
18 |
Patch2: smeserver-mailsorting-1.2-frLocale.patch |
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 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
44 |
BuildRoot: /var/tmp/%{name}-%{version} |
BuildRoot: /var/tmp/%{name}-%{version} |
45 |
Requires: e-smith-release >= 7.0, |
Requires: e-smith-release >= 7.0, |
46 |
Requires: perl-Unicode-IMAPUtf7 |
Requires: perl-Unicode-IMAPUtf7 |
47 |
|
Requires: e-smith-formmagick >= 1.4.0-12 |
48 |
#Requires: smeserver-userpanel, userpanel causes endless problems |
#Requires: smeserver-userpanel, userpanel causes endless problems |
49 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
50 |
AutoReqProv: no |
AutoReqProv: no |
54 |
Optionally provides user panels where users can create mail rules for themselves |
Optionally provides user panels where users can create mail rules for themselves |
55 |
|
|
56 |
%changelog |
%changelog |
57 |
|
* Mon Aug 24 2009 SME Translation Server <translations@contribs.org> 1.2-36.sme |
58 |
|
- apply locale 2009-08-24 patch |
59 |
|
|
60 |
|
* Fri Jun 12 2009 Stephen Noble <support@dungog.net> 1.2-35 |
61 |
|
- don't escape spaces in folder names with zarafa enabled [SME: 5164] |
62 |
|
|
63 |
|
* Wed May 20 2009 SME Translation Server <translations@contribs.org> 1.2-34.sme |
64 |
|
- apply locale 2009-05-20 patch |
65 |
|
|
66 |
|
* Mon Apr 27 2009 SME Translation Server <translations@contribs.org> 1.2-33.sme |
67 |
|
- apply locale 2009-04-27 patch |
68 |
|
|
69 |
|
* Sun Mar 22 2009 Stephen Noble <support@dungog.net> 1.2-32 |
70 |
|
- qmail FilterOrder enabled lets maildrop filter before forwarding [SME: 5044] |
71 |
|
|
72 |
|
* Tue Mar 03 2009 SME Translation Server xyz 1.2-31 |
73 |
|
- apply locale 2009-03-03 patch |
74 |
|
|
75 |
|
* Sun Mar 1 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2-30 |
76 |
|
- Apply 1 Mar 2009 locale patch [SME: 5018] |
77 |
|
|
78 |
|
* Sat Feb 21 2009 Stephen Noble <support@dungog.net> 1.2-29 |
79 |
|
- remove drop down to select folders [SME: 5016] |
80 |
|
|
81 |
|
* Sat Feb 21 2009 Stephen Noble <support@dungog.net> 1.2-28 |
82 |
|
- procmail sort to zarafa folders if enabled [SME: 5016] |
83 |
|
|
84 |
|
* Thu Jan 1 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2-27 |
85 |
|
- Apply 1 Jan 2009 locale patch [SME: 4900] |
86 |
|
|
87 |
|
* Tue Oct 14 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2-26 |
88 |
|
- Apply 14 Oct 2008 locale patch |
89 |
|
|
90 |
|
* Mon Sep 29 2008 Stephen Noble <support@dungog.net> - 1.2-25 |
91 |
|
- remove internal forwarding [SME: 4605] |
92 |
|
|
93 |
|
* Sat Sep 27 2008 Stephen Noble <support@dungog.net> - 1.2-24 |
94 |
|
- move .qmail fragment after SME forwarding [SME: 4602] |
95 |
|
|
96 |
|
* Sat Sep 27 2008 Stephen Noble <support@dungog.net> - 1.2-23 |
97 |
|
- Apply 27 Sep 2008 locale patch |
98 |
|
|
99 |
|
* Tue Jul 1 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2-22 |
100 |
|
- Apply 1 July 2008 locale patch |
101 |
|
|
102 |
|
* Thu May 21 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2-21 |
103 |
|
- Apply 21 May 2008 locale patch |
104 |
|
- Updating the release number (it was lagging behind about 10) |
105 |
|
|
106 |
|
* Mon May 5 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2-20 |
107 |
|
- Apply 5 May 2008 locale patch |
108 |
|
|
109 |
|
* Sun Apr 27 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2-19 |
110 |
|
- Add common <base> tags to e-smith-formmagick's general |
111 |
|
|
112 |
|
* Tue Apr 22 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2-18 |
113 |
|
- Added 22 April 2008 locale patch |
114 |
|
|
115 |
|
* Tue Apr 1 2008 Shad L. Lords <slords@mail.com> 1.2-17 |
116 |
|
- Update to UTF-8 translations |
117 |
|
|
118 |
|
* Fri Mar 14 2008 Stephen Noble <support@dungog.net> - 1.2-16 |
119 |
|
- block generation of procmail/maildrop rules [SME: 4051] |
120 |
|
|
121 |
|
* Fri Mar 14 2008 Stephen Noble <support@dungog.net> - 1.2-15 |
122 |
|
- update locale 2008-03-14 |
123 |
|
|
124 |
|
* Wed Mar 12 2008 Shad L. Lords <slords@mail.com> - 1.2-14 |
125 |
|
- Add requires for e-smith-formmagick for UTF-8 support [SME: 3858] |
126 |
|
|
127 |
|
* Tue Mar 11 2008 Stephen Noble <support@dungog.net> - 1.2-13 |
128 |
|
- Add 2008-03-11 locale patch |
129 |
|
|
130 |
|
* Sat Mar 07 2008 Stephen Noble <support@dungog.net> - 1.2-12 |
131 |
|
- prepare en lexicons for pootle translations |
132 |
|
|
133 |
|
* Tue Dec 25 2007 Stephen Noble <support@dungog.net> 1.2-11 |
134 |
|
- french translation fix |
135 |
|
|
136 |
* Tue Dec 25 2007 Stephen Noble <support@dungog.net> 1.2-10 |
* Tue Dec 25 2007 Stephen Noble <support@dungog.net> 1.2-10 |
137 |
- add french translation, thanks Sylvain Gomez |
- add french translation, thanks Sylvain Gomez |
138 |
|
|
216 |
%patch0 -p1 |
%patch0 -p1 |
217 |
%patch1 -p1 |
%patch1 -p1 |
218 |
%patch2 -p1 |
%patch2 -p1 |
219 |
|
%patch3 -p1 |
220 |
|
%patch4 -p1 |
221 |
|
%patch5 -p1 |
222 |
|
%patch6 -p1 |
223 |
|
%patch7 -p1 |
224 |
|
%patch8 -p1 |
225 |
|
%patch9 -p1 |
226 |
|
%patch10 -p1 |
227 |
|
%patch11 -p1 |
228 |
|
%patch12 -p1 |
229 |
|
%patch13 -p1 |
230 |
|
%patch14 -p1 |
231 |
|
%patch15 -p1 |
232 |
|
%patch16 -p1 |
233 |
|
%patch17 -p1 |
234 |
|
%patch18 -p1 |
235 |
|
%patch19 -p1 |
236 |
|
%patch20 -p1 |
237 |
|
%patch21 -p1 |
238 |
|
%patch22 -p1 |
239 |
|
%patch23 -p1 |
240 |
|
%patch24 -p1 |
241 |
|
%patch25 -p1 |
242 |
|
%patch26 -p1 |
243 |
|
|
244 |
%build |
%build |
245 |
perl createlinks |
perl createlinks |
246 |
|
|
247 |
|
LEXICONS=$(find root/etc/e-smith/{locale/,web/functions/} -type f ) |
248 |
|
for lexicon in $LEXICONS |
249 |
|
do |
250 |
|
/sbin/e-smith/validate-lexicon $lexicon |
251 |
|
done |
252 |
|
|
253 |
%install |
%install |
254 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
255 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
267 |
%post |
%post |
268 |
#new installs |
#new installs |
269 |
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' |
|
270 |
echo ' ' |
echo ' ' |
271 |
|
echo 'http://www.dungog.net/wiki/Smeserver-mailsorting#Configuration' |
272 |
fi |
fi |
273 |
|
|
274 |
#upgrades (and new installs) |
#upgrades (and new installs) |
275 |
/bin/touch /home/e-smith/db/processmail |
/bin/touch /home/e-smith/db/processmail |
276 |
/sbin/e-smith/signal-event mailsorting-conf |
/sbin/e-smith/signal-event mailsorting-conf |
277 |
/sbin/e-smith/signal-event conf-userpanel |
if [ -d /etc/e-smith/events/conf-userpanel ] ; then |
278 |
|
/sbin/e-smith/signal-event conf-userpanel |
279 |
|
fi |
280 |
|
|
281 |
%postun |
%postun |
282 |
#uninstall |
#uninstall |