From ad593659f67826dfd08a4806272b68713e9c7295 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Fri, 2 Dec 2011 11:20:51 +0000 Subject: [PATCH 1/1] - new Changed files: dovecot-antispam.spec -> 1.1 --- dovecot-antispam.spec | 48 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 dovecot-antispam.spec diff --git a/dovecot-antispam.spec b/dovecot-antispam.spec new file mode 100644 index 0000000..ea13c09 --- /dev/null +++ b/dovecot-antispam.spec @@ -0,0 +1,48 @@ +Summary: The dovecot antispam plugin +Summary(pl.UTF-8): Wtyczka antyspamowa dla dovecota +Name: dovecot-antispam +Version: 2.0 +Release: 1 +License: GPL +Group: Daemons +Source0: http://johannes.sipsolutions.net/download/dovecot-antispam/%{name}-%{version}.tar.bz2 +# Source0-md5: 14547898759fbd93f2b98304520decc6 +URL: http://johannes.sipsolutions.net/Projects/dovecot-antispam +BuildRequires: dovecot-devel >= 1:2.0 +%requires_eq_to dovecot dovecot-devel +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +The dovecot antispam plugin watches moving mail into and out of the +SPAM folder and tells the spam classifier that it made an error and +needs to re-classify the message (as spam/not spam depending on which +way it was moved). + +#%description -l pl.UTF-8 + +%prep +%setup -q + +%build +%{__make} \ + CFLAGS="%{rpmcflags}" \ + LDFLAGS="%{rpmldflags}" + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{%{_libdir}/dovecot,%{_mandir}/man7} + +%{__make} install \ + INSTALLDIR=%{_libdir}/dovecot \ + DESTDIR=$RPM_BUILD_ROOT + +install -p antispam.7 $RPM_BUILD_ROOT%{_mandir}/man7 + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc NOTES +%attr(755,root,root) %{_libdir}/dovecot/lib90_antispam_plugin.so +%{_mandir}/man7/antispam.7* -- 2.43.0