]>
Commit | Line | Data |
---|---|---|
ad593659 JR |
1 | Summary: The dovecot antispam plugin |
2 | Summary(pl.UTF-8): Wtyczka antyspamowa dla dovecota | |
3 | Name: dovecot-antispam | |
4 | Version: 2.0 | |
2094e851 | 5 | Release: 77 |
d11f9fb5 | 6 | License: GPL v2 |
ad593659 JR |
7 | Group: Daemons |
8 | Source0: http://johannes.sipsolutions.net/download/dovecot-antispam/%{name}-%{version}.tar.bz2 | |
9 | # Source0-md5: 14547898759fbd93f2b98304520decc6 | |
33b8a89c | 10 | Patch0: %{name}-git.patch |
ad593659 JR |
11 | URL: http://johannes.sipsolutions.net/Projects/dovecot-antispam |
12 | BuildRequires: dovecot-devel >= 1:2.0 | |
13 | %requires_eq_to dovecot dovecot-devel | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %description | |
17 | The dovecot antispam plugin watches moving mail into and out of the | |
18 | SPAM folder and tells the spam classifier that it made an error and | |
19 | needs to re-classify the message (as spam/not spam depending on which | |
20 | way it was moved). | |
21 | ||
ad593659 JR |
22 | %prep |
23 | %setup -q | |
729f4114 | 24 | %patch0 -p1 |
ad593659 JR |
25 | |
26 | %build | |
45444525 | 27 | unset GIT_DIR |
ad593659 | 28 | %{__make} \ |
f18cc3ad | 29 | CC="%{__cc}" \ |
ad593659 JR |
30 | CFLAGS="%{rpmcflags}" \ |
31 | LDFLAGS="%{rpmldflags}" | |
32 | ||
33 | %install | |
34 | rm -rf $RPM_BUILD_ROOT | |
507ad827 | 35 | install -d $RPM_BUILD_ROOT{%{_libdir}/dovecot/plugins,%{_mandir}/man7} |
ad593659 JR |
36 | |
37 | %{__make} install \ | |
eb399511 | 38 | INSTALLDIR=%{_libdir}/dovecot/plugins \ |
ad593659 JR |
39 | DESTDIR=$RPM_BUILD_ROOT |
40 | ||
41 | install -p antispam.7 $RPM_BUILD_ROOT%{_mandir}/man7 | |
42 | ||
43 | %clean | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | ||
46 | %files | |
47 | %defattr(644,root,root,755) | |
48 | %doc NOTES | |
eb399511 | 49 | %attr(755,root,root) %{_libdir}/dovecot/plugins/lib90_antispam_plugin.so |
ad593659 | 50 | %{_mandir}/man7/antispam.7* |