]> git.pld-linux.org Git - packages/dovecot-sieve.git/commitdiff
- Plugin Sive for Dovecot
authorJarosław Skibiński <skibi@pld-linux.org>
Sat, 1 Sep 2007 17:26:12 +0000 (17:26 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dovecot-sieve.spec -> 1.1

dovecot-sieve.spec [new file with mode: 0644]

diff --git a/dovecot-sieve.spec b/dovecot-sieve.spec
new file mode 100644 (file)
index 0000000..f017447
--- /dev/null
@@ -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
This page took 0.073622 seconds and 4 git commands to generate.