]> git.pld-linux.org Git - packages/moc.git/commitdiff
- up to 2.5.0 auto/th/moc-2.5.0-1
authorJan Rękorajski <baggins@pld-linux.org>
Fri, 1 Apr 2016 14:00:12 +0000 (23:00 +0900)
committerJan Rękorajski <baggins@pld-linux.org>
Fri, 1 Apr 2016 14:00:12 +0000 (23:00 +0900)
- fixed build with ffmpeg 3

ffmpeg3.patch [new file with mode: 0644]
moc.spec

diff --git a/ffmpeg3.patch b/ffmpeg3.patch
new file mode 100644 (file)
index 0000000..c93cf46
--- /dev/null
@@ -0,0 +1,13 @@
+diff -ur moc-2.5.0.orig/decoder_plugins/ffmpeg/ffmpeg.c moc-2.5.0/decoder_plugins/ffmpeg/ffmpeg.c
+--- moc-2.5.0.orig/decoder_plugins/ffmpeg/ffmpeg.c     2014-08-30 11:32:27.000000000 +0900
++++ moc-2.5.0/decoder_plugins/ffmpeg/ffmpeg.c  2016-04-01 22:57:20.111650802 +0900
+@@ -66,9 +66,6 @@
+ #include <libavformat/avformat.h>
+ GCC_DIAG_ON(deprecated-declarations)
+ #include <libavutil/mathematics.h>
+-#ifdef HAVE_AV_GET_CHANNEL_LAYOUT_NB_CHANNELS
+-#include <libavutil/audioconvert.h>
+-#endif
+ #else
+ #include <ffmpeg/avformat.h>
+ #endif
index 9fdb51d54ec2ba589ee165a1df8422335b37d3bb..374dd0363b96e8ee2827df71606c638382804cce 100644 (file)
--- a/moc.spec
+++ b/moc.spec
@@ -3,20 +3,18 @@
 %bcond_with    home_etc    # enable HOME_ETC support
 %bcond_without ffmpeg      # disable ffmpeg
 
-%define        subver  beta1
-%define        rel             5
 Summary:       Console audio player with simple ncurses interface
 Summary(hu.UTF-8):     Konzolos audiólejátszó egyszerű ncurses felülettel
 Summary(pl.UTF-8):     Konsolowy odtwarzacz audio z prostym interfejsem ncurses
 Name:          moc
 Version:       2.5.0
-Release:       0.%{subver}.%{rel}
+Release:       1
 License:       GPL
 Group:         Applications/Sound
-#Source0:      ftp://ftp.daper.net/pub/soft/moc/stable/%{name}-%{version}.tar.bz2
-Source0:       ftp://ftp.daper.net/pub/soft/moc/unstable/%{name}-%{version}-%{subver}.tar.bz2
-# Source0-md5: 795ecba86847e082aa2f21937cc04804
+Source0:       http://ftp.daper.net/pub/soft/moc/stable/%{name}-%{version}.tar.bz2
+# Source0-md5: 18e3a979b67091bfee4b62217908c473
 Patch0:                %{name}-home_etc.patch
+Patch1:                ffmpeg3.patch
 URL:           http://moc.daper.net/
 BuildRequires: a52dec-libs-devel
 BuildRequires: alsa-lib-devel
@@ -267,8 +265,9 @@ Ten pakiet zapewnia dekodowanie formatu WavPack. Po zainstalowaniu
 należy uruchomić ponownie MOC.
 
 %prep
-%setup -q -n %{name}-%{version}-%{subver}
+%setup -q
 %{?with_home_etc:%patch0 -p1}
+%patch1 -p1
 
 rm -rf libltdl
 %{__sed} -i -e '/SUBDIRS/ s/libltdl//' Makefile.am
This page took 0.175582 seconds and 4 git commands to generate.