diff --git a/parted-2.4-ncursesw6.patch b/parted-2.4-ncursesw6.patch new file mode 100644 index 0000000..54cbfb2 --- /dev/null +++ b/parted-2.4-ncursesw6.patch @@ -0,0 +1,21 @@ +--- configure.ac.orig ++++ configure.ac +@@ -178,7 +178,8 @@ AM_CPPFLAGS="$AM_CPPFLAGS -D_REENTRANT" + + dnl Check for programs. + AC_ISC_POSIX +-AC_PROG_CC ++AC_PROG_CC_STDC ++AC_USE_SYSTEM_EXTENSIONS + AC_PROG_GCC_TRADITIONAL + AM_PROG_CC_C_O + +@@ -384,7 +385,7 @@ dnl Check for termcap + if test "$with_readline" = yes; then + OLD_LIBS="$LIBS" + LIBS="" +- AC_SEARCH_LIBS([tgetent], [tinfo ncurses curses termcap termlib], ++ AC_SEARCH_LIBS([tgetent], [tinfo ncursesw curses termcap termlib], + [PARTED_LIBS="$PARTED_LIBS $LIBS"], + [AC_MSG_ERROR(dnl + [termcap could not be found which is required for the diff --git a/parted.changes b/parted.changes index 6e1add1..fe9ce39 100644 --- a/parted.changes +++ b/parted.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Jul 31 01:50:07 UTC 2011 - crrodriguez@opensuse.org + +- Use ncursesw6 instead of plain-old ncurses5 +- Disable automake silent rules + ------------------------------------------------------------------- Thu May 19 13:05:08 UTC 2011 - puzel@novell.com diff --git a/parted.spec b/parted.spec index e616227..6107f6d 100644 --- a/parted.spec +++ b/parted.spec @@ -39,7 +39,7 @@ Patch10: fix-dm-partition-name.patch Patch11: do-not-create-dm-nodes.patch #PATCH-FEATURE-OPENSUSE more-reliable-informing-the-kernel.patch bnc#657360 petr.uzel@suse.cz Patch12: more-reliable-informing-the-kernel.patch - +Patch13: parted-2.4-ncursesw6.patch Requires: /sbin/udevadm BuildRequires: check-devel BuildRequires: device-mapper-devel >= 1.02.33 @@ -102,15 +102,18 @@ to develop applications that require these. %patch10 -p1 %patch11 -p1 %patch12 -p1 - +%patch13 %build +export CFLAGS="%{optflags} `ncursesw6-config --cflags`" +export LDFLAGS="`ncursesw6-config --libs`" AUTOPOINT=true autoreconf --force --install %configure --disable-static \ --with-pic \ --enable-device-mapper=yes \ --enable-dynamic-loading=no \ --enable-selinux \ - --disable-Werror + --disable-Werror \ + --disable-silent-rules make %{?_smp_mflags} %install