1 |
# $Id: smeserver-spamassassin.spec,v 1.20 2021/02/22 04:19:31 jpp Exp $ |
# $Id: smeserver-spamassassin.spec,v 1.26 2023/03/08 09:55:14 jcrisp Exp $ |
2 |
|
|
3 |
Summary: SME Server - spamassassin anti-spam module |
Summary: SME Server - spamassassin anti-spam module |
4 |
%define name smeserver-spamassassin |
%define name smeserver-spamassassin |
5 |
Name: %{name} |
Name: %{name} |
6 |
%define version 2.7.0 |
%define version 2.7.0 |
7 |
%define release 7 |
%define release 12 |
8 |
Version: %{version} |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
10 |
License: GPL |
License: GPL |
14 |
Patch1: smeserver-spamassassin-2.7.0-bz11361-spamd-fails.patch |
Patch1: smeserver-spamassassin-2.7.0-bz11361-spamd-fails.patch |
15 |
Patch2: smeserver-spamassassin-2.7.0-bz11362-logging.patch |
Patch2: smeserver-spamassassin-2.7.0-bz11362-logging.patch |
16 |
Patch3: smeserver-spamassassin-2.7.0-bz11375-remove-spamd.patch |
Patch3: smeserver-spamassassin-2.7.0-bz11375-remove-spamd.patch |
17 |
|
Patch4: smeserver-spamassassin-2.7.0-bz12330-logging-sa4.patch |
18 |
|
|
19 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
20 |
Requires: e-smith-email >= 4.13.0-38 |
Requires: e-smith-email >= 4.13.0-38 |
21 |
Requires: headermatch |
Requires: headermatch |
22 |
Requires: spamassassin >= 3.4.4 |
Requires: spamassassin >= 4.0.0 |
23 |
Requires: perl(Crypt::OpenSSL::Bignum) |
Requires: perl(Crypt::OpenSSL::Bignum) |
24 |
Requires: perl(IO::Socket::INET6) |
Requires: perl(IO::Socket::INET6) |
25 |
Requires: perl(IP::Country) |
Requires: perl(IP::Country) |
27 |
Requires: perl(Net::Ident) |
Requires: perl(Net::Ident) |
28 |
Requires: perl(Compress::Zlib) |
Requires: perl(Compress::Zlib) |
29 |
Requires: perl(Mail::DKIM) |
Requires: perl(Mail::DKIM) |
30 |
|
Requires: perl(Mail::DMARC) >= 1.20200214 |
31 |
Requires: ucspi-tcp daemontools |
Requires: ucspi-tcp daemontools |
32 |
Requires: e-smith-lib >= 1.13.1-90 |
Requires: e-smith-lib >= 1.13.1-90 |
33 |
Requires: e-smith-base >= 4.13.16 |
Requires: e-smith-base >= 4.13.16 |
47 |
SME Server - spamassassin anti-spam module |
SME Server - spamassassin anti-spam module |
48 |
|
|
49 |
%changelog |
%changelog |
50 |
|
* Wed Jul 05 2023 John Crisp <jcrisp@safeandsoundit.co.uk> 2.7.0-12.sme |
51 |
|
- Add requires perl-Mail-DMARC for spamassassin 4 |
52 |
|
|
53 |
|
* Tue Mar 07 2023 John Crisp <jcrisp@safeandsoundit.co.uk> 2.7.0-11.sme |
54 |
|
- update for Spamassassin 4 - thanks for the patch Zsolt [SME: 12330] |
55 |
|
|
56 |
|
* Wed Apr 07 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-10.sme |
57 |
|
- prevent noise in log at spamassassin call from qpsmtpd [SME: 11491] |
58 |
|
|
59 |
|
* Tue Mar 16 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-9.sme |
60 |
|
- clean rsyslog syntax for spamd [SME: 11422] |
61 |
|
|
62 |
|
* Tue Feb 23 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.7.0-8.sme |
63 |
|
- remove warning while trying to delete file when missing in post script [SME: 11375] |
64 |
|
|
65 |
* Sun Feb 21 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.7.0-7.sme |
* Sun Feb 21 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.7.0-7.sme |
66 |
- remove spamd reference as service use spamassassin.service [SME: 11375] |
- remove spamd reference as service use spamassassin.service [SME: 11375] |
67 |
migrate spamd propertie SpamLearning to spamassassin |
migrate spamd propertie SpamLearning to spamassassin |
165 |
* Tue Oct 7 2008 Shad L. Lords <slords@mail.com> 2.2.0-1.sme |
* Tue Oct 7 2008 Shad L. Lords <slords@mail.com> 2.2.0-1.sme |
166 |
- Roll new stream to separate sme7/sme8 trees [SME: 4633] |
- Roll new stream to separate sme7/sme8 trees [SME: 4633] |
167 |
|
|
168 |
* Sat Mar 9 2008 chris burnat <devlist@burnat.com> 1.4.0-18 |
* Sat Mar 8 2008 chris burnat <devlist@burnat.com> 1.4.0-18 |
169 |
- Edit and rename deprecated template fragment [SME: 3857] |
- Edit and rename deprecated template fragment [SME: 3857] |
170 |
|
|
171 |
* Tue Dec 25 2007 Shad L. Lords <slords@mail.com> 1.4.0-17 |
* Tue Dec 25 2007 Shad L. Lords <slords@mail.com> 1.4.0-17 |
495 |
%patch2 -p1 |
%patch2 -p1 |
496 |
%patch3 -p1 |
%patch3 -p1 |
497 |
rm -rf root/etc/e-smith/db/configuration/defaults/spamd |
rm -rf root/etc/e-smith/db/configuration/defaults/spamd |
498 |
|
mkdir -p root/var/service/qpsmtpd/.spamassassin |
499 |
|
%patch4 -p1 |
500 |
|
|
501 |
%build |
%build |
502 |
perl createlinks |
perl createlinks |
512 |
--file /etc/cron.hourly/sa-restart 'attr(0755,root,root)' \ |
--file /etc/cron.hourly/sa-restart 'attr(0755,root,root)' \ |
513 |
--dir /usr/lib/systemd/system/spamd.service.d 'attr(0755,root,root)' \ |
--dir /usr/lib/systemd/system/spamd.service.d 'attr(0755,root,root)' \ |
514 |
--dir /usr/lib/systemd/system/spamassassin.service.d 'attr(0755,root,root)' \ |
--dir /usr/lib/systemd/system/spamassassin.service.d 'attr(0755,root,root)' \ |
515 |
|
--dir /var/service/qpsmtpd/.spamassassin 'attr(2750,spamd,spamd)' \ |
516 |
|
|grep -v "/var/service/qpsmtpd$" \ |
517 |
|
|grep -v "/var/service$" \ |
518 |
> %{name}-%{version}-%{release}-filelist |
> %{name}-%{version}-%{release}-filelist |
519 |
|
|
520 |
%pre |
%pre |
536 |
%post |
%post |
537 |
|
|
538 |
# Cleanup old files |
# Cleanup old files |
539 |
rm -rf /var/lib/spamassassin/3.004000 2>/dev/null || true |
if [[ -d /var/lib/spamassassin/3.004000 ]]; then |
540 |
|
rm -rf /var/lib/spamassassin/3.004000 2>/dev/null || true |
541 |
|
fi |
542 |
|
|
543 |
if [[ ! -d /var/lib/spamassassin/3.004004 ]]; then |
if [[ ! -d /var/lib/spamassassin/3.004004 ]]; then |
544 |
echo "Installing new spam databases - please be patient" |
echo "Installing new spam databases - please be patient" |
552 |
fi |
fi |
553 |
fi |
fi |
554 |
|
|
555 |
rm -rf /usr/lib/systemd/system/spamd.service.d 2>/dev/null || true |
if [[ -d /usr/lib/systemd/system/spamd.service.d ]]; then |
556 |
|
rm -rf /usr/lib/systemd/system/spamd.service.d |
557 |
|
fi |
558 |
|
|
559 |
%files -f %{name}-%{version}-%{release}-filelist |
%files -f %{name}-%{version}-%{release}-filelist |
560 |
%defattr(-,root,root) |
%defattr(-,root,root) |