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