3 # _with_tests - perform "make test"
4 %include /usr/lib/rpm/macros.perl
6 %define pnam SpamAssassin
7 Summary: A spam filter for email which can be invoked from mail delivery agents
8 Summary(pl): Filtr antyspamowy, przeznaczony dla programów dostarczaj±cych pocztê (MDA)
13 Group: Applications/Mail
14 Source0: http://spamassassin.org/released/%{pdir}-%{pnam}-%{version}.tar.gz
15 Source1: %{name}.sysconfig
16 Patch0: %{name}-rc-script.patch
17 URL: http://spamassassin.org/
18 BuildRequires: perl >= 5.6
19 BuildRequires: rpm-perlprov >= 3.0.3-16
20 %if %{?_with_tests:1}%{!?_with_tests:0}
21 BuildRequires: perl-HTML-Parser >= 3
22 # are these really needed?
23 BuildRequires: perl-MailTools
24 BuildRequires: perl-MIME-Base64
25 BuildRequires: perl-MIME-tools
27 Prereq: /sbin/chkconfig
28 Requires: perl-Mail-SpamAssassin >= %{version}
29 Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 Obsoletes: SpamAssassin
32 %define _noautoreq 'perl(Razor2::Client::Agent)' 'perl(Razor::Agent)' 'perl(Razor::Client)' 'perl(DBI)'
35 SpamAssassin provides you with a way to reduce if not completely
36 eliminate Unsolicited Commercial Email (SPAM) from your incoming
37 email. It can be invoked by a MDA such as sendmail or postfix, or can
38 be called from a procmail script, .forward file, etc. It uses a
39 genetic-algorithm evolved scoring system to identify messages which
40 look spammy, then adds headers to the message so they can be filtered
41 by the user's mail reading software. This distribution includes the
42 spamd/spamc components which create a server that considerably speeds
46 SpamAssassin udostêpnia Ci mo¿liwo¶æ zredukowania, je¶li nie
47 kompletnego wyeliminowania Niezamawianej Komercyjnej Poczty
48 (Unsolicited Commercial Email, spamu) z Twojej poczty. Mo¿e byæ
49 wywo³ywany z MDA, np. Sendmaila czy Postfixa, lub z pliku ~/.forward
50 itp. U¿ywa ogólnego algorytmu oceniania w celu identyfikacji
51 wiadomo¶ci, które wygl±daj± na SPAM, po czym dodaje nag³ówki do
52 wiadomo¶ci, umo¿liwiaj±c filtrowanie przez oprogramowanie u¿ytkownika.
53 Ta dystrybucja zawiera programy spamd/spamc, umo¿liwiaj±ce
54 uruchomienie serwera, co znacznie przyspieszy proces przetwarzania
58 Summary: Miscleanous tools for SpamAssassin
59 Summary(pl): Przeró¿ne narzêdzia zwi±zane z SpamAssassin
60 Group: Applications/Mail
61 Obsoletes: SpamAssassin-tools
64 Miscleanous tools from various authors, distributed with SpamAssassin.
65 See /usr/share/doc/spamassassin-tools-*/.
67 %description tools -l pl
68 Przeró¿ne narzêdzia, dystrybuowane razem z SpamAssassin. Zobacz
69 /usr/share/doc/spamassassin-tools-*/.
72 Summary: spamd - daemonized version of spamassassin
73 Summary(pl): spamd - spamassassin w postaci demona
74 Group: Applications/Mail
77 The purpose of this program is to provide a daemonized version of the
78 spamassassin executable. The goal is improving throughput performance
79 for automated mail checking.
81 This is intended to be used alongside "spamc", a fast, low-overhead C
84 %description spamd -l pl
85 Spamd jest "demoniczn±" wersj± spamassassina. Jego zadaniem jest
86 poprawa wydajno¶ci automatycznego sprawdzania poczty.
88 Spamd powinien byæ u¿ywany wespó³ ze "spamc", który jest szybkim i
89 wydajnym programem klienckim.
92 Summary: spamc - client for spamd
93 Summary(pl): spamc - klient dla spamd
94 Group: Applications/Mail
97 Spamc is the client half of the spamc/spamd pair. It should be used in
98 place of "spamassassin" in scripts to process mail. It will read the
99 mail from STDIN, and spool it to its connection to spamd, then read
100 the result back and print it to STDOUT. Spamc has extremely low
101 overhead in loading, so it should be much faster to load than the
102 whole spamassassin program.
104 %description spamc -l pl
105 Spamc powinien byæ u¿ywany zamiast "spamassassina" w skryptach
106 przetwarzaj±cych pocztê. Zczytuje pocztê ze STDIN, kolejkuje j± a
107 nastêpnie przekazuje spamd'owi, odczytuje wynik i podaje go na STDOUT.
108 Spamc stara siê nie obci±¿aæ zbytnio procesora podczas ³adowania,
109 dziêki czemu powinien dzia³aæ szybciej ni¿ sam spamassassin.
111 %package -n perl-Mail-SpamAssassin
112 Summary: %{pdir}::%{pnam} -- SpamAssassin e-mail filter Perl modules
113 Summary(pl): %{pdir}::%{pnam} -- modu³y Perla filtru poczty SpamAssassin
114 Group: Development/Languages/Perl
115 Requires: perl-HTML-Parser >= 3
117 %description -n perl-Mail-SpamAssassin
118 Mail::SpamAssassin is a Mail::Audit plugin to identify spam using text
119 analysis and several internet-based realtime blacklists. Using its
120 rule base, it uses a wide range of heuristic tests on mail headers and
121 body text to identify ``spam'', also known as unsolicited commercial
122 email. Once identified, the mail can then be optionally tagged as spam
123 for later filtering using the user's own mail user-agent application.
125 %description -n perl-Mail-SpamAssassin -l pl
126 Mail::SpamAssassin jest pluginem dla Mail::Audit, s³u¿±cym do
127 identyfikacji spamu przy u¿yciu analizy zawarto¶ci i/lub internetowych
128 czarnych list. Do zidentyfikowania jako ,,spam'' stosuje szeroki
129 zakres testów heurystycznych na nag³ówkach i tre¶ci, posi³kuj±c siê
130 stworzon± wcze¶niej baz± regu³. Po zidentyfikowaniu, poczta mo¿e byæ
131 oznaczona jako spam w celu pó¼niejszego wyfiltrowania, np. przy u¿yciu
132 aplikacji do czytania poczty.
134 %define sa_confdir $RPM_BUILD_ROOT%{_sysconfdir}/mail/spamassassin
137 %setup -q -n %{pdir}-%{pnam}-%{version}
141 %{__perl} Makefile.PL PREFIX=%{_prefix} SYSCONFDIR=%{_sysconfdir}
142 %{__make} OPTIMIZE="%{rpmcflags}"
144 %{?_with_tests:%{__make} test}
147 rm -rf $RPM_BUILD_ROOT
148 install -d $RPM_BUILD_ROOT{%{sa_confdir},/etc/{sysconfig,rc.d/init.d}}
151 PREFIX=$RPM_BUILD_ROOT%{_prefix} \
152 INSTALLMAN1DIR=$RPM_BUILD_ROOT%{_mandir}/man1 \
153 INSTALLMAN3DIR=$RPM_BUILD_ROOT%{_mandir}/man3 \
154 LOCAL_RULES_DIR=$RPM_BUILD_ROOT%{_sysconfdir}/mail/spamassassin
156 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/spamassassin
158 install rules/local.cf $RPM_BUILD_ROOT%{sa_confdir}
160 # shouldn't this script be called `spamd' instead?
161 install spamd/pld-rc-script.sh $RPM_BUILD_ROOT/etc/rc.d/init.d/spamassassin
163 rm -f spamd/{*.sh,*.conf,spam*} contrib/snp.tar.gz
166 /sbin/chkconfig --add spamassassin
167 if [ -f /var/lock/subsys/spamassassin ]; then
168 /etc/rc.d/init.d/spamassassin restart 1>&2
170 echo 'Run "/etc/rc.d/init.d/spamassassin start" to start the spamd daemon.'
174 if [ "$1" = "0" ]; then
175 if [ -f /var/lock/subsys/spamassassin ]; then
176 /etc/rc.d/init.d/spamassassin stop 1>&2
178 /sbin/chkconfig --del spamassassin
182 rm -rf $RPM_BUILD_ROOT
185 %defattr(644,root,root,755)
186 %doc BUGS Changes COPYRIGHT INSTALL README TRADEMARK
187 %doc procmailrc.example
188 %attr(755,root,root) %{_bindir}/spamassassin
189 %{_mandir}/man1/spamassassin*
192 %defattr(644,root,root,755)
193 %doc sql tools masses contrib
196 %defattr(644,root,root,755)
198 %attr(754,root,root) /etc/rc.d/init.d/spamassassin
199 %attr(600,root,root) %config(noreplace) /etc/sysconfig/spamassassin
200 %attr(755,root,root) %{_bindir}/spamd
201 %{_mandir}/man1/spamd*
204 %defattr(644,root,root,755)
205 %attr(755,root,root) %{_bindir}/spamc
206 %{_mandir}/man1/spamc*
208 %files -n perl-Mail-SpamAssassin
209 %defattr(644,root,root,755)
210 %doc sample-nonspam.txt sample-spam.txt
211 %dir %{_sysconfdir}/mail/spamassassin
212 %config(noreplace) %{_sysconfdir}/mail/spamassassin/*
213 %dir %{_datadir}/spamassassin
214 %config(noreplace) %{_datadir}/spamassassin/*
215 %{perl_sitelib}/Mail/*