From 40e70751df302e7b8aac176194fb85338788bb34 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Tue, 22 Nov 2011 12:59:05 +0000 Subject: [PATCH] . OBS-URL: https://build.opensuse.org/package/show/server:mail/mutt?expand=0&rev=68 --- mutt-1.5.21-tinfo.dif | 19 +++++++++++++++++++ mutt.changes | 5 +++++ mutt.spec | 2 ++ 3 files changed, 26 insertions(+) create mode 100644 mutt-1.5.21-tinfo.dif diff --git a/mutt-1.5.21-tinfo.dif b/mutt-1.5.21-tinfo.dif new file mode 100644 index 0000000..459aca9 --- /dev/null +++ b/mutt-1.5.21-tinfo.dif @@ -0,0 +1,19 @@ +--- configure.ac ++++ configure.ac 2011-11-22 12:48:52.319147493 +0000 +@@ -274,9 +274,14 @@ main () + do + AC_CHECK_LIB($lib, waddnwstr, [cf_ncurses="$lib"; break]) + done ++ cf_tinfo="" ++ AC_CHECK_LIB(tinfo, tgetent, [cf_tinfo="tinfo"]) + AC_CHECK_LIB($cf_ncurses, initscr, +- [MUTTLIBS="$MUTTLIBS -l$cf_ncurses" +- ++ [if test x$cf_tinfo = x ; then ++ MUTTLIBS="$MUTTLIBS -l$cf_ncurses" ++ else ++ MUTTLIBS="$MUTTLIBS -l$cf_ncurses -l$cf_tinfo" ++ fi + if test "$cf_ncurses" = ncursesw; then + AC_CHECK_HEADERS(ncursesw/ncurses.h,[cf_cv_ncurses_header="ncursesw/ncurses.h"]) + else diff --git a/mutt.changes b/mutt.changes index a27a492..b4049aa 100644 --- a/mutt.changes +++ b/mutt.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Nov 22 12:58:28 UTC 2011 - werner@suse.de + +- Add patch to use libtinfo if available + ------------------------------------------------------------------- Tue Oct 25 22:17:13 CEST 2011 - vmiklos@vmiklos.hu diff --git a/mutt.spec b/mutt.spec index 7e0eadf..6cd0c9f 100644 --- a/mutt.spec +++ b/mutt.spec @@ -68,6 +68,7 @@ Patch8: mutt-1.5.21-opennfs.dif Patch9: mutt-1.5.20-gpgme_set_locale.patch Patch10: bug-676388-largefile.patch Patch11: nion.sidebar-color.diff +Patch12: mutt-1.5.21-tinfo.dif BuildRoot: %{_tmppath}/%{name}-%{version}-build %global _sysconfdir %{_sysconfdir} @@ -95,6 +96,7 @@ done %patch9 -p1 %patch10 -p1 %patch11 -p1 -b .sidebar.color +%patch12 -p0 -b .tinfo cp doc/Muttrc Muttrc.SuSE cp %{S:2} .