+++ /dev/null
-Fix build with FFmpeg 2.0.
-
-Upstream status: Better patch sent and merged upstream.
-
-Index: mpd-0.17.4/src/decoder/ffmpeg_decoder_plugin.c
-===================================================================
---- mpd-0.17.4.orig/src/decoder/ffmpeg_decoder_plugin.c
-+++ mpd-0.17.4/src/decoder/ffmpeg_decoder_plugin.c
-@@ -47,6 +47,10 @@
- #undef G_LOG_DOMAIN
- #define G_LOG_DOMAIN "ffmpeg"
-
-+#ifndef AVCODEC_MAX_AUDIO_FRAME_SIZE
-+#define AVCODEC_MAX_AUDIO_FRAME_SIZE 192000 // 1 second of 48khz 32bit audio
-+#endif
-+
- static GLogLevelFlags
- level_ffmpeg_to_glib(int level)
- {
--- /dev/null
+diff -urN mpd-0.18.2.orig/configure.ac mpd-0.18.2/configure.ac
+--- mpd-0.18.2.orig/configure.ac 2013-11-08 12:10:16.943635089 +0100
++++ mpd-0.18.2/configure.ac 2013-11-08 12:13:13.986976726 +0100
+@@ -957,7 +957,7 @@
+
+ dnl --------------------------------- musepack --------------------------------
+
+-MPD_AUTO_LIB(mpc, MPCDEC, mpcdec, main, [-lmpcdec], [],
++MPD_AUTO_LIB(mpc, MPCDEC, mpcdecsv8, main, [-lmpcdecsv8], [],
+ [mpcdec], [libmpcdec not found])
+ if test x$enable_mpc = xyes; then
+ AC_DEFINE(HAVE_MPCDEC, 1, [Define to use libmpcdec for MPC decoding])
Summary(hu.UTF-8): Music Player Daemon
Summary(pl.UTF-8): Music Player Daemon - demon odtwarzajÄ…cy muzykÄ™
Name: mpd
-Version: 0.17.6
+Version: 0.18.3
Release: 1
License: GPL v2+
Group: Applications/Multimedia
-Source0: http://www.musicpd.org/download/mpd/0.17/%{name}-%{version}.tar.xz
-# Source0-md5: d0da6a6a1d9cf1e8710b6082f6ef7849
+Source0: http://www.musicpd.org/download/mpd/0.18/%{name}-%{version}.tar.xz
+# Source0-md5: 7e6b823465c69a3e963c72096dfec636
Source1: %{name}.conf
Source2: %{name}.init
Source3: %{name}.sysconfig
Source4: %{name}.tmpfiles
Patch0: %{name}-cdio.patch
-Patch1: %{name}-ffmpeg2.patch
+Patch1: %{name}-mpcsv8.patch
URL: http://www.musicpd.org/
BuildRequires: OpenAL-devel
BuildRequires: alsa-lib-devel >= 0.9.0
%{?with_audiofile:BuildRequires: audiofile-devel >= 0.1.7}
+BuildRequires: autoconf >= 2.60
BuildRequires: avahi-glib-devel
BuildRequires: bzip2-devel
BuildRequires: curl-devel
%{?with_mod:BuildRequires: libmikmod-devel >= 3.1.7}
BuildRequires: libmms-devel
BuildRequires: libmodplug-devel
-BuildRequires: libmpcdec-devel
BuildRequires: libogg-devel
BuildRequires: libsamplerate-devel >= 0.0.15
BuildRequires: libshout-devel
BuildRequires: libsidplay2-devel >= 2.1.1-5
BuildRequires: libvorbis-devel
+BuildRequires: musepack-devel
BuildRequires: pkgconfig >= 1:0.9.0
%{?with_pulseaudio:BuildRequires: pulseaudio-devel}
BuildRequires: rpmbuild(macros) >= 1.629-2
%patch1 -p1
%build
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
# ac_cv_* hacks to avoid unwanted linking
GME_CFLAGS="-I/usr/include/gme" GME_LIBS="-lgme" \
%configure \