]>
Commit | Line | Data |
---|---|---|
84c4c44f | 1 | # |
1c7d4ba8 AM |
2 | %bcond_without tests |
3 | # | |
e2e44af4 | 4 | %define dovecot_series 2.3 |
cc7528d8 | 5 | %define pigeonhole_version 0.5.4 |
0682bdac JS |
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} | |
cc7528d8 | 10 | Release: 1 |
0682bdac JS |
11 | License: LGPL |
12 | Group: Daemons | |
84c4c44f | 13 | Source0: https://pigeonhole.dovecot.org/releases/%{dovecot_series}/dovecot-%{dovecot_series}-pigeonhole-%{pigeonhole_version}.tar.gz |
cc7528d8 | 14 | # Source0-md5: 331a7554d6b12ac2cca760146934fc5b |
203694b0 | 15 | URL: http://pigeonhole.dovecot.org/ |
0682bdac JS |
16 | BuildRequires: autoconf |
17 | BuildRequires: automake | |
18 | BuildRequires: bison | |
e2e44af4 | 19 | BuildRequires: dovecot-devel >= 1:%{dovecot_series} |
0682bdac JS |
20 | BuildRequires: flex |
21 | BuildRequires: libtool | |
22 | %requires_eq_to dovecot dovecot-devel | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
d26c3c21 JS |
25 | %define skip_post_check_so libdovecot-sieve.so.0.0.0 |
26 | ||
0682bdac | 27 | %description |
58b08cb3 | 28 | Dovecot Pigeonhole is implementation of Sieve for Dovecot v2.x |
0682bdac JS |
29 | |
30 | %description -l pl.UTF-8 | |
58b08cb3 | 31 | Dovecot Pigeonhole jest implementacją Sieve dla Dovecot v2.x |
0682bdac JS |
32 | |
33 | %package devel | |
34 | Summary: Libraries and headers for %{name} | |
3282cc57 | 35 | Summary(pl.UTF-8): Pliki nagłówkowe dla %{name} |
0682bdac JS |
36 | Group: Development/Libraries |
37 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
38 | ||
39 | %description devel | |
40 | This package contains development files for linking against %{name}. | |
41 | ||
42 | %description devel -l pl.UTF-8 | |
43 | Ten pakiet zawiera pliki rozwoju łączenia %{name}. | |
44 | ||
45 | %package -n dovecot-managesieve | |
46 | Summary: Manage Sieve daemon for dovecot | |
3282cc57 | 47 | Summary(pl.UTF-8): Manage Sieve demon dla dovecot |
0682bdac JS |
48 | Group: Daemons |
49 | ||
50 | %description -n dovecot-managesieve | |
84c4c44f JR |
51 | Manage Sieve daemon for dovecot. |
52 | ||
3282cc57 | 53 | %description -n dovecot-managesieve -l pl.UTF-8 |
84c4c44f | 54 | Ten pakiet zawiera demona Manage Sieve dla dovecot. |
0682bdac JS |
55 | |
56 | %prep | |
57 | %setup -q -n dovecot-%{dovecot_series}-pigeonhole-%{pigeonhole_version} | |
0682bdac JS |
58 | |
59 | %build | |
0682bdac | 60 | %configure \ |
cd17ded5 | 61 | VALGRIND=no \ |
ac90fc72 | 62 | --with-dovecot=%{_libdir}/dovecot \ |
63 | --with-managesieve=yes \ | |
ac90fc72 | 64 | --prefix=%{_libdir}/dovecot |
0682bdac JS |
65 | |
66 | %{__make} | |
67 | ||
1c7d4ba8 AM |
68 | %{?with_tests:%{__make} -j1 check} |
69 | ||
0682bdac JS |
70 | %install |
71 | rm -rf $RPM_BUILD_ROOT | |
58b08cb3 ER |
72 | %{__make} install \ |
73 | DESTDIR=$RPM_BUILD_ROOT | |
0682bdac | 74 | |
0682bdac JS |
75 | find $RPM_BUILD_ROOT%{_libdir}/dovecot/ -name '*.la' | xargs rm -f |
76 | find $RPM_BUILD_ROOT%{_libdir}/dovecot/ -name '*.a' | xargs rm -f | |
04131b43 | 77 | |
b550995a JR |
78 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir} |
79 | ||
0682bdac JS |
80 | %clean |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %files | |
84 | %defattr(644,root,root,755) | |
b550995a | 85 | %doc doc/example-config/conf.d/90-sieve.conf |
84c4c44f | 86 | %doc doc/extensions |
0682bdac | 87 | %attr(755,root,root) %{_bindir}/sieve-test |
38567968 | 88 | %attr(755,root,root) %{_bindir}/sieve-filter |
0682bdac JS |
89 | %attr(755,root,root) %{_bindir}/sievec |
90 | %attr(755,root,root) %{_bindir}/sieve-dump | |
04131b43 | 91 | %attr(755,root,root) %{_libdir}/dovecot/plugins/lib90_sieve_plugin.so |
0682bdac | 92 | %attr(755,root,root) %{_libdir}/dovecot/libdovecot-sieve.so* |
e2e44af4 | 93 | %attr(755,root,root) %{_libdir}/dovecot/plugins/lib95_imap_filter_sieve_plugin.so |
84c4c44f | 94 | %attr(755,root,root) %{_libdir}/dovecot/plugins/lib95_imap_sieve_plugin.so |
38567968 | 95 | %attr(755,root,root) %{_libdir}/dovecot/plugins/doveadm/lib10_doveadm_sieve_plugin.so |
84c4c44f JR |
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 | |
3282cc57 | 101 | |
84c4c44f | 102 | %{_mandir}/man1/doveadm-sieve.1* |
0682bdac | 103 | %{_mandir}/man1/sieve-test.1* |
84c4c44f | 104 | %{_mandir}/man1/sieve-filter.1* |
0682bdac JS |
105 | %{_mandir}/man1/sievec.1* |
106 | %{_mandir}/man1/sieved.1* | |
107 | %{_mandir}/man1/sieve-dump.1* | |
108 | %{_mandir}/man7/pigeonhole.7* | |
0682bdac JS |
109 | |
110 | %files devel | |
111 | %defattr(644,root,root,755) | |
84c4c44f | 112 | %{_aclocaldir}/dovecot-pigeonhole.m4 |
0682bdac JS |
113 | %dir %{_includedir}/dovecot/sieve |
114 | %{_includedir}/dovecot/sieve/*.h | |
115 | ||
116 | %files -n dovecot-managesieve | |
117 | %defattr(644,root,root,755) | |
b550995a | 118 | %doc doc/example-config/conf.d/20-managesieve.conf |
3282cc57 JS |
119 | %attr(755,root,root) %{_libexecdir}/dovecot/managesieve |
120 | %attr(755,root,root) %{_libexecdir}/dovecot/managesieve-login | |
d26c3c21 JS |
121 | %{_libdir}/dovecot/plugins/settings/libmanagesieve_login_settings.so |
122 | %{_libdir}/dovecot/plugins/settings/libmanagesieve_settings.so |