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