|
%perl_module_wo_prefix spamassassin 3.3.2 56 |
|
1 |
%define pkgname Mail-SpamAssassin |
%define pkgname Mail-SpamAssassin |
2 |
|
|
3 |
|
Name: spamassassin |
4 |
|
Version: 3.4.1 |
5 |
|
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}.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 |
|
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) |
136 |
%prep |
%prep |
137 |
%setup -q -n %{pkgname}-%{version} |
%setup -q -n %{pkgname}-%{version} |
138 |
%patch0 -p1 -b .krb5 |
%patch0 -p1 -b .krb5 |
|
#patch1 -p0 -b .goto |
|
139 |
|
|
140 |
%build |
%build |
141 |
(cd spamc; autoconf) |
(cd spamc; autoconf) |
142 |
%define _perl_buildroot %{nil} |
%define _perl_buildroot %{nil} |
143 |
%perl_configure ENABLE_SSL=yes |
test -z "$PERL5LIB" && export PERL5LIB=%{buildroot}%{perl_vendorarch}:%{buildroot}%{perl_vendorlib} || \ |
144 |
%perl_make |
export PERL5LIB="$PERL5LIB":%{buildroot}%{perl_vendorarch}:%{buildroot}%{perl_vendorlib} |
145 |
%perl_makecheck || : |
test -z "$CFLAGS" && export CFLAGS="%{optflags}" |
146 |
|
%{__perl} Makefile.PL 'PREFIX=%{_perl_buildroot}%{_prefix}' INSTALLDIRS=vendor ENABLE_SSL=yes |
147 |
|
%{__perl} -pi -e 's/^\tLD_RUN_PATH=[^\s]+\s*/\t/' Makefile |
148 |
|
%{__make} OPTIMIZE="$RPM_OPT_FLAGS" |
149 |
|
%if %{?_without_check:0}%{!?_without_check:1} |
150 |
|
%{__make} test || : |
151 |
|
%endif |
152 |
mv spamd/README spamd/README.spamd |
mv spamd/README spamd/README.spamd |
153 |
|
|
154 |
%install |
%install |
155 |
rm -rf %{buildroot} |
rm -rf %{buildroot} |
156 |
%perl_makeinstall DESTDIR=%{buildroot} |
%{__make} install DESTDIR_REDIRECT=%{buildroot} DESTDIR=%{buildroot} |
157 |
|
find %{buildroot} \( -name .packlist -or -name perllocal.pod -or \( -name '*.bs' -a -empty \) \) -exec rm -f {} \; |
158 |
install -d %{buildroot}/%{_initrddir} |
install -d %{buildroot}/%{_initrddir} |
159 |
install -p -m 0755 spamd/redhat-rc-script.sh %{buildroot}/%{_initrddir}/spamassassin |
install -p -m 0755 spamd/redhat-rc-script.sh %{buildroot}/%{_initrddir}/spamassassin |
160 |
|
|
198 |
|
|
199 |
%{perl_vendorlib}/Mail/SpamAssassin.pm |
%{perl_vendorlib}/Mail/SpamAssassin.pm |
200 |
%{perl_vendorlib}/Mail/SpamAssassin |
%{perl_vendorlib}/Mail/SpamAssassin |
201 |
%{perl_man3dir}/Mail::SpamAssassin*.3pm* |
%{_mandir}/man3/Mail::SpamAssassin*.3pm* |
202 |
%{perl_man1dir}/sa-awl.1* |
%{_mandir}/man1/sa-awl.1* |
203 |
%{perl_vendorlib}/spamassassin-run.pod |
%{perl_vendorlib}/spamassassin-run.pod |
204 |
%{_datadir}/spamassassin |
%{_datadir}/spamassassin |
205 |
|
|
258 |
exit 0 |
exit 0 |
259 |
|
|
260 |
%changelog |
%changelog |
261 |
|
* Wed Jan 6 2016 Daniel Berteaud <daniel@firewall-services.com> - 3.4.1-1.sme |
262 |
|
- Update to 3.4.1 [SME: 9153] |
263 |
|
|
264 |
|
* Fri Jul 10 2015 Daniel Berteaud <daniel@firewall-services.com> - 3.3.2-60.sme |
265 |
|
- Expand atrpms macro and remove BuildReq on atrpms-rpm-config [SME: 8980] |
266 |
|
|
267 |
|
* Fri Jul 10 2015 Daniel Berteaud <daniel@firewall-services.com> - 3.3.2-59.sme |
268 |
|
- Add atrpms-rpm-config to the BUildReq so it can build [SME: 8980] |
269 |
|
|
270 |
|
* Thu Jul 9 2015 Daniel Berteaud <daniel@firewall-services.com> - 3.3.2-58.sme |
271 |
|
- Update RegistrarBoundaries.pm to the one from 3.4.1 so URIBL tests are |
272 |
|
done on new tld [SME: 8980] |
273 |
|
|
274 |
|
* Thu Jul 9 2015 Daniel Berteaud <daniel@firewall-services.com> - 3.3.2-57.sme |
275 |
|
- Remove dependency on atrpms macros [SME: 8980] |
276 |
|
|
277 |
* Mon Jun 10 2013 Axel Thimm <Axel.Thimm@ATrpms.net> - |
* Mon Jun 10 2013 Axel Thimm <Axel.Thimm@ATrpms.net> - |
278 |
- Update to 3.3.2. |
- Update to 3.3.2. |
279 |
|
|