Search
j0ke.net Open Build Service
>
Projects
>
server:mail
>
spamassassin
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 9
[-]
[+]
Added
spamassassin.spec
@@ -0,0 +1,598 @@ +# +# spec file for package spamassassin (Version 3.2.3) +# +# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + +Name: spamassassin +BuildRequires: perl-Digest-SHA1 perl-HTML-Parser perl-Net-DNS +License: The Apache Software License +Group: Productivity/Networking/Email/Utilities +Url: http://spamassassin.org/ +Version: 3.2.3 +Release: 11 +Requires: perl-libwww-perl perl-IO-Zlib +Requires: perl-spamassassin = %version +AutoReqProv: on +PreReq: %insserv_prereq %fillup_prereq +Summary: SpamAssassin is an extensible email filter which is used to identify spam +Source: Mail-SpamAssassin-%{version}.tar.bz2 +Source1: local.cf +Source2: init.spamd +Source3: sysconfig.spamd +Patch0: patch-utf8 +Patch1: patch-PgSQL +Patch2: patch-URIDNSBL +Patch3: patch-SQL_ASCII_SORT +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +spamassassin adds a header line that shows if the mail has been +determined spam or not. This way, you can decide what to do with the +mail within the scope of your own filtering rules in your MUA (Mail +User Agent, your mail program) or your LDA (Local Delivery Agent). + +See the files in the documentation directory +/usr/share/doc/packages/spamassassin/ for more information on how to +use the filter. + + + +Authors: +-------- + Justin Mason <me@jmason.org> + +%debug_package +%package -n perl-spamassassin +Group: Development/Libraries/Perl +Requires: perl-HTML-Parser perl-Net-DNS perl-IO-Socket-SSL perl-Archive-Tar +Requires: perl = %{perl_version} +AutoReqProv: on +Summary: Perl Modules For Using Spamassassin Within An Own Perl Script + +%description -n perl-spamassassin +This package contains the perl modules for the spamassassin, including +the filter rules. This package is required for the package +"spamassassin", the commandline tool. + + + +%prep +%setup -n Mail-SpamAssassin-%version +%patch0 -p0 +%patch1 -p0 +%patch2 -p0 +%patch3 -p0 + +%build +export CFLAGS="$RPM_OPT_FLAGS" +if [ -e t/data/whitelists/winxpnews.com ]; then + echo "t/data/whitelists/winxpnews.com is not allowed to be distributed." + echo "see #102221" + exit -1 +fi; +if [ -e build/cf_to_html ]; then + echo "build/cf_to_html is not allowed to be distributed." + echo "see #102221" + exit -1 +fi; +perl Makefile.PL DESTDIR=$RPM_BUILD_ROOT \ + CONTACT_ADDRESS="postmaster" \ + INSTALLDIRS=vendor < /dev/null +make + +%install +rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT/usr/sbin +mkdir -p $RPM_BUILD_ROOT/etc/mail/spamassassin +mkdir -p $RPM_BUILD_ROOT/etc/init.d +mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates/ +mkdir -p $RPM_BUILD_ROOT/var/adm/perl-modules +mkdir -p $RPM_BUILD_ROOT/usr/share/spamassassin +# +make install +%perl_process_packlist +# +mv $RPM_BUILD_ROOT/usr/bin/spamd $RPM_BUILD_ROOT/usr/sbin +install -m 0644 $RPM_SOURCE_DIR/local.cf $RPM_BUILD_ROOT/etc/mail/spamassassin/local.cf +install -m 0644 %SOURCE2 $RPM_BUILD_ROOT/etc/init.d/spamd +ln -s ../../etc/init.d/spamd $RPM_BUILD_ROOT/usr/sbin/rcspamd +echo "Most of the documentation is at ../perl-spamassassin/." > README.SuSE +install -m 0640 %SOURCE3 $RPM_BUILD_ROOT/var/adm/fillup-templates/ +test -f $RPM_BUILD_ROOT/usr/share/spamassassin/user_prefs.template || { + echo "MakeMaker is broken again..." + exit 1 +} + +%files -n perl-spamassassin +%defattr(-,root,root) +%doc CREDITS Changes INSTALL LICENSE MANIFEST* NOTICE PACKAGING README +%doc TRADEMARK UPGRADE USAGE sample-nonspam.txt sample-spam.txt +%doc ldap sql +%doc %{_mandir}/man3/* +%dir /etc/mail +%config(noreplace) /etc/mail/spamassassin +%dir %{perl_vendorarch}/auto/Mail +%{perl_vendorarch}/auto/Mail/SpamAssassin +%dir %{perl_vendorlib}/Mail +%{perl_vendorlib}/Mail/SpamAssassin.pm +%{perl_vendorlib}/Mail/SpamAssassin +%{perl_vendorlib}/spamassassin-run.pod +/usr/share/spamassassin +/var/adm/perl-modules/spamassassin + +%files +%defattr(-,root,root) +%doc spamd/README* spamd/PROTOCOL +%doc %{_mandir}/man1/* +%attr(755,root,root) /usr/bin/* +%attr(755,root,root) /usr/sbin/* +%config %attr(740,root,root) /etc/init.d/spamd +/var/adm/fillup-templates/sysconfig.spamd + +%post +%{fillup_and_insserv -n spamd} + +%preun +%stop_on_removal spamd + +%postun +%restart_on_update spamd +%insserv_cleanup +#remove old type attribute +grep -q 'SPAMD_ARGS.*-a' etc/sysconfig/spamd && { + sed 's/-a//' etc/sysconfig/spamd > etc/sysconfig/spamd.tmp + if [ -s etc/sysconfig/spamd.tmp ] + then + mv etc/sysconfig/spamd.tmp etc/sysconfig/spamd + else + test -e etc/sysconfig/spamd.tmp && rm etc/sysconfig/spamd.tmp + fi +} +exit 0 + +%clean +rm -rf $RPM_BUILD_ROOT +%changelog +* Sun Aug 12 2007 - varkoly@suse.de +- update to 3.2.3: + *bug 5574: fix new setuid code to work with perl 5.6.1, and to support DCC and + Pyzor in all releases of perl + *bug 5107: change default 'user_scores_ldap_username' to be the null string, + allowing anonymous binding; fix 'schema' syntax error in LDAP config support + *zeroing an 'eval' rule's score did not stop it running. fix, thanks to + Richard Birkett <richard+spamassassin at musicbox.net> + *bug 5571: allow for new message ID format we have seen from Vista or Windows + 2003 Server MAPI to avoid false positives + *bug 5397: RDNS_DYNAMIC should never fire on a PTR with 'static' in it; thanks + to Martin Blapp <mbr at freebsd.org>. bug 5563: RDNS_DYNAMIC rules use + order-dependent fields where it is unsafe to depend on this, fix. bug 5564: + __RDNS_DYNAMIC_IPADDR does not hit all of its test patterns, fix. + *bug 5475: fix FORGED_MUA_AOL_FROM to allow <*@{aol,cs}.*> addresses instead + of just <*@{aol,cs}.com> +* Thu Aug 02 2007 - dmueller@suse.de +- update to 3.2.2: + * bug 5548: Certain mail input can take a long time to scan with 100%% CPU + utilisation, due to backtracking in a rule's regexp. fix + * bugs 5510, 5518, 5529: fix 'make test' when running as root, needed for CPAN + * bug 5419: kill -HUP of pidof spamd causes the ps name to change from spamd + to perl. fixed + * bug 5535: 'make test' errors in Windows caused by nonportable use of + getpwuid + * bug 5462: multiple DNS records for a host name should allow use of spamd -H + for load balancing installs to work + * bugs 5509, 5511: fix network lookup timeouts, where lookups were being lost + once a timeout was hit; also fix code to match documentation on + rbl_timeout's scaling and minimum duration of 1 second; and attempt to + collect already-received DNS responses when the timeout is reached; improve + related debugging output. Thanks to Mark Martinec + * bugs 5412, 5478, 5522: Fix problems using the spamc -x option with certain + other options; 'spamc -x -R' always returned 0, instead of the exit code, on + error. Bug 5478: in addition, 'spamc -x -e /command' would still run the + command, even if errors meant that the filtered text would be unavailable, + which contradicted -x.