%bcond_without directfb # directfb video output plugin
%bcond_without dv # dv access plugins
%bcond_with fdk_aac # FDK-AAC encoder plugin (GPL 3 incompatible; enable as subpackage?)
+%bcond_with freerdp # RDP/Remote Desktop client support
%bcond_with glesv1 # OpenGL ES v1 support
%bcond_with glesv2 # OpenGL ES v2 support
%bcond_without gnomevfs # gnomevfs access plugin
Summary: VLC - a multimedia player and stream server
Summary(pl.UTF-8): VLC - odtwarzacz multimedialny oraz serwer strumieni
Name: vlc
-Version: 2.2.1
+Version: 2.2.4
Release: 3
License: GPL v2+
Group: X11/Applications/Multimedia
Source0: http://download.videolan.org/pub/videolan/vlc/%{version}/%{name}-%{version}.tar.xz
-# Source0-md5: 42273945758b521c408fabc7fd6d9946
+# Source0-md5: 55666c9898f658c7fcca12725bf7dd1b
Patch0: %{name}-buildflags.patch
Patch1: %{name}-tremor.patch
Patch2: %{name}-system-minizip.patch
Patch3: xmas-sucks.patch
-
-Patch7: no-cache.patch
+Patch4: ffmpeg3.patch
+Patch5: no-cache.patch
URL: http://www.videolan.org/vlc/
%{?with_directfb:BuildRequires: DirectFB-devel}
# 1.0 for X11 or GLESv1, 1.1 for GLESv2
BuildRequires: flac-devel >= 1.1.3
BuildRequires: fluidsynth-devel >= 1.1.2
BuildRequires: fontconfig-devel
-BuildRequires: freerdp-devel >= 1.0.1
+%{?with_freerdp:BuildRequires: freerdp-devel >= 1.0.1}
BuildRequires: freetype-devel >= 2
BuildRequires: fribidi-devel
BuildRequires: game-music-emu-devel
%if %{without xmas}
%patch3 -p1
%endif
-
-%patch7 -p1
+%patch4 -p1
+%patch5 -p1
sed -i -e 's#Qt5#WANT_QT4#g' configure.ac
%{?with_fdk_aac:--enable-fdkaac} \
--enable-faad \
--enable-flac \
+ %{?with_freerdp:--enable-freerdp}%{!?with_freerdp:--disable-freerdp} \
--enable-freetype \
--enable-fribidi \
%{?with_glesv1:--enable-gles1} \
%{!?with_vsxu:--disable-vsxu} \
%{!?with_x264:--disable-x264} \
%{!?with_x265:--disable-x265} \
- %{!?with_kde:--without-kde-solid}
+ %{!?with_kde:--without-kde-solid}%{?with_kde:--with-kde-solid=%{_datadir}/apps/solid/actions}
%{__make}
find $RPM_BUILD_ROOT%{_libdir} -type f -regex '.*\.l?a$' | xargs %{__rm}
%{__mv} $RPM_BUILD_ROOT%{_localedir}/{pt_PT,pt}
+%{__mv} $RPM_BUILD_ROOT%{_localedir}/{ks_IN,ks}
# unsupported:
# ach (Acoli)
# cgg (Chiga)
%attr(755,root,root) %{_libdir}/vlc/plugins/access/libpulsesrc_plugin.so
%attr(755,root,root) %{_libdir}/vlc/plugins/access/libsdp_plugin.so
# R: freerdp >= 1.0.1
-%attr(755,root,root) %{_libdir}/vlc/plugins/access/librdp_plugin.so
+%{?with_freerdp:%attr(755,root,root) %{_libdir}/vlc/plugins/access/librdp_plugin.so}
# R: libgcrypt >= 1.1.94 (optional, for srtp functionality)
%attr(755,root,root) %{_libdir}/vlc/plugins/access/librtp_plugin.so
%attr(755,root,root) %{_libdir}/vlc/plugins/access/libtimecode_plugin.so