1 |
%define pkgname Mail-SpamAssassin |
%define pkgname Mail-SpamAssassin |
2 |
|
|
3 |
Name: spamassassin |
Name: spamassassin |
4 |
Version: 3.3.2 |
Version: 3.4.4 |
5 |
Release: 60%{?dist} |
Release: 1%{?dist} |
6 |
Summary: Spam filter for email which can be invoked from mail delivery agents |
Summary: Spam filter for email which can be invoked from mail delivery agents |
7 |
License: Apache |
License: Apache |
8 |
Group: Applications/Internet |
Group: Applications/Internet |
9 |
URL: http://spamassassin.apache.org/ |
URL: http://spamassassin.apache.org/ |
10 |
Source0: http://www.apache.org/dist/spamassassin/source/Mail-SpamAssassin-%{version}.tar.bz2 |
Source0: http://www.apache.org/dist/spamassassin/source/Mail-SpamAssassin-%{version}.tar.bz2 |
11 |
Source1: http://www.apache.org/dist/spamassassin/source/Mail-SpamAssassin-rules-%{version}-r1104058.tar.gz |
Source1: http://www.apache.org/dist/spamassassin/source/Mail-SpamAssassin-rules-%{version}.r1873061.tgz |
12 |
Source2: redhat_local3.cf |
Source2: redhat_local3.cf |
13 |
Source3: spamassassin-default.rc |
Source3: spamassassin-default.rc |
14 |
Source4: spamassassin-spamc.rc |
Source4: spamassassin-spamc.rc |
25 |
#Source60: http://yerp.org/rules/GPG.KEY |
#Source60: http://yerp.org/rules/GPG.KEY |
26 |
Source60: GPG-sought.KEY |
Source60: GPG-sought.KEY |
27 |
Patch0: Mail-SpamAssassin-3.0.0-krb5.patch |
Patch0: Mail-SpamAssassin-3.0.0-krb5.patch |
|
#Patch1: sa-1027163-for-3.3.diff |
|
|
Patch1000: Mail-SpamAssassin-3.3.2-update_RegistrarBoundaries.patch |
|
28 |
Buildroot: %{_tmppath}/%{name}-root |
Buildroot: %{_tmppath}/%{name}-root |
29 |
Requires(pre): /sbin/chkconfig /sbin/service |
Requires(pre): /sbin/chkconfig /sbin/service |
30 |
|
|
40 |
BuildRequires: perl(Archive::Tar) >= 1.23 |
BuildRequires: perl(Archive::Tar) >= 1.23 |
41 |
BuildRequires: perl(Mail::DKIM) >= 0.37 |
BuildRequires: perl(Mail::DKIM) >= 0.37 |
42 |
BuildRequires: perl(Net::DNS) >= 0.58 |
BuildRequires: perl(Net::DNS) >= 0.58 |
43 |
BuildRequires: perl(NetAddr::IP) |
BuildRequires: perl(NetAddr::IP) >= 4.010 |
44 |
BuildRequires: perl(Sys::Hostname) |
BuildRequires: perl(Sys::Hostname) |
45 |
BuildRequires: perl(Time::HiRes) |
BuildRequires: perl(Time::HiRes) |
46 |
BuildRequires: perl(Time::Local) |
BuildRequires: perl(Time::Local) |
70 |
BuildRequires: %{_bindir}/dccproc |
BuildRequires: %{_bindir}/dccproc |
71 |
BuildRequires: %{_bindir}/pyzor |
BuildRequires: %{_bindir}/pyzor |
72 |
|
|
73 |
|
##JPP |
74 |
|
BuildRequires: perl(Net::DNS::Nameserver) |
75 |
|
|
76 |
### |
### |
77 |
Requires: perl(Digest::SHA) |
Requires: perl(Digest::SHA) |
78 |
Requires: perl(File::Spec) >= 0.8 |
Requires: perl(File::Spec) >= 0.8 |
139 |
%prep |
%prep |
140 |
%setup -q -n %{pkgname}-%{version} |
%setup -q -n %{pkgname}-%{version} |
141 |
%patch0 -p1 -b .krb5 |
%patch0 -p1 -b .krb5 |
|
#patch1 -p0 -b .goto |
|
|
%patch1000 -p1 |
|
142 |
|
|
143 |
%build |
%build |
144 |
(cd spamc; autoconf) |
(cd spamc; autoconf) |
187 |
|
|
188 |
install -p -m 0644 %{SOURCE20} %{buildroot}%{_datadir}/spamassassin/99_bogus-virus-warnings.cf |
install -p -m 0644 %{SOURCE20} %{buildroot}%{_datadir}/spamassassin/99_bogus-virus-warnings.cf |
189 |
|
|
190 |
install -p -m 0644 %{SOURCE60} %{buildroot}%{_datadir}/spamassassin/sought.rules.yerp.org-key.txt |
#install -p -m 0644 %{SOURCE60} %{buildroot}%{_datadir}/spamassassin/sought.rules.yerp.org-key.txt |
191 |
install -p -m 0644 %{SOURCE50} %{buildroot}%{_datadir}/spamassassin/release-spamassassin.org-key.txt |
install -p -m 0644 %{SOURCE50} %{buildroot}%{_datadir}/spamassassin/release-spamassassin.org-key.txt |
192 |
install -p -m 0644 %{SOURCE40} %{buildroot}%{_datadir}/spamassassin/updates.spamassassin.org-key.txt |
install -p -m 0644 %{SOURCE40} %{buildroot}%{_datadir}/spamassassin/updates.spamassassin.org-key.txt |
193 |
#install -p -m 0644 %{SOURCE30} %{buildroot}%{_datadir}/spamassassin/saupdates.openprotect.com-key.txt |
#install -p -m 0644 %{SOURCE30} %{buildroot}%{_datadir}/spamassassin/saupdates.openprotect.com-key.txt |
246 |
sa-update --import %{_datadir}/spamassassin/release-spamassassin.org-key.txt |
sa-update --import %{_datadir}/spamassassin/release-spamassassin.org-key.txt |
247 |
sa-update --import %{_datadir}/spamassassin/updates.spamassassin.org-key.txt |
sa-update --import %{_datadir}/spamassassin/updates.spamassassin.org-key.txt |
248 |
#sa-update --import %{_datadir}/spamassassin/saupdates.openprotect.com-key.txt |
#sa-update --import %{_datadir}/spamassassin/saupdates.openprotect.com-key.txt |
249 |
sa-update --import %{_datadir}/spamassassin/sought.rules.yerp.org-key.txt |
#sa-update --import %{_datadir}/spamassassin/sought.rules.yerp.org-key.txt |
250 |
|
|
251 |
%postun |
%postun |
252 |
if [ "$1" -ge "1" ]; then |
if [ "$1" -ge "1" ]; then |
261 |
exit 0 |
exit 0 |
262 |
|
|
263 |
%changelog |
%changelog |
264 |
|
* Mon Jan 07 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 3.4.2-2.sme |
265 |
|
- Obsolete sought.rules.yerp.org references [SME:10597] |
266 |
|
- Comment out sought.rules.yerp.org in channels |
267 |
|
|
268 |
|
* Wed Dec 12 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 3.4.2-1.sme |
269 |
|
- update to 3.4.2 [SME: 10597] |
270 |
|
|
271 |
|
* Tue Jun 19 2018 Jean-Philipe Pialasse <tests@pialasse.com> 3.4.1-2.sme |
272 |
|
- add build require perl(Net::DNS::Nameserver) and import dependencies [SME: 10597] |
273 |
|
|
274 |
|
* Wed Jan 6 2016 Daniel Berteaud <daniel@firewall-services.com> - 3.4.1-1.sme |
275 |
|
- Update to 3.4.1 [SME: 9153] |
276 |
|
|
277 |
* Fri Jul 10 2015 Daniel Berteaud <daniel@firewall-services.com> - 3.3.2-60.sme |
* Fri Jul 10 2015 Daniel Berteaud <daniel@firewall-services.com> - 3.3.2-60.sme |
278 |
- Expand atrpms macro and remove BuildReq on atrpms-rpm-config [SME: 8980] |
- Expand atrpms macro and remove BuildReq on atrpms-rpm-config [SME: 8980] |
279 |
|
|