%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.2
-Release: 4
+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: f98d60f0f59ef72b6e3407f2ff09bda6
+# Source0-md5: 55666c9898f658c7fcca12725bf7dd1b
Patch0: %{name}-buildflags.patch
Patch1: %{name}-tremor.patch
Patch2: %{name}-system-minizip.patch
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
%{?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}
%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