]>
Commit | Line | Data |
---|---|---|
3ec3df5c | 1 | Summary: Sieve plugin for dovecot |
605849b5 | 2 | Summary(pl.UTF-8): Wtyczka Sieve dla dovecota |
3ec3df5c JS |
3 | Name: dovecot-sieve |
4 | Version: 1.0.2 | |
5 | Release: 2 | |
6 | License: LGPL | |
7 | Group: Daemons | |
3ec3df5c | 8 | Source0: http://dovecot.org/releases/sieve/%{name}-%{version}.tar.gz |
02c88e4a | 9 | # Source0-md5: 508926fc9ff8e0f6e13506e237d4916b |
605849b5 | 10 | URL: http://www.dovecot.org/ |
3ec3df5c JS |
11 | BuildRequires: autoconf |
12 | BuildRequires: automake | |
13 | BuildRequires: libtool | |
14 | BuildRequires: dovecot-devel | |
15 | BuildRequires: flex | |
16 | BuildRequires: bison | |
17 | BuildRequires: gcc-c++ | |
18 | BuildRequires: pkgconfig | |
19 | Requires: dovecot | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
646f5528 JS |
21 | |
22 | %description | |
23 | Sieve is a language that can be used to create filters for electronic | |
24 | mail. It owes its creation to the CMU Cyrus Project, creators of Cyrus | |
25 | IMAP server. | |
26 | ||
27 | This dovecot plugin is derived is from Cyrus IMAP v2.2.12. | |
28 | ||
605849b5 JB |
29 | %description -l pl.UTF-8 |
30 | Sieve to język używany do tworzenia filtrów dla poczty elektronicznej. | |
31 | Zawdzięcza swoje powstanie projektowi CMU Cyrus, twórcom serwera | |
32 | pocztowego Cyrus IMAP. | |
33 | ||
34 | Ta wtyczka dovecota wywodzi się z serwera Cyrus IMAP w wersji 2.2.12. | |
35 | ||
646f5528 JS |
36 | %prep |
37 | %setup -q | |
38 | ||
39 | %build | |
40 | # crude hack ... | |
41 | perl -pi -e's,have_dovecot_libs=no,have_dovecot_libs=yes,g' configure | |
605849b5 JB |
42 | %configure \ |
43 | INSTALL_DATA="install -c -p -m644" \ | |
44 | --with-dovecot=%{_includedir}/dovecot | |
45 | # Replace -I$(dovecot_incdir)/src with -I$(dovecot_incdir) | |
646f5528 JS |
46 | # and $(dovecotdir)/src with $(libdir)/dovecot for libraries |
47 | for f in `find . -name Makefile` | |
48 | do | |
3ec3df5c JS |
49 | mv -f $f $f.orig |
50 | sed -e's/\-I\$(dovecot_incdir)\/src/\-I\$(dovecot_incdir)/g' \ | |
51 | -e's/\$(dovecotdir)\/src\(\/lib\/.*\.a\)/\$(libdir)\/dovecot\/plugins\1/g' \ | |
52 | < $f.orig > $f | |
646f5528 | 53 | done |
3ec3df5c | 54 | %{__make} |
646f5528 JS |
55 | |
56 | %install | |
3ec3df5c | 57 | rm -rf $RPM_BUILD_ROOT |
605849b5 JB |
58 | |
59 | %{__make} install \ | |
60 | DESTDIR=$RPM_BUILD_ROOT | |
61 | ||
62 | # ??? one of two following commands is bogus | |
63 | rm -f $RPM_BUILD_ROOT%{_libdir}/dovecot/plugins/lda/*.a | |
3ec3df5c | 64 | mkdir $RPM_BUILD_ROOT%{_libdir}/dovecot/plugins |
605849b5 | 65 | mv $RPM_BUILD_ROOT%{_libdir}/dovecot/lda $RPM_BUILD_ROOT%{_libdir}/dovecot/plugins |
646f5528 JS |
66 | |
67 | %clean | |
3ec3df5c | 68 | rm -rf $RPM_BUILD_ROOT |
646f5528 JS |
69 | |
70 | %files | |
3ec3df5c JS |
71 | %defattr(644,root,root,755) |
72 | %attr(755,root,root) %{_libexecdir}/dovecot/sievec | |
73 | %attr(755,root,root) %{_libexecdir}/dovecot/sieved | |
74 | %attr(755,root,root) %{_libdir}/dovecot/plugins/lda/*.so | |
605849b5 JB |
75 | # !needed? |
76 | %{_libdir}/dovecot/plugins/lda/*.la |