1 |
|
# $Id: smeserver-mailsorting.spec,v 1.21 2008/05/21 20:20:27 snetram 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 21 |
10 |
Version: %{version} |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
12 |
License: GPL |
License: GPL |
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-frLocale3.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 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
29 |
BuildRoot: /var/tmp/%{name}-%{version} |
BuildRoot: /var/tmp/%{name}-%{version} |
30 |
Requires: e-smith-release >= 7.0, |
Requires: e-smith-release >= 7.0, |
31 |
Requires: perl-Unicode-IMAPUtf7 |
Requires: perl-Unicode-IMAPUtf7 |
32 |
|
Requires: e-smith-formmagick >= 1.4.0-12 |
33 |
#Requires: smeserver-userpanel, userpanel causes endless problems |
#Requires: smeserver-userpanel, userpanel causes endless problems |
34 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
35 |
AutoReqProv: no |
AutoReqProv: no |
39 |
Optionally provides user panels where users can create mail rules for themselves |
Optionally provides user panels where users can create mail rules for themselves |
40 |
|
|
41 |
%changelog |
%changelog |
42 |
|
* 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 |
|
* Mon May 5 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2-20 |
47 |
|
- Apply 5 May 2008 locale patch |
48 |
|
|
49 |
|
* 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 |
|
* Tue Apr 22 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2-18 |
53 |
|
- Added 22 April 2008 locale patch |
54 |
|
|
55 |
|
* Tue Apr 1 2008 Shad L. Lords <slords@mail.com> 1.2-17 |
56 |
|
- Update to UTF-8 translations |
57 |
|
|
58 |
|
* Fri Mar 14 2008 Stephen Noble <support@dungog.net> - 1.2-16 |
59 |
|
- block generation of procmail/maildrop rules [SME: 4051] |
60 |
|
|
61 |
|
* Fri Mar 14 2008 Stephen Noble <support@dungog.net> - 1.2-15 |
62 |
|
- update locale 2008-03-14 |
63 |
|
|
64 |
|
* 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 |
|
* 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 |
|
- prepare en lexicons for pootle translations |
72 |
|
|
73 |
|
* Tue Dec 25 2007 Stephen Noble <support@dungog.net> 1.2-11 |
74 |
|
- french translation fix |
75 |
|
|
76 |
* Tue Dec 25 2007 Stephen Noble <support@dungog.net> 1.2-10 |
* Tue Dec 25 2007 Stephen Noble <support@dungog.net> 1.2-10 |
77 |
- add french translation, thanks Sylvain Gomez |
- add french translation, thanks Sylvain Gomez |
78 |
|
|
156 |
%patch0 -p1 |
%patch0 -p1 |
157 |
%patch1 -p1 |
%patch1 -p1 |
158 |
%patch2 -p1 |
%patch2 -p1 |
159 |
|
%patch3 -p1 |
160 |
|
%patch4 -p1 |
161 |
|
%patch5 -p1 |
162 |
|
%patch6 -p1 |
163 |
|
%patch7 -p1 |
164 |
|
%patch8 -p1 |
165 |
|
%patch9 -p1 |
166 |
|
%patch10 -p1 |
167 |
|
%patch11 -p1 |
168 |
|
|
169 |
%build |
%build |
170 |
perl createlinks |
perl createlinks |
171 |
|
|
172 |
|
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 |
%install |
%install |
179 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
180 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
192 |
%post |
%post |
193 |
#new installs |
#new installs |
194 |
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' |
|
195 |
echo ' ' |
echo ' ' |
196 |
|
echo 'http://www.dungog.net/wiki/Smeserver-mailsorting#Configuration' |
197 |
fi |
fi |
198 |
|
|
199 |
#upgrades (and new installs) |
#upgrades (and new installs) |
200 |
/bin/touch /home/e-smith/db/processmail |
/bin/touch /home/e-smith/db/processmail |
201 |
/sbin/e-smith/signal-event mailsorting-conf |
/sbin/e-smith/signal-event mailsorting-conf |
202 |
/sbin/e-smith/signal-event conf-userpanel |
if [ -d /etc/e-smith/events/conf-userpanel ] ; then |
203 |
|
/sbin/e-smith/signal-event conf-userpanel |
204 |
|
fi |
205 |
|
|
206 |
%postun |
%postun |
207 |
#uninstall |
#uninstall |