--- /dev/null
+# ===========================================================================
+# http://www.gnu.org/software/autoconf-archive/ax_require_defined.html
+# ===========================================================================
+#
+# SYNOPSIS
+#
+# AX_REQUIRE_DEFINED(MACRO)
+#
+# DESCRIPTION
+#
+# AX_REQUIRE_DEFINED is a simple helper for making sure other macros have
+# been defined and thus are available for use. This avoids random issues
+# where a macro isn't expanded. Instead the configure script emits a
+# non-fatal:
+#
+# ./configure: line 1673: AX_CFLAGS_WARN_ALL: command not found
+#
+# It's like AC_REQUIRE except it doesn't expand the required macro.
+#
+# Here's an example:
+#
+# AX_REQUIRE_DEFINED([AX_CHECK_LINK_FLAG])
+#
+# LICENSE
+#
+# Copyright (c) 2014 Mike Frysinger <vapier@gentoo.org>
+#
+# Copying and distribution of this file, with or without modification, are
+# permitted in any medium without royalty provided the copyright notice
+# and this notice are preserved. This file is offered as-is, without any
+# warranty.
+
+#serial 1
+
+AC_DEFUN([AX_REQUIRE_DEFINED], [dnl
+ m4_ifndef([$1], [m4_fatal([macro ]$1[ is not defined; is a m4 file missing?])])
+])dnl AX_REQUIRE_DEFINED
+++ /dev/null
---- ncmpc-0.17/configure.ac~ 2010-07-15 04:03:15.000000000 +0200
-+++ ncmpc-0.17/configure.ac 2010-07-19 15:25:53.550308463 +0200
-@@ -98,7 +98,7 @@
-
- AC_CHECK_LIB([$ncurses],
- [initscr],
-- [LIBS="$LIBS -l$ncurses"],
-+ [LIBS="$LIBS -l$ncurses -ltinfo"],
- [AC_MSG_ERROR($ncurses library is required)])
-
- if test "x$ncurses" = "xncursesw"; then
Summary: Curses client for Music Player Daemon
Summary(pl.UTF-8): Klient curses dla demona MPD
Name: ncmpc
-Version: 0.18
-Release: 2
+Version: 0.24
+Release: 1
License: GPL v2+
Group: Applications/Sound
-Source0: http://downloads.sourceforge.net/musicpd/%{name}-%{version}.tar.bz2
-# Source0-md5: 9f07e8289b710c7c41b3c80ba73fed76
-Patch0: %{name}-tinfo.patch
+Source0: http://www.musicpd.org/download/ncmpc/0/%{name}-%{version}.tar.xz
+# Source0-md5: 0717193f38446780372f2a8907316362
+Source1: ax_require_defined.m4
URL: http://mpd.wikia.com/wiki/Client:Ncmpc
-BuildRequires: autoconf
-BuildRequires: automake
+BuildRequires: autoconf >= 2.60
+BuildRequires: automake >= 1:1.11
BuildRequires: gettext-devel
-BuildRequires: glib2-devel
-BuildRequires: libmpdclient-devel
-BuildRequires: libtool
-BuildRequires: ncurses-ext-devel
+BuildRequires: glib2-devel >= 1:2.14
+BuildRequires: libmpdclient-devel >= 2.5
+BuildRequires: ncurses-devel
BuildRequires: pkgconfig
-BuildRequires: rpm-pythonprov
Suggests: mpd
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%prep
%setup -q
-%patch0 -p1
+%{__cp} %{SOURCE1} m4
%build
-%{__libtoolize}
+%{__glib_gettextize}
%{__aclocal} -I m4
%{__autoconf}
%{__autoheader}
%{__automake}
%configure \
- CPPFLAGS="-I/usr/include/ncurses" \
+ --enable-artist-screen \
+ --enable-chat-screen \
+ --enable-colors \
+ --enable-help-screen \
+ --enable-key-screen \
+ --enable-locale \
--enable-lyrics-screen \
+ --enable-mouse \
+ --enable-outputs-screen \
+ --enable-search-screen \
+ --enable-song-screen \
--with-lyrics-plugin-dir=%{_libdir}/ncmpc/lyrics
%{__make}