%bcond_without pgsql # without PostgreSQL map module
%bcond_without sasl # without SMTP AUTH support
%bcond_without ssl # without SSL/TLS support
-%bcond_without cdb # with cdb map support
-%bcond_with polish # with double English+Polish messages
+%bcond_without cdb # without cdb map support
+#%bcond_with polish # with double English+Polish messages
#
-%define _tls_ipv6_ver 1.20-pf-2.0.16
+# TODO:
+# - check/fix 'polish' bcond
+#
+%define _tls_ipv6_ver 1.25-pf-2.1.3
Summary: Postfix Mail Transport Agent
Summary(cs): Postfix - program pro pøepravu po¹ty (MTA)
Summary(es): Postfix - Un MTA (Mail Transport Agent) de alto desempeño
Summary(pt_BR): Postfix - Um MTA (Mail Transport Agent) de alto desempenho
Summary(sk): Agent prenosu po¹ty Postfix
Name: postfix
-Version: 2.0.18
-Release: 1.3
+Version: 2.1.3
+Release: 1
Epoch: 2
Group: Networking/Daemons
License: distributable
Source0: ftp://ftp.porcupine.org/mirrors/postfix-release/official/%{name}-%{version}.tar.gz
-# Source0-md5: 3e5baf2cc497a5fb1aaa6ba11aa6491e
+# Source0-md5: 1f515b0d80cd1f9db0113240bf36f248
Source1: %{name}.aliases
Source2: %{name}.cron
Source3: %{name}.init
Source7: ftp://ftp.corpit.ru/pub/postfix/%{name}-dict_cdb-1.1.11-20021104.tar.gz
# Source7-md5: 5731b5081725f4688dc6fae119d617e4
Source8: http://www.ipnet6.org/postfix/download/tls+ipv6-%{_tls_ipv6_ver}.patch.gz
-# Source8-md5: 9e26a2bb0cf36d6a9739c501ec26246a
+# Source8-md5: e013ff8d4aa49e17d7ee85419481cfc7
Patch0: %{name}-config.patch
Patch1: %{name}-conf_msg.patch
Patch2: %{name}-dynamicmaps.patch
-Patch3: %{name}-pgsql.patch
Patch4: %{name}-master.cf_cyrus.patch
-Patch5: %{name}-pl.patch
+#Patch5: %{name}-pl.patch
Patch6: %{name}-cdb_man.patch
-Patch7: %{name}-ns-mx-acl.patch
-Patch8: %{name}-kill_warnings.patch
-Patch9: %{name}-ipv6-kill_warnings.patch
+Patch8: %{name}-kill_warnings.patch
+Patch9: %{name}-ipv6-kill_warnings.patch
URL: http://www.postfix.org/
BuildRequires: awk
%{?with_sasl:BuildRequires: cyrus-sasl-devel}
BuildRequires: grep
BuildRequires: libinet6 >= 0.20030228-1
%{?with_mysql:BuildRequires: mysql-devel}
-%{?with_ldap:BuildRequires: openldap-devel >= 2.0.0}
-%{?with_ssl:BuildRequires: openssl-devel >= 0.9.7c}
+%{?with_ldap:BuildRequires: openldap-devel >= 2.2.0}
+%{?with_ssl:BuildRequires: openssl-devel >= 0.9.7d}
BuildRequires: pcre-devel
%{?with_pgsql:BuildRequires: postgresql-devel}
%{?with_cdb:BuildRequires: tinycdb-devel}
Obsoletes: courier
Obsoletes: exim
Obsoletes: masqmail
+Obsoletes: nullmailer
Obsoletes: omta
Obsoletes: qmail
Obsoletes: sendmail
Obsoletes: sendmail-doc
Obsoletes: smail
Obsoletes: smtpdaemon
+Obsoletes: ssmtp
Obsoletes: zmailer
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Postfix is attempt to provide an alternative to the widely-used
Summary: Postfix loadable modules development package
Summary(pl): Pakiet dla programistów ³adowanych modu³ów do postfiksa
Group: Development/Libraries
-Requires: %{name} = %{epoch}:%{version}
+Requires: %{name} = %{epoch}:%{version}-%{release}
%description devel
Header files to build additional map types for Postfix.
Summary: LDAP map support for Postfix
Summary(pl): Obs³uga map LDAP dla Postfiksa
Group: Networking/Daemons
-Requires: %{name} = %{epoch}:%{version}
-Requires: openldap >= 2.0.0
+Requires: %{name} = %{epoch}:%{version}-%{release}
+Requires: openldap >= 2.2.0
%description dict-ldap
This package provides support for LDAP maps in Postfix.
Summary: MySQL map support for Postfix
Summary(pl): Obs³uga map MySQL dla Postfiksa
Group: Networking/Daemons
-Requires: %{name} = %{epoch}:%{version}
+Requires: %{name} = %{epoch}:%{version}-%{release}
%description dict-mysql
This package provides support for MySQL maps in Postfix.
Summary: PCRE map support for Postfix
Summary(pl): Obs³uga map PCRE dla Postfiksa
Group: Networking/Daemons
-Requires: %{name} = %{epoch}:%{version}
+Requires: %{name} = %{epoch}:%{version}-%{release}
%description dict-pcre
This package provides support for PCRE maps in Postfix.
Summary: PostgreSQL map support for Postfix
Summary(pl): Obs³uga map PostgreSQL dla Postfiksa
Group: Networking/Daemons
-Requires: %{name} = %{epoch}:%{version}
+Requires: %{name} = %{epoch}:%{version}-%{release}
%description dict-pgsql
This package provides support for PostgreSQL maps in Postfix.
%patch0 -p1
%patch1 -p1
%patch2 -p1
-%patch3 -p1
%patch4 -p1
-%{?with_polish:%patch5 -p1}
+#%{?with_polish:%patch5 -p1}
%{?with_cdb:%patch6 -p1}
-%patch7 -p1
%patch8 -p1
%patch9 -p1
%{?with_cdb:sh dict_cdb.sh}
> $RPM_BUILD_ROOT/var/spool/postfix/.nofinger
+rm -rf /etc/mail/makedefs.out /usr/share/man/cat*
+
%clean
rm -rf $RPM_BUILD_ROOT
if ! grep -q "^myhostname" /etc/mail/main.cf; then
postconf -e myhostname=`/bin/hostname -f`
fi
+else
+ postfix upgrade-configuration
fi
newaliases
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mail/access
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mail/aliases
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mail/canonical
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mail/pcre_table
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mail/regexp_table
+#%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mail/pcre_table
+#%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mail/regexp_table
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mail/relocated
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mail/transport
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mail/virtual
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mail/header_checks
#%ghost %{_sysconfdir}/mail/*.db
%dir %{_sysconfdir}/mail
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mail/dynamicmaps.cf