File dovecot.spec of Package dovecot
#
# spec file for package dovecot
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define dovecot_branch 2.4
%define extversion %{version}-4
%bcond_without apparmor
%bcond_without argon
%bcond_without lz4
%bcond_without systemd
%bcond_without textcat
%bcond_without solr
%bcond_without dcrypt_openssl
%bcond_without icu
%bcond_without sqlite
%bcond_without lzma
%bcond_without zstd
%bcond_without flatcurve
Name: dovecot
Version: 2.4.1
Release: 0
Summary: IMAP and POP3 Server Written Primarily with Security in Mind
License: BSD-3-Clause AND LGPL-2.1-or-later AND MIT
Group: Productivity/Networking/Email/Servers
URL: https://www.dovecot.org
Source0: https://www.dovecot.org/releases/%{dovecot_branch}/%{name}-%{extversion}.tar.gz
Source1: https://www.dovecot.org/releases/%{dovecot_branch}/%{name}-%{extversion}.tar.gz.sig
Source2: https://pigeonhole.dovecot.org/releases/%{dovecot_branch}/%{name}-pigeonhole-%{extversion}.tar.gz
Source3: https://pigeonhole.dovecot.org/releases/%{dovecot_branch}/%{name}-pigeonhole-%{extversion}.tar.gz.sig
Source4: dovecot.keyring
Source5: dovecot-rpmlintrc
Source10: %{name}.pam
Source11: %{name}.tmpfiles.d
Source12: %{name}-user.conf
# PATCH-FIX-OPENSUSE
Patch1: dovecot-2.3.17-env_script_interpreter.patch
# PATCH-FIX-OPENSUSE - use lua-dkjson instead of lua-json
Patch2: dovecot-2.4.0-lua_json.patch
# PATCH-FIX-OPENSUSE
Patch3: dovecot-2.4.0-gethostbyname.patch
BuildRequires: bison
BuildRequires: fdupes
BuildRequires: flex
BuildRequires: libtool
BuildRequires: lua-dkjson
BuildRequires: pkgconfig
BuildRequires: rpcgen
BuildRequires: sysuser-tools
BuildRequires: tcpd-devel
BuildRequires: pkgconfig(bzip2)
BuildRequires: pkgconfig(krb5)
BuildRequires: pkgconfig(ldap)
BuildRequires: pkgconfig(libcap)
BuildRequires: pkgconfig(libpq)
BuildRequires: pkgconfig(libsasl2)
BuildRequires: pkgconfig(libunwind)
BuildRequires: pkgconfig(ldap) >= 2.6.8
BuildRequires: pkgconfig(lua)
BuildRequires: pkgconfig(mysqlclient)
BuildRequires: pkgconfig(openssl) >= 3
BuildRequires: pkgconfig(zlib)
%sysusers_requires
%if 0%{?suse_version} > 1500
BuildRequires: pkgconfig(pam)
%endif
%if %{with apparmor}
BuildRequires: pkgconfig(libapparmor)
%endif
%if %{with systemd}
BuildRequires: pkgconfig(systemd)
%{?systemd_ordering}
%endif
%if %{with icu}
BuildRequires: pkgconfig(icu-i18n)
%endif
%if %{with lzma}
BuildRequires: pkgconfig(liblzma)
%endif
%if %{with lz4}
BuildRequires: pkgconfig(liblz4)
%endif
%if %{with zstd}
BuildRequires: pkgconfig(libzstd)
%endif
%if %{with argon}
BuildRequires: pkgconfig(libsodium)
%endif
%if %{with solr}
BuildRequires: pkgconfig(expat)
BuildRequires: pkgconfig(libcurl)
%endif
%if %{with textcat}
BuildRequires: pkgconfig(libexttextcat)
%endif
%if %{with flatcurve}
BuildRequires: snowball-devel
BuildRequires: pkgconfig(xapian-core) >= 1.4
%endif
%if %{with sqlite}
BuildRequires: pkgconfig(sqlite3)
Recommends: %{name}-backend-sqlite = %{version}
%endif
%description
Dovecot is an IMAP and POP3 server for Linux and UNIX-like systems,
written primarily with security in mind. Although it is written in C,
it uses several coding techniques to avoid most of the common pitfalls.
Dovecot can work with standard mbox and maildir formats and is fully
compatible with UW-IMAP and Courier IMAP servers as well as mail
clients accessing the mailboxes directly.
%package backend-mysql
Summary: MySQL support for Dovecot
Group: Productivity/Networking/Email/Servers
Requires: %{name} = %{version}
Provides: dovecot-backend-mysql = %{version}-%{release}
Provides: dovecot_sql_backend = %{version}-%{release}
%description backend-mysql
Dovecot is an IMAP and POP3 server for Linux and UNIX-like systems,
written primarily with security in mind. Although it is written in C,
it uses several coding techniques to avoid most of the common pitfalls.
Dovecot can work with standard mbox and maildir formats and is fully
compatible with UW-IMAP and Courier IMAP servers as well as mail
clients accessing the mailboxes directly.
This package holds the files needed for MySQL support.
%package backend-pgsql
Summary: PostgreSQL support for Dovecot
Group: Productivity/Networking/Email/Servers
Requires: %{name} = %{version}
Provides: dovecot-backend-pgsql = %{version}-%{release}
Provides: dovecot_sql_backend = %{version}-%{release}
%description backend-pgsql
Dovecot is an IMAP and POP3 server for Linux and UNIX-like systems,
written primarily with security in mind. Although it is written in C,
it uses several coding techniques to avoid most of the common pitfalls.
Dovecot can work with standard mbox and maildir formats and is fully
compatible with UW-IMAP and Courier IMAP servers as well as mail
clients accessing the mailboxes directly.
This package holds the files needed for PostgreSQL support.
%if %{with sqlite}
%package backend-sqlite
Summary: SQLite support for Dovecot
Group: Productivity/Networking/Email/Servers
Requires: %{name} = %{version}
Provides: dovecot-backend-sqlite = %{version}-%{release}
Provides: dovecot_sql_backend = %{version}-%{release}
%description backend-sqlite
Dovecot is an IMAP and POP3 server for Linux and UNIX-like systems,
written primarily with security in mind. Although it is written in C,
it uses several coding techniques to avoid most of the common pitfalls.
Dovecot can work with standard mbox and maildir formats and is fully
compatible with UW-IMAP and Courier IMAP servers as well as mail
clients accessing the mailboxes directly.
This package holds the files needed for SQLite support.
%endif
%package fts
Summary: Fulltext search support base plugin
Group: Productivity/Networking/Email/Servers
Requires: %{name} = %{version}
%description fts
Dovecot is an IMAP and POP3 server for Linux and UNIX-like systems,
written primarily with security in mind. Although it is written in C,
it uses several coding techniques to avoid most of the common pitfalls.
Dovecot can work with standard mbox and maildir formats and is fully
compatible with UW-IMAP and Courier IMAP servers as well as mail
clients accessing the mailboxes directly.
This package holds the base plugin needed for fulltext search support
%if %{with solr}
%package fts-solr
Summary: Fulltext search support via solr
Group: Productivity/Networking/Email/Servers
Requires: %{name} = %{version}
Requires: %{name}-fts = %{version}
Provides: dovecot-fts-solr = %{version}-%{release}
Provides: dovecot_fts_backend = %{version}-%{release}
%description fts-solr
Dovecot is an IMAP and POP3 server for Linux and UNIX-like systems,
written primarily with security in mind. Although it is written in C,
it uses several coding techniques to avoid most of the common pitfalls.
Dovecot can work with standard mbox and maildir formats and is fully
compatible with UW-IMAP and Courier IMAP servers as well as mail
clients accessing the mailboxes directly.
This package holds the files needed for fulltext search support via solr.
%endif
%if %{with flatcurve}
%package fts-flatcurve
Summary: Fulltext search support via flatcurve
Group: Productivity/Networking/Email/Servers
Requires: %{name} = %{version}
Requires: %{name}-fts = %{version}
Provides: dovecot-fts-flatcurve = %{version}-%{release}
Provides: dovecot_fts_backend = %{version}-%{release}
%description fts-flatcurve
Dovecot is an IMAP and POP3 server for Linux and UNIX-like systems,
written primarily with security in mind. Although it is written in C,
it uses several coding techniques to avoid most of the common pitfalls.
Dovecot can work with standard mbox and maildir formats and is fully
compatible with UW-IMAP and Courier IMAP servers as well as mail
clients accessing the mailboxes directly.
This package holds the files needed for fulltext search support via flatcurve.
%endif
%package devel
Summary: Development files for Dovecot plugins
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Provides: dovecot-devel = %{version}-%{release}
%description devel
Dovecot is an IMAP and POP3 server for Linux and UNIX-like systems,
written primarily with security in mind. Although it is written in C,
it uses several coding techniques to avoid most of the common pitfalls.
Dovecot can work with standard mbox and maildir formats and is fully
compatible with UW-IMAP and Courier IMAP servers as well as mail
clients accessing the mailboxes directly.
This package holds the file needed to compile plugins outside of the
dovecot tree.
%prep
%autosetup -p1 -n %{name}-%{extversion} -a 2
%build
%if %{pkg_vcmp gettext-devel >= 0.24.1}
# see https://lists.gnu.org/archive/html/bug-gettext/2025-06/msg00009.html
autopoint -f
%endif
# Needed because there are patches in m4/nsl.m4
autoreconf -fi
# Create dovecot user
%sysusers_generate_pre %{SOURCE12} %{name} %{name}-user.conf
%configure \
--docdir=%{_docdir}/%{name} \
--with-moduledir=%{_libdir}/%{name}/modules \
--libexecdir=%{_prefix}/lib/ \
--with-ioloop=best \
--with-ldap=plugin \
--with-sql=plugin \
--with-gssapi=plugin \
--with-pgsql \
--with-mysql \
--with-lua=plugin \
--enable-experimental-mail-utf8 \
%if %{with apparmor}
--with-apparmor \
%endif
%if %{with sqlite}
--with-sqlite \
%endif
%if %{with textcat}
--with-textcat \
%endif
%if %{with icu}
--with-icu \
%endif
%if %{with solr}
--with-solr \
%endif
--with-ssl=openssl \
--with-zlib \
--with-bzlib \
%if %{with lzma}
--with-lzma \
%endif
%if %{with lz4}
--with-lz4 \
%endif
%if %{with zstd}
--with-zstd \
%endif
--with-libcap \
--with-libwrap \
--with-docs \
%if %{with systemd}
--with-systemdsystemunitdir=%{_unitdir} \
%endif
%if %{with flatcurve}
--with-flatcurve \
--with-stemmer \
%endif
--disable-static
%make_build
pushd %{name}-pigeonhole-%{extversion}
%configure \
--with-dovecot=../ \
--with-ldap=plugin \
--docdir="%{_docdir}/%{name}-pigeonhole"
%make_build
popd
%install
%make_install
%make_install -C %{name}-pigeonhole-%{extversion} sieve_docdir=%{_docdir}/%{name}-pigeonhole
# clean up unused files, as much as I would like to use -delete ... the old find on sles9 doesnt support it
find %{buildroot}%{_libdir}/%{name}/ -type f \
'(' -name \*.la -o -name \*.a ')' -print -delete
# create /var directories
install -m 0755 -Dd \
%{buildroot}%{_rundir}/%{name}/login/ \
%{buildroot}%{_var}/lib/%{name}/
# additional docs for the main package
install -m 0644 \
AUTHORS ChangeLog* COPYING* NEWS TODO README* \
%if %{with solr}
doc/*.xml \
%endif
%{buildroot}%{_docdir}/%{name}/
# install sieve docs
install -m 0755 -Dd %{buildroot}%{_docdir}/%{name}-pigeonhole
pushd %{name}-pigeonhole-%{extversion}
sed -i 's/\r$//' doc/rfc/*
cp -av AUTHORS COPYING* INSTALL NEWS README \
examples/ doc/rfc/ doc/devel \
%{buildroot}%{_docdir}/%{name}-pigeonhole/
rm %{buildroot}%{_docdir}/%{name}-pigeonhole/rfc/Makefile*
popd
# install default configuration
cp -na %{buildroot}%{_docdir}/%{name}/example-config/* %{buildroot}%{_sysconfdir}/%{name}/
chmod -x %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf
# install pam config
%if 0%{?suse_version} > 1500
install -D -p -m 0644 %{SOURCE10} %{buildroot}%{_pam_vendordir}/%{name}
%else
install -D -p -m 0644 %{SOURCE10} %{buildroot}%{_sysconfdir}/pam.d/%{name}
%endif
# create tempfiles
install -D -p -m 0644 %{SOURCE11} %{buildroot}%{_tmpfilesdir}/%{name}.conf
# create dovecot user
install -D -p -m 0644 %{SOURCE12} %{buildroot}%{_sysusersdir}/%{name}.conf
# create symlinks for man pages
%fdupes -s %{buildroot}/%{_mandir}
# create hardlinks for the rest
%fdupes %{buildroot}/%{_docdir}
%pre -f %{name}.pre
# remove !SSLv2 from ssl_protocols (no longer supported in openssl-1.1.0)
if grep -s -q "ssl_protocols .*!SSLv2" %{_sysconfdir}/dovecot/conf.d/10-ssl.conf; then
sed -i 's/^\(ssl_protocols.*\)[[:blank:]]!SSLv2\(.*\)$/\1\2/g' %{_sysconfdir}/dovecot/conf.d/10-ssl.conf
fi
%service_add_pre %{name}.service %{name}.socket
%if 0%{?suse_version} > 1500
# Prepare for migration to /usr/etc; save any old .rpmsave
for i in pam.d/%{name} ; do
test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave %{_sysconfdir}/${i}.rpmsave.old || :
done
%endif
%check
%make_build check
%make_build -C %{name}-pigeonhole-%{extversion} test
%preun
%service_del_preun %{name}.service %{name}.socket
%if 0%{?suse_version} > 1500
%posttrans
# Migration to /usr/etc, restore just created .rpmsave
for i in pam.d/%{name} ; do
test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave %{_sysconfdir}/${i} || :
done
%endif
%post
%{ldconfig}
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
%service_add_post %{name}.service %{name}.socket
%postun
%{ldconfig}
%service_del_postun %{name}.service %{name}.socket
%files
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/*
%if 0%{?suse_version} > 1500
%{_pam_vendordir}/%{name}
%else
%config(noreplace) %{_sysconfdir}/pam.d/%{name}
%endif
%{_sysusersdir}/%{name}.conf
%{_tmpfilesdir}/%{name}.conf
%{_unitdir}/%{name}.service
%{_unitdir}/%{name}.socket
%{_sbindir}/%{name}
%{_bindir}/doveadm
%{_bindir}/doveconf
%{_bindir}/dovecot-sysreport
%{_bindir}/sieve-test
%{_bindir}/sievec
%{_bindir}/sieve-dump
%{_bindir}/sieve-filter
# subprocesses
%dir %{_prefix}/lib/%{name}
%{_prefix}/lib/%{name}/anvil
%{_prefix}/lib/%{name}/auth
%{_prefix}/lib/%{name}/config
%{_prefix}/lib/%{name}/decode2text.sh
%{_prefix}/lib/%{name}/deliver
%{_prefix}/lib/%{name}/dict
%{_prefix}/lib/%{name}/dict-expire
%{_prefix}/lib/%{name}/dns-client
%{_prefix}/lib/%{name}/doveadm-server
%{_prefix}/lib/%{name}/dovecot-lda
%{_prefix}/lib/%{name}/gdbhelper
%{_prefix}/lib/%{name}/health-check.sh
%{_prefix}/lib/%{name}/imap
%{_prefix}/lib/%{name}/imap-hibernate
%{_prefix}/lib/%{name}/imap-login
%{_prefix}/lib/%{name}/imap-urlauth
%{_prefix}/lib/%{name}/imap-urlauth-login
%{_prefix}/lib/%{name}/imap-urlauth-worker
%{_prefix}/lib/%{name}/indexer
%{_prefix}/lib/%{name}/indexer-worker
%{_prefix}/lib/%{name}/lmtp
%{_prefix}/lib/%{name}/log
%{_prefix}/lib/%{name}/managesieve
%{_prefix}/lib/%{name}/managesieve-login
%{_prefix}/lib/%{name}/pop3
%{_prefix}/lib/%{name}/pop3-login
%{_prefix}/lib/%{name}/quota-status
%{_prefix}/lib/%{name}/rawlog
%{_prefix}/lib/%{name}/script
%{_prefix}/lib/%{name}/script-login
%{_prefix}/lib/%{name}/stats
%{_prefix}/lib/%{name}/submission
%{_prefix}/lib/%{name}/submission-login
%{_prefix}/lib/%{name}/xml2text
%{_libdir}/%{name}/libdovecot.so.*
%{_libdir}/%{name}/libdovecot-compression.so.*
%{_libdir}/%{name}/libdovecot-dsync.so.*
%{_libdir}/%{name}/libdovecot-language.so.*
%{_libdir}/%{name}/libdovecot-lda.so.*
%{_libdir}/%{name}/libdovecot-ldap.so.*
%{_libdir}/%{name}/libdovecot-login.so.*
%{_libdir}/%{name}/libdovecot-lua.so.*
%{_libdir}/%{name}/libdovecot-managesieve.so.*
%{_libdir}/%{name}/libdovecot-sieve.so.*
%{_libdir}/%{name}/libdovecot-sql.so.*
%{_libdir}/%{name}/libdovecot-storage.so.*
%{_libdir}/%{name}/libdovecot-storage-lua.so.*
# plugins
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/modules/
%{_libdir}/%{name}/modules/lib01_acl_plugin.so
%if %{with apparmor}
%{_libdir}/%{name}/modules/lib01_apparmor_plugin.so
%endif
%{_libdir}/%{name}/modules/lib02_lazy_expunge_plugin.so
%{_libdir}/%{name}/modules/lib05_mail_crypt_acl_plugin.so
%{_libdir}/%{name}/modules/lib05_pop3_migration_plugin.so
%{_libdir}/%{name}/modules/lib10_last_login_plugin.so
%{_libdir}/%{name}/modules/lib01_mail_lua_plugin.so
%{_libdir}/%{name}/modules/lib10_mail_crypt_plugin.so
%{_libdir}/%{name}/modules/lib10_quota_plugin.so
%{_libdir}/%{name}/modules/lib11_trash_plugin.so
%{_libdir}/%{name}/modules/lib15_notify_plugin.so
%{_libdir}/%{name}/modules/lib20_mail_compress_plugin.so
%{_libdir}/%{name}/modules/lib20_mail_log_plugin.so
%{_libdir}/%{name}/modules/lib20_notify_status_plugin.so
%{_libdir}/%{name}/modules/lib20_charset_alias_plugin.so
%{_libdir}/%{name}/modules/lib20_push_notification_plugin.so
%{_libdir}/%{name}/modules/lib20_quota_clone_plugin.so
%{_libdir}/%{name}/modules/lib20_virtual_plugin.so
%{_libdir}/%{name}/modules/lib22_push_notification_lua_plugin.so
%{_libdir}/%{name}/modules/lib02_imap_acl_plugin.so
%{_libdir}/%{name}/modules/lib11_imap_quota_plugin.so
%{_libdir}/%{name}/modules/lib90_sieve_plugin.so
%{_libdir}/%{name}/modules/lib95_imap_sieve_plugin.so
%{_libdir}/%{name}/modules/lib95_imap_filter_sieve_plugin.so
%{_libdir}/%{name}/modules/lib99_welcome_plugin.so
%if %{with dcrypt_openssl}
%{_libdir}/%{name}/modules/libdcrypt_openssl.so
%endif
%{_libdir}/%{name}/modules/libfs_compress.so
%{_libdir}/%{name}/modules/libfs_crypt.so
%{_libdir}/%{name}/modules/libssl_iostream_openssl.so
%{_libdir}/%{name}/modules/var_expand_crypt.so
#
%dir %{_libdir}/%{name}/modules/auth/
%{_libdir}/%{name}/modules/auth/libauthdb_imap.so
%{_libdir}/%{name}/modules/auth/libauthdb_ldap.so
%{_libdir}/%{name}/modules/auth/libauthdb_lua.so
%{_libdir}/%{name}/modules/auth/libmech_gssapi.so
%dir %{_libdir}/%{name}/modules/dict/
%{_libdir}/%{name}/modules/dict/libdict_ldap.so
# more dict modules are in the sql packages
#
%dir %{_libdir}/%{name}/modules/doveadm
%{_libdir}/%{name}/modules/doveadm/libdoveadm_mail_crypt_plugin.so
%{_libdir}/%{name}/modules/doveadm/lib10_doveadm_acl_plugin.so
%{_libdir}/%{name}/modules/doveadm/lib10_doveadm_quota_plugin.so*
%{_libdir}/%{name}/modules/doveadm/lib10_doveadm_sieve_plugin.so
#
%dir %{_libdir}/%{name}/modules/settings/
%{_libdir}/%{name}/modules/settings/libpigeonhole_settings.so
%{_libdir}/%{name}/modules/settings/libmanagesieve_login_settings.so
%{_libdir}/%{name}/modules/settings/libmanagesieve_settings.so
#
%dir %{_libdir}/%{name}/modules/sieve
%{_libdir}/%{name}/modules/sieve/lib10_sieve_storage_ldap_plugin.so
%{_libdir}/%{name}/modules/sieve/lib90_sieve_extprograms_plugin.so
%{_libdir}/%{name}/modules/sieve/lib90_sieve_imapsieve_plugin.so
# doc
%{_docdir}/%{name}
%{_docdir}/%{name}-pigeonhole
%{_mandir}/man1/deliver.1%{?ext_man}
%{_mandir}/man1/doveadm*.1%{?ext_man}
%{_mandir}/man1/doveconf.1%{?ext_man}
%{_mandir}/man1/dovecot*.1%{?ext_man}
%{_mandir}/man1/sieve-dump.1%{?ext_man}
%{_mandir}/man1/sieve-filter.1%{?ext_man}
%{_mandir}/man1/sieve-test.1%{?ext_man}
%{_mandir}/man1/sievec.1%{?ext_man}
%{_mandir}/man1/sieved.1%{?ext_man}
%{_mandir}/man7/doveadm*.7%{?ext_man}
%{_mandir}/man7/pigeonhole.7%{?ext_man}
%if %{with solr}
%exclude %{_docdir}/%{name}/solr-*.xml
%endif
# setting up permissions
%dir %attr(0750,root,root) %{_var}/lib/%{name}/
%ghost %{_rundir}/%{name}/
%ghost %{_rundir}/%{name}/login/
%files fts
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/stopwords
%{_datadir}/%{name}/stopwords/*.txt
%{_libdir}/%{name}/modules/doveadm/lib20_doveadm_fts_plugin.so
%{_libdir}/%{name}/modules/lib20_fts_plugin.so
%files backend-mysql
%{_libdir}/%{name}/modules/libdriver_mysql.so
%{_libdir}/%{name}/modules/auth/libdriver_mysql.so
%{_libdir}/%{name}/modules/dict/libdriver_mysql.so
%files backend-pgsql
%{_libdir}/%{name}/modules/libdriver_pgsql.so
%{_libdir}/%{name}/modules/auth/libdriver_pgsql.so
%{_libdir}/%{name}/modules/dict/libdriver_pgsql.so
%if %{with sqlite}
%files backend-sqlite
%{_libdir}/%{name}/modules/libdriver_sqlite.so
%{_libdir}/%{name}/modules/auth/libdriver_sqlite.so
%{_libdir}/%{name}/modules/dict/libdriver_sqlite.so
%endif
%if %{with solr}
%files fts-solr
%{_libdir}/%{name}/modules/lib21_fts_solr_plugin.so
%{_docdir}/%{name}/solr-*.xml
%endif
%if %{with flatcurve}
%files fts-flatcurve
%{_libdir}/%{name}/modules/lib21_fts_flatcurve_plugin.so
%{_libdir}/%{name}/modules/doveadm/libdoveadm_fts_flatcurve_plugin.so
%endif
%files devel
%{_datadir}/aclocal/%{name}.m4
%{_datadir}/aclocal/dovecot-pigeonhole.m4
%{_includedir}/%{name}/
%{_libdir}/%{name}/dovecot-config
%{_libdir}/%{name}/libdovecot.so
%{_libdir}/%{name}/libdovecot-compression.so
%{_libdir}/%{name}/libdovecot-dsync.so
%{_libdir}/%{name}/libdovecot-language.so
%{_libdir}/%{name}/libdovecot-lda.so
%{_libdir}/%{name}/libdovecot-ldap.so
%{_libdir}/%{name}/libdovecot-login.so
%{_libdir}/%{name}/libdovecot-lua.so
%{_libdir}/%{name}/libdovecot-managesieve.so
%{_libdir}/%{name}/libdovecot-sieve.so
%{_libdir}/%{name}/libdovecot-sql.so
%{_libdir}/%{name}/libdovecot-storage.so
%{_libdir}/%{name}/libdovecot-storage-lua.so
%changelog