Accepting request 93100 from server:mail

- Add patch to use libtinfo if available

OBS-URL: https://build.opensuse.org/request/show/93100
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mutt?expand=0&rev=42
This commit is contained in:
Stephan Kulow 2011-11-23 18:36:59 +00:00 committed by Git OBS Bridge
commit 5cdd9b2c77
3 changed files with 26 additions and 0 deletions

19
mutt-1.5.21-tinfo.dif Normal file
View File

@ -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

View File

@ -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

View File

@ -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} .