]>
Commit | Line | Data |
---|---|---|
7b5b84a2 ER |
1 | # TODO |
2 | # - build lib{,ssl}spamc.so (if there is a point) | |
e0500e52 | 3 | # - sa-check_spamd into nagios-plugin-check_spamd subpackage |
e456b7b8 | 4 | # |
5 | # Conditional build: | |
b8732e1a | 6 | %bcond_without tests # do not perform "make test" |
bbfd47ac | 7 | |
5498809b | 8 | %define pdir Mail |
9 | %define pnam SpamAssassin | |
f2fac83b | 10 | %define sa_version %(printf %d.%03d%03d $(echo %{version} | tr '.' ' ')) |
20981d36 | 11 | Summary: A spam filter for email which can be invoked from mail delivery agents |
7ad542fe | 12 | Summary(pl.UTF-8): Filtr antyspamowy, przeznaczony dla programów dostarczających pocztę (MDA) |
20981d36 | 13 | Name: spamassassin |
388cb885 AM |
14 | Version: 4.0.0 |
15 | Release: 0.1 | |
7af7d259 | 16 | License: Apache v2.0 |
fa76a43e | 17 | Group: Applications/Mail |
388cb885 AM |
18 | Source0: https://dlcdn.apache.org//spamassassin/source/%{pdir}-%{pnam}-%{version}.tar.bz2 |
19 | # Source0-md5: acc8562fd4f549614a95760c858c8b79 | |
fa76a43e | 20 | Source1: %{name}.sysconfig |
de5df8a6 | 21 | Source2: %{name}-spamd.init |
f2fac83b ER |
22 | Source3: %{name}-default.rc |
23 | Source4: %{name}-spamc.rc | |
3013bda7 ER |
24 | Source5: sa-update.sh |
25 | Source6: sa-update.cron | |
384339c3 AM |
26 | Source7: spamassassin-official.conf |
27 | Source8: sought.conf | |
a2a2b1e1 JK |
28 | Source9: cronjob-sa-update.service |
29 | Source10: cronjob-sa-update.timer | |
de5df8a6 | 30 | URL: http://spamassassin.apache.org/ |
bd839a04 | 31 | BuildRequires: openssl-devel >= 0.9.7d |
3f0816bd | 32 | BuildRequires: perl(ExtUtils::MakeMaker) >= 6.16 |
7f9e5d09 | 33 | BuildRequires: perl-Archive-Tar |
3f0816bd | 34 | BuildRequires: perl-DBI |
7f9e5d09 | 35 | BuildRequires: perl-DB_File |
3f0816bd | 36 | BuildRequires: perl-Digest-SHA1 >= 2.10 |
388cb885 | 37 | BuildRequires: perl-Geo-IP |
3f0816bd | 38 | BuildRequires: perl-HTML-Parser >= 3 |
4275eac7 | 39 | BuildRequires: perl-IO-Socket-INET6 >= 2.51 |
7f9e5d09 AM |
40 | BuildRequires: perl-IO-Socket-SSL |
41 | BuildRequires: perl-IO-Zlib | |
3f0816bd ER |
42 | BuildRequires: perl-IP-Country |
43 | BuildRequires: perl-Mail-SPF-Query | |
603b34d2 | 44 | BuildRequires: perl-Net-DNS >= 0.65-3 |
3f0816bd | 45 | BuildRequires: perl-Net-Ident |
388cb885 AM |
46 | BuildRequires: perl-Net-LibIDN |
47 | BuildRequires: perl-Net-LibIDN2 | |
48 | BuildRequires: perl-Net-Patricia | |
8a33add6 | 49 | BuildRequires: perl-NetAddr-IP >= 4.000 |
388cb885 | 50 | BuildRequires: perl-Perl-Critic-Policy-Perlsecret |
7f9e5d09 | 51 | #BuildRequires: perl-Razor2 |
388cb885 | 52 | BuildRequires: perl-Text-Diff |
3f0816bd | 53 | BuildRequires: perl-devel >= 1:5.8.0 |
7f9e5d09 | 54 | BuildRequires: perl-libwww |
eb732412 | 55 | BuildRequires: re2c |
436d6ad1 ER |
56 | BuildRequires: rpm-perlprov >= 4.1-13 |
57 | BuildRequires: rpmbuild(macros) >= 1.453 | |
adedddbe | 58 | %if %{with tests} |
e456b7b8 | 59 | # are these really needed? |
eee23d2d | 60 | #BuildRequires: perl-Compress-Zlib |
b8732e1a | 61 | BuildRequires: perl-Encode-Detect |
e456b7b8 | 62 | BuildRequires: perl-MIME-Base64 |
63 | BuildRequires: perl-MIME-tools | |
b8732e1a AG |
64 | BuildRequires: perl-Mail-DKIM |
65 | BuildRequires: perl-Mail-DomainKeys | |
66 | BuildRequires: perl-Mail-SPF | |
3f0816bd | 67 | BuildRequires: perl-MailTools |
b8732e1a | 68 | BuildRequires: perl-Razor > 2.61 |
388cb885 | 69 | BuildRequires: tesseract-data-lang-en |
e456b7b8 | 70 | %endif |
c7aac5f9 | 71 | Requires: perl-Mail-SpamAssassin = %{version}-%{release} |
fa76a43e | 72 | Obsoletes: SpamAssassin |
3013bda7 | 73 | Obsoletes: spamassassin-tools |
2c6e800d | 74 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
b5d22b53 | 75 | |
3ea21dc6 | 76 | %define _noautoreq 'perl(Razor2::Client::Agent)' 'perl(Razor::Agent)' 'perl(Razor::Client)' 'perl(DBI)' 'perl(Net::Ident)' |
b5d22b53 | 77 | |
78 | %description | |
436d6ad1 ER |
79 | Apache SpamAssassin provides you with a way to reduce if not |
80 | completely eliminate Unsolicited Commercial Email (SPAM) from your | |
81 | incoming email. It can be invoked by a MDA such as sendmail or | |
82 | postfix, or can be called from a procmail script, .forward file, etc. | |
83 | It uses a genetic-algorithm evolved scoring system to identify | |
84 | messages which look spammy, then adds headers to the message so they | |
85 | can be filtered by the user's mail reading software. This distribution | |
86 | includes the spamd/spamc components which create a server that | |
87 | considerably speeds processing of mail. | |
b5d22b53 | 88 | |
f2fac83b ER |
89 | To enable spamassassin, if you are receiving mail locally, simply add |
90 | this line to your ~/.procmailrc: | |
91 | INCLUDERC=/etc/mail/spamassassin/spamassassin-default.rc | |
92 | ||
93 | To filter spam for all users, add that line to /etc/procmailrc | |
94 | (creating if necessary). | |
95 | ||
b860031c | 96 | %description -l pl.UTF-8 |
029cfa99 | 97 | Apache SpamAssassin daje możliwość zredukowania, jeśli nie kompletnego |
a23eb9ca | 98 | wyeliminowania niezamawianej komercyjnej poczty (Unsolicited |
b860031c JR |
99 | Commercial Email, spamu) z poczty. Może być wywoływany z MDA, np. |
100 | Sendmaila czy Postfiksa, lub z pliku ~/.forward itp. Używa ogólnego | |
101 | algorytmu oceniania w celu identyfikacji wiadomości, które wyglądają | |
102 | na SPAM, po czym dodaje nagłówki do wiadomości, umożliwiając | |
103 | filtrowanie przez oprogramowanie użytkownika. Ta dystrybucja zawiera | |
104 | programy spamd/spamc, umożliwiające uruchomienie serwera, co znacznie | |
a23eb9ca | 105 | przyspieszy proces przetwarzania poczty. |
b5d22b53 | 106 | |
39455225 JB |
107 | Aby uruchomić spamassassina dla lokalnie przychodzącej poczty, |
108 | wystarczy dodać do własnego ~/.procmailrc linię: | |
109 | INCLUDERC=/etc/mail/spamassassin/spamassassin-default.rc | |
110 | ||
111 | Aby filtrować spam dla wszystkich użytkowników, należy dodać tę linię | |
112 | do pliku /etc/procmailrc (tworząc go w razie potrzeby). | |
113 | ||
803ff704 | 114 | %package spamd |
115 | Summary: spamd - daemonized version of spamassassin | |
7ad542fe | 116 | Summary(pl.UTF-8): spamd - spamassassin w postaci demona |
803ff704 | 117 | Group: Applications/Mail |
7e93445b | 118 | Requires(post,preun): /sbin/chkconfig |
c7aac5f9 | 119 | Requires: perl-Mail-SpamAssassin = %{version}-%{release} |
3f0816bd | 120 | Requires: rc-scripts |
59ae54a3 | 121 | Suggests: perl-Apache-Test |
388cb885 | 122 | Suggests: perl-IO-Socket-INET6 |
03a067b3 | 123 | Suggests: perl-IO-Socket-IP |
bbfd47ac | 124 | Suggests: perl-IO-Socket-SSL |
59ae54a3 | 125 | Suggests: perl-Net-Ident |
803ff704 | 126 | |
127 | %description spamd | |
128 | The purpose of this program is to provide a daemonized version of the | |
fa76a43e | 129 | spamassassin executable. The goal is improving throughput performance |
803ff704 | 130 | for automated mail checking. |
131 | ||
132 | This is intended to be used alongside "spamc", a fast, low-overhead C | |
133 | client program. | |
134 | ||
b860031c JR |
135 | %description spamd -l pl.UTF-8 |
136 | Spamd jest "demoniczną" wersją spamassassina. Jego zadaniem jest | |
137 | poprawa wydajności automatycznego sprawdzania poczty. | |
e2c4c33b | 138 | |
b860031c | 139 | Spamd powinien być używany wespół ze "spamc", który jest szybkim i |
e2c4c33b | 140 | wydajnym programem klienckim. |
803ff704 | 141 | |
142 | %package spamc | |
143 | Summary: spamc - client for spamd | |
7ad542fe | 144 | Summary(pl.UTF-8): spamc - klient dla spamd |
803ff704 | 145 | Group: Applications/Mail |
59ae54a3 | 146 | Suggests: perl-Compress-Zlib |
803ff704 | 147 | |
148 | %description spamc | |
fa76a43e | 149 | Spamc is the client half of the spamc/spamd pair. It should be used in |
150 | place of "spamassassin" in scripts to process mail. It will read the | |
151 | mail from STDIN, and spool it to its connection to spamd, then read | |
152 | the result back and print it to STDOUT. Spamc has extremely low | |
153 | overhead in loading, so it should be much faster to load than the | |
154 | whole spamassassin program. | |
803ff704 | 155 | |
f2fac83b ER |
156 | To enable spamassassin, if you are receiving mail locally, simply add |
157 | this line to your ~/.procmailrc: | |
158 | INCLUDERC=/etc/mail/spamassassin/spamassassin-spamc.rc | |
159 | ||
160 | To filter spam for all users, add that line to /etc/procmailrc | |
161 | (creating if necessary). | |
162 | ||
b860031c JR |
163 | %description spamc -l pl.UTF-8 |
164 | Spamc powinien być używany zamiast "spamassassina" w skryptach | |
165 | przetwarzających pocztę. Zczytuje pocztę ze STDIN, kolejkuje ją a | |
166 | następnie przekazuje spamdowi, odczytuje wynik i podaje go na STDOUT. | |
167 | Spamc stara się nie obciążać zbytnio procesora podczas ładowania, | |
168 | dzięki czemu powinien działać szybciej niż sam spamassassin. | |
803ff704 | 169 | |
39455225 JB |
170 | Aby uruchomić spamassassina dla lokalnie przychodzącej poczty, |
171 | wystarczy dodać do własnego ~/.procmailrc linię: | |
172 | INCLUDERC=/etc/mail/spamassassin/spamassassin-spamc.rc | |
173 | ||
174 | Aby filtrować spam dla wszystkich użytkowników, należy dodać tę linię | |
175 | do pliku /etc/procmailrc (tworząc go w razie potrzeby). | |
176 | ||
f2fac83b ER |
177 | %package compile |
178 | Summary: sa-compile - compile SpamAssassin ruleset into native code | |
39455225 | 179 | Summary(pl.UTF-8): sa-compile - kompilowanie reguł SpamAssasina do kodu natywnego |
f2fac83b ER |
180 | Group: Applications/Mail |
181 | Requires: gcc | |
182 | Requires: glibc-devel | |
183 | Requires: make | |
f2fac83b ER |
184 | Requires: perl-Mail-SpamAssassin = %{version}-%{release} |
185 | Requires: perl-devel | |
388cb885 | 186 | Requires: perl-devel |
f2fac83b ER |
187 | Requires: re2c >= 0.10 |
188 | ||
189 | %description compile | |
190 | sa-compile uses "re2c" to compile the SpamAssassin ruleset. This is | |
191 | then used by the "Mail::SpamAssassin::Plugin::Rule2XSBody" plugin to | |
192 | speed up SpamAssassin's operation, where possible, and when that | |
193 | plugin is loaded. | |
194 | ||
39455225 JB |
195 | %description compile -l pl.UTF-8 |
196 | sa-compile wykorzystuje re2c do kompilacji reguł SpamAssassina. Służy | |
197 | to do przyspieszenia operacji SpamAssassina w miarę możliwości, kiedy | |
198 | ta wtyczka jest wczytana. | |
199 | ||
6d64d68b ER |
200 | %package update |
201 | Summary: sa-update - automate SpamAssassin rule updates | |
7ad542fe | 202 | Summary(pl.UTF-8): sa-update - automatyczne uaktualnianie regułek SpamAssassina |
6d64d68b | 203 | Group: Applications/Mail |
a2a2b1e1 | 204 | Requires: cronjobs |
6d64d68b ER |
205 | Requires: gnupg |
206 | Requires: perl-Archive-Tar | |
207 | Requires: perl-Mail-SpamAssassin = %{version}-%{release} | |
b8732e1a | 208 | Requires: perl-libwww |
6d64d68b ER |
209 | |
210 | %description update | |
211 | sa-update automates the process of downloading and installing new | |
212 | rules and configuration, based on channels. The default channel is | |
213 | updates.spamassassin.org, which has updated rules since the previous | |
214 | release. | |
215 | ||
216 | Update archives are verified by default using SHA1 hashes and GPG | |
217 | signatures. | |
218 | ||
b860031c JR |
219 | %description update -l pl.UTF-8 |
220 | sa-update automatyzuje proces ściągania i instalowania nowych regułek | |
221 | i konfiguracji w oparciu o kanały. Domyślny kanał to | |
222 | updates.spamassassin.org, który ma uaktualnione regułki od czasu | |
a150579c JB |
223 | poprzedniego wydania. |
224 | ||
b860031c JR |
225 | Archiwa uaktualnień są sprawdzane domyślnie przy użyciu skrótów SHA1 i |
226 | podpisów GPG. | |
a150579c | 227 | |
20981d36 | 228 | %package -n perl-Mail-SpamAssassin |
82445dd1 | 229 | Summary: Mail::SpamAssassin - SpamAssassin e-mail filter libraries |
7ad542fe | 230 | Summary(pl.UTF-8): Mail::SpamAssassin - biblioteki filtra poczty SpamAssassin |
20981d36 | 231 | Group: Development/Languages/Perl |
3f0816bd | 232 | Requires: perl-HTML-Parser >= 3 |
59ae54a3 | 233 | # what for this one? |
388cb885 | 234 | #Requires: perl-Sys-Hostname-Long |
436d6ad1 | 235 | Suggests: Razor |
59ae54a3 TP |
236 | Suggests: perl-Cache-DB_File >= 0.2 |
237 | Suggests: perl-DBD-mysql | |
238 | Suggests: perl-Encode-Detect | |
384339c3 | 239 | Suggests: perl-Geo-IP |
59ae54a3 TP |
240 | Suggests: perl-IO-Socket-INET6 >= 2.51 |
241 | Suggests: perl-IP-Country | |
242 | Suggests: perl-Mail-DKIM | |
388cb885 AM |
243 | #Suggests: perl-Mail-DomainKeys |
244 | #Suggests: perl-Mail-SPF | |
59ae54a3 TP |
245 | Suggests: perl-Mail-SPF-Query |
246 | Suggests: perl-Net-DNS >= 0.34 | |
384339c3 | 247 | Suggests: perl-Net-Patricia |
59ae54a3 TP |
248 | Suggests: spamassassin-compile |
249 | Suggests: spamassassin-plugin-fuzzyocr | |
250 | Suggests: spamassassin-update | |
20981d36 | 251 | |
252 | %description -n perl-Mail-SpamAssassin | |
253 | Mail::SpamAssassin is a Mail::Audit plugin to identify spam using text | |
254 | analysis and several internet-based realtime blacklists. Using its | |
255 | rule base, it uses a wide range of heuristic tests on mail headers and | |
256 | body text to identify ``spam'', also known as unsolicited commercial | |
257 | email. Once identified, the mail can then be optionally tagged as spam | |
258 | for later filtering using the user's own mail user-agent application. | |
259 | ||
b860031c JR |
260 | %description -n perl-Mail-SpamAssassin -l pl.UTF-8 |
261 | Mail::SpamAssassin jest pluginem dla Mail::Audit, służącym do | |
262 | identyfikacji spamu przy użyciu analizy zawartości i/lub internetowych | |
20981d36 | 263 | czarnych list. Do zidentyfikowania jako ,,spam'' stosuje szeroki |
b860031c JR |
264 | zakres testów heurystycznych na nagłówkach i treści, posiłkując się |
265 | stworzoną wcześniej bazą reguł. Po zidentyfikowaniu, poczta może być | |
266 | oznaczona jako spam w celu późniejszego wyfiltrowania, np. przy użyciu | |
20981d36 | 267 | aplikacji do czytania poczty. |
268 | ||
28e6d943 | 269 | %prep |
b5d22b53 | 270 | %setup -q -n %{pdir}-%{pnam}-%{version} |
250088a6 | 271 | |
b5d22b53 | 272 | %build |
d7ceafc2 JB |
273 | # for spamc/configure |
274 | export CFLAGS="%{rpmcflags}" | |
1edf89a9 | 275 | %{__perl} Makefile.PL \ |
276 | INSTALLDIRS=vendor \ | |
6f48e7fd | 277 | PREFIX=%{_prefix} \ |
6f48e7fd | 278 | ENABLE_SSL=yes \ |
d99675dc | 279 | PERL_BIN=%{__perl} < /dev/null |
ab17e335 | 280 | |
eb997c3b | 281 | %{__make} \ |
de5df8a6 | 282 | CC="%{__cc}" \ |
eb997c3b | 283 | OPTIMIZE="%{rpmcflags}" |
e456b7b8 | 284 | |
13d47961 | 285 | %{?with_tests:%{__make} -j1 TEST_VERBOSE=1 test} |
b5d22b53 | 286 | |
287 | %install | |
288 | rm -rf $RPM_BUILD_ROOT | |
a2a2b1e1 | 289 | install -d $RPM_BUILD_ROOT{/etc/{cron.d,sysconfig,rc.d/init.d},%{_sysconfdir}/mail/spamassassin/channel.d,%{systemdunitdir}} |
725104c9 | 290 | |
291 | %{__make} install \ | |
6f48e7fd | 292 | DESTDIR=$RPM_BUILD_ROOT |
2b2f332d | 293 | |
388cb885 AM |
294 | cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/spamd |
295 | cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/spamd | |
296 | cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/mail/spamassassin | |
297 | cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/mail/spamassassin | |
298 | cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/spamassassin/sa-update.cron | |
299 | cp -p %{SOURCE6} $RPM_BUILD_ROOT/etc/cron.d/sa-update | |
300 | cp -p %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/mail/spamassassin/channel.d | |
301 | cp -p %{SOURCE8} $RPM_BUILD_ROOT%{_sysconfdir}/mail/spamassassin/channel.d | |
302 | cp -p %{SOURCE9} $RPM_BUILD_ROOT%{systemdunitdir}/cronjob-sa-update.service | |
303 | cp -p %{SOURCE10} $RPM_BUILD_ROOT%{systemdunitdir}/cronjob-sa-update.timer | |
b5d22b53 | 304 | |
f2fac83b ER |
305 | # sa-update, sa-compile |
306 | install -d $RPM_BUILD_ROOT/var/lib/spamassassin/{%{sa_version},compiled/%{sa_version}} | |
f565cfbf ER |
307 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/mail/spamassassin/sa-update-keys |
308 | touch $RPM_BUILD_ROOT%{_sysconfdir}/mail/spamassassin/sa-update-keys/{pubring,secring,trustdb}.gpg | |
7b5b84a2 | 309 | |
5f72744e | 310 | rm -f $RPM_BUILD_ROOT{%{perl_archlib}/perllocal.pod,%{perl_vendorarch}/auto/Mail/SpamAssassin/.packlist,%{_mandir}/man3/spamassassin-run.*} |
b5d22b53 | 311 | |
16220090 | 312 | cat > $RPM_BUILD_ROOT%{_sysconfdir}/mail/spamassassin/channels << 'EOF' |
384339c3 | 313 | # Use %{_sysconfdir}/mail/spamassassin/channel.d/*.conf for new channels |
16220090 AM |
314 | EOF |
315 | ||
7e93445b JB |
316 | %clean |
317 | rm -rf $RPM_BUILD_ROOT | |
318 | ||
803ff704 | 319 | %post spamd |
6124422b ER |
320 | /sbin/chkconfig --add spamd |
321 | %service spamd restart | |
6f054f0d | 322 | |
803ff704 | 323 | %preun spamd |
fa76a43e | 324 | if [ "$1" = "0" ]; then |
6124422b ER |
325 | %service spamd stop |
326 | /sbin/chkconfig --del spamd | |
327 | fi | |
328 | ||
329 | %triggerpostun spamd -- spamassassin-spamd < 3.1.0-5.3 | |
330 | # temp hack, should we care of the dead link? | |
331 | ln -s spamd /etc/rc.d/init.d/spamassassin | |
332 | /sbin/chkconfig --del spamassassin | |
333 | rm -f /etc/rc.d/init.d/spamassassin | |
334 | if [ -f /etc/sysconfig/spamassassin.rpmsave ]; then | |
335 | mv -f /etc/sysconfig/spamassassin.rpmsave /etc/sysconfig/spamd | |
6f054f0d | 336 | fi |
337 | ||
b5d22b53 | 338 | %files |
339 | %defattr(644,root,root,755) | |
17648f67 | 340 | %doc CREDITS Changes INSTALL README TRADEMARK UPGRADE USAGE |
3013bda7 | 341 | %doc procmailrc.example sql/ ldap/ |
f2fac83b | 342 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mail/spamassassin/spamassassin-default.rc |
bfb0661a | 343 | %attr(755,root,root) %{_bindir}/sa-learn |
2ce0b674 | 344 | %attr(755,root,root) %{_bindir}/sa-awl |
803ff704 | 345 | %attr(755,root,root) %{_bindir}/spamassassin |
fb36d6e4 | 346 | %attr(755,root,root) %{_bindir}/sa-check_spamd |
f2fac83b | 347 | |
06cb7bf9 PG |
348 | # It's needed for help of spamassassin command. |
349 | %{perl_vendorlib}/spamassassin-run.pod | |
24ca2c6f | 350 | %{_mandir}/man1/sa-check_spamd.1* |
52dc24c3 | 351 | %{_mandir}/man1/sa-learn.1* |
352 | %{_mandir}/man1/spamassassin.1* | |
353 | %{_mandir}/man1/spamassassin-run.1* | |
fb36d6e4 | 354 | %{_mandir}/man1/sa-awl.1* |
b5d22b53 | 355 | |
803ff704 | 356 | %files spamd |
357 | %defattr(644,root,root,755) | |
c0010691 | 358 | %doc spamd/README* |
6124422b ER |
359 | %attr(754,root,root) /etc/rc.d/init.d/spamd |
360 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/spamd | |
803ff704 | 361 | %attr(755,root,root) %{_bindir}/spamd |
52dc24c3 | 362 | %{_mandir}/man1/spamd.1* |
803ff704 | 363 | |
364 | %files spamc | |
365 | %defattr(644,root,root,755) | |
f2fac83b | 366 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mail/spamassassin/spamassassin-spamc.rc |
803ff704 | 367 | %attr(755,root,root) %{_bindir}/spamc |
52dc24c3 | 368 | %{_mandir}/man1/spamc.1* |
803ff704 | 369 | |
f2fac83b ER |
370 | %files compile |
371 | %defattr(644,root,root,755) | |
372 | %attr(755,root,root) %{_bindir}/sa-compile | |
52dc24c3 | 373 | %{_mandir}/man1/sa-compile.1* |
f2fac83b ER |
374 | %dir /var/lib/spamassassin/compiled |
375 | %dir /var/lib/spamassassin/compiled/%{sa_version} | |
376 | ||
6d64d68b ER |
377 | %files update |
378 | %defattr(644,root,root,755) | |
16220090 | 379 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mail/spamassassin/channels |
384339c3 AM |
380 | %dir %{_sysconfdir}/mail/spamassassin/channel.d |
381 | %{_sysconfdir}/mail/spamassassin/channel.d/spamassassin-official.conf | |
382 | %{_sysconfdir}/mail/spamassassin/channel.d/sought.conf | |
f565cfbf ER |
383 | %attr(700,root,root) %dir %{_sysconfdir}/mail/spamassassin/sa-update-keys |
384 | %attr(700,root,root) %ghost %{_sysconfdir}/mail/spamassassin/sa-update-keys/* | |
3013bda7 | 385 | %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/sa-update |
6d64d68b | 386 | %attr(755,root,root) %{_bindir}/sa-update |
16e10112 | 387 | %attr(755,root,root) %{_datadir}/spamassassin/sa-update.cron |
f565cfbf | 388 | %{_datadir}/spamassassin/sa-update-pubkey.txt |
f2fac83b | 389 | %dir /var/lib/spamassassin/%{sa_version} |
52dc24c3 | 390 | %{_mandir}/man1/sa-update.1* |
a2a2b1e1 JK |
391 | %{systemdunitdir}/cronjob-sa-update.service |
392 | %{systemdunitdir}/cronjob-sa-update.timer | |
6d64d68b | 393 | |
20981d36 | 394 | %files -n perl-Mail-SpamAssassin |
395 | %defattr(644,root,root,755) | |
803ff704 | 396 | %doc sample-nonspam.txt sample-spam.txt |
0f5debbd | 397 | %dir %{_sysconfdir}/mail/spamassassin |
980ad428 ER |
398 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mail/spamassassin/*.pre |
399 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mail/spamassassin/*.cf | |
f565cfbf | 400 | %exclude %{_sysconfdir}/mail/spamassassin/sa-update-keys |
0f5debbd | 401 | %dir %{_datadir}/spamassassin |
eee23d2d RG |
402 | %config(noreplace) %{_datadir}/spamassassin/languages |
403 | %config(noreplace) %{_datadir}/spamassassin/user_prefs.template | |
f565cfbf | 404 | %exclude %{_datadir}/spamassassin/sa-update-pubkey.txt |
980ad428 | 405 | |
f2fac83b ER |
406 | %dir /var/lib/spamassassin |
407 | ||
1edf89a9 | 408 | %{perl_vendorlib}/Mail/* |
52dc24c3 | 409 | %{_mandir}/man3/*.3* |