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