]> git.pld-linux.org Git - packages/cone.git/blobdiff - cone.spec
- disable tests (require working valgrind)
[packages/cone.git] / cone.spec
index 1be7342ea520cac7dcfdca6d6f140c0fc6779db8..0b921d5fa95555d918f7c9e847d042dc14782d3d 100644 (file)
--- a/cone.spec
+++ b/cone.spec
@@ -1,18 +1,18 @@
 #
 # Conditional build:
-%bcond_without tests   # "make check"
+%bcond_with    tests   # "make check" (requires operational valgrind, i.e. with glibc-debuginfo)
 %bcond_with    gnutls  # GnuTLS instead of OpenSSL
 %bcond_with    socks   # (Courier) Socks support
 
 Summary:       CONE - Console Newsreader and Emailer
 Summary(pl.UTF-8):     CONE - tekstowy klient poczty i czytnik newsów
 Name:          cone
-Version:       0.96.2
+Version:       1.8
 Release:       1
 License:       GPL v3 with OpenSSL exception
 Group:         Applications/Mail
-Source0:       http://downloads.sourceforge.net/courier/%{name}-%{version}.tar.bz2
-# Source0-md5: ea8925d531b43fd8ee36b0363434b1b8
+Source0:       https://downloads.sourceforge.net/courier/%{name}-%{version}.tar.bz2
+# Source0-md5: 3b5c398c693d6aa60ea90f4d19f0ac39
 Patch0:                %{name}-maildir.patch
 Patch1:                %{name}-curses.patch
 URL:           http://www.courier-mta.org/cone/
@@ -20,28 +20,32 @@ BuildRequires:      aspell-devel
 BuildRequires: autoconf >= 2.59
 BuildRequires: automake
 %{?with_socks:BuildRequires:   courier-sox-devel}
-BuildRequires: courier-unicode-devel >= 2.0
-BuildRequires: fam-devel
+BuildRequires: courier-unicode-devel >= 2.1
+BuildRequires: gettext-tools
 # or gnupg2 --with-gpg2, will use the same at runtime
 BuildRequires: gnupg
 %{?with_gnutls:BuildRequires:  gnutls-devel >= 3.0}
 %{?with_gnutls:BuildRequires:  libgcrypt-devel}
 %{?with_gnutls:BuildRequires:  libgpg-error-devel}
-BuildRequires: libidn-devel >= 0.0.0
+BuildRequires: libidn2-devel >= 0.0.0
 BuildRequires: libstdc++-devel
 BuildRequires: libtool >= 2:1.5
 BuildRequires: libxml2-devel >= 2.0
 BuildRequires: ncurses-devel >= 5
 BuildRequires: openldap-devel
 %{!?with_gnutls:BuildRequires: openssl-devel >= 0.9.7d}
-BuildRequires: pcre-devel
+BuildRequires: pcre2-8-devel
 BuildRequires: perl-base
 BuildRequires: pkgconfig
 BuildRequires: procps
 BuildRequires: sysconftool
+%{?with_tests:BuildRequires:   valgrind}
 BuildRequires: zlib-devel
 Requires:      ca-certificates
 Suggests:      gnupg
+Conflicts:     courier-imap < 5
+Conflicts:     courier-imapd < 1
+Conflicts:     maildrop < 3
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -58,7 +62,7 @@ Summary(pl.UTF-8):    Pliki nagłówkowe i biblioteka statyczna LibMAIL
 Group:         Development/Libraries
 Requires:      courier-unicode-devel >= 2.0
 %{?with_gnutls:Requires:       gnutls-devel >= 3.0}
-Requires:      libidn-devel >= 0.0.0
+Requires:      libidn2-devel >= 0.0.0
 Requires:      libstdc++-devel
 %{!?with_gnutls:Requires:      openssl-devel >= 0.9.7d}
 Obsoletes:     cone-static < 0.96
@@ -111,7 +115,8 @@ done
        SENDMAIL=/usr/lib/sendmail \
        --with-certdb=%{_sysconfdir}/certs/ca-certificates.crt \
        --with-devel \
-       %{?with_gnutls:--with-gnutls}
+       %{?with_gnutls:--with-gnutls} \
+       --with-notice=unicode
 
 %{__make}
 
@@ -134,6 +139,12 @@ install -d $RPM_BUILD_ROOT%{_docdir}/%{name}
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%triggerpostun -- %{name} < 1
+%banner -e cone-unicode <<EOF
+WARNING: you have to convert any existing maildirs to Unicode naming scheme.
+See INSTALL file for details.
+EOF
+
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS COPYING ChangeLog NEWS README
This page took 0.033257 seconds and 4 git commands to generate.