]> git.pld-linux.org Git - packages/spamassassin.git/blobdiff - spamassassin.spec
- restored version number in openssl BR
[packages/spamassassin.git] / spamassassin.spec
index f434629aed75d5662c243d95334f6e5f1c7a3ce6..12113d4122022ade95fd963da1319f33be9f0692 100644 (file)
@@ -1,9 +1,6 @@
 # TODO
 # - build lib{,ssl}spamc.so (if there is a point)
-# - kill "update" subpackage and move it to perl-Mail-SpamAssassin?
-#   it's `strongly recommended' in 3.2.0 (instead of `optional').
-# - is it possible to package compiled results in -compile or the result is
-#   site/machine dependant?
+# - sa-check_spamd into nagios-plugin-check_spamd subpackage
 #
 # Conditional build:
 %bcond_without tests           # do not perform "make test"
 Summary:       A spam filter for email which can be invoked from mail delivery agents
 Summary(pl.UTF-8):     Filtr antyspamowy, przeznaczony dla programów dostarczających pocztę (MDA)
 Name:          spamassassin
-Version:       3.2.1
-Release:       1
-License:       Apache Software License v2
+Version:       3.3.2
+Release:       2
+License:       Apache v2.0
 Group:         Applications/Mail
-Source0:       http://www.apache.net.pl/spamassassin/source/%{pdir}-%{pnam}-%{version}.tar.bz2
-# Source0-md5: 7b2fdbcdca5e9a181d4bb1b17663c138
+Source0:       http://ftp.tpnet.pl/vol/d1/apache/spamassassin/source/%{pdir}-%{pnam}-%{version}.tar.bz2
+# Source0-md5: 253f8fcbeb6c8bfcab9d139865c1a404
 Source1:       %{name}.sysconfig
 Source2:       %{name}-spamd.init
 Source3:       %{name}-default.rc
 Source4:       %{name}-spamc.rc
+Source5:       sa-update.sh
+Source6:       sa-update.cron
 URL:           http://spamassassin.apache.org/
-BuildRequires: openssl-devel >= 0.9.7d
+BuildRequires: openssl-devel >= 1.0.0
 BuildRequires: perl(ExtUtils::MakeMaker) >= 6.16
 BuildRequires: perl-Archive-Tar
 BuildRequires: perl-DBI
@@ -38,15 +37,18 @@ BuildRequires:      perl-IO-Socket-SSL
 BuildRequires: perl-IO-Zlib
 BuildRequires: perl-IP-Country
 BuildRequires: perl-Mail-SPF-Query
-BuildRequires: perl-Net-DNS
+BuildRequires: perl-Net-DNS >= 0.65-3
 BuildRequires: perl-Net-Ident
+BuildRequires: perl-NetAddr-IP >= 4.000
 #BuildRequires:        perl-Razor2
 BuildRequires: perl-devel >= 1:5.8.0
 BuildRequires: perl-libwww
 BuildRequires: re2c
-BuildRequires: rpmbuild(macros) >= 1.310
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: rpmbuild(macros) >= 1.453
 %if %{with tests}
 # are these really needed?
+BuildRequires: perl-Compress-Zlib
 BuildRequires: perl-Encode-Detect
 BuildRequires: perl-MIME-Base64
 BuildRequires: perl-MIME-tools
@@ -55,27 +57,24 @@ BuildRequires:      perl-Mail-DomainKeys
 BuildRequires: perl-Mail-SPF
 BuildRequires: perl-MailTools
 BuildRequires: perl-Razor > 2.61
-BUildRequires: perl-Compress-Zlib
 %endif
-BuildRequires: rpm-perlprov >= 4.1-13
 Requires:      perl-Mail-SpamAssassin = %{version}-%{release}
 Obsoletes:     SpamAssassin
-Suggests:      spamassassin-update
-Suggests:      spamassassin-compile
+Obsoletes:     spamassassin-tools
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _noautoreq      'perl(Razor2::Client::Agent)' 'perl(Razor::Agent)' 'perl(Razor::Client)' 'perl(DBI)' 'perl(Net::Ident)'
 
 %description
