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

Annotation of /rpms/spamassassin/sme9/spamassassin.spec

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


Revision 1.2 - (hide annotations) (download)
Thu Jul 9 20:23:50 2015 UTC (8 years, 10 months ago) by vip-ire
Branch: MAIN
Changes since 1.1: +6 -1 lines
* Thu Jul 9 2015 Daniel Berteaud <daniel@firewall-services.com> - 3.3.2-57.sme
- Remove dependency on atrpms macros [SME: 8980]

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

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