File project.diff of Package freerdp

--- freerdp.changes.orig
+++ freerdp.changes
@@ -1,4 +1,9 @@
 -------------------------------------------------------------------
+Fri Aug 22 16:05:05 UTC 2025 - Hans-Peter Jansen <hpj@urpla.net>
+
+- Add sdl3 build conditional, abandon sdl2 builds, long deprecated upstream
+
+-------------------------------------------------------------------
 Fri Aug 22 13:23:31 UTC 2025 - Paolo Stivanin <info@paolostivanin.com>
 
 - Update to 3.17.0:
--- freerdp.spec.orig
+++ freerdp.spec
@@ -1,7 +1,7 @@
 #
 # spec file for package freerdp
 #
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2025 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -19,11 +19,13 @@
 %if 0%{?suse_version} > 1500 && 0%{?is_opensuse}
 %global _with_ffmpeg 1
 #global _with_openh264 1
+%global _with_sdl3 1
 %global _with_soxr 1
 %global _with_lame 1
 %else
 %if 0%{?sle_version} >= 150200 && 0%{?is_opensuse}
 %global _with_ffmpeg 1
+%global _with_sdl3 0
 %endif
 %endif
 
@@ -84,9 +86,10 @@ BuildRequires:  pkgconfig(libusb-1.0)
 BuildRequires:  pkgconfig(openssl)
 %{?_with_soxr:BuildRequires:  pkgconfig(soxr)}
 BuildRequires:  xmlto
-# Upstream use SDL3, but SDL3 does not exist in Leap and SDL3_ttf does not exists in Leap and Tumbleweed.
-BuildRequires:  pkgconfig(SDL2_ttf)
-BuildRequires:  pkgconfig(sdl2)
+%if %{_with_sdl3}
+BuildRequires:  pkgconfig(sdl3-ttf)
+BuildRequires:  pkgconfig(sdl3)
+%endif
 BuildRequires:  pkgconfig(wayland-client)
 BuildRequires:  pkgconfig(wayland-scanner)
 BuildRequires:  pkgconfig(x11)
@@ -110,6 +113,7 @@ FreeRDP is a client-side implementation
 following the Microsoft Open Specifications. This package provides the client
 application.
 
+%if %{_with_sdl3}
 %package sdl
 Summary:        Remote Desktop Viewer Client
 Group:          Productivity/Networking/Other
@@ -118,6 +122,7 @@ Group:          Productivity/Networking/
 FreeRDP is a client-side implementation of the Remote Desktop Protocol (RDP)
 following the Microsoft Open Specifications. This package provides the
 sdl-based client application.
+%endif
 
 %package wayland
 Summary:        Remote Desktop Viewer Client
@@ -343,9 +348,11 @@ export CXX=g++-12
 %{_mandir}/man1/x%{name}.1%{?ext_man}
 %{_mandir}/man7/wlog.7%{?ext_man}
 
+%if %{_with_sdl3}
 %files sdl
 %{_bindir}/sdl-%{name}
 %{_mandir}/man1/sdl-freerdp.1%{?ext_man}
+%endif
 
 %files wayland
 %{_bindir}/wl%{name}
openSUSE Build Service is sponsored by