3 |
# Name: Jean-Philippe Pialasse. |
# Name: Jean-Philippe Pialasse. |
4 |
%define name smeserver-learn |
%define name smeserver-learn |
5 |
%define version 1.0 |
%define version 1.0 |
6 |
%define release 2 |
%define release 7 |
7 |
|
|
8 |
Summary: SME Server Mails Learning script |
Summary: SME Server Mails Learning script |
9 |
Name: %{name} |
Name: %{name} |
12 |
License: GPL |
License: GPL |
13 |
Group: Networking/Daemons |
Group: Networking/Daemons |
14 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
15 |
|
Patch0: smeserver-learn-1.0-event.patch |
16 |
|
Patch1: smeserver-learn-1.0-SME9283.patch |
17 |
|
Patch2: smeserver-learn-1.0-SME9284.patch |
18 |
|
Patch3: smeserver-learn-1.0-SME6862.patch |
19 |
Packager: JP Pialasse <tests@pialasse.com> |
Packager: JP Pialasse <tests@pialasse.com> |
20 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
21 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
30 |
- Whitelist the sender so his mails won't be taged as spam again |
- Whitelist the sender so his mails won't be taged as spam again |
31 |
|
|
32 |
%changelog |
%changelog |
33 |
* Mon Mar 07 2016 JP Pialasse <tests@pialasse.com> 1.0-2.sme |
* Wed Mar 09 2016 JP Pialasse <tests@pialasse.com> 1.0-7.sme |
34 |
|
- fix find not restrictive enough when learning also new [SME: 6862] |
35 |
|
|
36 |
|
* Tue Mar 08 2016 JP Pialasse <tests@pialasse.com> 1.0-6.sme |
37 |
- new version SME8 and SME9 |
- new version SME8 and SME9 |
38 |
- fix wrong default db key DeleteAfterLearn [SME: 7083] |
- fix wrong default db key DeleteAfterLearn [SME: 7083] |
39 |
- added inspection of temp and new subdir [SME: 6862] |
- added inspection of temp and new subdir [SME: 6862] |
49 |
- NFR: create db key for multiple folder to inspect |
- NFR: create db key for multiple folder to inspect |
50 |
- enhanced move to junkmail or inbox |
- enhanced move to junkmail or inbox |
51 |
- moving job from crontab to /etc/cron.d/Learn |
- moving job from crontab to /etc/cron.d/Learn |
52 |
|
- fixed typo in event email-update (r3) |
53 |
|
- fixed wrong file permission on /etc/cron.d/Lean [SME: 9283] (r4) |
54 |
|
- fixed messy output [SME: 9284] (r5) |
55 |
|
- fixed replaced cron file on update [SME: 9286](r6) |
56 |
|
|
57 |
* Wed Jun 25 2008 Emmmanuel JOORIS <joorise@dot-world.net> 0.0.1-3 |
* Wed Jun 25 2008 Emmmanuel JOORIS <joorise@dot-world.net> 0.0.1-3 |
58 |
- add dependencies to spec file |
- add dependencies to spec file |
72 |
|
|
73 |
%prep |
%prep |
74 |
%setup |
%setup |
75 |
#%patch0 -p1 |
%patch0 -p1 |
76 |
|
%patch1 -p1 |
77 |
|
%patch2 -p1 |
78 |
|
%patch3 -p1 |
79 |
|
|
80 |
%build |
%build |
81 |
perl createlinks |
perl createlinks |
84 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
85 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
86 |
rm -f %{name}-%{version}-filelist |
rm -f %{name}-%{version}-filelist |
87 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT |\ |
88 |
|
sed -e "s@^$RPM_BUILD_ROOT@@g" \ |
89 |
|
-e "s@^%attr(0644,root,root) /etc/cron.d/Learn@%attr(0644,root,root)%config(noreplace) /etc/cron.d/Learn@"\ |
90 |
|
> %{name}-%{version}-filelist |
91 |
|
|
92 |
%clean |
%clean |
93 |
rm -rf $RPM_BUILD_ROOT |
#rm -rf $RPM_BUILD_ROOT |
94 |
|
|
95 |
%post |
%post |
96 |
|
|