1 |
%define pkgname Mail-SpamAssassin |
%define pkgname Mail-SpamAssassin |
2 |
|
|
3 |
Name: spamassassin |
Name: spamassassin |
4 |
Version: 3.3.2 |
Version: 3.4.1 |
5 |
Release: 59%{?dist} |
Release: 2%{?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}.r1675274.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 |
|
|
|
BuildRequires: atrpms-rpm-config |
|
31 |
BuildRequires: openssl-devel, krb5-devel |
BuildRequires: openssl-devel, krb5-devel |
32 |
BuildRequires: autoconf |
BuildRequires: autoconf |
33 |
BuildRequires: perl >= 2:5.8.1 |
BuildRequires: perl >= 2:5.8.1 |
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) |
145 |
%define _perl_buildroot %{nil} |
%define _perl_buildroot %{nil} |
146 |
%perl_configure ENABLE_SSL=yes |
test -z "$PERL5LIB" && export PERL5LIB=%{buildroot}%{perl_vendorarch}:%{buildroot}%{perl_vendorlib} || \ |
147 |
%perl_make |
export PERL5LIB="$PERL5LIB":%{buildroot}%{perl_vendorarch}:%{buildroot}%{perl_vendorlib} |
148 |
%perl_makecheck || : |
test -z "$CFLAGS" && export CFLAGS="%{optflags}" |
149 |
|
%{__perl} Makefile.PL 'PREFIX=%{_perl_buildroot}%{_prefix}' INSTALLDIRS=vendor ENABLE_SSL=yes |
150 |
|
%{__perl} -pi -e 's/^\tLD_RUN_PATH=[^\s]+\s*/\t/' Makefile |
151 |
|
%{__make} OPTIMIZE="$RPM_OPT_FLAGS" |
152 |
|
%if %{?_without_check:0}%{!?_without_check:1} |
153 |
|
%{__make} test || : |
154 |
|
%endif |
155 |
mv spamd/README spamd/README.spamd |
mv spamd/README spamd/README.spamd |
156 |
|
|
157 |
%install |
%install |
158 |
rm -rf %{buildroot} |
rm -rf %{buildroot} |
159 |
%perl_makeinstall DESTDIR=%{buildroot} |
%{__make} install DESTDIR_REDIRECT=%{buildroot} DESTDIR=%{buildroot} |
160 |
|
find %{buildroot} \( -name .packlist -or -name perllocal.pod -or \( -name '*.bs' -a -empty \) \) -exec rm -f {} \; |
161 |
install -d %{buildroot}/%{_initrddir} |
install -d %{buildroot}/%{_initrddir} |
162 |
install -p -m 0755 spamd/redhat-rc-script.sh %{buildroot}/%{_initrddir}/spamassassin |
install -p -m 0755 spamd/redhat-rc-script.sh %{buildroot}/%{_initrddir}/spamassassin |
163 |
|
|
201 |
|
|
202 |
%{perl_vendorlib}/Mail/SpamAssassin.pm |
%{perl_vendorlib}/Mail/SpamAssassin.pm |
203 |
%{perl_vendorlib}/Mail/SpamAssassin |
%{perl_vendorlib}/Mail/SpamAssassin |
204 |
%{perl_man3dir}/Mail::SpamAssassin*.3pm* |
%{_mandir}/man3/Mail::SpamAssassin*.3pm* |
205 |
%{perl_man1dir}/sa-awl.1* |
%{_mandir}/man1/sa-awl.1* |
206 |
%{perl_vendorlib}/spamassassin-run.pod |
%{perl_vendorlib}/spamassassin-run.pod |
207 |
%{_datadir}/spamassassin |
%{_datadir}/spamassassin |
208 |
|
|
261 |
exit 0 |
exit 0 |
262 |
|
|
263 |
%changelog |
%changelog |
264 |
|
* Tue Jun 19 2018 Jean-Philipe Pialasse <tests@pialasse.com> 3.4.1-2.sme |
265 |
|
- add build require perl(Net::DNS::Nameserver) and import dependencies [SME: 10597] |
266 |
|
|
267 |
|
* Wed Jan 6 2016 Daniel Berteaud <daniel@firewall-services.com> - 3.4.1-1.sme |
268 |
|
- Update to 3.4.1 [SME: 9153] |
269 |
|
|
270 |
|
* Fri Jul 10 2015 Daniel Berteaud <daniel@firewall-services.com> - 3.3.2-60.sme |
271 |
|
- Expand atrpms macro and remove BuildReq on atrpms-rpm-config [SME: 8980] |
272 |
|
|
273 |
* Fri Jul 10 2015 Daniel Berteaud <daniel@firewall-services.com> - 3.3.2-59.sme |
* Fri Jul 10 2015 Daniel Berteaud <daniel@firewall-services.com> - 3.3.2-59.sme |
274 |
- Add atrpms-rpm-config to the BUildReq so it can build [SME: 8980] |
- Add atrpms-rpm-config to the BUildReq so it can build [SME: 8980] |
275 |
|
|