%bcond_with glesv1 # OpenGL ES v1 support
%bcond_with glesv2 # OpenGL ES v2 support
%bcond_without gnutls # gnutls misc plugin
+%bcond_without goom # GOOM! audio visualization
%bcond_without jack # jack access/audio output plugin
%bcond_without kde # KDE Solid actions
%bcond_without lirc # lirc control plugin
%bcond_without sftp # SFTP file transfer via libssh2
%bcond_without shout # shout access output plugin
%bcond_without smb # SMB access plugin
-%bcond_without smb2 # SMB2 access plugin
+%bcond_with smb2 # SMB2 access plugin (requires unreleased version)
%bcond_without speex # speex codec plugin
%bcond_without static_libs # don't build static libraries
%bcond_without svg # svg text renderer plugin
Summary: VLC - a multimedia player and stream server
Summary(pl.UTF-8): VLC - odtwarzacz multimedialny oraz serwer strumieni
Name: vlc
-Version: 3.0.11
-Release: 3
+Version: 3.0.16
+Release: 2
License: GPL v2+
Group: X11/Applications/Multimedia
-Source0: http://download.videolan.org/pub/videolan/vlc/%{version}/%{name}-%{version}.tar.xz
-# Source0-md5: 7e68f9e2d307eb7cc16e7345cda9e978
+Source0: https://download.videolan.org/pub/videolan/vlc/%{version}/%{name}-%{version}.tar.xz
+# Source0-md5: efc5f7331c033bf81536531c6eba5aa5
Patch0: %{name}-buildflags.patch
Patch1: %{name}-tremor.patch
Patch2: %{name}-mpc.patch
Patch6: %{name}-extern.patch
Patch7: %{name}-vsxu.patch
Patch8: qt-5.15.patch
+Patch9: %{name}-live.patch
+Patch10: %{name}-srt.patch
+Patch11: opencv4.patch
+Patch12: %{name}-libcaca.patch
URL: http://www.videolan.org/vlc/
+%{?with_decklink:BuildRequires: Blackmagic_DeckLink_SDK}
# 1.0 for X11 or GLESv1, 1.1 for GLESv2
BuildRequires: EGL-devel >= %{?with_glesv2:1.1}%{!?with_glesv2:1.0}
BuildRequires: OpenGL-devel
%{?with_daala:BuildRequires: daala-devel}
BuildRequires: dav1d-devel
BuildRequires: dbus-devel >= 1.6.0
-%{?with_decklink:BuildRequires: Blackmagic_DeckLink_SDK}
BuildRequires: desktop-file-utils
BuildRequires: faad2-devel >= 2.5
%{?with_fdk_aac:BuildRequires: fdk-aac-devel}
%{?with_dv:BuildRequires: libavc1394-devel >= 0.5.3}
BuildRequires: libbluray-devel >= 0.6.2
%{?with_bpg:BuildRequires: libbpg-devel}
-%{?with_caca:BuildRequires: libcaca-devel >= 0.99-0.beta14}
+%{?with_caca:BuildRequires: libcaca-devel >= 0.99-0.beta20}
BuildRequires: libcddb-devel >= 0.9.5
BuildRequires: libcdio-devel >= 0.78.2
BuildRequires: libchromaprint-devel >= 0.6.0
BuildRequires: libdvdread-devel >= 4.9.1
BuildRequires: libebml-devel >= 1.3.6
BuildRequires: libgcrypt-devel >= 1.6.0
-BuildRequires: libgoom2-devel
+%{?with_goom:BuildRequires: libgoom2-devel}
BuildRequires: libidn-devel
BuildRequires: libjpeg-devel
BuildRequires: libkate-devel >= 0.3.0
BuildRequires: libsecret-devel >= 0.18
%{?with_shout:BuildRequires: libshout-devel >= 2.1}
BuildRequires: libsidplay2-devel
-%{?with_smb2:BuildRequires: libsmb2-devel >= 3.0.0}
+%{?with_smb2:BuildRequires: libsmb2-devel >= 4.0.0}
%{?with_smb:BuildRequires: libsmbclient-devel >= 3.6.13}
%{?with_sftp:BuildRequires: libssh2-devel}
BuildRequires: libstdc++-devel >= 6:4.7
BuildRequires: libxcb-devel >= 1.6
BuildRequires: libxml2-devel >= 1:2.5
%{?with_lirc:BuildRequires: lirc-devel}
-%{?with_live:BuildRequires: live-devel >= 2014.07.04}
+%{?with_live:BuildRequires: live-devel >= 2020.12.23}
BuildRequires: lua52 >= 5.2
BuildRequires: lua52-devel >= 5.2
%{?with_mfx:BuildRequires: mfx_dispatch-devel}
BuildRequires: minizip-devel
BuildRequires: musepack-devel
BuildRequires: ncurses-devel
-%{?with_opencv:BuildRequires: opencv-devel > 2.0}
+%{?with_opencv:BuildRequires: opencv-devel > 4}
BuildRequires: opus-devel >= 1.0.3
BuildRequires: pkgconfig >= 1:0.9.0
BuildRequires: protobuf-devel >= 2.5.0
BuildRequires: spatialaudio-devel
%{?with_speex:BuildRequires: speex-devel > 1:1.1.0}
%{?with_speex:BuildRequires: speexdsp-devel >= 1.2}
-BuildRequires: srt-devel >= 1.2.2
+BuildRequires: srt-devel >= 1.4.1
BuildRequires: sysfsutils-devel
BuildRequires: systemd-devel >= 1:209
BuildRequires: taglib-devel >= 1.9
+BuildRequires: tar >= 1:1.22
BuildRequires: tremor-devel
%{?with_twolame:BuildRequires: twolame-devel}
%{?with_udev:BuildRequires: udev-devel >= 1:142}
BuildRequires: xorg-lib-libXinerama-devel
BuildRequires: xorg-lib-libXpm-devel
BuildRequires: xorg-proto-xproto-devel
+BuildRequires: xz
BuildRequires: zlib-devel
BuildRequires: zvbi-devel >= 0.2.28
Requires(post): /sbin/ldconfig
Requires: soxr >= 0.1.2
%{?with_speex:Requires: speex > 1:1.1.0}
%{?with_speex:Requires: speexdsp >= 1.2}
-Requires: srt >= 1.2.2
+Requires: srt >= 1.4.1
Requires: taglib >= 1.9
Requires: wayland >= 1.5.91
Requires: xcb-util-keysyms >= 0.3.4
Requires: desktop-file-utils
Requires: hicolor-icon-theme
Suggests: dbus-x11 >= 1.6.0
-Suggests: libcaca > 0.99-0.beta14.1
+%{?with_caca:Suggests: libcaca > 0.99-0.beta20}
Obsoletes: vlc-gnome
Obsoletes: vlc-gtk
%patch6 -p1
%patch7 -p1
%patch8 -p1
+%patch9 -p1
+%patch10 -p1
+%patch11 -p1
+%patch12 -p1
%build
%{__libtoolize}
%{?with_glesv1:--enable-gles1} \
%{?with_glesv2:--enable-gles2} \
%{!?with_gnutls:--disable-gnutls} \
+ --enable-goom%{!?with_goom:=no} \
%{?with_jack:--enable-jack} \
%{!?with_libplacebo:--disable-libplacebo} \
--enable-lirc%{!?with_lirc:=no} \
%attr(755,root,root) %{_libdir}/vlc/plugins/access/libimem_plugin.so
# R: libnfs >= 1.10.0
%attr(755,root,root) %{_libdir}/vlc/plugins/access/libnfs_plugin.so
+%attr(755,root,root) %{_libdir}/vlc/plugins/access/librist_plugin.so
%attr(755,root,root) %{_libdir}/vlc/plugins/access/libsatip_plugin.so
%if %{with sftp}
# R: libssh2
%attr(755,root,root) %{_libdir}/vlc/plugins/access_output/libaccess_output_http_plugin.so
# R: libgcrypt >= 1.1.94
%attr(755,root,root) %{_libdir}/vlc/plugins/access_output/libaccess_output_livehttp_plugin.so
+%attr(755,root,root) %{_libdir}/vlc/plugins/access_output/libaccess_output_rist_plugin.so
%if %{with shout}
# R: shout >= 2.1
%attr(755,root,root) %{_libdir}/vlc/plugins/access_output/libaccess_output_shout_plugin.so
%attr(755,root,root) %{_libdir}/vlc/plugins/video_filter/liboldmovie_plugin.so
%if %{with opencv}
# R: opencv
-%attr(755,root,root) %{_libdir}/vlc/plugins/video_filter/libopencv_example_plugin.so
+#%attr(755,root,root) %{_libdir}/vlc/plugins/video_filter/libopencv_example_plugin.so
%attr(755,root,root) %{_libdir}/vlc/plugins/video_filter/libopencv_wrapper_plugin.so
%endif
%attr(755,root,root) %{_libdir}/vlc/plugins/video_filter/libposterize_plugin.so
# R: OpenGL
%attr(755,root,root) %{_libdir}/vlc/plugins/visualization/libglspectrum_plugin.so
# R: libgoom2
-%attr(755,root,root) %{_libdir}/vlc/plugins/visualization/libgoom_plugin.so
+%{?with_goom:%attr(755,root,root) %{_libdir}/vlc/plugins/visualization/libgoom_plugin.so}
%if %{with projectM}
# R: libprojectM >= 2.0.0
%attr(755,root,root) %{_libdir}/vlc/plugins/visualization/libprojectm_plugin.so
%attr(755,root,root) %{_libdir}/vlc/plugins/video_output/libaa_plugin.so
%endif
%if %{with caca}
-# R: libcaca >= 0.99-0.beta14
+# R: libcaca >= 0.99-0.beta20
%attr(755,root,root) %{_libdir}/vlc/plugins/video_output/libcaca_plugin.so
%endif
# R: EGL, xorg-lib-libX11