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