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 8 |
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 |
Packager: JP Pialasse <tests@pialasse.com> |
Packager: JP Pialasse <tests@pialasse.com> |
21 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
22 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
23 |
Requires: perl-Email-Simple |
Requires: perl-Email-Simple |
24 |
|
BuildRequires: e-smith-devtools >= 1.13.1-03 |
25 |
|
|
26 |
%description |
%description |
27 |
Scripts which allows users to interact with spamassassin rules simply |
Scripts which allows users to interact with spamassassin rules simply |
31 |
- 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 |
32 |
|
|
33 |
%changelog |
%changelog |
34 |
* Mon Mar 07 2016 JP Pialasse <tests@pialasse.com> 1.0-1.sme |
* Tue Mar 15 2016 JP Pialasse <tests@pialasse.com> 1.0-8.sme |
35 |
|
- NFR: check admin Maildir [SME: 9279] |
36 |
|
- NFR: restrict utilization to some users [SME: 9280] |
37 |
|
|
38 |
|
* Wed Mar 09 2016 JP Pialasse <tests@pialasse.com> 1.0-7.sme |
39 |
|
- fix find not restrictive enough when learning also new [SME: 6862] |
40 |
|
|
41 |
|
* Tue Mar 08 2016 JP Pialasse <tests@pialasse.com> 1.0-6.sme |
42 |
- new version SME8 and SME9 |
- new version SME8 and SME9 |
43 |
- fix wrong default db key DeleteAfterLearn [SME: 7083] |
- fix wrong default db key DeleteAfterLearn [SME: 7083] |
44 |
- added inspection of temp and new subdir [SME: 6862] |
- added inspection of temp and new subdir [SME: 6862] |
54 |
- NFR: create db key for multiple folder to inspect |
- NFR: create db key for multiple folder to inspect |
55 |
- enhanced move to junkmail or inbox |
- enhanced move to junkmail or inbox |
56 |
- moving job from crontab to /etc/cron.d/Learn |
- moving job from crontab to /etc/cron.d/Learn |
57 |
|
- fixed typo in event email-update (r3) |
58 |
|
- fixed wrong file permission on /etc/cron.d/Lean [SME: 9283] (r4) |
59 |
|
- fixed messy output [SME: 9284] (r5) |
60 |
|
- fixed replaced cron file on update [SME: 9286](r6) |
61 |
|
|
62 |
* 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 |
63 |
- add dependencies to spec file |
- add dependencies to spec file |
77 |
|
|
78 |
%prep |
%prep |
79 |
%setup |
%setup |
80 |
#%patch0 -p1 |
%patch0 -p1 |
81 |
|
%patch1 -p1 |
82 |
|
%patch2 -p1 |
83 |
|
%patch3 -p1 |
84 |
|
%patch4 -p1 |
85 |
|
|
86 |
%build |
%build |
87 |
perl createlinks |
perl createlinks |
90 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
91 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
92 |
rm -f %{name}-%{version}-filelist |
rm -f %{name}-%{version}-filelist |
93 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT |\ |
94 |
|
sed -e "s@^$RPM_BUILD_ROOT@@g" \ |
95 |
|
-e "s@^%attr(0644,root,root) /etc/cron.d/Learn@%attr(0644,root,root)%config(noreplace) /etc/cron.d/Learn@"\ |
96 |
|
> %{name}-%{version}-filelist |
97 |
|
|
98 |
%clean |
%clean |
99 |
rm -rf $RPM_BUILD_ROOT |
#rm -rf $RPM_BUILD_ROOT |
100 |
|
|
101 |
%post |
%post |
102 |
|
|