+++ /dev/null
---- freerdp-2.5.0/channels/tsmf/client/ffmpeg/tsmf_ffmpeg.c.orig 2022-01-12 10:55:33.000000000 +0100
-+++ freerdp-2.5.0/channels/tsmf/client/ffmpeg/tsmf_ffmpeg.c 2022-01-24 13:55:06.447554471 +0100
-@@ -615,7 +615,9 @@
- static INIT_ONCE g_Initialized = INIT_ONCE_STATIC_INIT;
- static BOOL CALLBACK InitializeAvCodecs(PINIT_ONCE once, PVOID param, PVOID* context)
- {
-+#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 137, 100)
- avcodec_register_all();
-+#endif
- return TRUE;
- }
-
---- freerdp-2.5.0/libfreerdp/codec/dsp_ffmpeg.c.orig 2022-01-24 14:27:49.787885307 +0100
-+++ freerdp-2.5.0/libfreerdp/codec/dsp_ffmpeg.c 2022-01-24 14:28:58.954285682 +0100
-@@ -571,7 +571,9 @@
- FREERDP_DSP_CONTEXT* freerdp_dsp_ffmpeg_context_new(BOOL encode)
- {
- FREERDP_DSP_CONTEXT* context;
-+#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 137, 100)
- avcodec_register_all();
-+#endif
- context = calloc(1, sizeof(FREERDP_DSP_CONTEXT));
-
- if (!context)
%bcond_without systemd # systemd journal support
%bcond_without wayland # Wayland client
%bcond_without x11 # X11 client
-%bcond_with x264 # X264 for H.264 codec (only if without ffmpeg and openh264)
%bcond_without sse2 # SSE2 and higher instructions (runtime detection with sse patch)
%define freerdp_api 2
Summary: Remote Desktop Protocol client
Summary(pl.UTF-8): Klient protokołu RDP
Name: freerdp2
-Version: 2.5.0
+Version: 2.6.0
Release: 1
License: Apache v2.0
Group: Applications/Communications
Source0: https://pub.freerdp.com/releases/freerdp-%{version}.tar.gz
-# Source0-md5: eec57a052eaaee74d3467cc74710283e
+# Source0-md5: 3cd5128bc1e6b3822bb84def76245808
Patch0: freerdp-opt.patch
Patch1: freerdp-gsm.patch
Patch2: docbook-xsl.patch
-Patch3: ffmpeg5.patch
URL: http://www.freerdp.com/
%{?with_directfb:BuildRequires: DirectFB-devel}
%{?with_opencl:BuildRequires: OpenCL-devel}
%{?with_lame:BuildRequires: lame-libs-devel}
%{?with_gsm:BuildRequires: libgsm-devel}
BuildRequires: libjpeg-devel
-%{?with_x264:BuildRequires: libx264-devel}
%{?with_openh264:BuildRequires: openh264-devel}
# also mbedtls possible
BuildRequires: openssl-devel
%patch0 -p1
%patch1 -p1
%patch2 -p1
-%patch3 -p1
cat << EOF > xfreerdp.desktop
[Desktop Entry]
%{cmake_on_off ffmpeg WITH_SWSCALE} \
%{cmake_on_off wayland WITH_WAYLAND} \
%{cmake_on_off x11 WITH_X11} \
- %{cmake_on_off x264 WITH_X264} \
-DWITH_XCURSOR=ON \
-DWITH_XEXT=ON \
-DWITH_XINERAMA=ON \