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 1 |
%define release 11 |
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 |
|
Patch4: smeserver-learn-1.0-admin.patch |
20 |
|
Patch5: smeserver-learn-1.0-SME9282.patch |
21 |
|
Patch6: smeserver-learn-1.0-MOVE.patch |
22 |
|
Patch7: smeserver-learn-1.0-VERBOSE.patch |
23 |
|
Patch8: smeserver-learn-1.0-devnull.patch |
24 |
Packager: JP Pialasse <tests@pialasse.com> |
Packager: JP Pialasse <tests@pialasse.com> |
25 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
26 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
27 |
Requires: perl-Email-Simple |
Requires: perl-Email-Simple |
28 |
|
BuildRequires: e-smith-devtools >= 1.13.1-03 |
29 |
|
|
30 |
%description |
%description |
31 |
Scripts which allows users to interact with spamassassin rules simply |
Scripts which allows users to interact with spamassassin rules simply |
35 |
- 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 |
36 |
|
|
37 |
%changelog |
%changelog |
38 |
* Mon Mar 07 2016 JP Pialasse <tests@pialasse.com> 1.0-1.sme |
* Sat May 14 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-11.sme |
39 |
|
- fix verbose disabled unlink /dev/null [SME: 9512] |
40 |
|
|
41 |
|
* Wed Mar 16 2016 JP Pialasse <tests@pialasse.com> 1.0-10.sme |
42 |
|
- fix encoding problem when removing or adding tags [SME: 9282] |
43 |
|
- fix moving file not working MOVE patch [SME: 9314] |
44 |
|
- NFR: setting for verbose (enabled,disabled, active) VERBOSE patch [SME: 9313] |
45 |
|
|
46 |
|
* Tue Mar 15 2016 JP Pialasse <tests@pialasse.com> 1.0-8.sme |
47 |
|
- NFR: check admin Maildir [SME: 9279] |
48 |
|
- NFR: restrict utilization to some users [SME: 9280] |
49 |
|
|
50 |
|
* Wed Mar 09 2016 JP Pialasse <tests@pialasse.com> 1.0-7.sme |
51 |
|
- fix find not restrictive enough when learning also new [SME: 6862] |
52 |
|
|
53 |
|
* Tue Mar 08 2016 JP Pialasse <tests@pialasse.com> 1.0-6.sme |
54 |
- new version SME8 and SME9 |
- new version SME8 and SME9 |
55 |
- fix wrong default db key DeleteAfterLearn [SME: 7083] |
- fix wrong default db key DeleteAfterLearn [SME: 7083] |
56 |
- added inspection of temp and new subdir [SME: 6862] |
- added inspection of temp and new subdir [SME: 6862] |
66 |
- NFR: create db key for multiple folder to inspect |
- NFR: create db key for multiple folder to inspect |
67 |
- enhanced move to junkmail or inbox |
- enhanced move to junkmail or inbox |
68 |
- moving job from crontab to /etc/cron.d/Learn |
- moving job from crontab to /etc/cron.d/Learn |
69 |
|
- fixed typo in event email-update (r3) |
70 |
|
- fixed wrong file permission on /etc/cron.d/Lean [SME: 9283] (r4) |
71 |
|
- fixed messy output [SME: 9284] (r5) |
72 |
|
- fixed replaced cron file on update [SME: 9286](r6) |
73 |
|
|
74 |
* 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 |
75 |
- add dependencies to spec file |
- add dependencies to spec file |
89 |
|
|
90 |
%prep |
%prep |
91 |
%setup |
%setup |
92 |
#%patch0 -p1 |
%patch0 -p1 |
93 |
|
%patch1 -p1 |
94 |
|
%patch2 -p1 |
95 |
|
%patch3 -p1 |
96 |
|
%patch4 -p1 |
97 |
|
%patch5 -p1 |
98 |
|
%patch6 -p1 |
99 |
|
%patch7 -p1 |
100 |
|
%patch8 -p1 |
101 |
|
|
102 |
%build |
%build |
103 |
perl createlinks |
perl createlinks |
106 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
107 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
108 |
rm -f %{name}-%{version}-filelist |
rm -f %{name}-%{version}-filelist |
109 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT |\ |
110 |
|
sed -e "s@^$RPM_BUILD_ROOT@@g" \ |
111 |
|
-e "s@^%attr(0644,root,root) /etc/cron.d/Learn@%attr(0644,root,root)%config(noreplace) /etc/cron.d/Learn@"\ |
112 |
|
> %{name}-%{version}-filelist |
113 |
|
|
114 |
%clean |
%clean |
115 |
rm -rf $RPM_BUILD_ROOT |
#rm -rf $RPM_BUILD_ROOT |
116 |
|
|
117 |
%post |
%post |
118 |
|
|