# Conditional build:
%bcond_without gssapi # without GSSAPI support
%bcond_without ldap # without LDAP auth
+%bcond_without lua # without Lua auth
%bcond_without mysql # without MySQL auth
%bcond_without pgsql # without PostgreSQL auth
%bcond_without sqlite # without SQLite3 auth
Summary: IMAP and POP3 server written with security primarily in mind
Summary(pl.UTF-8): Serwer IMAP i POP3 pisany głównie z myślą o bezpieczeństwie
Name: dovecot
-Version: 2.3.2.1
-Release: 1
+Version: 2.3.5
+Release: 2
Epoch: 1
License: MIT (libraries), LGPL v2.1 (the rest)
Group: Networking/Daemons
Source0: http://dovecot.org/releases/2.3/%{name}-%{version}.tar.gz
-# Source0-md5: 77a7fa95b38bd6686e6191b2b3f2b87b
+# Source0-md5: 825bdeb8d5d505c43dadecbdff12e816
Source1: %{name}.pamd
Source2: %{name}.init
Source3: %{name}.sysconfig
BuildRequires: libstemmer-devel
BuildRequires: libexttextcat-devel
BuildRequires: libtool
+%{?with_lua:BuildRequires: lua53-devel}
BuildRequires: lz4-devel
%{?with_mysql:BuildRequires: mysql-devel}
%{?with_ldap:BuildRequires: openldap-devel >= 2.3.3}
ac_cv_prog_VALGRIND=no \
CPPFLAGS="%{rpmcppflags} -I/usr/include/libstemmer -D_LINUX_QUOTA_VERSION=2" \
--disable-static \
+ --enable-hardening \
%{?debug:--enable-debug} \
%{?with_ldap:--with-ldap=yes} \
%{?with_mysql:--with-mysql} \
%{?with_pgsql:--with-pgsql} \
%{?with_sqlite:--with-sqlite} \
%{?with_gssapi:--with-gssapi=plugin} \
+ %{?with_lua:--with-lua=plugin} \
--with-lucene \
--with-stemmer \
--with-solr \