File project.diff of Package fteqw

--- fteqw.changes.orig
+++ fteqw.changes
@@ -1,4 +1,14 @@
 -------------------------------------------------------------------
+Sat Nov  1 18:23:40 UTC 2025 - Martin Hauke <mardnh@gmx.de>
+
+- Update to version 2025.09.27
+- Switch to CMake
+- Add patches:
+  * 0002-QTV-fix-compilation-with-C23.patch
+  * 0003-CMakeLists.txt-fix-empty-ELSEIF.patch
+  * 0004-common.c-fix-warning.patch
+
+-------------------------------------------------------------------
 Sat Sep  4 17:32:45 UTC 2021 - Martin Hauke <mardnh@gmx.de>
 
 - Initial package, version 0.0.0.svn5808
--- fteqw.spec.orig
+++ fteqw.spec
@@ -1,7 +1,8 @@
 #
 # spec file for package fteqw
 #
-# Copyright (c) 2021, Martin Hauke <mardnh@gmx.de>
+# Copyright (c) 2021-2025, Martin Hauke <mardnh@gmx.de>
+# 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
@@ -16,22 +17,31 @@
 #
 
 
+%define realver 2025-09-27
 Name:           fteqw
-Version:        0.0.0.svn5808
+Version:        2025.09.27
 Release:        0
 Summary:        An advanced Quake engine
 License:        GPL-2.0-or-later
 Group:          Amusements/Games/3D/Shoot
-URL:            https://fte.triptohell.info/
-#Svn-Checkout:  https://svn.code.sf.net/p/fteqw/code/trunk
-Source:         %{name}-%{version}.tar.xz
+URL:            https://www.fteqw.org/
+#Git-Clone:     https://github.com/fte-team/fteqw.git
+Source:         https://github.com/fte-team/fteqw/archive/refs/tags/%{realver}.tar.gz#/%{name}-%{realver}.tar.gz
+Patch1:         0002-QTV-fix-compilation-with-C23.patch
+Patch2:         0003-CMakeLists.txt-fix-empty-ELSEIF.patch
+Patch3:         0004-common.c-fix-warning.patch
+BuildRequires:  cmake
+BuildRequires:  gcc-c++
 BuildRequires:  pkgconfig
+BuildRequires:  zip
 BuildRequires:  pkgconfig(alsa)
+BuildRequires:  pkgconfig(freetype2)
 BuildRequires:  pkgconfig(gl)
 BuildRequires:  pkgconfig(gnutls)
 BuildRequires:  pkgconfig(libjpeg)
 BuildRequires:  pkgconfig(libpng)
 BuildRequires:  pkgconfig(opus)
+BuildRequires:  pkgconfig(sdl2)
 BuildRequires:  pkgconfig(speex)
 BuildRequires:  pkgconfig(vorbisfile)
 BuildRequires:  pkgconfig(x11)
@@ -63,22 +73,43 @@ Core Features:
 Game data must be placed in ~/.local/share/quake/id1 .
 
 %prep
-%setup -q
+%autosetup -p1 -n %{name}-%{realver}
 
 %build
-%make_build -C engine clean
-%make_build -C engine rel
+%cmake \
+  -DFTE_INSTALL_BINDIR=/bin
+%cmake_build
 
 %install
-for b in fteqcc fteqw fteqw-sv; do
-  install -Dm 0755 engine/release/$b %{buildroot}%{_bindir}/$b
-done
+%cmake_install
 
 %files
-%license engine/LICENSE
-%doc fteqw_readme.txt
+%license LICENSE
+%doc fteqw_readme.txt ftetools_readme.txt README.txt
+%{_bindir}/ftemaster
 %{_bindir}/fteqcc
 %{_bindir}/fteqw
 %{_bindir}/fteqw-sv
+%{_bindir}/imgtool
+%{_bindir}/iqmtool
+%{_bindir}/qtv
+%dir %{_libdir}/fteqw
+%{_libdir}/fteqw/fteplug_cod.so
+%{_libdir}/fteqw/fteplug_ezhud.so
+%{_libdir}/fteqw/fteplug_hl2.so
+%{_libdir}/fteqw/fteplug_irc.so
+%{_libdir}/fteqw/fteplug_models.so
+%{_libdir}/fteqw/fteplug_qi.so
+%{_libdir}/fteqw/fteplug_quake3.so
+%{_libdir}/fteqw/fteplug_xmpp.so
+%dir %{_datadir}/games/quake
+%dir %{_datadir}/games/quake/id1
+%{_datadir}/games/quake/id1/csaddon.pk3
+%{_datadir}/games/quake/id1/menusys.pk3
+%{_datadir}/applications/org.fteqw.fteqw.desktop
+%{_datadir}/icons/hicolor/scalable/apps/org.fteqw.fteqw.svg
+%{_datadir}/metainfo/org.fteqw.fteqw.metainfo.xml
+%dir %{_prefix}%{_sysconfdir}/xdg/fteqw
+%{_prefix}%{_sysconfdir}/xdg/fteqw/games
 
 %changelog
openSUSE Build Service is sponsored by