]>
Commit | Line | Data |
---|---|---|
6865becd JB |
1 | # |
2 | # Conditional build: | |
3ee251c0 | 3 | %bcond_without gssapi # without GSSAPI support |
f4230487 | 4 | %bcond_without ldap # without LDAP auth |
05561653 | 5 | %bcond_without lua # without Lua auth |
f4230487 JB |
6 | %bcond_without mysql # without MySQL auth |
7 | %bcond_without pgsql # without PostgreSQL auth | |
b60b3e8a | 8 | %bcond_without sqlite # without SQLite3 auth |
f4230487 | 9 | %bcond_without sasl # without SASL auth |
f5d18128 | 10 | %bcond_without tests # tests |
8e04a4c1 | 11 | |
b8f6d56a | 12 | Summary: IMAP and POP3 server written with security primarily in mind |
7ad305a6 | 13 | Summary(pl.UTF-8): Serwer IMAP i POP3 pisany głównie z myślą o bezpieczeństwie |
b8f6d56a | 14 | Name: dovecot |
90b6ba96 | 15 | Version: 2.3.21 |
31c8b554 | 16 | Release: 3 |
660b9616 | 17 | Epoch: 1 |
ba932ed4 | 18 | License: MIT (libraries), LGPL v2.1 (the rest) |
b8f6d56a | 19 | Group: Networking/Daemons |
750df5ea | 20 | Source0: http://dovecot.org/releases/2.3/%{name}-%{version}.tar.gz |
90b6ba96 | 21 | # Source0-md5: 8961c3dafd845a25fd55e7903ffc3755 |
8d47df47 TO |
22 | Source1: %{name}.pamd |
23 | Source2: %{name}.init | |
24 | Source3: %{name}.sysconfig | |
1fd90052 | 25 | Source4: %{name}.tmpfiles |
8d47df47 | 26 | Patch0: %{name}-config.patch |
469a4531 | 27 | Patch1: %{name}-rpath.patch |
4d482294 | 28 | Patch2: %{name}-shebang.patch |
11ff587d | 29 | Patch3: proc-status.patch |
1fb23094 | 30 | Patch4: openssl3.patch |
027cb77c | 31 | URL: http://dovecot.org/ |
0928494a JB |
32 | BuildRequires: autoconf |
33 | BuildRequires: automake | |
d9e4e4b3 | 34 | BuildRequires: bzip2-devel |
b9750edc | 35 | BuildRequires: clucene-core-devel >= 2.3.3.4 |
b8cf09c1 | 36 | BuildRequires: curl-devel |
f4230487 | 37 | %{?with_sasl:BuildRequires: cyrus-sasl-devel >= 2.0} |
b8cf09c1 | 38 | BuildRequires: expat-devel |
06acc771 | 39 | BuildRequires: gettext-tools |
1ab66923 | 40 | %{?with_gssapi:BuildRequires: heimdal-devel} |
2e9fa550 | 41 | BuildRequires: libapparmor-devel |
d9e4e4b3 | 42 | BuildRequires: libcap-devel |
d5662119 | 43 | BuildRequires: libicu-devel |
b8cf09c1 AM |
44 | BuildRequires: libstemmer-devel |
45 | BuildRequires: libexttextcat-devel | |
0928494a | 46 | BuildRequires: libtool |
05561653 | 47 | %{?with_lua:BuildRequires: lua53-devel} |
b8cf09c1 | 48 | BuildRequires: lz4-devel |
f4230487 | 49 | %{?with_mysql:BuildRequires: mysql-devel} |
2e75e92c | 50 | %{?with_ldap:BuildRequires: openldap-devel >= 2.3.3} |
6ceb4d17 | 51 | BuildRequires: openssl-devel >= 0.9.7d |
6865becd | 52 | BuildRequires: pam-devel |
b7e03084 | 53 | BuildRequires: pkgconfig |
6fca25bf | 54 | BuildRequires: pkgconfig(lua) >= 5.1 |
f4230487 | 55 | %{?with_pgsql:BuildRequires: postgresql-devel} |
9f0e9eb5 | 56 | BuildRequires: rpmbuild(macros) >= 1.647 |
930a78ad | 57 | BuildRequires: sed >= 4.0 |
a0260ad9 | 58 | %{?with_sqlite:BuildRequires: sqlite3-devel} |
d5662119 | 59 | BuildRequires: xz-devel |
d9e4e4b3 | 60 | BuildRequires: zlib-devel |
739a4a9a | 61 | BuildRequires: zstd-devel |
8d47df47 | 62 | Requires(post,preun): /sbin/chkconfig |
c1df1ed1 KK |
63 | Requires(postun): /usr/sbin/groupdel |
64 | Requires(postun): /usr/sbin/userdel | |
65 | Requires(pre): /bin/id | |
66 | Requires(pre): /usr/bin/getgid | |
67 | Requires(pre): /usr/sbin/groupadd | |
68 | Requires(pre): /usr/sbin/useradd | |
147a541c | 69 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
50c4e802 | 70 | Requires: pam >= 0.79.0 |
c1df1ed1 | 71 | Provides: group(dovecot) |
8d47df47 | 72 | Provides: imapdaemon |
23beb95b | 73 | Provides: pop3daemon |
660b9616 | 74 | Provides: user(dovecot) |
23beb95b JB |
75 | # heimdal-daemons in PLD contained only "popper" (kerberized POP3 daemon) |
76 | %{?with_gssapi:Obsoletes: heimdal-daemons} | |
b8f6d56a JB |
77 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
78 | ||
4bf55e2e JR |
79 | %define no_install_post_check_so 1 |
80 | ||
b8f6d56a JB |
81 | %description |
82 | Dovecot is an IMAP and POP3 server for Linux/UNIX-like systems, | |
83 | written with security primarily in mind. Although it's written with C, | |
84 | it uses several coding techniques to avoid most of the common | |
85 | pitfalls. | |
86 | ||
87 | Dovecot can work with standard mbox and maildir formats and it's fully | |
88 | compatible with UW-IMAP and Courier IMAP servers as well as mail | |
89 | clients accessing the mailboxes directly. It's also planned to support | |
90 | storing mails in SQL databases. | |
91 | ||
92 | Dovecot is easy to set up and doesn't require special maintenance. | |
93 | Only thing you need is to get the authentication working properly - if | |
94 | your users are in /etc/passwd there's hardly anything you have to do. | |
95 | ||
96 | Dovecot should be pretty fast, mostly because of index files that | |
97 | Dovecot maintains; instead of having to scan through all the data in | |
8d47df47 TO |
98 | mailbox, Dovecot can get most of the wanted information from index |
99 | with little effort. | |
b8f6d56a JB |
100 | |
101 | Status: | |
ddfebb5d | 102 | - should be quite ready for use with normal IMAP clients |
3fcc147b KK |
103 | - complete IMAP4rev1 and POP3 support |
104 | - supports THREAD, SORT and IDLE extensions, required by many IMAP | |
105 | webmails | |
106 | - complete TLS/SSL support | |
ddfebb5d | 107 | - IPv6 ready |
108 | - shared mailboxes aren't yet supported | |
3fcc147b KK |
109 | - Maildir++ quota is supported, bad hard filesystem quota can be |
110 | problematic | |
b8f6d56a | 111 | |
db6f7644 JR |
112 | %description -l pl.UTF-8 |
113 | Dovecot to serwer IMAP i POP3 dla systemów linuksowych/uniksowych, | |
114 | pisany głównie z myślą o bezpieczeństwie. Chociaż jest pisany w C, | |
115 | używa kilku technik kodowania zapobiegających większości popularnych | |
116 | pułapek. | |
0928494a | 117 | |
db6f7644 JR |
118 | Dovecot może działać ze standardowymi formatami mbox i maildir, jest |
119 | całkowicie kompatybilny z serwerami UW-IMAP i Courier IMAP, a także z | |
120 | klientami pocztowymi bezpośrednio dostającymi się do skrzynek. | |
121 | Planowana jest także obsługa przechowywania listów w bazach SQL. | |
0928494a | 122 | |
db6f7644 JR |
123 | Dovecot jest łatwy do skonfigurowania i nie wymaga specjalnego |
124 | nadzoru. Wystarczy tylko doprowadzić do działania uwierzytelnianie - | |
125 | jeśli użytkownicy są w /etc/passwd, to właściwie nie trzeba nic | |
126 | zmieniać. | |
0928494a | 127 | |
db6f7644 | 128 | Dovecot powinien być w miarę szybki, głównie z powodu plików |
0928494a | 129 | indeksowych utrzymywanych przez serwer; zamiast potrzeby skanowania |
db6f7644 JR |
130 | wszystkich danych w skrzynce, Dovecot może małym kosztem uzyskać |
131 | większość potrzebnych informacji z indeksu. | |
0928494a JB |
132 | |
133 | Stan: | |
db6f7644 JR |
134 | - powinien być gotowy do użycia ze zwykłymi klientami IMAP |
135 | - pełna obsługa IMAP4rev1 i POP3 | |
136 | - obsługa rozszerzeń THREAD, SORT i IDLE, wymaganych przez wiele | |
3fcc147b | 137 | webmaili IMAP |
db6f7644 JR |
138 | - obsługa IPv6 |
139 | - pełna obsługa TLS/SSL | |
140 | - quota Maildir++ jest obsługiwana, ale twarda quota na systemach | |
141 | plików może być problematyczna | |
0928494a | 142 | |
23beb95b JB |
143 | %package libs |
144 | Summary: Dovecot shared libraries | |
145 | Summary(pl.UTF-8): Współdzielone biblioteki Dovecota | |
146 | Group: Development/Libraries | |
147 | ||
148 | %description libs | |
149 | Dovecot shared libraries. | |
150 | ||
151 | %description libs -l pl.UTF-8 | |
152 | Współdzielone biblioteki Dovecota. | |
153 | ||
ee9bfb11 | 154 | %package devel |
f4f4ea9e | 155 | Summary: Development package for Dovecot plugins |
156 | Summary(pl.UTF-8): Pakiet programistyczny do tworzenia wtyczek dla Dovecota | |
1f7b33f9 | 157 | Group: Development/Libraries |
7fbaf96b | 158 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
ee9bfb11 JS |
159 | |
160 | %description devel | |
f4f4ea9e | 161 | Development package for Dovecot plugins. |
d3be9b82 JB |
162 | |
163 | %description devel -l pl.UTF-8 | |
f4f4ea9e | 164 | Pakiet programistyczny do tworzenia wtyczek dla Dovecota. |
ee9bfb11 | 165 | |
b8f6d56a JB |
166 | %prep |
167 | %setup -q | |
8d47df47 | 168 | %patch0 -p1 |
469a4531 | 169 | %patch1 -p1 |
4d482294 | 170 | %patch2 -p1 |
11ff587d | 171 | %patch3 -p1 |
1fb23094 | 172 | %patch4 -p1 |
9f6c4ad4 | 173 | |
301d0b92 | 174 | %{__sed} -i 's,/usr/lib/dovecot,%{_libdir}/dovecot,g' doc/example-config/*.conf doc/example-config/conf.d/*.conf |
b8f6d56a | 175 | |
a28d32a7 AM |
176 | %{__sed} -i 's,#!/usr/bin/env bash,#!/bin/bash,' src/util/health-check.sh |
177 | ||
b8f6d56a | 178 | %build |
06cf0ac5 | 179 | touch config.rpath |
b8f6d56a | 180 | %{__libtoolize} |
edea71d0 | 181 | %{__aclocal} -I . -I m4 |
b8f6d56a JB |
182 | %{__autoconf} |
183 | %{__autoheader} | |
184 | %{__automake} | |
6865becd | 185 | %configure \ |
014fb737 | 186 | ac_cv_path_VALGRIND=reject \ |
0d8cffe3 | 187 | CPPFLAGS="%{rpmcppflags} -I/usr/include/libstemmer -D_LINUX_QUOTA_VERSION=2" \ |
ba932ed4 | 188 | --disable-static \ |
5d7b06ff | 189 | --enable-hardening \ |
6865becd | 190 | %{?debug:--enable-debug} \ |
3082a74f | 191 | %{?with_ldap:--with-ldap=yes} \ |
f4230487 JB |
192 | %{?with_mysql:--with-mysql} \ |
193 | %{?with_pgsql:--with-pgsql} \ | |
a0260ad9 | 194 | %{?with_sqlite:--with-sqlite} \ |
ff3fede5 | 195 | %{?with_gssapi:--with-gssapi=plugin} \ |
05561653 | 196 | %{?with_lua:--with-lua=plugin} \ |
b8cf09c1 AM |
197 | --with-lucene \ |
198 | --with-stemmer \ | |
199 | --with-solr \ | |
ff3fede5 AM |
200 | --with-sql=plugin \ |
201 | --with-pam \ | |
d9e4e4b3 AM |
202 | --with-zlib \ |
203 | --with-bzlib \ | |
204 | --with-libcap \ | |
6865becd | 205 | --with-ssl=openssl \ |
739a4a9a | 206 | --with-zstd \ |
c58c659d JR |
207 | %ifarch x32 |
208 | --without-libunwind \ | |
209 | %endif | |
d3f43412 | 210 | --with-moduledir=%{_libdir}/%{name}/plugins \ |
d9e4e4b3 | 211 | --with-ssldir=/var/lib/openssl \ |
5152fa81 | 212 | --sysconfdir=%{_sysconfdir} \ |
9f0e9eb5 | 213 | --with-systemdsystemunitdir=%{systemdunitdir} |
b8f6d56a JB |
214 | |
215 | %{__make} | |
216 | ||
f5d18128 AM |
217 | %{?with_tests:%{__make} check} |
218 | ||
b8f6d56a JB |
219 | %install |
220 | rm -rf $RPM_BUILD_ROOT | |
1fd90052 JR |
221 | install -d $RPM_BUILD_ROOT/etc/{pam.d,rc.d/init.d,sysconfig,security} \ |
222 | $RPM_BUILD_ROOT{/var/lib/dovecot,/var/run/dovecot/login} \ | |
223 | $RPM_BUILD_ROOT/usr/lib/tmpfiles.d | |
b8f6d56a JB |
224 | |
225 | %{__make} install \ | |
226 | DESTDIR=$RPM_BUILD_ROOT | |
227 | ||
d3f43412 | 228 | mv -f $RPM_BUILD_ROOT%{_datadir}/doc/%{name}/example-config/* $RPM_BUILD_ROOT%{_sysconfdir}/dovecot |
b8f6d56a | 229 | |
8e04a4c1 ER |
230 | cp -a %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/%{name} |
231 | install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} | |
232 | cp -a %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/%{name} | |
1fd90052 | 233 | install %{SOURCE4} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/%{name}.conf |
8d47df47 TO |
234 | |
235 | touch $RPM_BUILD_ROOT/etc/security/blacklist.imap | |
236 | ||
4aef4380 | 237 | find $RPM_BUILD_ROOT%{_libdir}/%{name} -name '*.la' | xargs rm |
bb75c55c | 238 | |
1fd90052 JR |
239 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} |
240 | %{__rm} -r $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/README | |
1f7b33f9 | 241 | |
b8f6d56a JB |
242 | %clean |
243 | rm -rf $RPM_BUILD_ROOT | |
244 | ||
c1df1ed1 KK |
245 | %pre |
246 | %groupadd -g 172 dovecot | |
247 | %useradd -u 172 -d /usr/share/empty -s /bin/false -c "Dovecot server" -g dovecot dovecot | |
74a997c5 AM |
248 | %groupadd -g 254 dovenull |
249 | %useradd -u 254 -d /usr/share/empty -s /bin/false -c "Dovecot server" -g dovenull dovenull | |
c1df1ed1 | 250 | |
8d47df47 TO |
251 | %post |
252 | /sbin/chkconfig --add dovecot | |
0182c7a5 | 253 | %service dovecot restart |
9f0e9eb5 | 254 | %systemd_post dovecot.socket dovecot.service |
8d47df47 TO |
255 | |
256 | %preun | |
257 | if [ "$1" = "0" ]; then | |
65d55d28 | 258 | %service dovecot stop |
8d47df47 TO |
259 | /sbin/chkconfig --del dovecot |
260 | fi | |
9f0e9eb5 | 261 | %systemd_preun dovecot.service dovecot.socket |
8d47df47 | 262 | |
c1df1ed1 KK |
263 | %postun |
264 | if [ "$1" = "0" ]; then | |
265 | %userremove dovecot | |
266 | %groupremove dovecot | |
74a997c5 AM |
267 | %userremove dovenull |
268 | %groupremove dovenull | |
c1df1ed1 | 269 | fi |
9f0e9eb5 | 270 | %systemd_reload |
c1df1ed1 | 271 | |
bc5d3bcd AM |
272 | %post libs -p /sbin/ldconfig |
273 | %postun libs -p /sbin/ldconfig | |
274 | ||
a6b782c0 JR |
275 | %triggerin -- pam |
276 | # restart devocot if pam is upgraded | |
277 | # (dovecot is linked with old libpam but tries to open modules linked with new libpam) | |
278 | if [ "$2" != 1 ]; then | |
279 | %service -q dovecot restart | |
280 | fi | |
281 | ||
28c2da72 JR |
282 | %triggerpostun -- dovecot < 1:2.0.0 |
283 | # upgrading dovecot < 1.1 | |
fdaf3880 PG |
284 | echo "Configuration change default_mail_env -> mail_location" |
285 | %{__sed} -i -e "s/^default_mail_env/mail_location/" /etc/dovecot/dovecot.conf | |
28c2da72 | 286 | # upgrading dovecot < 2.0 |
b897a7bd | 287 | i=0 |
687a6849 AM |
288 | for a in /etc/dovecot/dovecot-db-example.conf \ |
289 | /etc/dovecot/dovecot-dict-sql-example.conf \ | |
290 | /etc/dovecot/dovecot-ldap-example.conf \ | |
291 | /etc/dovecot/dovecot-sql-example.conf \ | |
292 | /etc/dovecot/dovecot.conf; do | |
293 | if [ -f "$a" ]; then | |
b897a7bd AM |
294 | [ "$i" -eq 0 ] && echo "Read http://wiki2.dovecot.org/Upgrading/2.0" |
295 | i=1 | |
687a6849 | 296 | echo "Trying to migrate $a config file to dovecot 2." |
8c43f42b | 297 | cp -a "$a" "$a-1.2.org" |
d31b09de AM |
298 | :> "$a.log" |
299 | chmod 600 "$a.log" | |
8c43f42b | 300 | # convert config and prefix stderr lines with # |
d31b09de | 301 | %{_bindir}/doveconf -n -c "$a-1.2.org" > "$a" 2> "$a.log" || : |
687a6849 AM |
302 | fi |
303 | done | |
8c43f42b AM |
304 | if [ "$i" -eq 1 ]; then |
305 | echo "Please verify contents of %{_sysconfdir}/%{name}/* files." | |
306 | fi | |
fdaf3880 | 307 | |
d2bda8e3 | 308 | # < 1:2.2.4-2 |
9f0e9eb5 AF |
309 | %systemd_trigger dovecot.service dovecot.socket |
310 | ||
b8f6d56a JB |
311 | %files |
312 | %defattr(644,root,root,755) | |
313 | # COPYING contains some notes, not actual LGPL text | |
caf88cd1 | 314 | %doc AUTHORS COPYING ChangeLog NEWS README TODO doc/*.txt doc/*.c*f doc/wiki/*.txt |
bb75c55c AM |
315 | %attr(755,root,root) %{_bindir}/doveadm |
316 | %attr(755,root,root) %{_bindir}/doveconf | |
4d482294 | 317 | %attr(755,root,root) %{_bindir}/dovecot-sysreport |
bb75c55c | 318 | %attr(755,root,root) %{_bindir}/dsync |
8d47df47 | 319 | %attr(755,root,root) %{_sbindir}/%{name} |
15872051 | 320 | %attr(751,root,root) %dir %{_sysconfdir}/%{name} |
c19c6ee3 | 321 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}.conf |
bb75c55c AM |
322 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*.ext |
323 | %attr(751,root,root) %dir %{_sysconfdir}/%{name}/conf.d | |
324 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/conf.d/*.conf | |
325 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/conf.d/*.ext | |
c5c6a170 | 326 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/%{name} |
327 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.imap | |
328 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name} | |
8d47df47 | 329 | %attr(754,root,root) /etc/rc.d/init.d/%{name} |
e825b166 JB |
330 | %if "%{_libexecdir}" != "%{_libdir}" |
331 | %dir %{_libexecdir}/%{name} | |
332 | %endif | |
6826e7cb JR |
333 | %attr(755,root,root) %{_libexecdir}/%{name}/aggregator |
334 | %attr(755,root,root) %{_libexecdir}/%{name}/anvil | |
335 | %attr(755,root,root) %{_libexecdir}/%{name}/auth | |
336 | %attr(755,root,root) %{_libexecdir}/%{name}/checkpassword-reply | |
337 | %attr(755,root,root) %{_libexecdir}/%{name}/config | |
338 | %attr(755,root,root) %{_libexecdir}/%{name}/decode2text.sh | |
339 | %attr(755,root,root) %{_libexecdir}/%{name}/deliver | |
340 | %attr(755,root,root) %{_libexecdir}/%{name}/dict | |
341 | %attr(755,root,root) %{_libexecdir}/%{name}/director | |
342 | %attr(755,root,root) %{_libexecdir}/%{name}/dns-client | |
343 | %attr(755,root,root) %{_libexecdir}/%{name}/doveadm-server | |
344 | %attr(755,root,root) %{_libexecdir}/%{name}/dovecot-lda | |
345 | %attr(755,root,root) %{_libexecdir}/%{name}/gdbhelper | |
a0821751 | 346 | %attr(755,root,root) %{_libexecdir}/%{name}/health-check.sh |
6826e7cb JR |
347 | %attr(755,root,root) %{_libexecdir}/%{name}/imap |
348 | %attr(755,root,root) %{_libexecdir}/%{name}/imap-hibernate | |
349 | %attr(755,root,root) %{_libexecdir}/%{name}/imap-login | |
350 | %attr(755,root,root) %{_libexecdir}/%{name}/imap-urlauth | |
351 | %attr(755,root,root) %{_libexecdir}/%{name}/imap-urlauth-login | |
352 | %attr(755,root,root) %{_libexecdir}/%{name}/imap-urlauth-worker | |
353 | %attr(755,root,root) %{_libexecdir}/%{name}/indexer | |
354 | %attr(755,root,root) %{_libexecdir}/%{name}/indexer-worker | |
355 | %attr(755,root,root) %{_libexecdir}/%{name}/ipc | |
356 | %attr(755,root,root) %{_libexecdir}/%{name}/lmtp | |
357 | %attr(755,root,root) %{_libexecdir}/%{name}/log | |
358 | %attr(755,root,root) %{_libexecdir}/%{name}/maildirlock | |
750df5ea | 359 | %attr(755,root,root) %{_libexecdir}/%{name}/old-stats |
6826e7cb JR |
360 | %attr(755,root,root) %{_libexecdir}/%{name}/pop3 |
361 | %attr(755,root,root) %{_libexecdir}/%{name}/pop3-login | |
362 | %attr(755,root,root) %{_libexecdir}/%{name}/quota-status | |
363 | %attr(755,root,root) %{_libexecdir}/%{name}/rawlog | |
364 | %attr(755,root,root) %{_libexecdir}/%{name}/replicator | |
365 | %attr(755,root,root) %{_libexecdir}/%{name}/script | |
366 | %attr(755,root,root) %{_libexecdir}/%{name}/script-login | |
6826e7cb | 367 | %attr(755,root,root) %{_libexecdir}/%{name}/stats |
750df5ea AM |
368 | %attr(755,root,root) %{_libexecdir}/%{name}/submission |
369 | %attr(755,root,root) %{_libexecdir}/%{name}/submission-login | |
6826e7cb | 370 | %attr(755,root,root) %{_libexecdir}/%{name}/xml2text |
1ceccb88 | 371 | %attr(755,root,root) %{_libdir}/%{name}/libdcrypt_openssl.so |
d3be9b82 | 372 | %dir %{_libdir}/%{name}/plugins |
ee9bfb11 | 373 | %attr(755,root,root) %{_libdir}/%{name}/plugins/*.so |
ff3fede5 | 374 | %dir %{_libdir}/%{name}/plugins/auth |
8e04a4c1 | 375 | %attr(755,root,root) %{_libdir}/%{name}/plugins/auth/*.so |
ff3fede5 | 376 | %dir %{_libdir}/%{name}/plugins/dict |
8e04a4c1 | 377 | %attr(755,root,root) %{_libdir}/%{name}/plugins/dict/*.so |
bb75c55c | 378 | %dir %{_libdir}/%{name}/plugins/doveadm |
8e04a4c1 | 379 | %attr(755,root,root) %{_libdir}/%{name}/plugins/doveadm/*.so |
750df5ea AM |
380 | %dir %{_libdir}/%{name}/plugins/old-stats |
381 | %attr(755,root,root) %{_libdir}/%{name}/plugins/old-stats/*.so | |
29cabdb6 | 382 | %{_datadir}/dovecot |
9f0e9eb5 AF |
383 | %{systemdunitdir}/dovecot.service |
384 | %{systemdunitdir}/dovecot.socket | |
1fd90052 | 385 | /usr/lib/tmpfiles.d/%{name}.conf |
e7291b43 | 386 | %dir /var/lib/dovecot |
c1df1ed1 | 387 | %dir /var/run/dovecot |
aade0d64 | 388 | %attr(750,root,dovenull) %dir /var/run/dovecot/login |
ee9bfb11 | 389 | |
bb75c55c AM |
390 | %{_mandir}/man1/deliver.1* |
391 | %{_mandir}/man1/dove*.1* | |
392 | %{_mandir}/man1/dsync.1* | |
393 | %{_mandir}/man7/doveadm-search-query.7* | |
394 | ||
7fbaf96b | 395 | %files libs |
396 | %defattr(644,root,root,755) | |
397 | %dir %{_libdir}/%{name} | |
283503bf | 398 | |
8e04a4c1 | 399 | %attr(755,root,root) %{_libdir}/%{name}/libdovecot.so.0.0.0 |
946ce37d | 400 | %attr(755,root,root) %{_libdir}/%{name}/libdovecot-compression.so.0.0.0 |
283503bf | 401 | %attr(755,root,root) %{_libdir}/%{name}/libdovecot-dsync.so.0.0.0 |
c00d3702 | 402 | %attr(755,root,root) %{_libdir}/%{name}/libdovecot-fts.so.0.0.0 |
8e04a4c1 | 403 | %attr(755,root,root) %{_libdir}/%{name}/libdovecot-lda.so.0.0.0 |
6bde1f23 | 404 | %{?with_ldap:%attr(755,root,root) %{_libdir}/%{name}/libdovecot-ldap.so.0.0.0} |
8e04a4c1 | 405 | %attr(755,root,root) %{_libdir}/%{name}/libdovecot-login.so.0.0.0 |
6fca25bf | 406 | %attr(755,root,root) %{_libdir}/%{name}/libdovecot-lua.so.0.0.0 |
30b6d006 | 407 | %attr(755,root,root) %{_libdir}/%{name}/libdovecot-sql.so.0.0.0 |
8e04a4c1 | 408 | %attr(755,root,root) %{_libdir}/%{name}/libdovecot-storage.so.0.0.0 |
6fca25bf | 409 | %attr(755,root,root) %{_libdir}/%{name}/libdovecot-storage-lua.so.0.0.0 |
8e04a4c1 | 410 | # Note: we are in %{_libdir}/dovecot, ldconfig does not look into this |
96e29b16 | 411 | # directory. This is why the following files are not %ghost |
8e04a4c1 | 412 | %attr(755,root,root) %{_libdir}/%{name}/libdovecot.so.0 |
946ce37d | 413 | %attr(755,root,root) %{_libdir}/%{name}/libdovecot-compression.so.0 |
283503bf | 414 | %attr(755,root,root) %{_libdir}/%{name}/libdovecot-dsync.so.0 |
c00d3702 | 415 | %attr(755,root,root) %{_libdir}/%{name}/libdovecot-fts.so.0 |
8e04a4c1 | 416 | %attr(755,root,root) %{_libdir}/%{name}/libdovecot-lda.so.0 |
6bde1f23 | 417 | %{?with_ldap:%attr(755,root,root) %{_libdir}/%{name}/libdovecot-ldap.so.0} |
8e04a4c1 | 418 | %attr(755,root,root) %{_libdir}/%{name}/libdovecot-login.so.0 |
6fca25bf | 419 | %attr(755,root,root) %{_libdir}/%{name}/libdovecot-lua.so.0 |
30b6d006 | 420 | %attr(755,root,root) %{_libdir}/%{name}/libdovecot-sql.so.0 |
8e04a4c1 | 421 | %attr(755,root,root) %{_libdir}/%{name}/libdovecot-storage.so.0 |
6fca25bf | 422 | %attr(755,root,root) %{_libdir}/%{name}/libdovecot-storage-lua.so.0 |
23beb95b JB |
423 | |
424 | %files devel | |
425 | %defattr(644,root,root,755) | |
426 | %attr(755,root,root) %{_libdir}/%{name}/libdovecot.so | |
427 | %attr(755,root,root) %{_libdir}/%{name}/libdovecot-compression.so | |
428 | %attr(755,root,root) %{_libdir}/%{name}/libdovecot-dsync.so | |
429 | %attr(755,root,root) %{_libdir}/%{name}/libdovecot-fts.so | |
430 | %attr(755,root,root) %{_libdir}/%{name}/libdovecot-lda.so | |
431 | %{?with_ldap:%attr(755,root,root) %{_libdir}/%{name}/libdovecot-ldap.so} | |
432 | %attr(755,root,root) %{_libdir}/%{name}/libdovecot-login.so | |
6fca25bf | 433 | %attr(755,root,root) %{_libdir}/%{name}/libdovecot-lua.so |
23beb95b JB |
434 | %attr(755,root,root) %{_libdir}/%{name}/libdovecot-sql.so |
435 | %attr(755,root,root) %{_libdir}/%{name}/libdovecot-storage.so | |
6fca25bf | 436 | %attr(755,root,root) %{_libdir}/%{name}/libdovecot-storage-lua.so |
23beb95b JB |
437 | %{_libdir}/%{name}/%{name}-config |
438 | %{_includedir}/%{name} | |
439 | %{_aclocaldir}/dovecot.m4 |