]>
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 | |
04131b43 | 5 | # - fix mess with dovecot libraries (symlinks in package that shouldn't be here) |
0682bdac | 6 | |
ea609ee6 | 7 | %define dovecot_series 2.1 |
1028cb9d | 8 | %define pigeonhole_version 0.3.1 |
0682bdac JS |
9 | Summary: Sieve plugin for dovecot |
10 | Summary(pl.UTF-8): Wtyczka Sieve i Managesieve dla dovecota | |
11 | Name: dovecot-pigeonhole | |
12 | Version: %{dovecot_series}_%{pigeonhole_version} | |
8ab8b6e0 | 13 | Release: 3 |
0682bdac JS |
14 | License: LGPL |
15 | Group: Daemons | |
16 | Source0: http://www.rename-it.nl/dovecot/%{dovecot_series}/dovecot-%{dovecot_series}-pigeonhole-%{pigeonhole_version}.tar.gz | |
1028cb9d | 17 | # Source0-md5: b834fc48b94a79178b707352bd16c881 |
0682bdac JS |
18 | Patch0: %{name}-config.patch |
19 | URL: http://www.dovecot.org/ | |
20 | BuildRequires: autoconf | |
21 | BuildRequires: automake | |
22 | BuildRequires: bison | |
23 | BuildRequires: dovecot-devel >= 1:2.0 | |
24 | BuildRequires: flex | |
25 | BuildRequires: libtool | |
26 | %requires_eq_to dovecot dovecot-devel | |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
d26c3c21 JS |
29 | %define skip_post_check_so libdovecot-sieve.so.0.0.0 |
30 | ||
0682bdac | 31 | %description |
58b08cb3 | 32 | Dovecot Pigeonhole is implementation of Sieve for Dovecot v2.x |
0682bdac JS |
33 | |
34 | %description -l pl.UTF-8 | |
58b08cb3 | 35 | Dovecot Pigeonhole jest implementacją Sieve dla Dovecot v2.x |
0682bdac JS |
36 | |
37 | %package devel | |
38 | Summary: Libraries and headers for %{name} | |
3282cc57 | 39 | Summary(pl.UTF-8): Pliki nagłówkowe dla %{name} |
0682bdac JS |
40 | Group: Development/Libraries |
41 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
42 | ||
43 | %description devel | |
44 | This package contains development files for linking against %{name}. | |
45 | ||
46 | %description devel -l pl.UTF-8 | |
47 | Ten pakiet zawiera pliki rozwoju łączenia %{name}. | |
48 | ||
49 | %package -n dovecot-managesieve | |
50 | Summary: Manage Sieve daemon for dovecot | |
3282cc57 | 51 | Summary(pl.UTF-8): Manage Sieve demon dla dovecot |
0682bdac JS |
52 | Group: Daemons |
53 | ||
54 | %description -n dovecot-managesieve | |
3282cc57 JS |
55 | %description -n dovecot-managesieve -l pl.UTF-8 |
56 | Tn pakiet zawiera demona Manage Sieve dla dovecot. | |
0682bdac JS |
57 | |
58 | %prep | |
59 | %setup -q -n dovecot-%{dovecot_series}-pigeonhole-%{pigeonhole_version} | |
60 | %patch0 -p1 | |
61 | ||
62 | %build | |
0682bdac | 63 | %configure \ |
ac90fc72 | 64 | --with-dovecot=%{_libdir}/dovecot \ |
65 | --with-managesieve=yes \ | |
66 | --enable-header-install=yes \ | |
67 | --prefix=%{_libdir}/dovecot | |
0682bdac JS |
68 | |
69 | %{__make} | |
70 | ||
71 | %install | |
72 | rm -rf $RPM_BUILD_ROOT | |
58b08cb3 ER |
73 | %{__make} install \ |
74 | DESTDIR=$RPM_BUILD_ROOT | |
0682bdac | 75 | |
0682bdac JS |
76 | find $RPM_BUILD_ROOT%{_libdir}/dovecot/ -name '*.la' | xargs rm -f |
77 | find $RPM_BUILD_ROOT%{_libdir}/dovecot/ -name '*.a' | xargs rm -f | |
04131b43 ER |
78 | |
79 | # ??? - why are these in this package? | |
3282cc57 JS |
80 | ln -s dovecot/libdovecot-login.so.0.0.0 $RPM_BUILD_ROOT%{_libdir}/libdovecot-login.so.0 |
81 | ln -s dovecot/libdovecot.so.0.0.0 $RPM_BUILD_ROOT%{_libdir}/libdovecot.so.0 | |
d26c3c21 | 82 | |
b550995a JR |
83 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir} |
84 | ||
0682bdac JS |
85 | %clean |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %files | |
89 | %defattr(644,root,root,755) | |
b550995a JR |
90 | %doc doc/example-config/conf.d/90-sieve.conf |
91 | %doc doc/extensions doc/script-location-dict.txt | |
0682bdac JS |
92 | %attr(755,root,root) %{_bindir}/sieve-test |
93 | %attr(755,root,root) %{_bindir}/sievec | |
94 | %attr(755,root,root) %{_bindir}/sieve-dump | |
04131b43 | 95 | %attr(755,root,root) %{_libdir}/dovecot/plugins/lib90_sieve_plugin.so |
0682bdac JS |
96 | %attr(755,root,root) %{_libdir}/dovecot/libdovecot-sieve.so* |
97 | ||
04131b43 | 98 | # ??? - why is this in this package? |
3282cc57 JS |
99 | %attr(755,root,root) %{_libdir}/libdovecot.so.0 |
100 | ||
0682bdac JS |
101 | %{_mandir}/man1/sieve-test.1* |
102 | %{_mandir}/man1/sievec.1* | |
103 | %{_mandir}/man1/sieved.1* | |
104 | %{_mandir}/man1/sieve-dump.1* | |
105 | %{_mandir}/man7/pigeonhole.7* | |
0682bdac JS |
106 | |
107 | %files devel | |
108 | %defattr(644,root,root,755) | |
109 | %dir %{_includedir}/dovecot/sieve | |
110 | %{_includedir}/dovecot/sieve/*.h | |
111 | ||
112 | %files -n dovecot-managesieve | |
113 | %defattr(644,root,root,755) | |
b550995a | 114 | %doc doc/example-config/conf.d/20-managesieve.conf |
3282cc57 JS |
115 | %attr(755,root,root) %{_libexecdir}/dovecot/managesieve |
116 | %attr(755,root,root) %{_libexecdir}/dovecot/managesieve-login | |
117 | ||
118 | %attr(755,root,root) %{_libdir}/libdovecot-login.so.0 | |
119 | ||
d26c3c21 JS |
120 | %dir %{_libdir}/dovecot/plugins/settings/ |
121 | %{_libdir}/dovecot/plugins/settings/libmanagesieve_login_settings.so | |
122 | %{_libdir}/dovecot/plugins/settings/libmanagesieve_settings.so |