]>
Commit | Line | Data |
---|---|---|
1 | %define dovecot_series 1.2 | |
2 | %define sieve_version 0.1.19 | |
3 | Summary: Sieve plugin for dovecot | |
4 | Summary(pl.UTF-8): Wtyczka Sieve dla dovecota | |
5 | Name: dovecot-sieve | |
6 | Version: %{dovecot_series}_%{sieve_version} | |
7 | Release: 1 | |
8 | License: LGPL | |
9 | Group: Daemons | |
10 | Source0: http://www.rename-it.nl/dovecot/%{dovecot_series}/dovecot-%{dovecot_series}-sieve-%{sieve_version}.tar.gz | |
11 | # Source0-md5: 341c9b6970b838cc3876247e537d2495 | |
12 | Patch0: %{name}-libdict.patch | |
13 | URL: http://www.dovecot.org/ | |
14 | BuildRequires: autoconf | |
15 | BuildRequires: automake | |
16 | BuildRequires: bison | |
17 | BuildRequires: dovecot-devel >= 1:1.2.15 | |
18 | BuildRequires: dovecot-devel < 1:2.0 | |
19 | BuildRequires: flex | |
20 | BuildRequires: libtool | |
21 | %requires_eq_to dovecot dovecot-devel | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | Sieve is a language that can be used to create filters for electronic | |
26 | mail. It owes its creation to the CMU Cyrus Project, creators of Cyrus | |
27 | IMAP server. | |
28 | ||
29 | This dovecot plugin is derived is from Cyrus IMAP v2.2.12. | |
30 | ||
31 | %description -l pl.UTF-8 | |
32 | Sieve to język używany do tworzenia filtrów dla poczty elektronicznej. | |
33 | Zawdzięcza swoje powstanie projektowi CMU Cyrus, twórcom serwera | |
34 | pocztowego Cyrus IMAP. | |
35 | ||
36 | Ta wtyczka dovecota wywodzi się z serwera Cyrus IMAP w wersji 2.2.12. | |
37 | ||
38 | %prep | |
39 | %setup -q -n dovecot-%{dovecot_series}-sieve-%{sieve_version} | |
40 | %patch0 -p1 | |
41 | ||
42 | %build | |
43 | %{__libtoolize} | |
44 | %{__aclocal} | |
45 | %{__autoconf} | |
46 | %{__autoheader} | |
47 | %{__automake} | |
48 | %configure \ | |
49 | --disable-static \ | |
50 | --with-dovecot=%{_libdir}/dovecot-devel | |
51 | ||
52 | %{__make} \ | |
53 | dovecot_incdir=%{_includedir}/dovecot \ | |
54 | moduledir=%{_libdir}/dovecot/plugins | |
55 | ||
56 | %install | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %{__make} install \ | |
60 | DESTDIR=$RPM_BUILD_ROOT \ | |
61 | moduledir=%{_libdir}/dovecot/plugins | |
62 | ||
63 | rm -f $RPM_BUILD_ROOT%{_libdir}/dovecot/plugins/lda/*.la | |
64 | ||
65 | %clean | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %files | |
69 | %defattr(644,root,root,755) | |
70 | %doc AUTHORS ChangeLog NEWS doc/spamtest-virustest.txt | |
71 | %attr(755,root,root) %{_bindir}/* | |
72 | %attr(755,root,root) %{_libdir}/dovecot/plugins/lda/lib90_sieve_plugin.so | |
73 | %{_mandir}/man1/*.1.gz |