%bcond_without hiredis # without redis
# opendmarc.spec not ready, so off by default
%bcond_with dmarc # DMARC support
+%bcond_without lmdb # LMDB support
%if "%{pld_release}" == "ac"
# hiredis build segfaults on ac-alpha
Summary(pl.UTF-8): Agent Transferu Poczty Uniwersytetu w Cambridge
Summary(pt_BR.UTF-8): Servidor de correio eletrônico exim
Name: exim
-Version: 4.87
-Release: 3
+Version: 4.90
+Release: 2
Epoch: 2
License: GPL
Group: Networking/Daemons/SMTP
Source0: ftp://ftp.exim.org/pub/exim/exim4/%{name}-%{version}.tar.bz2
-# Source0-md5: 2effc2bd47ad2dc010f655c11a1b1173
+# Source0-md5: 29a14c4bd29b553c0dfc13036225ebdd
Source1: ftp://ftp.exim.org/pub/exim/exim4/%{name}-html-%{version}.tar.bz2
-# Source1-md5: f6ee36fd8d024912c053d113970938f5
+# Source1-md5: a728618fb641f4b9eb56deeefdb0cf67
Source2: %{name}.init
Source3: %{name}.cron.db
Source4: %{name}4.conf
# Source14-md5: 4b93321938a800caa6127c48ad60a42b
Source15: %{name}4-smtp.pamd
Source16: %{name}on.png
-# git log -p exim-4_87..exim-4_87+fixes --reverse -- . ":(exclude)doc/doc-*" ":(exclude)test" ":(exclude).*" > exim-git.patch
+# sh branch.sh
Patch100: %{name}-git.patch
+# Patch100-md5: 795a627f4c0f9d351c60772294626ee6
Patch0: %{name}4-EDITME.patch
Patch1: %{name}4-monitor-EDITME.patch
Patch2: %{name}4-cflags.patch
BuildRequires: db-devel
%{?with_dmarc:BuildRequires: opendmarc-devel}
%{?with_hiredis:BuildRequires: hiredis-devel}
+BuildRequires: libidn-devel
+BuildRequires: libidn2-devel
%{?with_spf:BuildRequires: libspf2-devel >= 1.2.5-2}
%{?with_srs:BuildRequires: libsrs_alt-devel >= 1.0}
+%{?with_lmdb:BuildRequires: lmdb-devel}
%{?with_mysql:BuildRequires: mysql-devel}
%{?with_ldap:BuildRequires: openldap-devel >= 2.3.0}
BuildRequires: openssl-devel >= 0.9.7d
%prep
%setup -q -a1 -a7
-#%patch100 -p2
+%patch100 -p2
%patch0 -p1
%patch1 -p1
EXPERIMENTAL_DCC=yes
EXPERIMENTAL_PRDR=yes
EXPERIMENTAL_DSN_INFO=yes
+EXPERIMENTAL_QUEUEFILE=yes
+SUPPORT_I18N=yes
+SUPPORT_I18N_2008=yes
+LDFLAGS+= -lidn -lidn2
SUPPORT_PROXY=yes
%if %{with dmarc}
EXPERIMENTAL_DMARC=yes
# for static
LOOKUP_LIBS+=-lldap -llber
%endif
+%if %{with lmdb}
+EXPERIMENTAL_LMDB=yes
+LOOKUP_LIBS+=-llmdb
+%endif
EOF
# have to be after Local/Makefile-Linux creation