-SpamAssassin provides you with a way to reduce if not completely
-eliminate Unsolicited Commercial Email (SPAM) from your incoming
-email. It can be invoked by a MDA such as sendmail or postfix, or can
-be called from a procmail script, .forward file, etc. It uses a
-genetic-algorithm evolved scoring system to identify messages which
-look spammy, then adds headers to the message so they can be filtered
-by the user's mail reading software. This distribution includes the
-spamd/spamc components which create a server that considerably speeds
-processing of mail.
+Apache SpamAssassin provides you with a way to reduce if not
+completely eliminate Unsolicited Commercial Email (SPAM) from your
+incoming email. It can be invoked by a MDA such as sendmail or
+postfix, or can be called from a procmail script, .forward file, etc.
+It uses a genetic-algorithm evolved scoring system to identify
+messages which look spammy, then adds headers to the message so they
+can be filtered by the user's mail reading software. This distribution
+includes the spamd/spamc components which create a server that
+considerably speeds processing of mail.
 
 To enable spamassassin, if you are receiving mail locally, simply add
 this line to your ~/.procmailrc:
@@ -85,7 +84,7 @@ To filter spam for all users, add that line to /etc/procmailrc
 (creating if necessary).
 
 %description -l pl.UTF-8
-SpamAssassin daje możliwość zredukowania, jeśli nie kompletnego
+Apache SpamAssassin daje możliwość zredukowania, jeśli nie kompletnego
 wyeliminowania niezamawianej komercyjnej poczty (Unsolicited
 Commercial Email, spamu) z poczty. Może być wywoływany z MDA, np.
 Sendmaila czy Postfiksa, lub z pliku ~/.forward itp. Używa ogólnego
@@ -95,19 +94,12 @@ filtrowanie przez oprogramowanie użytkownika. Ta dystrybucja zawiera
 programy spamd/spamc, umożliwiające uruchomienie serwera, co znacznie
 przyspieszy proces przetwarzania poczty.
 
-%package tools
-Summary:       Miscleanous tools for SpamAssassin
-Summary(pl.UTF-8):     Przeróżne narzędzia związane z SpamAssassin
-Group:         Applications/Mail
-Obsoletes:     SpamAssassin-tools
-
-%description tools
-Miscleanous tools from various authors, distributed with SpamAssassin.
-See /usr/share/doc/spamassassin-tools-*/.
+Aby uruchomić spamassassina dla lokalnie przychodzącej poczty,
+wystarczy dodać do własnego ~/.procmailrc linię:
+INCLUDERC=/etc/mail/spamassassin/spamassassin-default.rc
 
-%description tools -l pl.UTF-8
-Przeróżne narzędzia, dystrybuowane razem ze SpamAssassinem. Więcej
-informacji w /usr/share/doc/spamassassin-tools-*/.
+Aby filtrować spam dla wszystkich użytkowników, należy dodać tę linię
+do pliku /etc/procmailrc (tworząc go w razie potrzeby).
 
 %package spamd
 Summary:       spamd - daemonized version of spamassassin
@@ -116,8 +108,9 @@ Group:              Applications/Mail
 Requires(post,preun):  /sbin/chkconfig
 Requires:      perl-Mail-SpamAssassin = %{version}-%{release}
 Requires:      rc-scripts
-Suggests:      spamassassin-update
+Suggests:      perl-Apache-Test
 Suggests:      perl-IO-Socket-SSL
+Suggests:      perl-Net-Ident
 
 %description spamd
 The purpose of this program is to provide a daemonized version of the
@@ -138,6 +131,7 @@ wydajnym programem klienckim.
 Summary:       spamc - client for spamd
 Summary(pl.UTF-8):     spamc - klient dla spamd
 Group:         Applications/Mail
+Suggests:      perl-Compress-Zlib
 
 %description spamc
 Spamc is the client half of the spamc/spamd pair. It should be used in
@@ -161,8 +155,16 @@ następnie przekazuje spamdowi, odczytuje wynik i podaje go na STDOUT.
 Spamc stara się nie obciążać zbytnio procesora podczas ładowania,
 dzięki czemu powinien działać szybciej niż sam spamassassin.
 
+Aby uruchomić spamassassina dla lokalnie przychodzącej poczty,
+wystarczy dodać do własnego ~/.procmailrc linię:
+INCLUDERC=/etc/mail/spamassassin/spamassassin-spamc.rc
+
+Aby filtrować spam dla wszystkich użytkowników, należy dodać tę linię
+do pliku /etc/procmailrc (tworząc go w razie potrzeby).
+
 %package compile
 Summary:       sa-compile - compile SpamAssassin ruleset into native code
+Summary(pl.UTF-8):     sa-compile - kompilowanie reguł SpamAssasina do kodu natywnego
 Group:         Applications/Mail
 Requires:      gcc
 Requires:      glibc-devel
@@ -178,6 +180,11 @@ then used by the "Mail::SpamAssassin::Plugin::Rule2XSBody" plugin to
 speed up SpamAssassin's operation, where possible, and when that
 plugin is loaded.
 
