Group: X11/Applications/Multimedia
Source0: http://downloads.sourceforge.net/deadbeef/%{name}-%{version}.tar.bz2
# Source0-md5: be8359d1bd9cf7679cf2ca748996e726
+Patch0: lm-missing-symbols.patch
URL: http://deadbeef.sourceforge.net/
BuildRequires: alsa-lib-devel
BuildRequires: curl-devel
%prep
%setup -q
+%patch0 -p1
%build
+%{__automake}
%configure \
--enable-gtkui \
--docdir=%{_docdir}/%{name}-%{version}
--- /dev/null
+diff -uNr deadbeef-0.5.1.old/plugins/ffmpeg/Makefile.am deadbeef-0.5.1/plugins/ffmpeg/Makefile.am
+--- deadbeef-0.5.1.old/plugins/ffmpeg/Makefile.am 2011-03-03 21:06:15.000000000 +0100
++++ deadbeef-0.5.1/plugins/ffmpeg/Makefile.am 2011-06-06 21:19:42.009745288 +0200
+@@ -4,6 +4,6 @@
+ ffmpeg_la_SOURCES = ffmpeg.c
+ ffmpeg_la_LDFLAGS = -module
+
+-ffmpeg_la_LIBADD = $(LDADD) $(FFMPEG_DEPS_LIBS)
++ffmpeg_la_LIBADD = $(LDADD) $(FFMPEG_DEPS_LIBS) -lm
+ AM_CFLAGS = $(CFLAGS) -std=c99 ${FFMPEG_DEPS_CFLAGS}
+ endif
+diff -uNr deadbeef-0.5.1.old/plugins/m3u/Makefile.am deadbeef-0.5.1/plugins/m3u/Makefile.am
+--- deadbeef-0.5.1.old/plugins/m3u/Makefile.am 2011-05-07 18:42:49.000000000 +0200
++++ deadbeef-0.5.1/plugins/m3u/Makefile.am 2011-06-06 21:19:24.463173681 +0200
+@@ -5,7 +5,7 @@
+
+ m3u_la_LDFLAGS = -module
+
+-m3u_la_LIBADD = $(LIBADD)
++m3u_la_LIBADD = $(LIBADD) -lm
+
+ m3u_la_CFLAGS = $(CFLAGS) -std=c99
+ endif