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