+%description compile -l pl.UTF-8
+sa-compile wykorzystuje re2c do kompilacji reguł SpamAssassina. Służy
+to do przyspieszenia operacji SpamAssassina w miarę możliwości, kiedy
+ta wtyczka jest wczytana.
+
 %package update
 Summary:       sa-update - automate SpamAssassin rule updates
 Summary(pl.UTF-8):     sa-update - automatyczne uaktualnianie regułek SpamAssassina
@@ -209,12 +216,23 @@ podpisów GPG.
 Summary:       Mail::SpamAssassin - SpamAssassin e-mail filter libraries
 Summary(pl.UTF-8):     Mail::SpamAssassin - biblioteki filtra poczty SpamAssassin
 Group:         Development/Languages/Perl
-Requires:      perl-Cache-DB_File >= 0.2
 Requires:      perl-HTML-Parser >= 3
-Requires:      perl-IO-Socket-INET6 >= 2.51
-Requires:      perl-Mail-SPF-Query
-Requires:      perl-Sys-Hostname-Long
-Conflicts:     perl-Net-DNS < 0.50
+# what for this one?
+#Requires:     perl-Sys-Hostname-Long
+Suggests:      Razor
+Suggests:      perl-Cache-DB_File >= 0.2
+Suggests:      perl-DBD-mysql
+Suggests:      perl-Encode-Detect
+Suggests:      perl-IO-Socket-INET6 >= 2.51
+Suggests:      perl-IP-Country
+Suggests:      perl-Mail-DKIM
+#Suggests:     perl-Mail-DomainKeys
+#Suggests:     perl-Mail-SPF
+Suggests:      perl-Mail-SPF-Query
+Suggests:      perl-Net-DNS >= 0.34
+Suggests:      spamassassin-compile
+Suggests:      spamassassin-plugin-fuzzyocr
+Suggests:      spamassassin-update
 
 %description -n perl-Mail-SpamAssassin
 Mail::SpamAssassin is a Mail::Audit plugin to identify spam using text
@@ -243,6 +261,7 @@ export CFLAGS="%{rpmcflags}"
        INSTALLDIRS=vendor \
        PREFIX=%{_prefix} \
        SYSCONFDIR=%{_sysconfdir} \
+       DATADIR=%{_datadir}/spamassassin \
        ENABLE_SSL=yes \
        CONTACT_ADDRESS="postmaster@localhost" \
        PERL_BIN=%{__perl} < /dev/null
@@ -252,13 +271,12 @@ export CFLAGS="%{rpmcflags}"
 
 %{__sed} -e "s,@@LOCAL_STATE_DIR@@,$(pwd)," sa-compile.raw > sa-compile.pl
 %{__perl} -T sa-compile.pl --siteconfigpath=rules
