]> git.pld-linux.org Git - packages/courier-imap.git/blobdiff - courier-imap.spec
- updated to 5.2.2
[packages/courier-imap.git] / courier-imap.spec
index fb9a050c6f9a597716f0d668e989d29f930810c8..943c76d2f4303a49ebcb1205c2de6c92b82a174e 100644 (file)
 Summary:       Courier-IMAP server
 Summary(pl.UTF-8):     Serwer Courier-IMAP
 Name:          courier-imap
-Version:       4.18.2
-Release:       2
+Version:       5.2.2
+Release:       1
 License:       GPL v3 with OpenSSL exception
 Group:         Networking/Daemons
-Source0:       http://downloads.sourceforge.net/courier/%{name}-%{version}.tar.bz2
-# Source0-md5: 6af3e78d3206518aab5510638cd620c2
+Source0:       https://downloads.sourceforge.net/courier/%{name}-%{version}.tar.bz2
+# Source0-md5: 7f210160a19ec973ea39d9ef32e25053
 Source1:       %{name}.init
 Source2:       %{name}-ssl.init
 Source3:       %{name}-pop3.init
@@ -36,17 +36,17 @@ Patch5:             %{name}-disable-courierlogger-check.patch
 URL:           http://www.courier-mta.org/imap/
 BuildRequires: autoconf >= 2.59
 BuildRequires: automake
-BuildRequires: courier-authlib-devel >= 0.61.0
+BuildRequires: courier-authlib-devel >= 0.71.0
 %{?with_socks:BuildRequires:   courier-sox-devel}
-BuildRequires: courier-unicode-devel >= 2.0
+BuildRequires: courier-unicode-devel >= 2.1
 BuildRequires: db-devel
-BuildRequires: libidn-devel >= 0.0.0
+BuildRequires: libidn2-devel >= 0.0.0
 %{?with_fam:BuildRequires:     gamin-devel}
 %{?with_gnutls:BuildRequires:  gnutls-devel >= 3.0}
 %{?with_gnutls:BuildRequires:  libgcrypt-devel}
 %{?with_gnutls:BuildRequires:  libgpg-error-devel}
 BuildRequires: libstdc++-devel
-BuildRequires: libtool >= 2:1.5
+BuildRequires: libtool >= 2:2
 %{!?with_gnutls:BuildRequires: openssl-devel >= 0.9.7d}
 BuildRequires: perl-base
 BuildRequires: pkgconfig
@@ -57,7 +57,7 @@ BuildRequires:        sysconftool
 Requires(post,preun):  /sbin/chkconfig
 Requires:      %{name}-common = %{version}-%{release}
 Requires:      /sbin/chkconfig
-Requires:      courier-unicode >= 2.0
+Requires:      courier-unicode >= 2.1
 Requires:      pam >= 0.79.0
 Requires:      rc-scripts
 Provides:      imapdaemon
@@ -84,9 +84,10 @@ Requires(post,preun):        /sbin/chkconfig
 Requires:      /sbin/chkconfig
 # even if using OpenSSL libraries, Courier uses certtool from GnuTLS
 Requires:      /usr/bin/certtool
-Requires:      courier-authlib >= 0.61.0
+Requires:      courier-authlib >= 0.71.0
 Requires:      procps
 Requires:      rc-scripts
+Conflicts:     maildrop < 3
 
 %description common
 Common files for imap and pop3 daemons.
@@ -186,6 +187,7 @@ done
        --with-db=db \
        %{?with_gnutls:--with-gnutls} \
        --with-mailer=/usr/lib/sendmail \
+       --with-notice=unicode \
        %{!?with_socks:--without-socks}
 
 %{__make} -j1
@@ -208,8 +210,6 @@ cp -p %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/pop3
 %{__rm} $RPM_BUILD_ROOT%{_sbindir}/mk{dhparams,imapdcert,pop3dcert}
 %{__mv} $RPM_BUILD_ROOT%{_datadir}/mk{dhparams,imapdcert,pop3dcert} $RPM_BUILD_ROOT%{_sbindir}
 
-cp -pf libs/imap/README README.imap
-
 # missing from make install
 cp -p libs/imap/courierpop3d.8 $RPM_BUILD_ROOT%{_mandir}/man8
 cp -p libs/tcpd/couriertls.1 $RPM_BUILD_ROOT%{_mandir}/man1
@@ -248,7 +248,8 @@ if [ "$1" = "0" ]; then
 fi
 
 
-%triggerin -- %{name} < 3.0.5
+%triggerin -- %{name} < 3.0.6
+# 3.0.5
 if [ -f /var/lib/openssl/certs/imapd.pem ]; then
        echo
        echo imapd.pem has been moved automatically to %{_certsdir}
@@ -274,7 +275,7 @@ if [ -f /etc/sysconfig/courier-imap ]; then
 fi
 %service -q courier-imap restart
 
-%triggerin -- %{name} < 3.0.6
+# 3.0.6
 . %{_sysconfdir}/imapd-ssl
 if [ $TLS_CACHEFILE = "/var/couriersslcache" ]; then
        sed -i s/^TLS_CACHEFILE=.*/"TLS_CACHEFILE=\/var\/spool\/courier-imap\/couriersslcache"/ %{_sysconfdir}/imapd-ssl
@@ -302,6 +303,12 @@ echo - config files has been split and moved to %{_sysconfdir}
 echo - certificates directory has changed to %{_certsdir}
 echo
 
+%triggerpostun common -- %{name}-common < 5
+%banner -e courier-imap-unicode <<EOF
+WARNING: you have to convert any existing maildirs to Unicode naming scheme.
+See INSTALL file for details.
+EOF
+
 %post pop3
 /sbin/chkconfig --add courier-pop3
 /sbin/chkconfig --add courier-pop3-ssl
@@ -322,7 +329,8 @@ if [ "$1" = "0" ]; then
        /sbin/chkconfig --del courier-pop3-ssl
 fi
 
-%triggerin -n %{name}-pop3 -- %{name}-pop3 < 3.0.5
+%triggerin -n %{name}-pop3 -- %{name}-pop3 < 3.0.6
+# 3.0.5
 if [ -f /var/lib/openssl/certs/pop3d.pem ]; then
        echo
        echo pop3d.pem has been moved automatically to %{_certsdir}
@@ -346,7 +354,7 @@ if [ -f /etc/sysconfig/courier-pop3 ]; then
 fi
 %service courier-pop3 restart
 
-%triggerin -n %{name}-pop3 -- %{name}-pop3 < 3.0.6
+# 3.0.6
 . %{_sysconfdir}/pop3d-ssl
 if [ $TLS_CACHEFILE = "/var/couriersslcache" ]; then
        sed -i s/^TLS_CACHEFILE=.*/"TLS_CACHEFILE=\/var\/spool\/courier-imap\/couriersslcache"/ %{_sysconfdir}/pop3d-ssl
@@ -383,7 +391,7 @@ fi
 
 %files common
 %defattr(644,root,root,755)
-%doc AUTHORS COPYING INSTALL NEWS README README.imap libs/imap/{BUGS,ChangeLog} libs/maildir/README.maildirquota.txt
+%doc AUTHORS COPYING INSTALL NEWS README libs/imap/{BUGS,ChangeLog} libs/maildir/README.maildirquota.txt
 %attr(751,root,root) %dir %{_sysconfdir}
 %attr(750,root,root) %dir %{_certsdir}
 %attr(770,daemon,daemon) %dir %{_localstatedir}
This page took 0.133014 seconds and 4 git commands to generate.