]>
Commit | Line | Data |
---|---|---|
58b08cb3 ER |
1 | # TODO |
2 | # - new unpackaged files: | |
3 | # /usr/bin/sieve-filter | |
4 | # /usr/share/man/man1/sieve-filter.1.gz | |
0682bdac | 5 | |
38567968 | 6 | %define dovecot_series 2.2 |
dd599497 | 7 | %define pigeonhole_version 0.4.2 |
0682bdac JS |
8 | Summary: Sieve plugin for dovecot |
9 | Summary(pl.UTF-8): Wtyczka Sieve i Managesieve dla dovecota | |
10 | Name: dovecot-pigeonhole | |
11 | Version: %{dovecot_series}_%{pigeonhole_version} | |
9ceb2324 | 12 | Release: 14 |
0682bdac JS |
13 | License: LGPL |
14 | Group: Daemons | |
15 | Source0: http://www.rename-it.nl/dovecot/%{dovecot_series}/dovecot-%{dovecot_series}-pigeonhole-%{pigeonhole_version}.tar.gz | |
dd599497 | 16 | # Source0-md5: e8cb4976db9811d37e9d870f2f75ffef |
203694b0 | 17 | URL: http://pigeonhole.dovecot.org/ |
0682bdac JS |
18 | BuildRequires: autoconf |
19 | BuildRequires: automake | |
20 | BuildRequires: bison | |
12ec8358 | 21 | BuildRequires: dovecot-devel >= 1:2.2.9-2 |
0682bdac JS |
22 | BuildRequires: flex |
23 | BuildRequires: libtool | |
24 | %requires_eq_to dovecot dovecot-devel | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
d26c3c21 JS |
27 | %define skip_post_check_so libdovecot-sieve.so.0.0.0 |
28 | ||
0682bdac | 29 | %description |
58b08cb3 | 30 | Dovecot Pigeonhole is implementation of Sieve for Dovecot v2.x |
0682bdac JS |
31 | |
32 | %description -l pl.UTF-8 | |
58b08cb3 | 33 | Dovecot Pigeonhole jest implementacją Sieve dla Dovecot v2.x |
0682bdac JS |
34 | |
35 | %package devel | |
36 | Summary: Libraries and headers for %{name} | |
3282cc57 | 37 | Summary(pl.UTF-8): Pliki nagłówkowe dla %{name} |
0682bdac JS |
38 | Group: Development/Libraries |
39 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
40 | ||
41 | %description devel | |
42 | This package contains development files for linking against %{name}. | |
43 | ||
44 | %description devel -l pl.UTF-8 | |
45 | Ten pakiet zawiera pliki rozwoju łączenia %{name}. | |
46 | ||
47 | %package -n dovecot-managesieve | |
48 | Summary: Manage Sieve daemon for dovecot | |
3282cc57 | 49 | Summary(pl.UTF-8): Manage Sieve demon dla dovecot |
0682bdac JS |
50 | Group: Daemons |
51 | ||
52 | %description -n dovecot-managesieve | |
3282cc57 JS |
53 | %description -n dovecot-managesieve -l pl.UTF-8 |
54 | Tn 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 \ |
ac90fc72 | 61 | --with-dovecot=%{_libdir}/dovecot \ |
62 | --with-managesieve=yes \ | |
ac90fc72 | 63 | --prefix=%{_libdir}/dovecot |
0682bdac JS |
64 | |
65 | %{__make} | |
66 | ||
67 | %install | |
68 | rm -rf $RPM_BUILD_ROOT | |
58b08cb3 ER |
69 | %{__make} install \ |
70 | DESTDIR=$RPM_BUILD_ROOT | |
0682bdac | 71 | |
0682bdac JS |
72 | find $RPM_BUILD_ROOT%{_libdir}/dovecot/ -name '*.la' | xargs rm -f |
73 | find $RPM_BUILD_ROOT%{_libdir}/dovecot/ -name '*.a' | xargs rm -f | |
04131b43 | 74 | |
b550995a JR |
75 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir} |
76 | ||
0682bdac JS |
77 | %clean |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | %files | |
81 | %defattr(644,root,root,755) | |
b550995a JR |
82 | %doc doc/example-config/conf.d/90-sieve.conf |
83 | %doc doc/extensions doc/script-location-dict.txt | |
0682bdac | 84 | %attr(755,root,root) %{_bindir}/sieve-test |
38567968 | 85 | %attr(755,root,root) %{_bindir}/sieve-filter |
0682bdac JS |
86 | %attr(755,root,root) %{_bindir}/sievec |
87 | %attr(755,root,root) %{_bindir}/sieve-dump | |
04131b43 | 88 | %attr(755,root,root) %{_libdir}/dovecot/plugins/lib90_sieve_plugin.so |
0682bdac | 89 | %attr(755,root,root) %{_libdir}/dovecot/libdovecot-sieve.so* |
38567968 AF |
90 | %attr(755,root,root) %{_libdir}/dovecot/plugins/doveadm/lib10_doveadm_sieve_plugin.so |
91 | %dir %{_libdir}/dovecot/sieve | |
92 | %attr(755,root,root) %{_libdir}/dovecot/sieve/lib90_sieve_extprograms_plugin.so | |
3282cc57 | 93 | |
0682bdac | 94 | %{_mandir}/man1/sieve-test.1* |
38567968 | 95 | %{_mandir}/man1/sieve-filter.1.gz |
0682bdac JS |
96 | %{_mandir}/man1/sievec.1* |
97 | %{_mandir}/man1/sieved.1* | |
98 | %{_mandir}/man1/sieve-dump.1* | |
99 | %{_mandir}/man7/pigeonhole.7* | |
0682bdac JS |
100 | |
101 | %files devel | |
102 | %defattr(644,root,root,755) | |
103 | %dir %{_includedir}/dovecot/sieve | |
104 | %{_includedir}/dovecot/sieve/*.h | |
105 | ||
106 | %files -n dovecot-managesieve | |
107 | %defattr(644,root,root,755) | |
b550995a | 108 | %doc doc/example-config/conf.d/20-managesieve.conf |
3282cc57 JS |
109 | %attr(755,root,root) %{_libexecdir}/dovecot/managesieve |
110 | %attr(755,root,root) %{_libexecdir}/dovecot/managesieve-login | |
111 | ||
d26c3c21 JS |
112 | %dir %{_libdir}/dovecot/plugins/settings/ |
113 | %{_libdir}/dovecot/plugins/settings/libmanagesieve_login_settings.so | |
114 | %{_libdir}/dovecot/plugins/settings/libmanagesieve_settings.so |