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