]>
Commit | Line | Data |
---|---|---|
646f5528 JS |
1 | Summary: Sieve plugin for dovecot |
2 | Name: dovecot-sieve | |
3 | Version: 1.0.2 | |
4 | Release: 1%{?dist} | |
5 | License: LGPL | |
6 | Group: System Environment/Daemons | |
7 | URL: http://www.dovecot.org/ | |
8 | Source0: http://dovecot.org/releases/sieve/%{name}-%{version}.tar.gz | |
9 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root | |
10 | BuildRequires: dovecot-devel | |
11 | BuildRequires: autoconf, automake, libtool | |
12 | BuildRequires: gcc-c++ | |
13 | BuildRequires: pkgconfig | |
14 | BuildRequires: flex, bison | |
15 | Requires: dovecot | |
16 | ||
17 | %description | |
18 | Sieve is a language that can be used to create filters for electronic | |
19 | mail. It owes its creation to the CMU Cyrus Project, creators of Cyrus | |
20 | IMAP server. | |
21 | ||
22 | This dovecot plugin is derived is from Cyrus IMAP v2.2.12. | |
23 | ||
24 | %prep | |
25 | %setup -q | |
26 | ||
27 | %build | |
28 | # crude hack ... | |
29 | perl -pi -e's,have_dovecot_libs=no,have_dovecot_libs=yes,g' configure | |
30 | %configure --with-dovecot=%{_includedir}/dovecot \ | |
31 | INSTALL_DATA="install -c -p -m644" | |
32 | # Replace -I$(dovecotdir)/src with -I$(dovecotdir)/src | |
33 | # and $(dovecotdir)/src with $(libdir)/dovecot for libraries | |
34 | for f in `find . -name Makefile` | |
35 | do | |
36 | mv -f $f $f.orig | |
37 | sed -e's/\-I\$(dovecot_incdir)\/src/\-I\$(dovecot_incdir)/g' \ | |
38 | -e's/\$(dovecotdir)\/src\(\/lib\/.*\.a\)/\$(libdir)\/dovecot\/plugins\1/g' \ | |
39 | < $f.orig > $f | |
40 | done | |
41 | make | |
42 | ||
43 | %install | |
44 | rm -rf %{buildroot} | |
45 | make install DESTDIR=%{buildroot} | |
46 | rm -f %{buildroot}/%{_libdir}/dovecot/plugins/lda/*.a | |
47 | mkdir %{buildroot}%{_libdir}/dovecot/plugins | |
48 | mv %{buildroot}%{_libdir}/dovecot/lda %{buildroot}%{_libdir}/dovecot/plugins/. | |
49 | ||
50 | %clean | |
51 | rm -rf %{buildroot} | |
52 | ||
53 | %files | |
54 | %defattr(-,root,root) | |
55 | %{_libexecdir}/dovecot/sievec | |
56 | %{_libexecdir}/dovecot/sieved | |
57 | %{_libdir}/dovecot/plugins/lda/*.so | |
58 | %{_libdir}/dovecot/plugins/lda/*.la | |
59 | ||
60 | %changelog |