/[smeserver]/rpms/spamassassin/sme9/spamassassin.spec
ViewVC logotype

Contents of /rpms/spamassassin/sme9/spamassassin.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.4 - (show annotations) (download)
Fri Jul 10 06:20:56 2015 UTC (8 years, 10 months ago) by vip-ire
Branch: MAIN
Changes since 1.3: +6 -1 lines
* Fri Jul 10 2015 Daniel Berteaud <daniel@firewall-services.com> - 3.3.2-59.sme
- Add atrpms-rpm-config to the BUildReq so it can build [SME: 8980]

1 %define pkgname Mail-SpamAssassin
2
3 Name: spamassassin
4 Version: 3.3.2
5 Release: 59%{?dist}
6 Summary: Spam filter for email which can be invoked from mail delivery agents
7 License: Apache
8 Group: Applications/Internet
9 URL: http://spamassassin.apache.org/
10 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
12 Source2: redhat_local3.cf
13 Source3: spamassassin-default.rc
14 Source4: spamassassin-spamc.rc
15 Source5: spamassassin.sysconfig
16 Source6: sa-update.logrotate
17 Source88: sa-update.cron.in
18 Source89: gpgkeys
19 Source90: channels
20 Source10: spamassassin-helper.sh
21 Source20: http://www.timj.co.uk/linux/bogus-virus-warnings.cf
22 #Source30: http://saupdates.openprotect.com/pub.gpg
23 Source40: http://spamassassin.apache.org/updates/GPG.KEY
24 Source50: http://www.apache.org/dist/spamassassin/KEYS
25 #Source60: http://yerp.org/rules/GPG.KEY
26 Source60: GPG-sought.KEY
27 Patch0: Mail-SpamAssassin-3.0.0-krb5.patch
28 #Patch1: sa-1027163-for-3.3.diff
29 Patch1000: Mail-SpamAssassin-3.3.2-update_RegistrarBoundaries.patch
30 Buildroot: %{_tmppath}/%{name}-root
31 Requires(pre): /sbin/chkconfig /sbin/service
32
33 BuildRequires: atrpms-rpm-config
34 BuildRequires: openssl-devel, krb5-devel
35 BuildRequires: autoconf
36 BuildRequires: perl >= 2:5.8.1
37 #
38 BuildRequires: perl(Digest::SHA)
39 BuildRequires: perl(File::Spec) >= 0.8
40 BuildRequires: perl(File::Copy) >= 2.02
41 BuildRequires: perl(Pod::Usage) >= 1.10
42 BuildRequires: perl(HTML::Parser) >= 3.43
43 BuildRequires: perl(Archive::Tar) >= 1.23
44 BuildRequires: perl(Mail::DKIM) >= 0.37
45 BuildRequires: perl(Net::DNS) >= 0.58
46 BuildRequires: perl(NetAddr::IP)
47 BuildRequires: perl(Sys::Hostname)
48 BuildRequires: perl(Time::HiRes)
49 BuildRequires: perl(Time::Local)
50 BuildRequires: perl(Errno)
51 #
52 BuildRequires: perl(MIME::Base64)
53 BuildRequires: perl(DB_File)
54 BuildRequires: perl(Net::SMTP)
55 BuildRequires: perl(Mail::SPF)
56 BuildRequires: perl(IP::Country::Fast)
57 BuildRequires: perl(Razor2::Client::Version) >= 2.61
58 BuildRequires: perl(Net::Ident)
59 BuildRequires: perl(IO::Socket::INET6)
60 BuildRequires: perl(IO::Socket::SSL)
61 BuildRequires: perl(Compress::Zlib)
62 BuildRequires: perl(DBI)
63 #BuildRequires: perl(DBD::...)
64 BuildRequires: perl(Getopt::Long) >= 2.34
65 BuildRequires: perl(LWP), perl(LWP::UserAgent)
66 BuildRequires: perl(HTTP::Date)
67 BuildRequires: perl(IO::Zlib) >= 1.04
68 BuildRequires: perl(Encode::Detect)
69 #
70 BuildRequires: perl(Apache::Test)
71 BuildRequires: mod_perl
72
73 BuildRequires: %{_bindir}/dccproc
74 BuildRequires: %{_bindir}/pyzor
75
76 ###
77 Requires: perl(Digest::SHA)
78 Requires: perl(File::Spec) >= 0.8
79 Requires: perl(File::Copy) >= 2.02
80 Requires: perl(Pod::Usage) >= 1.10
81 Requires: perl(HTML::Parser) >= 3.43
82 Requires: perl(Archive::Tar) >= 1.23
83 Requires: perl(Mail::DKIM) >= 0.37
84 Requires: perl(Net::DNS) >= 0.58
85 Requires: perl(NetAddr::IP)
86 Requires: perl(Sys::Hostname)
87 Requires: perl(Time::HiRes)
88 Requires: perl(Time::Local)
89 Requires: perl(Errno)
90 #
91 Requires: perl(MIME::Base64)
92 Requires: perl(DB_File)
93 Requires: perl(Net::SMTP)
94 Requires: perl(Mail::SPF)
95 Requires: perl(IP::Country::Fast)
96 Requires: perl(Razor2::Client::Version) >= 2.61
97 Requires: perl(Net::Ident)
98 Requires: perl(IO::Socket::INET6)
99 Requires: perl(IO::Socket::SSL)
100 Requires: perl(Compress::Zlib)
101 Requires: perl(DBI)
102 #Requires: perl(DBD::...)
103 Requires: perl(Getopt::Long) >= 2.34
104 Requires: perl(LWP), perl(LWP::UserAgent)
105 Requires: perl(HTTP::Date)
106 Requires: perl(IO::Zlib) >= 1.04
107 Requires: perl(Encode::Detect)
108 #
109 Requires: perl(Apache::Test)
110 Requires: mod_perl
111 ###
112
113 Requires: perl(Getopt::Long) >= 2.34
114 Requires: %{_bindir}/dccproc
115 Requires: %{_bindir}/pyzor
116
117 Requires: procmail
118 Requires: gnupg
119
120 Obsoletes: perl-Mail-SpamAssassin <= %{eversion}
121
122 %description
123 SpamAssassin provides you with a way to reduce if not completely eliminate
124 Unsolicited Commercial Email (SPAM) from your incoming email. It can
125 be invoked by a MDA such as sendmail or postfix, or can be called from
126 a procmail script, .forward file, etc. It uses a genetic-algorithm
127 evolved scoring system to identify messages which look spammy, then
128 adds headers to the message so they can be filtered by the user's mail
129 reading software. This distribution includes the spamd/spamc components
130 which create a server that considerably speeds processing of mail.
131
132 To enable spamassassin, if you are receiving mail locally, simply add
133 this line to your ~/.procmailrc:
134 INCLUDERC=%{_sysconfdir}/mail/spamassassin/spamassassin-default.rc
135
136 To filter spam for all users, add that line to /etc/procmailrc
137 (creating if necessary).
138
139 %prep
140 %setup -q -n %{pkgname}-%{version}
141 %patch0 -p1 -b .krb5
142 #patch1 -p0 -b .goto
143 %patch1000 -p1
144
145 %build
146 (cd spamc; autoconf)
147 %define _perl_buildroot %{nil}
148 %perl_configure ENABLE_SSL=yes
149 %perl_make
150 %perl_makecheck || :
151 %endif
152 mv spamd/README spamd/README.spamd
153
154 %install
155 rm -rf %{buildroot}
156 %perl_makeinstall DESTDIR=%{buildroot}
157 install -d %{buildroot}/%{_initrddir}
158 install -p -m 0755 spamd/redhat-rc-script.sh %{buildroot}/%{_initrddir}/spamassassin
159
160 mkdir -p %{buildroot}%{_sysconfdir}/mail/spamassassin
161 mkdir -p -m 0700 %{buildroot}%{_sysconfdir}/mail/spamassassin/sa-update-keys
162 mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
163 mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
164 mkdir -p %{buildroot}%{_sysconfdir}/cron.daily
165 install -p -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/mail/spamassassin/local.cf
166 install -p -m 0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/sysconfig/spamassassin
167
168 install -p -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/mail/spamassassin
169 install -p -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/mail/spamassassin
170 install -p -m 0755 %{SOURCE10} %{buildroot}%{_sysconfdir}/mail/spamassassin
171 install -p -m 0644 %{SOURCE6} %{buildroot}/etc/logrotate.d/sa-update
172 install -p -m 0644 %{SOURCE89} %{SOURCE90} %{buildroot}%{_sysconfdir}/mail/spamassassin
173 sed -e's,@configdir@,%{_sysconfdir}/mail/spamassassin,g' \
174 -e's,@homedir@,/var/lib/spamassassin,g' \
175 -e's,@logdir@,/var/log/sa-update.log,g' \
176 < %{SOURCE88} > %{buildroot}/etc/cron.daily/sa_update
177 chmod 0755 %{buildroot}/etc/cron.daily/sa_update
178 touch -r %{SOURCE88} %{buildroot}/etc/cron.daily/sa_update
179
180 pushd %{buildroot}%{_datadir}/spamassassin/
181 gunzip -c %{SOURCE1} | tar xf -
182 popd
183
184 install -p -m 0644 %{SOURCE20} %{buildroot}%{_datadir}/spamassassin/99_bogus-virus-warnings.cf
185
186 install -p -m 0644 %{SOURCE60} %{buildroot}%{_datadir}/spamassassin/sought.rules.yerp.org-key.txt
187 install -p -m 0644 %{SOURCE50} %{buildroot}%{_datadir}/spamassassin/release-spamassassin.org-key.txt
188 install -p -m 0644 %{SOURCE40} %{buildroot}%{_datadir}/spamassassin/updates.spamassassin.org-key.txt
189 #install -p -m 0644 %{SOURCE30} %{buildroot}%{_datadir}/spamassassin/saupdates.openprotect.com-key.txt
190
191 mkdir -p %{buildroot}/var/lib/spamassassin
192
193 %files
194 %defattr(-,root,root,-)
195 %doc README Changes sample-nonspam.txt sample-spam.txt spamd/README.spamd
196 %doc UPGRADE LICENSE TRADEMARK NOTICE USAGE CREDITS
197
198 %{perl_vendorlib}/Mail/SpamAssassin.pm
199 %{perl_vendorlib}/Mail/SpamAssassin
200 %{perl_man3dir}/Mail::SpamAssassin*.3pm*
201 %{perl_man1dir}/sa-awl.1*
202 %{perl_vendorlib}/spamassassin-run.pod
203 %{_datadir}/spamassassin
204
205 %{_bindir}/sa-learn
206 %{_bindir}/spamassassin
207 %{_bindir}/sa-update
208 %{_bindir}/sa-compile
209 %{_bindir}/sa-awl
210 %{_bindir}/sa-check_spamd
211 %{_mandir}/man1/sa-learn.1*
212 %{_mandir}/man1/sa-update.1*
213 %{_mandir}/man1/spamassassin*.1*
214 %{_mandir}/man1/sa-compile.1*
215 %{_mandir}/man3/spamassassin-run.3pm*
216 %config(noreplace) %{_sysconfdir}/mail/spamassassin
217 %config(noreplace) %{_sysconfdir}/sysconfig/spamassassin
218 %{_sysconfdir}/cron.daily/sa_update
219 /var/lib/spamassassin
220 %{_sysconfdir}/logrotate.d/sa-update
221
222 %{_bindir}/spamd
223 %{_mandir}/man1/spamd.1*
224 %{_initrddir}/spamassassin
225
226 %{_bindir}/spamc
227 %{_mandir}/man1/spamc.1*
228
229 %clean
230 rm -rf %{buildroot}
231
232 %post
233 /sbin/chkconfig --add spamassassin
234
235 for old in /etc/spamassassin.cf /etc/mail/spamassassin.cf; do
236 mv $old %{_sysconfdir}/mail/spamassassin/migrated.cf > /dev/null 2>&1 || :
237 done
238
239 # Make sure we import all keys. The release key is not currently
240 # intended for sa-update functionality, but one is better equipped to
241 # handle such cases in future upgrades.
242 sa-update --import %{_datadir}/spamassassin/release-spamassassin.org-key.txt
243 sa-update --import %{_datadir}/spamassassin/updates.spamassassin.org-key.txt
244 #sa-update --import %{_datadir}/spamassassin/saupdates.openprotect.com-key.txt
245 sa-update --import %{_datadir}/spamassassin/sought.rules.yerp.org-key.txt
246
247 %postun
248 if [ "$1" -ge "1" ]; then
249 /sbin/service spamassassin condrestart > /dev/null 2>&1
250 fi
251
252 %preun
253 if [ $1 = 0 ] ; then
254 /sbin/service spamassassin stop >/dev/null 2>&1
255 /sbin/chkconfig --del spamassassin
256 fi
257 exit 0
258
259 %changelog
260 * Fri Jul 10 2015 Daniel Berteaud <daniel@firewall-services.com> - 3.3.2-59.sme
261 - Add atrpms-rpm-config to the BUildReq so it can build [SME: 8980]
262
263 * Thu Jul 9 2015 Daniel Berteaud <daniel@firewall-services.com> - 3.3.2-58.sme
264 - Update RegistrarBoundaries.pm to the one from 3.4.1 so URIBL tests are
265 done on new tld [SME: 8980]
266
267 * Thu Jul 9 2015 Daniel Berteaud <daniel@firewall-services.com> - 3.3.2-57.sme
268 - Remove dependency on atrpms macros [SME: 8980]
269
270 * Mon Jun 10 2013 Axel Thimm <Axel.Thimm@ATrpms.net> -
271 - Update to 3.3.2.
272
273 * Fri Nov 26 2010 Axel Thimm <Axel.Thimm@ATrpms.net> -
274 - Update to interim dev release 3.3.1_01.
275
276 * Thu Nov 25 2010 Axel Thimm <Axel.Thimm@ATrpms.net>
277 - Remove goto invocations to please perl 5.12.x.
278
279 * Fri Jan 29 2010 Axel Thimm <Axel.Thimm@ATrpms.net>
280 - Update to 3.3.0 final.
281
282 * Mon Dec 28 2009 Axel Thimm <Axel.Thimm@ATrpms.net>
283 - Update to 3.3.0 rc1.
284
285 * Sun Jun 15 2008 Axel Thimm <Axel.Thimm@ATrpms.net>
286 - Update spamassassin update key with the cross-signed one.
287
288 * Thu Jun 12 2008 Axel Thimm <Axel.Thimm@ATrpms.net>
289 - Update to 3.2.5.
290
291 * Sat Dec 22 2007 Axel Thimm <Axel.Thimm@ATrpms.net>
292 - Fix handling of gpgkeys (Jeffrey J. Kosowsky <atrpms@kosowsky.org>).
293 - channels and gpgkeys are not anymore hardcoded in cron scripts.
294 - Many smaller cleanups.
295
296 * Fri Aug 10 2007 Axel Thimm <Axel.Thimm@ATrpms.net>
297 - Update to 3.2.3.
298 - Remove patches for suid bug (are now upstream).
299
300 * Tue Jul 31 2007 Axel Thimm <Axel.Thimm@ATrpms.net>
301 - Fix pyzor/dcc suid bug.
302
303 * Wed Jul 25 2007 Axel Thimm <Axel.Thimm@ATrpms.net>
304 - Update to 3.2.2.
305
306 * Tue Jun 12 2007 Axel Thimm <Axel.Thimm@ATrpms.net>
307 - Update to 3.2.1.
308 - Rename %{_sysconfdir}/cron.daily/sa-update sa_update to avoid
309 conflict with mailscanner project.
310
311 * Sat May 5 2007 Axel Thimm <Axel.Thimm@ATrpms.net>
312 - Update to 3.2.0.
313 - Sync with rawhide's sa-update cron.
314
315 * Thu Feb 15 2007 Axel Thimm <Axel.Thimm@ATrpms.net>
316 - Update to 3.1.8.
317
318 * Wed Oct 11 2006 Axel Thimm <Axel.Thimm@ATrpms.net>
319 - Update to 3.1.7.
320
321 * Fri Oct 6 2006 Axel Thimm <Axel.Thimm@ATrpms.net>
322 - Update to 3.1.6.
323
324 * Wed Aug 30 2006 Axel Thimm <Axel.Thimm@ATrpms.net>
325 - Update to 3.1.5.
326
327 * Fri Jul 28 2006 Axel Thimm <Axel.Thimm@ATrpms.net>
328 - Update to 3.1.4.
329
330 * Wed Jun 7 2006 Axel Thimm <Axel.Thimm@ATrpms.net>
331 - Update to 3.1.3.
332
333 * Fri May 26 2006 Axel Thimm <Axel.Thimm@ATrpms.net>
334 - Update to 3.1.2.
335
336 * Sun Mar 12 2006 Axel Thimm <Axel.Thimm@ATrpms.net>
337 - Update to 3.1.1.
338
339 * Thu Sep 15 2005 Axel Thimm <Axel.Thimm@ATrpms.net>
340 - Update to 3.1.0.
341
342 * Thu Jun 9 2005 Axel Thimm <Axel.Thimm@ATrpms.net>
343 - Update to 3.0.4.
344
345 * Fri Apr 29 2005 Axel Thimm <Axel.Thimm@ATrpms.net>
346 - Update to 3.0.3.
347
348 * Fri Dec 17 2004 Axel Thimm <Axel.Thimm@ATrpms.net>
349 - Update to 3.0.2.
350
351 * Tue Dec 14 2004 Axel Thimm <Axel.Thimm@ATrpms.net>
352 - Add support for collateral spam.
353
354 * Sat Oct 23 2004 Axel Thimm <Axel.Thimm@ATrpms.net>
355 - Update to 3.0.1.
356
357 * Wed Sep 22 2004 Axel Thimm <Axel.Thimm@ATrpms.net>
358 - Update to 3.0.0 final.
359
360 * Fri Sep 17 2004 Axel Thimm <Axel.Thimm@ATrpms.net>
361 - Update to 3.0.0-rc5.
362
363 * Thu Aug 5 2004 Axel Thimm <Axel.Thimm@ATrpms.net>
364 - Update to 3.0.0-pre4.
365
366 * Thu Jul 29 2004 Axel Thimm <Axel.Thimm@ATrpms.net>
367 - Update to 3.0.0-pre3.
368
369 * Thu Jan 22 2004 Axel Thimm <Axel.Thimm@ATrpms.net>
370 - Update to 2.63.
371
372 * Mon Jan 19 2004 Axel Thimm <Axel.Thimm@ATrpms.net>
373 - Update to 2.62.
374
375 * Mon Jan 12 2004 Axel Thimm <Axel.Thimm@ATrpms.net>
376 - Sync with rawhide (remove servicename patch).
377
378 * Tue Dec 9 2003 Axel Thimm <Axel.Thimm@ATrpms.net>
379 - Upgrade to 2.61.
380
381 * Wed Sep 24 2003 Axel Thimm <Axel.Thimm@ATrpms.net>
382 - Upgrade to 2.60.
383 - Sync with rawhide.
384
385 * Sat Jul 5 2003 Chip Turner <cturner@redhat.com> 2.55-3
386 - change perl dependency to more accurate versions with explicit epochs
387
388 * Wed Apr 16 2003 Chip Turner <cturner@redhat.com> 2.53-5
389 - remove SIGCHILD patch to properly return it to SIG_IGN now that
390 waitpid isn't used on Linux
391
392 * Mon Apr 14 2003 Chip Turner <cturner@redhat.com> 2.53-4.8.x
393 - update to 2.53 from upstream
394
395 * Fri Mar 21 2003 Chip Turner <cturner@redhat.com> 2.50-3.8.x
396 - update patch for servicename; should fix restarting/runlevel issues (#85975)
397
398 * Thu Mar 13 2003 Chip Turner <cturner@redhat.com> 2.50-2.8.x
399 - update to 2.50
400
401 * Tue Feb 25 2003 Elliot Lee <sopwith@redhat.com>
402 - rebuilt
403
404 * Fri Feb 21 2003 Chip Turner <cturner@redhat.com>
405 - revert double fix for 84774
406
407 * Mon Feb 17 2003 Bill Nottingham <notting@redhat.com>
408 - fix startup (#84445)
409
410 * Thu Feb 13 2003 Bill Nottingham <notting@redhat.com>
411 - fix paths in initscript (#84216)
412
413 * Thu Feb 13 2003 Chip Turner <cturner@redhat.com>
414 - removing -P option since it is the default now, bug 84144
415
416 * Wed Feb 12 2003 Florian La Roche <Florian.LaRoche@redhat.de>
417 - fix SIGCHLD handling
418
419 * Mon Feb 10 2003 Bill Nottingham <notting@redhat.com>
420 - move condrestart to %%postun
421
422 * Sun Feb 2 2003 Chip Turner <cturner@redhat.com>
423 - update to 2.44
424 - add condrestart to service script
425
426 * Thu Jan 30 2003 Chip Turner <cturner@redhat.com>
427 - release bump and rebuild
428
429 * Wed Jan 29 2003 Chip Turner <cturner@redhat.com>
430 - add upstream bsmtp off-by-one patch
431
432 * Mon Jan 20 2003 Chip Turner <cturner@redhat.com>
433 - add wrapper for 'spamassassin -e' for native evolution spam filtering
434
435 * Sat Jan 4 2003 Jeff Johnson <jbj@redhat.com> 2.43-10
436 - use internal dep generator.
437
438 * Wed Jan 1 2003 Chip Turner <cturner@redhat.com>
439 - rebuild
440
441 * Tue Dec 17 2002 Bill Nottingham <notting@redhat.com> 2.43-7
442 - don't run by default
443
444 * Sat Dec 14 2002 Tim Powers <timp@redhat.com> 2.43-6
445 - don't use rpms internal dep generator
446 - buildrequire perl-Time-HiRes instead of perl(Time:HiRes) so we can satisfy build deps in the build system
447
448 * Fri Nov 22 2002 Tim Powers <timp@redhat.com>
449 - rebuilt to solve broken perl deps
450
451 * Thu Aug 15 2002 Chip Turner <cturner@redhat.com>
452 - speedup patch from upstream
453
454 * Tue Aug 6 2002 Chip Turner <cturner@redhat.com>
455 - automated release bump and build
456
457 * Thu Jul 18 2002 Chip Turner <cturner@redhat.com>
458 - better control of service level, improvement in %%post script.
459 - (contribs from schirmer@taytron.net)
460
461 * Fri Jun 28 2002 Chip Turner <cturner@redhat.com>
462 - added proper BuildRequire
463
464 * Wed Jun 26 2002 Chip Turner <cturner@redhat.com>
465 - updated to 2.31, added .rc file for procmail to INCLUDERC to enable
466
467 * Fri Apr 19 2002 Theo Van Dinter <felicity@kluge.net>
468 - Updated for 2.20 release
469 - made /etc/mail/spamassassin a config directory so local.cf doesn't get wiped out
470 - added a patch to remove findbin stuff
471
472 * Wed Feb 27 2002 Craig Hughes <craig@hughes-family.org>
473 - Updated for 2.1 release
474
475 * Sat Feb 02 2002 Theo Van Dinter <felicity@kluge.net>
476 - Updates for 2.01 release
477 - Fixed rc file
478 - RPM now buildable as non-root
479 - fixed post_service errors
480 - fixed provides to include perl modules
481 - use file find instead of manually specifying files
482
483 * Tue Jan 15 2002 Craig Hughes <craig@hughes-family.org>
484 - Updated for 2.0 release
485
486 * Wed Dec 05 2001 Craig Hughes <craig@hughes-family.org>
487 - Updated for final 1.5 distribution.
488
489 * Sun Nov 18 2001 Craig Hughes <craig@hughes-family.org>
490 - first version of rpm.
491

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed