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