]>
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 | |
ea609ee6 | 6 | %define dovecot_series 2.1 |
1028cb9d | 7 | %define pigeonhole_version 0.3.1 |
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} | |
1028cb9d | 12 | Release: 1 |
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 | |
1028cb9d | 16 | # Source0-md5: b834fc48b94a79178b707352bd16c881 |
0682bdac JS |
17 | Patch0: %{name}-config.patch |
18 | URL: http://www.dovecot.org/ | |
19 | BuildRequires: autoconf | |
20 | BuildRequires: automake | |
21 | BuildRequires: bison | |
22 | BuildRequires: dovecot-devel >= 1:2.0 | |
23 | BuildRequires: flex | |
24 | BuildRequires: libtool | |
25 | %requires_eq_to dovecot dovecot-devel | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
d26c3c21 JS |
28 | %define skip_post_check_so libdovecot-sieve.so.0.0.0 |
29 | ||
0682bdac | 30 | %description |
58b08cb3 | 31 | Dovecot Pigeonhole is implementation of Sieve for Dovecot v2.x |
0682bdac JS |
32 | |
33 | %description -l pl.UTF-8 | |
58b08cb3 | 34 | Dovecot Pigeonhole jest implementacją Sieve dla Dovecot v2.x |
0682bdac JS |
35 | |
36 | %package devel | |
37 | Summary: Libraries and headers for %{name} | |
3282cc57 | 38 | Summary(pl.UTF-8): Pliki nagłówkowe dla %{name} |
0682bdac JS |
39 | Group: Development/Libraries |
40 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
41 | ||
42 | %description devel | |
43 | This package contains development files for linking against %{name}. | |
44 | ||
45 | %description devel -l pl.UTF-8 | |
46 | Ten pakiet zawiera pliki rozwoju łączenia %{name}. | |
47 | ||
48 | %package -n dovecot-managesieve | |
49 | Summary: Manage Sieve daemon for dovecot | |
3282cc57 | 50 | Summary(pl.UTF-8): Manage Sieve demon dla dovecot |
0682bdac JS |
51 | Group: Daemons |
52 | ||
53 | %description -n dovecot-managesieve | |
3282cc57 JS |
54 | %description -n dovecot-managesieve -l pl.UTF-8 |
55 | Tn pakiet zawiera demona Manage Sieve dla dovecot. | |
0682bdac JS |
56 | |
57 | %prep | |
58 | %setup -q -n dovecot-%{dovecot_series}-pigeonhole-%{pigeonhole_version} | |
59 | %patch0 -p1 | |
60 | ||
61 | %build | |
0682bdac | 62 | %configure \ |
ac90fc72 | 63 | --with-dovecot=%{_libdir}/dovecot \ |
64 | --with-managesieve=yes \ | |
65 | --enable-header-install=yes \ | |
66 | --prefix=%{_libdir}/dovecot | |
0682bdac JS |
67 | |
68 | %{__make} | |
69 | ||
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 | |
3282cc57 JS |
77 | ln -s dovecot/libdovecot-login.so.0.0.0 $RPM_BUILD_ROOT%{_libdir}/libdovecot-login.so.0 |
78 | ln -s dovecot/libdovecot.so.0.0.0 $RPM_BUILD_ROOT%{_libdir}/libdovecot.so.0 | |
d26c3c21 | 79 | |
0682bdac JS |
80 | %clean |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %files | |
84 | %defattr(644,root,root,755) | |
85 | %attr(755,root,root) %{_bindir}/sieve-test | |
86 | %attr(755,root,root) %{_bindir}/sievec | |
87 | %attr(755,root,root) %{_bindir}/sieve-dump | |
d26c3c21 | 88 | %{_libdir}/dovecot/plugins/lib90_sieve_plugin.so |
0682bdac JS |
89 | %attr(755,root,root) %{_libdir}/dovecot/libdovecot-sieve.so* |
90 | ||
3282cc57 JS |
91 | %attr(755,root,root) %{_libdir}/libdovecot.so.0 |
92 | ||
0682bdac JS |
93 | %{_mandir}/man1/sieve-test.1* |
94 | %{_mandir}/man1/sievec.1* | |
95 | %{_mandir}/man1/sieved.1* | |
96 | %{_mandir}/man1/sieve-dump.1* | |
97 | %{_mandir}/man7/pigeonhole.7* | |
d26c3c21 JS |
98 | %{_docdir}/dovecot/example-config/conf.d/90-sieve.conf |
99 | %{_docdir}/dovecot/sieve | |
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) | |
3282cc57 JS |
108 | %attr(755,root,root) %{_libexecdir}/dovecot/managesieve |
109 | %attr(755,root,root) %{_libexecdir}/dovecot/managesieve-login | |
110 | ||
111 | %attr(755,root,root) %{_libdir}/libdovecot-login.so.0 | |
112 | ||
d26c3c21 JS |
113 | %dir %{_libdir}/dovecot/plugins/settings/ |
114 | %{_libdir}/dovecot/plugins/settings/libmanagesieve_login_settings.so | |
115 | %{_libdir}/dovecot/plugins/settings/libmanagesieve_settings.so | |
0682bdac JS |
116 | %{_libexecdir}/dovecot/managesieve |
117 | %{_libexecdir}/dovecot/managesieve-login | |
d26c3c21 | 118 | %{_docdir}/dovecot/example-config/conf.d/20-managesieve.conf |