]> git.pld-linux.org Git - packages/postfix.git/blobdiff - postfix.spec
- Builds and seems to work. Needs testing.
[packages/postfix.git] / postfix.spec
index 277d047835a3d9c38b7c03d0529fd157f30b839f..f7716bb8cda94fc8cdb65a2a199b713b793b340c 100644 (file)
@@ -5,10 +5,13 @@
 %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
@@ -17,13 +20,13 @@ Summary(pl):        Serwer SMTP Postfix
 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
@@ -32,17 +35,15 @@ Source6:    %{name}.sasl
 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}
@@ -50,8 +51,8 @@ BuildRequires:        db-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}
@@ -73,6 +74,7 @@ Provides:     smtpdaemon
 Obsoletes:     courier
 Obsoletes:     exim
 Obsoletes:     masqmail
+Obsoletes:     nullmailer
 Obsoletes:     omta
 Obsoletes:     qmail
 Obsoletes:     sendmail
@@ -80,8 +82,9 @@ Obsoletes:    sendmail-cf
 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
@@ -144,7 +147,7 @@ pop
 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.
@@ -156,8 +159,8 @@ Pliki nag
 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.
@@ -169,7 +172,7 @@ Ten pakiet dodaje obs
 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.
@@ -181,7 +184,7 @@ Ten pakiet dodaje obs
 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.
@@ -193,7 +196,7 @@ Ten pakiet dodaje obs
 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.
@@ -207,11 +210,9 @@ zcat %{SOURCE8} | patch -p1 -s
 %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}
@@ -270,6 +271,8 @@ touch $RPM_BUILD_ROOT%{_sysconfdir}/mail/\
 
 > $RPM_BUILD_ROOT/var/spool/postfix/.nofinger
 
+rm -rf /etc/mail/makedefs.out /usr/share/man/cat*
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -310,6 +313,8 @@ if [ "$1" = "1" ]; then
        if ! grep -q "^myhostname" /etc/mail/main.cf; then
                postconf -e myhostname=`/bin/hostname -f`
        fi
+else
+       postfix upgrade-configuration
 fi
 
 newaliases
@@ -351,11 +356,12 @@ mv -f /etc/mail/master.cf.rpmtmp /etc/mail/master.cf
 %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
This page took 0.097032 seconds and 4 git commands to generate.