%bcond_without theora # without theora support
%bcond_without win32 # without win32 codecs support
%bcond_without vdpau # disable vdpau
-%bcond_without vidix # disable vidix
%bcond_without vorbis # without Ogg-Vorbis audio support
%bcond_with system_vorbis # use system libvorbis instead of internal tremor
%bcond_without xvid # disable XviD codec
Summary(pt_BR.UTF-8): Reprodutor de filmes
Name: mplayer2
Version: 2.0
-Release: 13
+Release: 17
License: GPL
Group: Applications/Multimedia
Source0: http://ftp.mplayer2.org/pub/release/%{name}-build-%{version}.tar.xz
# Source0-md5: 05b93784de995235e2758f182de15f73
Patch0: format-security.patch
+Patch1: libdvdnav5.patch
URL: http://www.mplayer2.org/
BuildRequires: OpenAL-devel
BuildRequires: OpenGL-devel
BuildRequires: freetype-devel >= 2.0.9
BuildRequires: fribidi-devel
BuildRequires: tar >= 1:1.22
-%{?with_vidix:BuildRequires: vidix-devel}
%{?with_altivec:BuildRequires: gcc >= 5:4.1}
%{?with_gnomess:BuildRequires: dbus-glib-devel}
%{?with_gif:BuildRequires: giflib-devel}
%prep
%setup -q -n %{name}-build-%{version}
%patch0 -p1
+%patch1 -p1
# set ffmpeg options:
echo " --arch=%{_target_base_arch}" >>ffmpeg_options
echo " %{__disable x264}" >>mplayer_options
echo " %{?with_xmms:--enable-xmms --with-xmmsplugindir=%{_libdir}/xmms/Input --with-xmmslibdir=%{_libdir}}" >>mplayer_options
echo " %{__disable xvid}" >>mplayer_options
-echo " %{__disable vidix}" >>mplayer_options
echo " %{__disable vdpau}" >>mplayer_options
echo " %{__disable mencoder}" >>mplayer_options
echo " --enable-dga1" >>mplayer_options