/[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.1 - (show annotations) (download)
Thu Jul 9 20:07:11 2015 UTC (9 years, 4 months ago) by vip-ire
Branch: MAIN
Initial import of spamassassin in our CVS

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

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