From 646f5528346ee90e5af09469d3bef09b4a802be6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jaros=C5=82aw=20Skibi=C5=84ski?= Date: Sat, 1 Sep 2007 17:26:12 +0000 Subject: [PATCH] - Plugin Sive for Dovecot Changed files: dovecot-sieve.spec -> 1.1 --- dovecot-sieve.spec | 60 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 dovecot-sieve.spec diff --git a/dovecot-sieve.spec b/dovecot-sieve.spec new file mode 100644 index 0000000..f017447 --- /dev/null +++ b/dovecot-sieve.spec @@ -0,0 +1,60 @@ +Summary: Sieve plugin for dovecot +Name: dovecot-sieve +Version: 1.0.2 +Release: 1%{?dist} +License: LGPL +Group: System Environment/Daemons +URL: http://www.dovecot.org/ +Source0: http://dovecot.org/releases/sieve/%{name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root +BuildRequires: dovecot-devel +BuildRequires: autoconf, automake, libtool +BuildRequires: gcc-c++ +BuildRequires: pkgconfig +BuildRequires: flex, bison +Requires: dovecot + +%description +Sieve is a language that can be used to create filters for electronic +mail. It owes its creation to the CMU Cyrus Project, creators of Cyrus +IMAP server. + +This dovecot plugin is derived is from Cyrus IMAP v2.2.12. + +%prep +%setup -q + +%build +# crude hack ... +perl -pi -e's,have_dovecot_libs=no,have_dovecot_libs=yes,g' configure +%configure --with-dovecot=%{_includedir}/dovecot \ + INSTALL_DATA="install -c -p -m644" +# Replace -I$(dovecotdir)/src with -I$(dovecotdir)/src +# and $(dovecotdir)/src with $(libdir)/dovecot for libraries +for f in `find . -name Makefile` +do + mv -f $f $f.orig + sed -e's/\-I\$(dovecot_incdir)\/src/\-I\$(dovecot_incdir)/g' \ + -e's/\$(dovecotdir)\/src\(\/lib\/.*\.a\)/\$(libdir)\/dovecot\/plugins\1/g' \ + < $f.orig > $f +done +make + +%install +rm -rf %{buildroot} +make install DESTDIR=%{buildroot} +rm -f %{buildroot}/%{_libdir}/dovecot/plugins/lda/*.a +mkdir %{buildroot}%{_libdir}/dovecot/plugins +mv %{buildroot}%{_libdir}/dovecot/lda %{buildroot}%{_libdir}/dovecot/plugins/. + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root) +%{_libexecdir}/dovecot/sievec +%{_libexecdir}/dovecot/sieved +%{_libdir}/dovecot/plugins/lda/*.so +%{_libdir}/dovecot/plugins/lda/*.la + +%changelog -- 2.43.0