-rm -f compiled/%{sa_version}/auto/Mail/SpamAssassin/CompiledRegexps/body_0/.packlist
 
 %{?with_tests:%{__make} test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{/etc/{sysconfig,rc.d/init.d},%{_sysconfdir}/mail/spamassassin}
+install -d $RPM_BUILD_ROOT{/etc/{cron.d,sysconfig,rc.d/init.d},%{_sysconfdir}/mail/spamassassin}
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
@@ -267,15 +285,22 @@ install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/spamd
 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/spamd
 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/mail/spamassassin
 install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/mail/spamassassin
+install %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/spamassassin/sa-update.cron
+install %{SOURCE6} $RPM_BUILD_ROOT/etc/cron.d/sa-update
 
 # sa-update, sa-compile
 install -d $RPM_BUILD_ROOT/var/lib/spamassassin/{%{sa_version},compiled/%{sa_version}}
 install -d $RPM_BUILD_ROOT%{_sysconfdir}/mail/spamassassin/sa-update-keys
 touch $RPM_BUILD_ROOT%{_sysconfdir}/mail/spamassassin/sa-update-keys/{pubring,secring,trustdb}.gpg
-cp -a compiled/%{sa_version} $RPM_BUILD_ROOT/var/lib/spamassassin/compiled
 
 rm -f $RPM_BUILD_ROOT{%{perl_archlib}/perllocal.pod,%{perl_vendorarch}/auto/Mail/SpamAssassin/.packlist,%{_mandir}/man3/spamassassin-run.*}
 
+cat > $RPM_BUILD_ROOT%{_sysconfdir}/mail/spamassassin/channels << 'EOF'
+updates.spamassassin.org
+# http://saupdates.openprotect.com/
+# saupdates.openprotect.com
+EOF
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -301,19 +326,19 @@ fi
 %files
 %defattr(644,root,root,755)
 %doc CREDITS Changes INSTALL README TRADEMARK UPGRADE USAGE
-%doc procmailrc.example
+%doc procmailrc.example sql/ ldap/
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mail/spamassassin/spamassassin-default.rc
 %attr(755,root,root) %{_bindir}/sa-learn
+%attr(755,root,root) %{_bindir}/sa-awl
 %attr(755,root,root) %{_bindir}/spamassassin
+%attr(755,root,root) %{_bindir}/sa-check_spamd
 
 # It's needed for help of spamassassin command.
 %{perl_vendorlib}/spamassassin-run.pod
-%{_mandir}/man1/sa-learn*
-%{_mandir}/man1/spamassassin*
-
-%files tools
-%defattr(644,root,root,755)
-%doc sql ldap
+%{_mandir}/man1/sa-learn.1*
+%{_mandir}/man1/spamassassin.1*
+%{_mandir}/man1/spamassassin-run.1*
+%{_mandir}/man1/sa-awl.1*
 
 %files spamd
 %defattr(644,root,root,755)
@@ -321,42 +346,32 @@ fi
 %attr(754,root,root) /etc/rc.d/init.d/spamd
 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/spamd
 %attr(755,root,root) %{_bindir}/spamd
-%{_mandir}/man1/spamd*
+%{_mandir}/man1/spamd.1*
 
 %files spamc
 %defattr(644,root,root,755)
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mail/spamassassin/spamassassin-spamc.rc
 %attr(755,root,root) %{_bindir}/spamc
-%{_mandir}/man1/spamc*
+%{_mandir}/man1/spamc.1*
 
 %files compile
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/sa-compile
-%{_mandir}/man1/sa-compile*
+%{_mandir}/man1/sa-compile.1*
 %dir /var/lib/spamassassin/compiled
 %dir /var/lib/spamassassin/compiled/%{sa_version}
 
-# maybe include these in main package?
-%dir /var/lib/spamassassin/compiled/%{sa_version}/auto
-%dir /var/lib/spamassassin/compiled/%{sa_version}/auto/Mail
-%dir /var/lib/spamassassin/compiled/%{sa_version}/auto/Mail/SpamAssassin/CompiledRegexps
-%dir /var/lib/spamassassin/compiled/%{sa_version}/auto/Mail/SpamAssassin/CompiledRegexps/body_0
-%config(noreplace) %verify(not md5 mtime size) %attr(755,root,root) /var/lib/spamassassin/compiled/%{sa_version}/auto/Mail/SpamAssassin/CompiledRegexps/body_0/body_0.so
-%config(noreplace) %verify(not md5 mtime size) /var/lib/spamassassin/compiled/%{sa_version}/auto/Mail/SpamAssassin/CompiledRegexps/body_0/body_0.bs
-%dir /var/lib/spamassassin/compiled/%{sa_version}/Mail
-%dir /var/lib/spamassassin/compiled/%{sa_version}/Mail/SpamAssassin
-%dir /var/lib/spamassassin/compiled/%{sa_version}/Mail/SpamAssassin/CompiledRegexps
-%config(noreplace) %verify(not md5 mtime size) /var/lib/spamassassin/compiled/%{sa_version}/Mail/SpamAssassin/CompiledRegexps/body_0.pm
-%config(noreplace) %verify(not md5 mtime size) /var/lib/spamassassin/compiled/%{sa_version}/bases_body_0.pl
-
 %files update
 %defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mail/spamassassin/channels
 %attr(700,root,root) %dir %{_sysconfdir}/mail/spamassassin/sa-update-keys
 %attr(700,root,root) %ghost %{_sysconfdir}/mail/spamassassin/sa-update-keys/*
+%config(noreplace) %verify(not md5 mtime size) /etc/cron.d/sa-update
 %attr(755,root,root) %{_bindir}/sa-update
+%attr(755,root,root) %{_datadir}/spamassassin/sa-update.cron
 %{_datadir}/spamassassin/sa-update-pubkey.txt
 %dir /var/lib/spamassassin/%{sa_version}
-%{_mandir}/man1/sa-update*
+%{_mandir}/man1/sa-update.1*
 
 %files -n perl-Mail-SpamAssassin
 %defattr(644,root,root,755)
@@ -373,4 +388,4 @@ fi
 %dir /var/lib/spamassassin
 
 %{perl_vendorlib}/Mail/*
-%{_mandir}/man3/*
+%{_mandir}/man3/*.3*
This page took 0.047233 seconds and 4 git commands to generate.