2 |
%define name smeserver-mailsorting |
%define name smeserver-mailsorting |
3 |
Name: %{name} |
Name: %{name} |
4 |
%define version 1.2 |
%define version 1.2 |
5 |
%define release 11 |
%define release 17 |
6 |
Version: %{version} |
Version: %{version} |
7 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
8 |
License: GPL |
License: GPL |
12 |
Patch0: smeserver-mailsorting-1.2-maildropdups.patch |
Patch0: smeserver-mailsorting-1.2-maildropdups.patch |
13 |
Patch1: smeserver-mailsorting-1.2-esLocale.patch |
Patch1: smeserver-mailsorting-1.2-esLocale.patch |
14 |
Patch2: smeserver-mailsorting-1.2-frLocale3.patch |
Patch2: smeserver-mailsorting-1.2-frLocale3.patch |
15 |
|
Patch3: smeserver-mailsorting-1.2-pootle.patch |
16 |
|
Patch4: smeserver-mailsorting-1.2-locale-2008-03-11.patch |
17 |
|
Patch5: smeserver-mailsorting-1.2-locale-2008-03-14.patch |
18 |
|
Patch6: smeserver-mailsorting-1.2-geekmode.patch |
19 |
|
Patch7: smeserver-mailsorting-1.2-locale-2008-04-01.patch |
20 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
21 |
BuildRoot: /var/tmp/%{name}-%{version} |
BuildRoot: /var/tmp/%{name}-%{version} |
22 |
Requires: e-smith-release >= 7.0, |
Requires: e-smith-release >= 7.0, |
23 |
Requires: perl-Unicode-IMAPUtf7 |
Requires: perl-Unicode-IMAPUtf7 |
24 |
|
Requires: e-smith-formmagick >= 1.4.0-10 |
25 |
#Requires: smeserver-userpanel, userpanel causes endless problems |
#Requires: smeserver-userpanel, userpanel causes endless problems |
26 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
27 |
AutoReqProv: no |
AutoReqProv: no |
31 |
Optionally provides user panels where users can create mail rules for themselves |
Optionally provides user panels where users can create mail rules for themselves |
32 |
|
|
33 |
%changelog |
%changelog |
34 |
|
* Tue Apr 1 2008 Shad L. Lords <slords@mail.com> 1.2-17 |
35 |
|
- Update to UTF-8 translations |
36 |
|
|
37 |
|
* Fri Mar 14 2008 Stephen Noble <support@dungog.net> - 1.2-16 |
38 |
|
- block generation of procmail/maildrop rules [SME: 4051] |
39 |
|
|
40 |
|
* Fri Mar 14 2008 Stephen Noble <support@dungog.net> - 1.2-15 |
41 |
|
- update locale 2008-03-14 |
42 |
|
|
43 |
|
* Wed Mar 12 2008 Shad L. Lords <slords@mail.com> - 1.2-14 |
44 |
|
- Add requires for e-smith-formmagick for UTF-8 support [SME: 3858] |
45 |
|
|
46 |
|
* Tue Mar 11 2008 Stephen Noble <support@dungog.net> - 1.2-13 |
47 |
|
- Add 2008-03-11 locale patch |
48 |
|
|
49 |
|
* Sat Mar 07 2008 Stephen Noble <support@dungog.net> - 1.2-12 |
50 |
|
- prepare en lexicons for pootle translations |
51 |
|
|
52 |
* Tue Dec 25 2007 Stephen Noble <support@dungog.net> 1.2-11 |
* Tue Dec 25 2007 Stephen Noble <support@dungog.net> 1.2-11 |
53 |
- french translation fix |
- french translation fix |
54 |
|
|
135 |
%patch0 -p1 |
%patch0 -p1 |
136 |
%patch1 -p1 |
%patch1 -p1 |
137 |
%patch2 -p1 |
%patch2 -p1 |
138 |
|
%patch3 -p1 |
139 |
|
%patch4 -p1 |
140 |
|
%patch5 -p1 |
141 |
|
%patch6 -p1 |
142 |
|
%patch7 -p1 |
143 |
|
|
144 |
%build |
%build |
145 |
perl createlinks |
perl createlinks |
146 |
|
|
147 |
|
LEXICONS=$(find root/etc/e-smith/{locale/,web/functions/} -type f ) |
148 |
|
for lexicon in $LEXICONS |
149 |
|
do |
150 |
|
/sbin/e-smith/validate-lexicon $lexicon |
151 |
|
done |
152 |
|
|
153 |
%install |
%install |
154 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
155 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
167 |
%post |
%post |
168 |
#new installs |
#new installs |
169 |
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' |
|
170 |
echo ' ' |
echo ' ' |
171 |
|
echo 'http://www.dungog.net/wiki/Smeserver-mailsorting#Configuration' |
172 |
fi |
fi |
173 |
|
|
174 |
#upgrades (and new installs) |
#upgrades (and new installs) |
175 |
/bin/touch /home/e-smith/db/processmail |
/bin/touch /home/e-smith/db/processmail |
176 |
/sbin/e-smith/signal-event mailsorting-conf |
/sbin/e-smith/signal-event mailsorting-conf |
177 |
/sbin/e-smith/signal-event conf-userpanel |
if [ -d /etc/e-smith/events/conf-userpanel ] ; then |
178 |
|
/sbin/e-smith/signal-event conf-userpanel |
179 |
|
fi |
180 |
|
|
181 |
%postun |
%postun |
182 |
#uninstall |
#uninstall |