]>
Commit | Line | Data |
---|---|---|
0682bdac JS |
1 | |
2 | %define dovecot_series 2.0 | |
3 | %define pigeonhole_version 0.2.1 | |
d26c3c21 | 4 | |
0682bdac JS |
5 | Summary: Sieve plugin for dovecot |
6 | Summary(pl.UTF-8): Wtyczka Sieve i Managesieve dla dovecota | |
7 | Name: dovecot-pigeonhole | |
8 | Version: %{dovecot_series}_%{pigeonhole_version} | |
1ce38939 | 9 | Release: 2 |
0682bdac JS |
10 | License: LGPL |
11 | Group: Daemons | |
12 | Source0: http://www.rename-it.nl/dovecot/%{dovecot_series}/dovecot-%{dovecot_series}-pigeonhole-%{pigeonhole_version}.tar.gz | |
13 | # Source0-md5: 7baf6ebac21bdb865cb733d8e96ee81b | |
14 | Patch0: %{name}-config.patch | |
15 | URL: http://www.dovecot.org/ | |
16 | BuildRequires: autoconf | |
17 | BuildRequires: automake | |
18 | BuildRequires: bison | |
19 | BuildRequires: dovecot-devel >= 1:2.0 | |
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 |
3282cc57 | 28 | Dovecot Pigeonhole is implementation of Sieve for Dovecot v2.X |
0682bdac JS |
29 | |
30 | %description -l pl.UTF-8 | |
3282cc57 | 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 | |
3282cc57 JS |
51 | %description -n dovecot-managesieve -l pl.UTF-8 |
52 | Tn pakiet zawiera demona Manage Sieve dla dovecot. | |
0682bdac JS |
53 | |
54 | %prep | |
55 | %setup -q -n dovecot-%{dovecot_series}-pigeonhole-%{pigeonhole_version} | |
56 | %patch0 -p1 | |
57 | ||
58 | %build | |
59 | ||
60 | %configure \ | |
3282cc57 | 61 | --with-dovecot=%{_libdir}/dovecot \ |
d26c3c21 | 62 | --with-managesieve=yes \ |
0682bdac JS |
63 | --enable-header-install=yes \ |
64 | --prefix=%{_libdir}/dovecot | |
65 | ||
66 | %{__make} | |
67 | ||
68 | %install | |
d26c3c21 | 69 | |
0682bdac JS |
70 | rm -rf $RPM_BUILD_ROOT |
71 | ||
72 | %{__make} install DESTDIR=$RPM_BUILD_ROOT | |
73 | ||
0682bdac JS |
74 | find $RPM_BUILD_ROOT%{_libdir}/dovecot/ -name '*.la' | xargs rm -f |
75 | find $RPM_BUILD_ROOT%{_libdir}/dovecot/ -name '*.a' | xargs rm -f | |
3282cc57 JS |
76 | ln -s dovecot/libdovecot-login.so.0.0.0 $RPM_BUILD_ROOT%{_libdir}/libdovecot-login.so.0 |
77 | ln -s dovecot/libdovecot.so.0.0.0 $RPM_BUILD_ROOT%{_libdir}/libdovecot.so.0 | |
d26c3c21 | 78 | |
0682bdac JS |
79 | %clean |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | ||
82 | %files | |
83 | %defattr(644,root,root,755) | |
84 | %attr(755,root,root) %{_bindir}/sieve-test | |
85 | %attr(755,root,root) %{_bindir}/sievec | |
86 | %attr(755,root,root) %{_bindir}/sieve-dump | |
d26c3c21 | 87 | %{_libdir}/dovecot/plugins/lib90_sieve_plugin.so |
0682bdac JS |
88 | %attr(755,root,root) %{_libdir}/dovecot/libdovecot-sieve.so* |
89 | ||
3282cc57 JS |
90 | %attr(755,root,root) %{_libdir}/libdovecot.so.0 |
91 | ||
0682bdac JS |
92 | %{_mandir}/man1/sieve-test.1* |
93 | %{_mandir}/man1/sievec.1* | |
94 | %{_mandir}/man1/sieved.1* | |
95 | %{_mandir}/man1/sieve-dump.1* | |
96 | %{_mandir}/man7/pigeonhole.7* | |
d26c3c21 JS |
97 | %{_docdir}/dovecot/example-config/conf.d/90-sieve.conf |
98 | %{_docdir}/dovecot/sieve | |
0682bdac JS |
99 | |
100 | %files devel | |
101 | %defattr(644,root,root,755) | |
102 | %dir %{_includedir}/dovecot/sieve | |
103 | %{_includedir}/dovecot/sieve/*.h | |
104 | ||
105 | %files -n dovecot-managesieve | |
106 | %defattr(644,root,root,755) | |
3282cc57 JS |
107 | %attr(755,root,root) %{_libexecdir}/dovecot/managesieve |
108 | %attr(755,root,root) %{_libexecdir}/dovecot/managesieve-login | |
109 | ||
110 | %attr(755,root,root) %{_libdir}/libdovecot-login.so.0 | |
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 | |
0682bdac JS |
115 | %{_libexecdir}/dovecot/managesieve |
116 | %{_libexecdir}/dovecot/managesieve-login | |
d26c3c21 | 117 | %{_docdir}/dovecot/example-config/conf.d/20-managesieve.conf |