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