commit f4fe18042c3140eaa05296194bd0ab6b3dad8c37
Author: leigh123linux <leigh123linux(a)googlemail.com>
Date: Fri Jan 19 11:21:49 2018 +0000
fix build with ffmpeg-3.5
ffmpeg35_buildfix.patch | 22 ++++++++++++++++++++++
pianobar.spec | 3 ++-
2 files changed, 24 insertions(+), 1 deletion(-)
---
diff --git a/ffmpeg35_buildfix.patch b/ffmpeg35_buildfix.patch
new file mode 100644
index 0000000..76bdf3b
--- /dev/null
+++ b/ffmpeg35_buildfix.patch
@@ -0,0 +1,22 @@
+--- a/src/player.h
++++ b/src/player.h
+@@ -34,7 +34,6 @@
+ #include <ao/ao.h>
+ #include <libavformat/avformat.h>
+ #include <libavfilter/avfilter.h>
+-#include <libavfilter/avfiltergraph.h>
+ #include <piano.h>
+
+ #include "settings.h"
+
+--- a/src/player.c
++++ b/src/player.c
+@@ -36,7 +36,6 @@
+ #include <libavcodec/avcodec.h>
+ #include <libavutil/avutil.h>
+ #include <libavfilter/avfilter.h>
+-#include <libavfilter/avfiltergraph.h>
+ #include <libavfilter/buffersink.h>
+ #include <libavfilter/buffersrc.h>
+ #ifdef HAVE_LIBAVFILTER_AVCODEC_H
+
diff --git a/pianobar.spec b/pianobar.spec
index 31d093f..f3755a8 100644
--- a/pianobar.spec
+++ b/pianobar.spec
@@ -6,6 +6,7 @@ Summary: Console-based client for Pandora
License: MIT
URL:
https://6xq.net/pianobar/
Source0: %url/%{name}-%{version}.tar.bz2
+Patch0: ffmpeg35_buildfix.patch
BuildRequires: gnutls-devel
BuildRequires: libao-devel
@@ -32,7 +33,7 @@ Features
%prep
-%autosetup
+%autosetup -p1
touch configure
chmod a+x configure