4 %define dovecot_series 2.3
5 %define pigeonhole_version 0.5.18
6 Summary: Sieve plugin for dovecot
7 Summary(pl.UTF-8): Wtyczka Sieve i Managesieve dla dovecota
8 Name: dovecot-pigeonhole
9 Version: %{dovecot_series}_%{pigeonhole_version}
13 Source0: https://pigeonhole.dovecot.org/releases/%{dovecot_series}/dovecot-%{dovecot_series}-pigeonhole-%{pigeonhole_version}.tar.gz
14 # Source0-md5: cede8465ec2c9d1a768dba857595b6a1
15 URL: http://pigeonhole.dovecot.org/
16 BuildRequires: autoconf
17 BuildRequires: automake
19 BuildRequires: dovecot-devel >= 1:2.3.18
21 BuildRequires: libtool
22 %requires_eq_to dovecot dovecot-devel
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 %define skip_post_check_so libdovecot-sieve.so.0.0.0
28 Dovecot Pigeonhole is implementation of Sieve for Dovecot v2.x
30 %description -l pl.UTF-8
31 Dovecot Pigeonhole jest implementacją Sieve dla Dovecot v2.x
34 Summary: Libraries and headers for %{name}
35 Summary(pl.UTF-8): Pliki nagłówkowe dla %{name}
36 Group: Development/Libraries
37 Requires: %{name} = %{epoch}:%{version}-%{release}
40 This package contains development files for linking against %{name}.
42 %description devel -l pl.UTF-8
43 Ten pakiet zawiera pliki rozwoju łączenia %{name}.
45 %package -n dovecot-managesieve
46 Summary: Manage Sieve daemon for dovecot
47 Summary(pl.UTF-8): Manage Sieve demon dla dovecot
50 %description -n dovecot-managesieve
51 Manage Sieve daemon for dovecot.
53 %description -n dovecot-managesieve -l pl.UTF-8
54 Ten pakiet zawiera demona Manage Sieve dla dovecot.
57 %setup -q -n dovecot-%{dovecot_series}-pigeonhole-%{pigeonhole_version}
62 --with-dovecot=%{_libdir}/dovecot \
63 --with-managesieve=yes \
64 --prefix=%{_libdir}/dovecot
68 %{?with_tests:%{__make} -j1 check}
71 rm -rf $RPM_BUILD_ROOT
73 DESTDIR=$RPM_BUILD_ROOT
75 find $RPM_BUILD_ROOT%{_libdir}/dovecot/ -name '*.la' | xargs rm -f
76 find $RPM_BUILD_ROOT%{_libdir}/dovecot/ -name '*.a' | xargs rm -f
78 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}
81 rm -rf $RPM_BUILD_ROOT
84 %defattr(644,root,root,755)
85 %doc doc/example-config/conf.d/90-sieve.conf
87 %attr(755,root,root) %{_bindir}/sieve-test
88 %attr(755,root,root) %{_bindir}/sieve-filter
89 %attr(755,root,root) %{_bindir}/sievec
90 %attr(755,root,root) %{_bindir}/sieve-dump
91 %attr(755,root,root) %{_libdir}/dovecot/plugins/lib90_sieve_plugin.so
92 %attr(755,root,root) %{_libdir}/dovecot/libdovecot-sieve.so*
93 %attr(755,root,root) %{_libdir}/dovecot/plugins/lib95_imap_sieve_plugin.so
94 %attr(755,root,root) %{_libdir}/dovecot/plugins/lib95_imap_filter_sieve_plugin.so
95 %attr(755,root,root) %{_libdir}/dovecot/plugins/doveadm/lib10_doveadm_sieve_plugin.so
96 %dir %{_libdir}/dovecot/plugins/settings
97 %attr(755,root,root) %{_libdir}/dovecot/plugins/settings/libpigeonhole_settings.so
98 %dir %{_libdir}/dovecot/plugins/sieve
99 %attr(755,root,root) %{_libdir}/dovecot/plugins/sieve/lib90_sieve_extprograms_plugin.so
100 %attr(755,root,root) %{_libdir}/dovecot/plugins/sieve/lib90_sieve_imapsieve_plugin.so
102 %{_mandir}/man1/doveadm-sieve.1*
103 %{_mandir}/man1/sieve-test.1*
104 %{_mandir}/man1/sieve-filter.1*
105 %{_mandir}/man1/sievec.1*
106 %{_mandir}/man1/sieved.1*
107 %{_mandir}/man1/sieve-dump.1*
108 %{_mandir}/man7/pigeonhole.7*
111 %defattr(644,root,root,755)
112 %{_aclocaldir}/dovecot-pigeonhole.m4
113 %dir %{_includedir}/dovecot/sieve
114 %{_includedir}/dovecot/sieve/*.h
116 %files -n dovecot-managesieve
117 %defattr(644,root,root,755)
118 %doc doc/example-config/conf.d/20-managesieve.conf
119 %attr(755,root,root) %{_libexecdir}/dovecot/managesieve
120 %attr(755,root,root) %{_libexecdir}/dovecot/managesieve-login
121 %{_libdir}/dovecot/plugins/settings/libmanagesieve_login_settings.so
122 %{_libdir}/dovecot/plugins/settings/libmanagesieve_settings.so