]>
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 | |
5e874927 | 5 | Release: 25 |
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 |
45444525 | 11 | Patch1: dovecot-2.2.patch |
8563cd94 | 12 | Patch2: dovecot-2.2.14.patch |
ad593659 JR |
13 | URL: http://johannes.sipsolutions.net/Projects/dovecot-antispam |
14 | BuildRequires: dovecot-devel >= 1:2.0 | |
15 | %requires_eq_to dovecot dovecot-devel | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %description | |
19 | The dovecot antispam plugin watches moving mail into and out of the | |
20 | SPAM folder and tells the spam classifier that it made an error and | |
21 | needs to re-classify the message (as spam/not spam depending on which | |
22 | way it was moved). | |
23 | ||
ad593659 JR |
24 | %prep |
25 | %setup -q | |
729f4114 | 26 | %patch0 -p1 |
45444525 | 27 | %patch1 -p1 |
8563cd94 | 28 | %patch2 -p1 |
ad593659 JR |
29 | |
30 | %build | |
45444525 | 31 | unset GIT_DIR |
ad593659 JR |
32 | %{__make} \ |
33 | CFLAGS="%{rpmcflags}" \ | |
34 | LDFLAGS="%{rpmldflags}" | |
35 | ||
36 | %install | |
37 | rm -rf $RPM_BUILD_ROOT | |
507ad827 | 38 | install -d $RPM_BUILD_ROOT{%{_libdir}/dovecot/plugins,%{_mandir}/man7} |
ad593659 JR |
39 | |
40 | %{__make} install \ | |
eb399511 | 41 | INSTALLDIR=%{_libdir}/dovecot/plugins \ |
ad593659 JR |
42 | DESTDIR=$RPM_BUILD_ROOT |
43 | ||
44 | install -p antispam.7 $RPM_BUILD_ROOT%{_mandir}/man7 | |
45 | ||
46 | %clean | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %files | |
50 | %defattr(644,root,root,755) | |
51 | %doc NOTES | |
eb399511 | 52 | %attr(755,root,root) %{_libdir}/dovecot/plugins/lib90_antispam_plugin.so |
ad593659 | 53 | %{_mandir}/man7/antispam.7* |