#
# Conditional build:
-%bcond_without ldap # without LDAP map module
-%bcond_without mysql # without MySQL map module
-%bcond_without pgsql # without PostgreSQL map module
-%bcond_without sqlite # without SQLite map module
-%bcond_without sasl # without SMTP AUTH support
-%bcond_without ssl # without SSL/TLS support
-%bcond_without cdb # without cdb map support
-%bcond_without lmdb # without lmdb map support
-%bcond_with vda # with VDA patch
-%bcond_with hir # with Beeth's header_if_reject patch
-%bcond_with tcp # with unofficial tcp: lookup table
+%bcond_without ldap # LDAP map module
+%bcond_without mysql # MySQL map module
+%bcond_without pgsql # PostgreSQL map module
+%bcond_without sqlite # SQLite map module
+%bcond_without sasl # SMTP AUTH support
+%bcond_without ssl # SSL/TLS support
+%bcond_without cdb # cdb map support
+%bcond_without lmdb # lmdb map support
+%bcond_with vda # VDA patch
+%bcond_with hir # Beeth's header_if_reject patch
+%bcond_with tcp # unofficial tcp: lookup table
%if "%{pld_release}" == "ac"
-%bcond_with epoll # enable epoll for 2.6 kernels
+%bcond_with epoll # epoll support for 2.6 kernels
# there didn't exist x86_64 2.4 kernel in PLD, so can safely enable epoll
%ifarch %{x8664}
%define with_epoll 1
%endif
%else
-%bcond_without epoll # disable epoll for 2.4 kernels
+%bcond_without epoll # epoll support (Linux >= 2.6)
%endif
%define vda_ver v13-2.10.0
Summary(pt_BR.UTF-8): Postfix - Um MTA (Mail Transport Agent) de alto desempenho
Summary(sk.UTF-8): Agent prenosu pošty Postfix
Name: postfix
-Version: 3.3.5
+Version: 3.6.8
Release: 1
Epoch: 2
-License: distributable
+License: IBM Public License or Eclipse Public License v2.0
Group: Networking/Daemons/SMTP
Source0: ftp://ftp.porcupine.org/mirrors/postfix-release/official/%{name}-%{version}.tar.gz
-# Source0-md5: fc2f0690a2acac94726ecb49192520aa
+# Source0-md5: d39b4666910ea4e4aeadd09bb1e1d2c4
Source1: %{name}.aliases
Source2: %{name}.cron
Source3: %{name}.init
# -ource11-md5: d46103195b43ec5784ea2c166b238f71
Source12: %{name}.service
Patch0: %{name}-config.patch
-Patch1: 80_glibc2.30-ftbfs.diff
Patch3: %{name}-master.cf_cyrus.patch
# from http://akson.sgh.waw.pl/~chopin/unix/postfix-2.1.5-header_if_reject.diff
Patch11: %{name}-scache_clnt.patch
Patch12: format-security.patch
+Patch13: glibc-2.34.patch
URL: http://www.postfix.org/
%{?with_sasl:BuildRequires: cyrus-sasl-devel}
BuildRequires: db-devel
# getifaddrs() with IPv6 support
BuildRequires: glibc-devel >= 6:2.3.4
BuildRequires: libicu-devel
-%{?with_lmbd:BuildRequires: lmdb-devel}
+BuildRequires: libnsl-devel
+BuildRequires: m4
+%{?with_lmdb:BuildRequires: lmdb-devel}
%{?with_mysql:BuildRequires: mysql-devel}
%{?with_ldap:BuildRequires: openldap-devel >= 2.0.12}
%{?with_ssl:BuildRequires: openssl-devel >= 0.9.7l}
cat %{SOURCE11} | %{__patch} -p1 -s
%endif
-find -type f | xargs sed -i -e 's|/etc/postfix|/etc/mail|g'
+find -type f | xargs %{__sed} -i -e 's|/etc/postfix|/etc/mail|g'
%patch0 -p1
-%patch1 -p1
%patch3 -p1
%{?with_hir:%patch4 -p0}
-sed -i '/scache_clnt_create/s/server/var_scache_service/' src/global/scache_clnt.c
+%{__sed} -i -e '/scache_clnt_create/s/server/var_scache_service/' src/global/scache_clnt.c
%patch7 -p1
%patch8 -p1
%if %{with vda}
%patch12 -p1
%endif
+%patch13 -p1
%if %{with tcp}
sed -i 's/ifdef SNAPSHOT/if 1/' src/util/dict_open.c
%endif
+%{__sed} -i -e 's,/lib64\>,/%{_lib},' makedefs
+
%build
# export, as the same variables must be passed both to 'make makefiles' and 'make'
export CCARGS="%{!?with_epoll:-DNO_EPOLL} %{?with_ldap:-DHAS_LDAP} -DHAS_PCRE %{?with_sasl:-DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl} %{?with_mysql:-DHAS_MYSQL -I/usr/include/mysql} %{?with_pgsql:-DHAS_PGSQL} %{?with_ssl:-DUSE_TLS} -DMAX_DYNAMIC_MAPS %{?with_cdb:-DHAS_CDB} %{?with_sqlite:-DHAS_SQLITE} %{?with_lmdb:-DHAS_LMDB} -LHAS_SDBM"
-export AUXLIBS="%{rpmldflags} -lsasl -lssl -lcrypto -ldb -lresolv"
+export AUXLIBS="%{rpmldflags} -lsasl -lssl -lcrypto"
export AUXLIBS_CDB="%{?with_cdb:-lcdb}"
export AUXLIBS_LDAP="%{?with_ldap:-lldap -llber}"
export AUXLIBS_LMDB="%{?with_lmdb:-llmdb}"
export CC="%{__cc}"
%{__make} makefiles \
- shared=yes dynamicmaps=yes \
+ shared=yes \
+ dynamicmaps=yes \
daemon_directory="%{_libdir}/postfix" \
shlib_directory="%{_libdir}/postfix" \
manpage_directory="%{_mandir}"
%attr(755,root,root) %{_libdir}/postfix/pipe
%attr(755,root,root) %{_libdir}/postfix/postfix-script
%attr(755,root,root) %{_libdir}/postfix/postfix-tls-script
+%attr(755,root,root) %{_libdir}/postfix/postlogd
%attr(755,root,root) %{_libdir}/postfix/postfix-wrapper
%attr(755,root,root) %{_libdir}/postfix/post-install
%attr(755,root,root) %{_libdir}/postfix/postmulti-script