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