From ff34a93e85e7a543220197cd04444f793fa92d99 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 23 Jul 2022 12:12:57 +0000 Subject: [PATCH 01/32] Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- warzone2100.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/warzone2100.spec b/warzone2100.spec index c84e0b7..cf37e86 100644 --- a/warzone2100.spec +++ b/warzone2100.spec @@ -3,7 +3,7 @@ Name: warzone2100 Version: 4.2.7 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Innovative 3D real-time strategy License: GPLv2+ and CC-BY-SA @@ -91,6 +91,9 @@ mv $RPM_BUILD_ROOT%{_datadir}/icons/warzone2100.png \ %{_datadir}/warzone2100/sequences.wz %changelog +* Sat Jul 23 2022 Fedora Release Engineering - 4.2.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + * Mon Mar 21 2022 Pete Walter - 4.2.7-1 - Update to 4.2.7 From 6834bd0e18088acd8ec2bd8e61754deab369fda2 Mon Sep 17 00:00:00 2001 From: Pete Walter Date: Mon, 21 Nov 2022 13:22:26 +0000 Subject: [PATCH 02/32] Update to 4.3.2 (#2134915) --- sources | 2 +- warzone2100.spec | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sources b/sources index 0571459..b382908 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (high-quality-en-sequences.wz) = 2a4a9e299412fe1adac21001848d10575be69039bb2d762bcad94faefbf498ff72ff0e37fc4017c7598692d250456a444d6d5619c88a9772cfd3a03d4b780f12 -SHA512 (warzone2100_src.tar.xz) = af538f3bdf6ec543e5f919377c95c35c730fa6efa5c3ea8d140347595dd9f8056677d4b494677ea20c98da305e0fb588cdb00a3da1c497f96edc58ca8772e45b +SHA512 (warzone2100_src.tar.xz) = 9451aee1418aa4fd7ebbc3e40187bbee1645d2c79d1e719e1211e021c474e481355705aaa375716d048d1bae389f8db2f98678a40cc757702cf285957cfcbf46 diff --git a/warzone2100.spec b/warzone2100.spec index cf37e86..bbf9082 100644 --- a/warzone2100.spec +++ b/warzone2100.spec @@ -2,8 +2,8 @@ %global _cmake_shared_libs %{nil} Name: warzone2100 -Version: 4.2.7 -Release: 2%{?dist} +Version: 4.3.2 +Release: 1%{?dist} Summary: Innovative 3D real-time strategy License: GPLv2+ and CC-BY-SA @@ -91,6 +91,9 @@ mv $RPM_BUILD_ROOT%{_datadir}/icons/warzone2100.png \ %{_datadir}/warzone2100/sequences.wz %changelog +* Mon Nov 21 2022 Pete Walter - 4.3.2-1 +- Update to 4.3.2 (#2134915) + * Sat Jul 23 2022 Fedora Release Engineering - 4.2.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild From 1a34ae8d9ec9ba9d07f5aad697be138bd76163ed Mon Sep 17 00:00:00 2001 From: Pete Walter Date: Mon, 21 Nov 2022 14:00:58 +0000 Subject: [PATCH 03/32] Fix the build --- warzone2100.spec | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/warzone2100.spec b/warzone2100.spec index bbf9082..1c9d7c3 100644 --- a/warzone2100.spec +++ b/warzone2100.spec @@ -27,6 +27,7 @@ BuildRequires: libtheora-devel BuildRequires: libvorbis-devel BuildRequires: openal-soft-devel BuildRequires: openssl-devel +BuildRequires: opus-devel BuildRequires: p7zip BuildRequires: physfs-devel BuildRequires: rubygem-asciidoctor @@ -68,21 +69,18 @@ rm -rf $RPM_BUILD_ROOT%{_defaultdocdir} %find_lang %{name} install -p -m644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/warzone2100/sequences.wz -# Don't use portable (Windows) install -rm $RPM_BUILD_ROOT%{_bindir}/.portable - # Fix icon install path mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps -mv $RPM_BUILD_ROOT%{_datadir}/icons/warzone2100.png \ - $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps/warzone2100.png +mv $RPM_BUILD_ROOT%{_datadir}/icons/net.wz2100.warzone2100.png \ + $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps/net.wz2100.warzone2100.png %files -f %{name}.lang %license COPYING COPYING.NONGPL COPYING.README %doc AUTHORS ChangeLog %{_bindir}/warzone2100 -%{_datadir}/applications/warzone2100.desktop -%{_datadir}/icons/hicolor/128x128/apps/warzone2100.png -%{_datadir}/metainfo/warzone2100.appdata.xml +%{_datadir}/applications/net.wz2100.warzone2100.desktop +%{_datadir}/icons/hicolor/128x128/apps/net.wz2100.warzone2100.png +%{_datadir}/metainfo/net.wz2100.warzone2100.appdata.xml %{_datadir}/warzone2100/ %exclude %{_datadir}/warzone2100/sequences.wz %{_mandir}/man6/warzone2100.6* From 59bc57405568a48bbb309410244b25915f43cbd4 Mon Sep 17 00:00:00 2001 From: Pete Walter Date: Mon, 9 Jan 2023 23:04:22 +0000 Subject: [PATCH 04/32] Update to 4.3.3 (#2158024) --- sources | 2 +- warzone2100.spec | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sources b/sources index b382908..5135085 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (high-quality-en-sequences.wz) = 2a4a9e299412fe1adac21001848d10575be69039bb2d762bcad94faefbf498ff72ff0e37fc4017c7598692d250456a444d6d5619c88a9772cfd3a03d4b780f12 -SHA512 (warzone2100_src.tar.xz) = 9451aee1418aa4fd7ebbc3e40187bbee1645d2c79d1e719e1211e021c474e481355705aaa375716d048d1bae389f8db2f98678a40cc757702cf285957cfcbf46 +SHA512 (warzone2100_src.tar.xz) = d72ef7842eea897e93b9234be30932446a936c058895b2f1032a11d8c9b3da33990acd4b47875ecbdd4f424174af93b7e8bcfa69fd08b8bebb03eb7074c82437 diff --git a/warzone2100.spec b/warzone2100.spec index 1c9d7c3..0c26bad 100644 --- a/warzone2100.spec +++ b/warzone2100.spec @@ -2,7 +2,7 @@ %global _cmake_shared_libs %{nil} Name: warzone2100 -Version: 4.3.2 +Version: 4.3.3 Release: 1%{?dist} Summary: Innovative 3D real-time strategy @@ -89,6 +89,9 @@ mv $RPM_BUILD_ROOT%{_datadir}/icons/net.wz2100.warzone2100.png \ %{_datadir}/warzone2100/sequences.wz %changelog +* Mon Jan 09 2023 Pete Walter - 4.3.3-1 +- Update to 4.3.3 (#2158024) + * Mon Nov 21 2022 Pete Walter - 4.3.2-1 - Update to 4.3.2 (#2134915) From 9fd49355c2aada218dd40d98f448d36e3f9f1bd3 Mon Sep 17 00:00:00 2001 From: Pete Walter Date: Mon, 9 Jan 2023 23:31:29 +0000 Subject: [PATCH 05/32] Fix sources --- sources | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources b/sources index 5135085..70e240e 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (high-quality-en-sequences.wz) = 2a4a9e299412fe1adac21001848d10575be69039bb2d762bcad94faefbf498ff72ff0e37fc4017c7598692d250456a444d6d5619c88a9772cfd3a03d4b780f12 -SHA512 (warzone2100_src.tar.xz) = d72ef7842eea897e93b9234be30932446a936c058895b2f1032a11d8c9b3da33990acd4b47875ecbdd4f424174af93b7e8bcfa69fd08b8bebb03eb7074c82437 +SHA512 (warzone2100_src.tar.xz) = 46ccf2720d09481dfc89c1e3abb9802a379d1bfe0b3823566b51f2ea177fd793653d5b2592f07c724f0121cafd014c1ea6226b8c2bc22ec12ac3ca1bfaf298f4 From bf42ad4581f60e07eb59b8718a0d7e8da48e3747 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 21 Jan 2023 06:36:36 +0000 Subject: [PATCH 06/32] Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- warzone2100.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/warzone2100.spec b/warzone2100.spec index 0c26bad..4b1c387 100644 --- a/warzone2100.spec +++ b/warzone2100.spec @@ -3,7 +3,7 @@ Name: warzone2100 Version: 4.3.3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Innovative 3D real-time strategy License: GPLv2+ and CC-BY-SA @@ -89,6 +89,9 @@ mv $RPM_BUILD_ROOT%{_datadir}/icons/net.wz2100.warzone2100.png \ %{_datadir}/warzone2100/sequences.wz %changelog +* Sat Jan 21 2023 Fedora Release Engineering - 4.3.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + * Mon Jan 09 2023 Pete Walter - 4.3.3-1 - Update to 4.3.3 (#2158024) From a5a708100b54f157979b55ee5ff71250c8cfdbc3 Mon Sep 17 00:00:00 2001 From: Pete Walter Date: Fri, 3 Feb 2023 23:23:35 +0000 Subject: [PATCH 07/32] ExcludeArch i686 for https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval --- warzone2100.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/warzone2100.spec b/warzone2100.spec index 4b1c387..db16886 100644 --- a/warzone2100.spec +++ b/warzone2100.spec @@ -3,7 +3,7 @@ Name: warzone2100 Version: 4.3.3 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Innovative 3D real-time strategy License: GPLv2+ and CC-BY-SA @@ -11,6 +11,9 @@ URL: http://wz2100.net/ Source0: https://github.com/Warzone2100/warzone2100/releases/download/%{version}/warzone2100_src.tar.xz Source1: https://github.com/Warzone2100/wz-sequences/releases/download/v3/high-quality-en-sequences.wz +# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval +ExcludeArch: %{ix86} + BuildRequires: cmake BuildRequires: desktop-file-utils BuildRequires: freetype-devel @@ -89,6 +92,9 @@ mv $RPM_BUILD_ROOT%{_datadir}/icons/net.wz2100.warzone2100.png \ %{_datadir}/warzone2100/sequences.wz %changelog +* Fri Feb 03 2023 Pete Walter - 4.3.3-3 +- ExcludeArch i686 for https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval + * Sat Jan 21 2023 Fedora Release Engineering - 4.3.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild From 1ee922fe7d25371fdb578c37000f06faf5c0b65d Mon Sep 17 00:00:00 2001 From: Pete Walter Date: Sun, 12 Mar 2023 17:25:47 +0000 Subject: [PATCH 08/32] Fix FTBFS (rhbz#2171756) --- fix-ftbfs.patch | 27 +++++++++++++++++++++++++++ warzone2100.spec | 8 +++++++- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 fix-ftbfs.patch diff --git a/fix-ftbfs.patch b/fix-ftbfs.patch new file mode 100644 index 0000000..c0adee7 --- /dev/null +++ b/fix-ftbfs.patch @@ -0,0 +1,27 @@ +From e872db579ec2847de29d1e3a96b35902f643b9fb Mon Sep 17 00:00:00 2001 +From: Sam James +Date: Sat, 21 Jan 2023 21:00:02 +0000 +Subject: [PATCH] Fix build with GCC 13 (add missing include) + +GCC 13 (as usual for new compiler releases) shuffles around some +internal includes and so is no longer transitively included. + +Explicitly include for uint32_t. + +Signed-off-by: Sam James +--- + lib/framework/wzstring.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/lib/framework/wzstring.h b/lib/framework/wzstring.h +index 1a9391cd11a..40796c838a4 100644 +--- a/lib/framework/wzstring.h ++++ b/lib/framework/wzstring.h +@@ -20,6 +20,7 @@ + #ifndef _LIB_FRAMEWORK_WZSTRING_H + #define _LIB_FRAMEWORK_WZSTRING_H + ++#include + #include + #include + #include diff --git a/warzone2100.spec b/warzone2100.spec index db16886..af60e53 100644 --- a/warzone2100.spec +++ b/warzone2100.spec @@ -3,7 +3,7 @@ Name: warzone2100 Version: 4.3.3 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Innovative 3D real-time strategy License: GPLv2+ and CC-BY-SA @@ -11,6 +11,9 @@ URL: http://wz2100.net/ Source0: https://github.com/Warzone2100/warzone2100/releases/download/%{version}/warzone2100_src.tar.xz Source1: https://github.com/Warzone2100/wz-sequences/releases/download/v3/high-quality-en-sequences.wz +# https://github.com/Warzone2100/warzone2100/pull/3090 +Patch: fix-ftbfs.patch + # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} @@ -92,6 +95,9 @@ mv $RPM_BUILD_ROOT%{_datadir}/icons/net.wz2100.warzone2100.png \ %{_datadir}/warzone2100/sequences.wz %changelog +* Sun Mar 12 2023 Pete Walter - 4.3.3-4 +- Fix FTBFS (rhbz#2171756) + * Fri Feb 03 2023 Pete Walter - 4.3.3-3 - ExcludeArch i686 for https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval From 4c79551af231c7df9021e19708fed08987c0ad22 Mon Sep 17 00:00:00 2001 From: Pete Walter Date: Thu, 20 Apr 2023 13:29:22 +0100 Subject: [PATCH 09/32] Update to 4.3.5 (rhbz#2182221) --- fix-ftbfs.patch | 27 --------------------------- sources | 2 +- warzone2100.spec | 10 +++++----- 3 files changed, 6 insertions(+), 33 deletions(-) delete mode 100644 fix-ftbfs.patch diff --git a/fix-ftbfs.patch b/fix-ftbfs.patch deleted file mode 100644 index c0adee7..0000000 --- a/fix-ftbfs.patch +++ /dev/null @@ -1,27 +0,0 @@ -From e872db579ec2847de29d1e3a96b35902f643b9fb Mon Sep 17 00:00:00 2001 -From: Sam James -Date: Sat, 21 Jan 2023 21:00:02 +0000 -Subject: [PATCH] Fix build with GCC 13 (add missing include) - -GCC 13 (as usual for new compiler releases) shuffles around some -internal includes and so is no longer transitively included. - -Explicitly include for uint32_t. - -Signed-off-by: Sam James ---- - lib/framework/wzstring.h | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/lib/framework/wzstring.h b/lib/framework/wzstring.h -index 1a9391cd11a..40796c838a4 100644 ---- a/lib/framework/wzstring.h -+++ b/lib/framework/wzstring.h -@@ -20,6 +20,7 @@ - #ifndef _LIB_FRAMEWORK_WZSTRING_H - #define _LIB_FRAMEWORK_WZSTRING_H - -+#include - #include - #include - #include diff --git a/sources b/sources index 70e240e..ab9f102 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (high-quality-en-sequences.wz) = 2a4a9e299412fe1adac21001848d10575be69039bb2d762bcad94faefbf498ff72ff0e37fc4017c7598692d250456a444d6d5619c88a9772cfd3a03d4b780f12 -SHA512 (warzone2100_src.tar.xz) = 46ccf2720d09481dfc89c1e3abb9802a379d1bfe0b3823566b51f2ea177fd793653d5b2592f07c724f0121cafd014c1ea6226b8c2bc22ec12ac3ca1bfaf298f4 +SHA512 (warzone2100_src.tar.xz) = ec65f22a0aad9fe482c4ea916cb321d171b10f0a9b181fea7db2eb17bf54e32b3828c8259082fff266713e2cab4e32dcc455d0d5b923a5ca221fc77b11137062 diff --git a/warzone2100.spec b/warzone2100.spec index af60e53..162a52a 100644 --- a/warzone2100.spec +++ b/warzone2100.spec @@ -2,8 +2,8 @@ %global _cmake_shared_libs %{nil} Name: warzone2100 -Version: 4.3.3 -Release: 4%{?dist} +Version: 4.3.5 +Release: 1%{?dist} Summary: Innovative 3D real-time strategy License: GPLv2+ and CC-BY-SA @@ -11,9 +11,6 @@ URL: http://wz2100.net/ Source0: https://github.com/Warzone2100/warzone2100/releases/download/%{version}/warzone2100_src.tar.xz Source1: https://github.com/Warzone2100/wz-sequences/releases/download/v3/high-quality-en-sequences.wz -# https://github.com/Warzone2100/warzone2100/pull/3090 -Patch: fix-ftbfs.patch - # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} @@ -95,6 +92,9 @@ mv $RPM_BUILD_ROOT%{_datadir}/icons/net.wz2100.warzone2100.png \ %{_datadir}/warzone2100/sequences.wz %changelog +* Thu Apr 20 2023 Pete Walter - 4.3.5-1 +- Update to 4.3.5 (rhbz#2182221) + * Sun Mar 12 2023 Pete Walter - 4.3.3-4 - Fix FTBFS (rhbz#2171756) From 768c93a3650b80ec78d6a3342b46d368497c6350 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 22 Jul 2023 17:58:47 +0000 Subject: [PATCH 10/32] Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- warzone2100.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/warzone2100.spec b/warzone2100.spec index 162a52a..b079f6e 100644 --- a/warzone2100.spec +++ b/warzone2100.spec @@ -3,7 +3,7 @@ Name: warzone2100 Version: 4.3.5 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Innovative 3D real-time strategy License: GPLv2+ and CC-BY-SA @@ -92,6 +92,9 @@ mv $RPM_BUILD_ROOT%{_datadir}/icons/net.wz2100.warzone2100.png \ %{_datadir}/warzone2100/sequences.wz %changelog +* Sat Jul 22 2023 Fedora Release Engineering - 4.3.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Thu Apr 20 2023 Pete Walter - 4.3.5-1 - Update to 4.3.5 (rhbz#2182221) From e00854200e339b755248f342dddc1867d69d4f83 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 5 Oct 2023 10:04:35 +0200 Subject: [PATCH 11/32] rebuild for new libsodium --- warzone2100.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/warzone2100.spec b/warzone2100.spec index b079f6e..f09f106 100644 --- a/warzone2100.spec +++ b/warzone2100.spec @@ -3,7 +3,7 @@ Name: warzone2100 Version: 4.3.5 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Innovative 3D real-time strategy License: GPLv2+ and CC-BY-SA @@ -92,6 +92,9 @@ mv $RPM_BUILD_ROOT%{_datadir}/icons/net.wz2100.warzone2100.png \ %{_datadir}/warzone2100/sequences.wz %changelog +* Thu Oct 05 2023 Remi Collet - 4.3.5-3 +- rebuild for new libsodium + * Sat Jul 22 2023 Fedora Release Engineering - 4.3.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild From 279157f27d57369b0f520b94fc3cfaf9bc008be1 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Wed, 1 Nov 2023 22:40:14 +0900 Subject: [PATCH 12/32] Backport upstream patch for new vulkan header (#2242267) --- warzone2100-pr3353-new-vulkan-header.patch | 63 ++++++++++++++++++++++ warzone2100.spec | 7 ++- 2 files changed, 69 insertions(+), 1 deletion(-) create mode 100644 warzone2100-pr3353-new-vulkan-header.patch diff --git a/warzone2100-pr3353-new-vulkan-header.patch b/warzone2100-pr3353-new-vulkan-header.patch new file mode 100644 index 0000000..fc37ee5 --- /dev/null +++ b/warzone2100-pr3353-new-vulkan-header.patch @@ -0,0 +1,63 @@ +From cdac3fc02a210f249b5ff078ee180235f46f65a1 Mon Sep 17 00:00:00 2001 +From: Heiko Becker +Date: Sun, 25 Jun 2023 17:30:39 +0200 +Subject: [PATCH] [Vulkan] Fix the build with vulkan-header >= 1.3.260 + +Add detail:: namespace to throwResultException +--- + lib/ivis_opengl/gfx_api_vk.cpp | 20 +++++++++++++------- + 1 file changed, 13 insertions(+), 7 deletions(-) + +diff --git a/lib/ivis_opengl/gfx_api_vk.cpp b/lib/ivis_opengl/gfx_api_vk.cpp +index b89167bd96a..fa14d5bbaf7 100644 +--- a/lib/ivis_opengl/gfx_api_vk.cpp ++++ b/lib/ivis_opengl/gfx_api_vk.cpp +@@ -59,6 +59,12 @@ + #pragma GCC diagnostic ignored "-Wdeprecated-copy" // Ignore warnings caused by vulkan.hpp 148 + #endif + ++#if VK_HEADER_VERSION >= 260 ++# define WZ_THROW_VK_RESULT_EXCEPTION(result, message) vk::detail::throwResultException(result, message) ++#else ++# define WZ_THROW_VK_RESULT_EXCEPTION(result, message) vk::throwResultException(result, message) ++#endif ++ + const uint32_t minSupportedVulkanVersion = VK_API_VERSION_1_0; + #if defined(DEBUG) + // For debug builds, limit to the minimum that should be supported by this backend (which is Vulkan 1.0, see above) +@@ -549,7 +555,7 @@ void BlockBufferAllocator::allocateNewBlock(uint32_t minimumSize) + if (result != vk::Result::eSuccess) + { + // Failed to allocate memory! +- vk::throwResultException( result, "vmaCreateBuffer" ); ++ WZ_THROW_VK_RESULT_EXCEPTION( result, "vmaCreateBuffer" ); + } + + if (autoMap) +@@ -1760,7 +1766,7 @@ VkPSO::VkPSO(vk::Device _dev, + object = std::move(result.value); + break; + default: +- vk::throwResultException(result.result, "createGraphicsPipeline"); ++ WZ_THROW_VK_RESULT_EXCEPTION(result.result, "createGraphicsPipeline"); + } + } + +@@ -1824,7 +1830,7 @@ void VkBuf::allocateBufferObject(const std::size_t& size) + if (result != vk::Result::eSuccess) + { + // Failed to allocate memory! +- vk::throwResultException( result, "vmaCreateBuffer" ); ++ WZ_THROW_VK_RESULT_EXCEPTION( result, "vmaCreateBuffer" ); + } + + buffer_size = size; +@@ -1966,7 +1972,7 @@ VkTexture::VkTexture(const VkRoot& root, const std::size_t& mipmap_count, const + if (result != vk::Result::eSuccess) + { + // Failed to allocate memory! +- vk::throwResultException( result, "vmaCreateImage" ); ++ WZ_THROW_VK_RESULT_EXCEPTION( result, "vmaCreateImage" ); + } + + if (root.debugUtilsExtEnabled) diff --git a/warzone2100.spec b/warzone2100.spec index f09f106..c8cb701 100644 --- a/warzone2100.spec +++ b/warzone2100.spec @@ -3,13 +3,15 @@ Name: warzone2100 Version: 4.3.5 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Innovative 3D real-time strategy License: GPLv2+ and CC-BY-SA URL: http://wz2100.net/ Source0: https://github.com/Warzone2100/warzone2100/releases/download/%{version}/warzone2100_src.tar.xz Source1: https://github.com/Warzone2100/wz-sequences/releases/download/v3/high-quality-en-sequences.wz +# https://github.com/Warzone2100/warzone2100/pull/3353 +Patch0: warzone2100-pr3353-new-vulkan-header.patch # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} @@ -92,6 +94,9 @@ mv $RPM_BUILD_ROOT%{_datadir}/icons/net.wz2100.warzone2100.png \ %{_datadir}/warzone2100/sequences.wz %changelog +* Thu Nov 1 2023 Mamoru TASAKA - 4.3.5-4 +- Backport upstream patch for new vulkan header (#2242267) + * Thu Oct 05 2023 Remi Collet - 4.3.5-3 - rebuild for new libsodium From 149939e4d98d24cd91e65d5469971ad859ea1330 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Wed, 1 Nov 2023 22:40:54 +0900 Subject: [PATCH 13/32] fix date --- warzone2100.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/warzone2100.spec b/warzone2100.spec index c8cb701..f58b66d 100644 --- a/warzone2100.spec +++ b/warzone2100.spec @@ -94,7 +94,7 @@ mv $RPM_BUILD_ROOT%{_datadir}/icons/net.wz2100.warzone2100.png \ %{_datadir}/warzone2100/sequences.wz %changelog -* Thu Nov 1 2023 Mamoru TASAKA - 4.3.5-4 +* Wed Nov 1 2023 Mamoru TASAKA - 4.3.5-4 - Backport upstream patch for new vulkan header (#2242267) * Thu Oct 05 2023 Remi Collet - 4.3.5-3 From f8c7efe8cc0dbcbb3f2c0443af4b375d6635e567 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 27 Jan 2024 08:23:39 +0000 Subject: [PATCH 14/32] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- warzone2100.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/warzone2100.spec b/warzone2100.spec index f58b66d..b624860 100644 --- a/warzone2100.spec +++ b/warzone2100.spec @@ -3,7 +3,7 @@ Name: warzone2100 Version: 4.3.5 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Innovative 3D real-time strategy License: GPLv2+ and CC-BY-SA @@ -94,6 +94,9 @@ mv $RPM_BUILD_ROOT%{_datadir}/icons/net.wz2100.warzone2100.png \ %{_datadir}/warzone2100/sequences.wz %changelog +* Sat Jan 27 2024 Fedora Release Engineering - 4.3.5-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Wed Nov 1 2023 Mamoru TASAKA - 4.3.5-4 - Backport upstream patch for new vulkan header (#2242267) From eac39b6570223f8f06a8a24b52b155b576f57b76 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Tue, 7 May 2024 21:57:08 -0400 Subject: [PATCH 15/32] Fix bundled rapidjson build with GCC 14 Based on https://src.fedoraproject.org/rpms/rapidjson/c/34faab1e310c2a97cbb4957b32ed6f8c3642fdb7 --- ...iling-assignment-operator.-Fixed-718.patch | 25 ++++++++++ ...tly-disable-copy-assignment-operator.patch | 25 ++++++++++ ...way-comparison-for-CLang-10-fix-1679.patch | 50 +++++++++++++++++++ ...recursive-operator-call-in-C-20-1846.patch | 32 ++++++++++++ ...of-symmetric-equality-operators-on-i.patch | 29 +++++++++++ 1006-do-not-define-operator-in-C-20.patch | 37 ++++++++++++++ warzone2100.spec | 21 +++++++- 7 files changed, 218 insertions(+), 1 deletion(-) create mode 100644 1001-Removed-non-compiling-assignment-operator.-Fixed-718.patch create mode 100644 1002-Explicitly-disable-copy-assignment-operator.patch create mode 100644 1003-Three-way-comparison-for-CLang-10-fix-1679.patch create mode 100644 1004-Fix-recursive-operator-call-in-C-20-1846.patch create mode 100644 1005-gate-definition-of-symmetric-equality-operators-on-i.patch create mode 100644 1006-do-not-define-operator-in-C-20.patch diff --git a/1001-Removed-non-compiling-assignment-operator.-Fixed-718.patch b/1001-Removed-non-compiling-assignment-operator.-Fixed-718.patch new file mode 100644 index 0000000..a31737f --- /dev/null +++ b/1001-Removed-non-compiling-assignment-operator.-Fixed-718.patch @@ -0,0 +1,25 @@ +From 1257fe9096b70cc278f9d6e4029776b50df5d5cf Mon Sep 17 00:00:00 2001 +From: Janusz Chorko +Date: Fri, 26 Aug 2016 21:17:38 +0200 +Subject: [PATCH 1/7] Removed non-compiling assignment operator. Fixed #718 + +--- + include/rapidjson/document.h | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h +index e3e20dfb..b0f1f70b 100644 +--- a/include/rapidjson/document.h ++++ b/include/rapidjson/document.h +@@ -316,8 +316,6 @@ struct GenericStringRef { + + GenericStringRef(const GenericStringRef& rhs) : s(rhs.s), length(rhs.length) {} + +- GenericStringRef& operator=(const GenericStringRef& rhs) { s = rhs.s; length = rhs.length; } +- + //! implicit conversion to plain CharType pointer + operator const Ch *() const { return s; } + +-- +2.43.0 + diff --git a/1002-Explicitly-disable-copy-assignment-operator.patch b/1002-Explicitly-disable-copy-assignment-operator.patch new file mode 100644 index 0000000..54a514f --- /dev/null +++ b/1002-Explicitly-disable-copy-assignment-operator.patch @@ -0,0 +1,25 @@ +From f9d9e50caca4673f194115b059fe5daef77163fd Mon Sep 17 00:00:00 2001 +From: Janusz Chorko +Date: Fri, 26 Aug 2016 21:26:50 +0200 +Subject: [PATCH 2/7] Explicitly disable copy assignment operator + +--- + include/rapidjson/document.h | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h +index b0f1f70b..19f5a6a5 100644 +--- a/include/rapidjson/document.h ++++ b/include/rapidjson/document.h +@@ -326,6 +326,8 @@ private: + //! Disallow construction from non-const array + template + GenericStringRef(CharType (&str)[N]) /* = delete */; ++ //! Copy assignment operator not permitted - immutable type ++ GenericStringRef& operator=(const GenericStringRef& rhs) /* = delete */; + }; + + //! Mark a character pointer as constant string +-- +2.43.0 + diff --git a/1003-Three-way-comparison-for-CLang-10-fix-1679.patch b/1003-Three-way-comparison-for-CLang-10-fix-1679.patch new file mode 100644 index 0000000..637463c --- /dev/null +++ b/1003-Three-way-comparison-for-CLang-10-fix-1679.patch @@ -0,0 +1,50 @@ +From 2cecf24712bfe0f3d821a6f3763156066c7c40ec Mon Sep 17 00:00:00 2001 +From: Nikolay <211292+kolya7k@users.noreply.github.com> +Date: Mon, 30 Mar 2020 07:20:35 +0500 +Subject: [PATCH 3/7] Three-way comparison for CLang 10 fix (#1679) + +C++20 features must enable additional functionality, not to change interface completely +--- + include/rapidjson/document.h | 19 +++++++++++++------ + 1 file changed, 13 insertions(+), 6 deletions(-) + +diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h +index 19f5a6a5..8e13d1cc 100644 +--- a/include/rapidjson/document.h ++++ b/include/rapidjson/document.h +@@ -24,6 +24,9 @@ + #include "encodedstream.h" + #include // placement new + #include ++#ifdef __cpp_lib_three_way_comparison ++#include ++#endif + + RAPIDJSON_DIAG_PUSH + #ifdef _MSC_VER +@@ -168,12 +171,16 @@ public: + + //! @name relations + //@{ +- bool operator==(ConstIterator that) const { return ptr_ == that.ptr_; } +- bool operator!=(ConstIterator that) const { return ptr_ != that.ptr_; } +- bool operator<=(ConstIterator that) const { return ptr_ <= that.ptr_; } +- bool operator>=(ConstIterator that) const { return ptr_ >= that.ptr_; } +- bool operator< (ConstIterator that) const { return ptr_ < that.ptr_; } +- bool operator> (ConstIterator that) const { return ptr_ > that.ptr_; } ++ template bool operator==(const GenericMemberIterator& that) const { return ptr_ == that.ptr_; } ++ template bool operator!=(const GenericMemberIterator& that) const { return ptr_ != that.ptr_; } ++ template bool operator<=(const GenericMemberIterator& that) const { return ptr_ <= that.ptr_; } ++ template bool operator>=(const GenericMemberIterator& that) const { return ptr_ >= that.ptr_; } ++ template bool operator< (const GenericMemberIterator& that) const { return ptr_ < that.ptr_; } ++ template bool operator> (const GenericMemberIterator& that) const { return ptr_ > that.ptr_; } ++ ++#ifdef __cpp_lib_three_way_comparison ++ template std::strong_ordering operator<=>(const GenericMemberIterator& that) const { return ptr_ <=> that.ptr_; } ++#endif + //@} + + //! @name dereference +-- +2.43.0 + diff --git a/1004-Fix-recursive-operator-call-in-C-20-1846.patch b/1004-Fix-recursive-operator-call-in-C-20-1846.patch new file mode 100644 index 0000000..2aca216 --- /dev/null +++ b/1004-Fix-recursive-operator-call-in-C-20-1846.patch @@ -0,0 +1,32 @@ +From 11a7270fabf0c39cca0771453ae8a5df42d58f42 Mon Sep 17 00:00:00 2001 +From: Laurent Stacul +Date: Mon, 22 Feb 2021 16:11:42 +0000 +Subject: [PATCH 4/7] Fix recursive operator== call in C++20 (#1846) + +--- + include/rapidjson/document.h | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h +index 8e13d1cc..3c354a79 100644 +--- a/include/rapidjson/document.h ++++ b/include/rapidjson/document.h +@@ -926,6 +926,7 @@ public: + */ + template RAPIDJSON_DISABLEIF_RETURN((internal::IsGenericValue), (bool)) operator!=(const T& rhs) const { return !(*this == rhs); } + ++#ifndef __cpp_lib_three_way_comparison + //! Equal-to operator with arbitrary types (symmetric version) + /*! \return (rhs == lhs) + */ +@@ -936,6 +937,7 @@ public: + */ + template friend RAPIDJSON_DISABLEIF_RETURN((internal::IsGenericValue), (bool)) operator!=(const T& lhs, const GenericValue& rhs) { return !(rhs == lhs); } + //@} ++#endif + + //!@name Type + //@{ +-- +2.43.0 + diff --git a/1005-gate-definition-of-symmetric-equality-operators-on-i.patch b/1005-gate-definition-of-symmetric-equality-operators-on-i.patch new file mode 100644 index 0000000..886a5dc --- /dev/null +++ b/1005-gate-definition-of-symmetric-equality-operators-on-i.patch @@ -0,0 +1,29 @@ +From 424d1b95c7d95ac82f49bba82fdd05c29f73a2c1 Mon Sep 17 00:00:00 2001 +From: Kent Ross +Date: Mon, 14 Mar 2022 12:25:26 -0700 +Subject: [PATCH 5/7] gate definition of symmetric equality operators on impl, + not lib + +These operators call themselves recursively if C++20 semantics are present in the compiler, regardless of standard library support for the operator; therefore the test should be on __cpp_impl_three_way_comparison, not __cpp_lib_[...]. + +This fixes the Value.EqualtoOperator test when the language standard is set to C++20 and the standard library does not yet define the library support macro. +--- + include/rapidjson/document.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h +index 3c354a79..46510f85 100644 +--- a/include/rapidjson/document.h ++++ b/include/rapidjson/document.h +@@ -926,7 +926,7 @@ public: + */ + template RAPIDJSON_DISABLEIF_RETURN((internal::IsGenericValue), (bool)) operator!=(const T& rhs) const { return !(*this == rhs); } + +-#ifndef __cpp_lib_three_way_comparison ++#ifndef __cpp_impl_three_way_comparison + //! Equal-to operator with arbitrary types (symmetric version) + /*! \return (rhs == lhs) + */ +-- +2.43.0 + diff --git a/1006-do-not-define-operator-in-C-20.patch b/1006-do-not-define-operator-in-C-20.patch new file mode 100644 index 0000000..383c33a --- /dev/null +++ b/1006-do-not-define-operator-in-C-20.patch @@ -0,0 +1,37 @@ +From 42ca72bf3a161cf8d5e43f5d4f68aeeec3f7e6b4 Mon Sep 17 00:00:00 2001 +From: Kent Ross +Date: Thu, 3 Nov 2022 20:17:41 -0700 +Subject: [PATCH 6/7] do not define operator!= in C++20 + +A change to the semantics of equality operator rewriting in C++20 (P2468R2: The Equality Operator You Are Looking For) means that operator== may not be rewritten with reversed operands if operator!= is also defined. Since operator!= can normally be synthesized from operator== regardless in this language standard, we can and should avoid defining those when the new language semantics are available. + +This fixes the compilation of tests (and probably consuming code) in C++20 onwards for compilers that implement this new semantic, including recent nightly builds of clang-16. + +Reference: https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p2468r2.html +--- + include/rapidjson/document.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h +index 46510f85..8b0446db 100644 +--- a/include/rapidjson/document.h ++++ b/include/rapidjson/document.h +@@ -912,6 +912,7 @@ public: + */ + template RAPIDJSON_DISABLEIF_RETURN((internal::OrExpr,internal::IsGenericValue >), (bool)) operator==(const T& rhs) const { return *this == GenericValue(rhs); } + ++#ifndef __cpp_impl_three_way_comparison + //! Not-equal-to operator + /*! \return !(*this == rhs) + */ +@@ -926,7 +927,6 @@ public: + */ + template RAPIDJSON_DISABLEIF_RETURN((internal::IsGenericValue), (bool)) operator!=(const T& rhs) const { return !(*this == rhs); } + +-#ifndef __cpp_impl_three_way_comparison + //! Equal-to operator with arbitrary types (symmetric version) + /*! \return (rhs == lhs) + */ +-- +2.43.0 + diff --git a/warzone2100.spec b/warzone2100.spec index b624860..6b09481 100644 --- a/warzone2100.spec +++ b/warzone2100.spec @@ -13,6 +13,20 @@ Source1: https://github.com/Warzone2100/wz-sequences/releases/download/v3 # https://github.com/Warzone2100/warzone2100/pull/3353 Patch0: warzone2100-pr3353-new-vulkan-header.patch +## rapidjson patches +# https://github.com/Tencent/rapidjson/pull/719 +Patch1001: 1001-Removed-non-compiling-assignment-operator.-Fixed-718.patch +# https://github.com/Tencent/rapidjson/pull/719 +Patch1002: 1002-Explicitly-disable-copy-assignment-operator.patch +# https://github.com/Tencent/rapidjson/pull/1137 +Patch1003: 1003-Three-way-comparison-for-CLang-10-fix-1679.patch +# https://github.com/Tencent/rapidjson/pull/1679 +Patch1004: 1004-Fix-recursive-operator-call-in-C-20-1846.patch +# https://github.com/Tencent/rapidjson/pull/1847 +Patch1005: 1005-gate-definition-of-symmetric-equality-operators-on-i.patch +# https://github.com/Tencent/rapidjson/pull/2091 +Patch1006: 1006-do-not-define-operator-in-C-20.patch + # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} @@ -59,7 +73,12 @@ BuildArch: noarch Video file for %{name}. %prep -%autosetup -p1 -n warzone2100 +%autosetup -n warzone2100 -N +%autopatch -M 999 -p1 +# rapidjson patches +pushd 3rdparty/discord-rpc/thirdparty/rapidjson +%autopatch -m 1000 -p1 +popd # Don't use -Werror for distro builds sed -i -e '/^CONFIGURE_WZ_COMPILER_WARNINGS()$/d' CMakeLists.txt From bcf9595343b5de6d537b6fd6075b7fc9ba7934d9 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 20 Jul 2024 09:07:42 +0000 Subject: [PATCH 16/32] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild --- warzone2100.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/warzone2100.spec b/warzone2100.spec index 6b09481..0a057d1 100644 --- a/warzone2100.spec +++ b/warzone2100.spec @@ -3,7 +3,7 @@ Name: warzone2100 Version: 4.3.5 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Innovative 3D real-time strategy License: GPLv2+ and CC-BY-SA @@ -113,6 +113,9 @@ mv $RPM_BUILD_ROOT%{_datadir}/icons/net.wz2100.warzone2100.png \ %{_datadir}/warzone2100/sequences.wz %changelog +* Sat Jul 20 2024 Fedora Release Engineering - 4.3.5-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + * Sat Jan 27 2024 Fedora Release Engineering - 4.3.5-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 6cb62b32a8a5d4bf55fff8949894989eef5a2420 Mon Sep 17 00:00:00 2001 From: Pete Walter Date: Sun, 18 Aug 2024 23:43:43 +0100 Subject: [PATCH 17/32] Update to 4.5.2 (rhbz#2247216) --- ...iling-assignment-operator.-Fixed-718.patch | 25 -------- ...tly-disable-copy-assignment-operator.patch | 25 -------- ...way-comparison-for-CLang-10-fix-1679.patch | 50 --------------- ...recursive-operator-call-in-C-20-1846.patch | 32 ---------- ...of-symmetric-equality-operators-on-i.patch | 29 --------- 1006-do-not-define-operator-in-C-20.patch | 37 ----------- sources | 2 +- warzone2100-pr3353-new-vulkan-header.patch | 63 ------------------- warzone2100.spec | 31 ++------- 9 files changed, 6 insertions(+), 288 deletions(-) delete mode 100644 1001-Removed-non-compiling-assignment-operator.-Fixed-718.patch delete mode 100644 1002-Explicitly-disable-copy-assignment-operator.patch delete mode 100644 1003-Three-way-comparison-for-CLang-10-fix-1679.patch delete mode 100644 1004-Fix-recursive-operator-call-in-C-20-1846.patch delete mode 100644 1005-gate-definition-of-symmetric-equality-operators-on-i.patch delete mode 100644 1006-do-not-define-operator-in-C-20.patch delete mode 100644 warzone2100-pr3353-new-vulkan-header.patch diff --git a/1001-Removed-non-compiling-assignment-operator.-Fixed-718.patch b/1001-Removed-non-compiling-assignment-operator.-Fixed-718.patch deleted file mode 100644 index a31737f..0000000 --- a/1001-Removed-non-compiling-assignment-operator.-Fixed-718.patch +++ /dev/null @@ -1,25 +0,0 @@ -From 1257fe9096b70cc278f9d6e4029776b50df5d5cf Mon Sep 17 00:00:00 2001 -From: Janusz Chorko -Date: Fri, 26 Aug 2016 21:17:38 +0200 -Subject: [PATCH 1/7] Removed non-compiling assignment operator. Fixed #718 - ---- - include/rapidjson/document.h | 2 -- - 1 file changed, 2 deletions(-) - -diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h -index e3e20dfb..b0f1f70b 100644 ---- a/include/rapidjson/document.h -+++ b/include/rapidjson/document.h -@@ -316,8 +316,6 @@ struct GenericStringRef { - - GenericStringRef(const GenericStringRef& rhs) : s(rhs.s), length(rhs.length) {} - -- GenericStringRef& operator=(const GenericStringRef& rhs) { s = rhs.s; length = rhs.length; } -- - //! implicit conversion to plain CharType pointer - operator const Ch *() const { return s; } - --- -2.43.0 - diff --git a/1002-Explicitly-disable-copy-assignment-operator.patch b/1002-Explicitly-disable-copy-assignment-operator.patch deleted file mode 100644 index 54a514f..0000000 --- a/1002-Explicitly-disable-copy-assignment-operator.patch +++ /dev/null @@ -1,25 +0,0 @@ -From f9d9e50caca4673f194115b059fe5daef77163fd Mon Sep 17 00:00:00 2001 -From: Janusz Chorko -Date: Fri, 26 Aug 2016 21:26:50 +0200 -Subject: [PATCH 2/7] Explicitly disable copy assignment operator - ---- - include/rapidjson/document.h | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h -index b0f1f70b..19f5a6a5 100644 ---- a/include/rapidjson/document.h -+++ b/include/rapidjson/document.h -@@ -326,6 +326,8 @@ private: - //! Disallow construction from non-const array - template - GenericStringRef(CharType (&str)[N]) /* = delete */; -+ //! Copy assignment operator not permitted - immutable type -+ GenericStringRef& operator=(const GenericStringRef& rhs) /* = delete */; - }; - - //! Mark a character pointer as constant string --- -2.43.0 - diff --git a/1003-Three-way-comparison-for-CLang-10-fix-1679.patch b/1003-Three-way-comparison-for-CLang-10-fix-1679.patch deleted file mode 100644 index 637463c..0000000 --- a/1003-Three-way-comparison-for-CLang-10-fix-1679.patch +++ /dev/null @@ -1,50 +0,0 @@ -From 2cecf24712bfe0f3d821a6f3763156066c7c40ec Mon Sep 17 00:00:00 2001 -From: Nikolay <211292+kolya7k@users.noreply.github.com> -Date: Mon, 30 Mar 2020 07:20:35 +0500 -Subject: [PATCH 3/7] Three-way comparison for CLang 10 fix (#1679) - -C++20 features must enable additional functionality, not to change interface completely ---- - include/rapidjson/document.h | 19 +++++++++++++------ - 1 file changed, 13 insertions(+), 6 deletions(-) - -diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h -index 19f5a6a5..8e13d1cc 100644 ---- a/include/rapidjson/document.h -+++ b/include/rapidjson/document.h -@@ -24,6 +24,9 @@ - #include "encodedstream.h" - #include // placement new - #include -+#ifdef __cpp_lib_three_way_comparison -+#include -+#endif - - RAPIDJSON_DIAG_PUSH - #ifdef _MSC_VER -@@ -168,12 +171,16 @@ public: - - //! @name relations - //@{ -- bool operator==(ConstIterator that) const { return ptr_ == that.ptr_; } -- bool operator!=(ConstIterator that) const { return ptr_ != that.ptr_; } -- bool operator<=(ConstIterator that) const { return ptr_ <= that.ptr_; } -- bool operator>=(ConstIterator that) const { return ptr_ >= that.ptr_; } -- bool operator< (ConstIterator that) const { return ptr_ < that.ptr_; } -- bool operator> (ConstIterator that) const { return ptr_ > that.ptr_; } -+ template bool operator==(const GenericMemberIterator& that) const { return ptr_ == that.ptr_; } -+ template bool operator!=(const GenericMemberIterator& that) const { return ptr_ != that.ptr_; } -+ template bool operator<=(const GenericMemberIterator& that) const { return ptr_ <= that.ptr_; } -+ template bool operator>=(const GenericMemberIterator& that) const { return ptr_ >= that.ptr_; } -+ template bool operator< (const GenericMemberIterator& that) const { return ptr_ < that.ptr_; } -+ template bool operator> (const GenericMemberIterator& that) const { return ptr_ > that.ptr_; } -+ -+#ifdef __cpp_lib_three_way_comparison -+ template std::strong_ordering operator<=>(const GenericMemberIterator& that) const { return ptr_ <=> that.ptr_; } -+#endif - //@} - - //! @name dereference --- -2.43.0 - diff --git a/1004-Fix-recursive-operator-call-in-C-20-1846.patch b/1004-Fix-recursive-operator-call-in-C-20-1846.patch deleted file mode 100644 index 2aca216..0000000 --- a/1004-Fix-recursive-operator-call-in-C-20-1846.patch +++ /dev/null @@ -1,32 +0,0 @@ -From 11a7270fabf0c39cca0771453ae8a5df42d58f42 Mon Sep 17 00:00:00 2001 -From: Laurent Stacul -Date: Mon, 22 Feb 2021 16:11:42 +0000 -Subject: [PATCH 4/7] Fix recursive operator== call in C++20 (#1846) - ---- - include/rapidjson/document.h | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h -index 8e13d1cc..3c354a79 100644 ---- a/include/rapidjson/document.h -+++ b/include/rapidjson/document.h -@@ -926,6 +926,7 @@ public: - */ - template RAPIDJSON_DISABLEIF_RETURN((internal::IsGenericValue), (bool)) operator!=(const T& rhs) const { return !(*this == rhs); } - -+#ifndef __cpp_lib_three_way_comparison - //! Equal-to operator with arbitrary types (symmetric version) - /*! \return (rhs == lhs) - */ -@@ -936,6 +937,7 @@ public: - */ - template friend RAPIDJSON_DISABLEIF_RETURN((internal::IsGenericValue), (bool)) operator!=(const T& lhs, const GenericValue& rhs) { return !(rhs == lhs); } - //@} -+#endif - - //!@name Type - //@{ --- -2.43.0 - diff --git a/1005-gate-definition-of-symmetric-equality-operators-on-i.patch b/1005-gate-definition-of-symmetric-equality-operators-on-i.patch deleted file mode 100644 index 886a5dc..0000000 --- a/1005-gate-definition-of-symmetric-equality-operators-on-i.patch +++ /dev/null @@ -1,29 +0,0 @@ -From 424d1b95c7d95ac82f49bba82fdd05c29f73a2c1 Mon Sep 17 00:00:00 2001 -From: Kent Ross -Date: Mon, 14 Mar 2022 12:25:26 -0700 -Subject: [PATCH 5/7] gate definition of symmetric equality operators on impl, - not lib - -These operators call themselves recursively if C++20 semantics are present in the compiler, regardless of standard library support for the operator; therefore the test should be on __cpp_impl_three_way_comparison, not __cpp_lib_[...]. - -This fixes the Value.EqualtoOperator test when the language standard is set to C++20 and the standard library does not yet define the library support macro. ---- - include/rapidjson/document.h | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h -index 3c354a79..46510f85 100644 ---- a/include/rapidjson/document.h -+++ b/include/rapidjson/document.h -@@ -926,7 +926,7 @@ public: - */ - template RAPIDJSON_DISABLEIF_RETURN((internal::IsGenericValue), (bool)) operator!=(const T& rhs) const { return !(*this == rhs); } - --#ifndef __cpp_lib_three_way_comparison -+#ifndef __cpp_impl_three_way_comparison - //! Equal-to operator with arbitrary types (symmetric version) - /*! \return (rhs == lhs) - */ --- -2.43.0 - diff --git a/1006-do-not-define-operator-in-C-20.patch b/1006-do-not-define-operator-in-C-20.patch deleted file mode 100644 index 383c33a..0000000 --- a/1006-do-not-define-operator-in-C-20.patch +++ /dev/null @@ -1,37 +0,0 @@ -From 42ca72bf3a161cf8d5e43f5d4f68aeeec3f7e6b4 Mon Sep 17 00:00:00 2001 -From: Kent Ross -Date: Thu, 3 Nov 2022 20:17:41 -0700 -Subject: [PATCH 6/7] do not define operator!= in C++20 - -A change to the semantics of equality operator rewriting in C++20 (P2468R2: The Equality Operator You Are Looking For) means that operator== may not be rewritten with reversed operands if operator!= is also defined. Since operator!= can normally be synthesized from operator== regardless in this language standard, we can and should avoid defining those when the new language semantics are available. - -This fixes the compilation of tests (and probably consuming code) in C++20 onwards for compilers that implement this new semantic, including recent nightly builds of clang-16. - -Reference: https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p2468r2.html ---- - include/rapidjson/document.h | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h -index 46510f85..8b0446db 100644 ---- a/include/rapidjson/document.h -+++ b/include/rapidjson/document.h -@@ -912,6 +912,7 @@ public: - */ - template RAPIDJSON_DISABLEIF_RETURN((internal::OrExpr,internal::IsGenericValue >), (bool)) operator==(const T& rhs) const { return *this == GenericValue(rhs); } - -+#ifndef __cpp_impl_three_way_comparison - //! Not-equal-to operator - /*! \return !(*this == rhs) - */ -@@ -926,7 +927,6 @@ public: - */ - template RAPIDJSON_DISABLEIF_RETURN((internal::IsGenericValue), (bool)) operator!=(const T& rhs) const { return !(*this == rhs); } - --#ifndef __cpp_impl_three_way_comparison - //! Equal-to operator with arbitrary types (symmetric version) - /*! \return (rhs == lhs) - */ --- -2.43.0 - diff --git a/sources b/sources index ab9f102..bb19548 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (high-quality-en-sequences.wz) = 2a4a9e299412fe1adac21001848d10575be69039bb2d762bcad94faefbf498ff72ff0e37fc4017c7598692d250456a444d6d5619c88a9772cfd3a03d4b780f12 -SHA512 (warzone2100_src.tar.xz) = ec65f22a0aad9fe482c4ea916cb321d171b10f0a9b181fea7db2eb17bf54e32b3828c8259082fff266713e2cab4e32dcc455d0d5b923a5ca221fc77b11137062 +SHA512 (warzone2100_src.tar.xz) = 09051396f84c0e358c0748fe25a27ab3a8801ddc9a8852e69ca81e6ceea9b81b41307639cf0cc2bf5851446b2086ccb5b279d2f8da05e719d533d07924bf20b9 diff --git a/warzone2100-pr3353-new-vulkan-header.patch b/warzone2100-pr3353-new-vulkan-header.patch deleted file mode 100644 index fc37ee5..0000000 --- a/warzone2100-pr3353-new-vulkan-header.patch +++ /dev/null @@ -1,63 +0,0 @@ -From cdac3fc02a210f249b5ff078ee180235f46f65a1 Mon Sep 17 00:00:00 2001 -From: Heiko Becker -Date: Sun, 25 Jun 2023 17:30:39 +0200 -Subject: [PATCH] [Vulkan] Fix the build with vulkan-header >= 1.3.260 - -Add detail:: namespace to throwResultException ---- - lib/ivis_opengl/gfx_api_vk.cpp | 20 +++++++++++++------- - 1 file changed, 13 insertions(+), 7 deletions(-) - -diff --git a/lib/ivis_opengl/gfx_api_vk.cpp b/lib/ivis_opengl/gfx_api_vk.cpp -index b89167bd96a..fa14d5bbaf7 100644 ---- a/lib/ivis_opengl/gfx_api_vk.cpp -+++ b/lib/ivis_opengl/gfx_api_vk.cpp -@@ -59,6 +59,12 @@ - #pragma GCC diagnostic ignored "-Wdeprecated-copy" // Ignore warnings caused by vulkan.hpp 148 - #endif - -+#if VK_HEADER_VERSION >= 260 -+# define WZ_THROW_VK_RESULT_EXCEPTION(result, message) vk::detail::throwResultException(result, message) -+#else -+# define WZ_THROW_VK_RESULT_EXCEPTION(result, message) vk::throwResultException(result, message) -+#endif -+ - const uint32_t minSupportedVulkanVersion = VK_API_VERSION_1_0; - #if defined(DEBUG) - // For debug builds, limit to the minimum that should be supported by this backend (which is Vulkan 1.0, see above) -@@ -549,7 +555,7 @@ void BlockBufferAllocator::allocateNewBlock(uint32_t minimumSize) - if (result != vk::Result::eSuccess) - { - // Failed to allocate memory! -- vk::throwResultException( result, "vmaCreateBuffer" ); -+ WZ_THROW_VK_RESULT_EXCEPTION( result, "vmaCreateBuffer" ); - } - - if (autoMap) -@@ -1760,7 +1766,7 @@ VkPSO::VkPSO(vk::Device _dev, - object = std::move(result.value); - break; - default: -- vk::throwResultException(result.result, "createGraphicsPipeline"); -+ WZ_THROW_VK_RESULT_EXCEPTION(result.result, "createGraphicsPipeline"); - } - } - -@@ -1824,7 +1830,7 @@ void VkBuf::allocateBufferObject(const std::size_t& size) - if (result != vk::Result::eSuccess) - { - // Failed to allocate memory! -- vk::throwResultException( result, "vmaCreateBuffer" ); -+ WZ_THROW_VK_RESULT_EXCEPTION( result, "vmaCreateBuffer" ); - } - - buffer_size = size; -@@ -1966,7 +1972,7 @@ VkTexture::VkTexture(const VkRoot& root, const std::size_t& mipmap_count, const - if (result != vk::Result::eSuccess) - { - // Failed to allocate memory! -- vk::throwResultException( result, "vmaCreateImage" ); -+ WZ_THROW_VK_RESULT_EXCEPTION( result, "vmaCreateImage" ); - } - - if (root.debugUtilsExtEnabled) diff --git a/warzone2100.spec b/warzone2100.spec index 0a057d1..6d3b9b8 100644 --- a/warzone2100.spec +++ b/warzone2100.spec @@ -2,30 +2,14 @@ %global _cmake_shared_libs %{nil} Name: warzone2100 -Version: 4.3.5 -Release: 6%{?dist} +Version: 4.5.2 +Release: 1%{?dist} Summary: Innovative 3D real-time strategy License: GPLv2+ and CC-BY-SA URL: http://wz2100.net/ Source0: https://github.com/Warzone2100/warzone2100/releases/download/%{version}/warzone2100_src.tar.xz Source1: https://github.com/Warzone2100/wz-sequences/releases/download/v3/high-quality-en-sequences.wz -# https://github.com/Warzone2100/warzone2100/pull/3353 -Patch0: warzone2100-pr3353-new-vulkan-header.patch - -## rapidjson patches -# https://github.com/Tencent/rapidjson/pull/719 -Patch1001: 1001-Removed-non-compiling-assignment-operator.-Fixed-718.patch -# https://github.com/Tencent/rapidjson/pull/719 -Patch1002: 1002-Explicitly-disable-copy-assignment-operator.patch -# https://github.com/Tencent/rapidjson/pull/1137 -Patch1003: 1003-Three-way-comparison-for-CLang-10-fix-1679.patch -# https://github.com/Tencent/rapidjson/pull/1679 -Patch1004: 1004-Fix-recursive-operator-call-in-C-20-1846.patch -# https://github.com/Tencent/rapidjson/pull/1847 -Patch1005: 1005-gate-definition-of-symmetric-equality-operators-on-i.patch -# https://github.com/Tencent/rapidjson/pull/2091 -Patch1006: 1006-do-not-define-operator-in-C-20.patch # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} @@ -73,12 +57,7 @@ BuildArch: noarch Video file for %{name}. %prep -%autosetup -n warzone2100 -N -%autopatch -M 999 -p1 -# rapidjson patches -pushd 3rdparty/discord-rpc/thirdparty/rapidjson -%autopatch -m 1000 -p1 -popd +%autosetup -n warzone2100 -p1 # Don't use -Werror for distro builds sed -i -e '/^CONFIGURE_WZ_COMPILER_WARNINGS()$/d' CMakeLists.txt @@ -90,7 +69,7 @@ sed -i -e '/^CONFIGURE_WZ_COMPILER_WARNINGS()$/d' CMakeLists.txt %install %cmake_install rm -rf $RPM_BUILD_ROOT%{_defaultdocdir} -%find_lang %{name} +%find_lang %{name} --all-name install -p -m644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/warzone2100/sequences.wz # Fix icon install path @@ -104,7 +83,7 @@ mv $RPM_BUILD_ROOT%{_datadir}/icons/net.wz2100.warzone2100.png \ %{_bindir}/warzone2100 %{_datadir}/applications/net.wz2100.warzone2100.desktop %{_datadir}/icons/hicolor/128x128/apps/net.wz2100.warzone2100.png -%{_datadir}/metainfo/net.wz2100.warzone2100.appdata.xml +%{_datadir}/metainfo/net.wz2100.warzone2100.metainfo.xml %{_datadir}/warzone2100/ %exclude %{_datadir}/warzone2100/sequences.wz %{_mandir}/man6/warzone2100.6* From 087ab02e32a9ec332294da2898dab910535a7aae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Wed, 4 Sep 2024 22:45:39 +0200 Subject: [PATCH 18/32] convert license to SPDX This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4 --- warzone2100.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/warzone2100.spec b/warzone2100.spec index 6d3b9b8..fa0dbee 100644 --- a/warzone2100.spec +++ b/warzone2100.spec @@ -3,10 +3,11 @@ Name: warzone2100 Version: 4.5.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Innovative 3D real-time strategy -License: GPLv2+ and CC-BY-SA +# Automatically converted from old format: GPLv2+ and CC-BY-SA - review is highly recommended. +License: GPL-2.0-or-later AND LicenseRef-Callaway-CC-BY-SA URL: http://wz2100.net/ Source0: https://github.com/Warzone2100/warzone2100/releases/download/%{version}/warzone2100_src.tar.xz Source1: https://github.com/Warzone2100/wz-sequences/releases/download/v3/high-quality-en-sequences.wz @@ -92,6 +93,9 @@ mv $RPM_BUILD_ROOT%{_datadir}/icons/net.wz2100.warzone2100.png \ %{_datadir}/warzone2100/sequences.wz %changelog +* Wed Sep 4 2024 Miroslav Suchý - 4.5.2-2 +- convert license to SPDX + * Sat Jul 20 2024 Fedora Release Engineering - 4.3.5-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From 6a4730d41dd2608d39ec5b67405aa917defd92bc Mon Sep 17 00:00:00 2001 From: Pete Walter Date: Wed, 2 Oct 2024 10:25:28 +0100 Subject: [PATCH 19/32] Update to 4.5.3 (rhbz#2312053) --- sources | 2 +- warzone2100.spec | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sources b/sources index bb19548..2b4166f 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (high-quality-en-sequences.wz) = 2a4a9e299412fe1adac21001848d10575be69039bb2d762bcad94faefbf498ff72ff0e37fc4017c7598692d250456a444d6d5619c88a9772cfd3a03d4b780f12 -SHA512 (warzone2100_src.tar.xz) = 09051396f84c0e358c0748fe25a27ab3a8801ddc9a8852e69ca81e6ceea9b81b41307639cf0cc2bf5851446b2086ccb5b279d2f8da05e719d533d07924bf20b9 +SHA512 (warzone2100_src.tar.xz) = 1c73d8ec35c91b16bfcb1c6a17dbb34c8baa45d0f5e6e14212692aaf8166c2bd4e5137dfbbaa3bb6f27f82ec58efa8869f15c345a2f18cfa48a78a175e4bb258 diff --git a/warzone2100.spec b/warzone2100.spec index fa0dbee..c55592d 100644 --- a/warzone2100.spec +++ b/warzone2100.spec @@ -2,8 +2,8 @@ %global _cmake_shared_libs %{nil} Name: warzone2100 -Version: 4.5.2 -Release: 2%{?dist} +Version: 4.5.3 +Release: 1%{?dist} Summary: Innovative 3D real-time strategy # Automatically converted from old format: GPLv2+ and CC-BY-SA - review is highly recommended. @@ -93,6 +93,9 @@ mv $RPM_BUILD_ROOT%{_datadir}/icons/net.wz2100.warzone2100.png \ %{_datadir}/warzone2100/sequences.wz %changelog +* Wed Oct 02 2024 Pete Walter - 4.5.3-1 +- Update to 4.5.3 (rhbz#2312053) + * Wed Sep 4 2024 Miroslav Suchý - 4.5.2-2 - convert license to SPDX From c0c22da93e96411444a3a58a159683bd7db9e64c Mon Sep 17 00:00:00 2001 From: Pete Walter Date: Tue, 14 Jan 2025 17:47:21 +0000 Subject: [PATCH 20/32] Update to 4.5.5 (rhbz#2324276) --- sources | 2 +- warzone2100.spec | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sources b/sources index 2b4166f..30c27a7 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (high-quality-en-sequences.wz) = 2a4a9e299412fe1adac21001848d10575be69039bb2d762bcad94faefbf498ff72ff0e37fc4017c7598692d250456a444d6d5619c88a9772cfd3a03d4b780f12 -SHA512 (warzone2100_src.tar.xz) = 1c73d8ec35c91b16bfcb1c6a17dbb34c8baa45d0f5e6e14212692aaf8166c2bd4e5137dfbbaa3bb6f27f82ec58efa8869f15c345a2f18cfa48a78a175e4bb258 +SHA512 (warzone2100_src.tar.xz) = b153306ea8a55334a37580c2862579f6b6a283ba3c082901fcb97fe4da3a6ae4b7bc9bd7c1fa33f39a3b5113876080b90422174f376a7ed148a18f21f57ee8b3 diff --git a/warzone2100.spec b/warzone2100.spec index c55592d..4b62833 100644 --- a/warzone2100.spec +++ b/warzone2100.spec @@ -2,7 +2,7 @@ %global _cmake_shared_libs %{nil} Name: warzone2100 -Version: 4.5.3 +Version: 4.5.5 Release: 1%{?dist} Summary: Innovative 3D real-time strategy @@ -93,6 +93,9 @@ mv $RPM_BUILD_ROOT%{_datadir}/icons/net.wz2100.warzone2100.png \ %{_datadir}/warzone2100/sequences.wz %changelog +* Tue Jan 14 2025 Pete Walter - 4.5.5-1 +- Update to 4.5.5 (rhbz#2324276) + * Wed Oct 02 2024 Pete Walter - 4.5.3-1 - Update to 4.5.3 (rhbz#2312053) From c1e0cec363108dd1dc6989865129e8486a193d21 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sun, 19 Jan 2025 14:45:37 +0000 Subject: [PATCH 21/32] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- warzone2100.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/warzone2100.spec b/warzone2100.spec index 4b62833..8cbe447 100644 --- a/warzone2100.spec +++ b/warzone2100.spec @@ -3,7 +3,7 @@ Name: warzone2100 Version: 4.5.5 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Innovative 3D real-time strategy # Automatically converted from old format: GPLv2+ and CC-BY-SA - review is highly recommended. @@ -93,6 +93,9 @@ mv $RPM_BUILD_ROOT%{_datadir}/icons/net.wz2100.warzone2100.png \ %{_datadir}/warzone2100/sequences.wz %changelog +* Sun Jan 19 2025 Fedora Release Engineering - 4.5.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Tue Jan 14 2025 Pete Walter - 4.5.5-1 - Update to 4.5.5 (rhbz#2324276) From 3ef89fe71fd3533e8f6d5d31ca6c6916cf6890c9 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Mon, 10 Mar 2025 22:24:18 -0400 Subject: [PATCH 22/32] Fix build with GCC 15 https://github.com/SRombauts/SQLiteCpp/pull/488 --- SQLiteCPP-gcc15.patch | 35 +++++++++++++++++++++++++++++++++++ warzone2100.spec | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 SQLiteCPP-gcc15.patch diff --git a/SQLiteCPP-gcc15.patch b/SQLiteCPP-gcc15.patch new file mode 100644 index 0000000..1e13941 --- /dev/null +++ b/SQLiteCPP-gcc15.patch @@ -0,0 +1,35 @@ +From a4287a72e12ff64aec2b6cc418a3726bb1a4b7a4 Mon Sep 17 00:00:00 2001 +From: Sergei Trofimovich +Date: Sat, 7 Sep 2024 14:31:27 +0100 +Subject: [PATCH] SQLiteCpp/Statement.h: add missing `` include + +Without the change the build fails on `gcc-15` as: + + [ 5%] Building CXX object CMakeFiles/SQLiteCpp.dir/src/Backup.cpp.o + In file included from /build/source/include/SQLiteCpp/Column.h:14, + from /build/source/include/SQLiteCpp/Database.h:14, + from /build/source/include/SQLiteCpp/Backup.h:15, + from /build/source/src/Backup.cpp:12: + /build/source/include/SQLiteCpp/Statement.h:132:39: error: 'uint32_t' does not name a type + 132 | void bind(const int aIndex, const uint32_t aValue); + | ^~~~~~~~ + /build/source/include/SQLiteCpp/Statement.h:20:1: note: 'uint32_t' is defined in header ''; this is probably fixable by adding '#include ' + 19 | #include + +++ |+#include + 20 | +--- + include/SQLiteCpp/Statement.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/include/SQLiteCpp/Statement.h b/include/SQLiteCpp/Statement.h +index bb62a9f9..2f3adf7d 100644 +--- a/3rdparty/SQLiteCpp/include/SQLiteCpp/Statement.h ++++ b/3rdparty/SQLiteCpp/include/SQLiteCpp/Statement.h +@@ -14,6 +14,7 @@ + #include + #include // SQLITECPP_PURE_FUNC + ++#include + #include + #include + #include diff --git a/warzone2100.spec b/warzone2100.spec index 8cbe447..3c18ab4 100644 --- a/warzone2100.spec +++ b/warzone2100.spec @@ -12,6 +12,8 @@ URL: http://wz2100.net/ Source0: https://github.com/Warzone2100/warzone2100/releases/download/%{version}/warzone2100_src.tar.xz Source1: https://github.com/Warzone2100/wz-sequences/releases/download/v3/high-quality-en-sequences.wz +Patch0: SQLiteCPP-gcc15.patch + # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} From e2ce51996d37755ca298a9cd5f09cabb57a20e79 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 25 Jul 2025 20:17:30 +0000 Subject: [PATCH 23/32] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- warzone2100.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/warzone2100.spec b/warzone2100.spec index 3c18ab4..18baaa3 100644 --- a/warzone2100.spec +++ b/warzone2100.spec @@ -3,7 +3,7 @@ Name: warzone2100 Version: 4.5.5 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Innovative 3D real-time strategy # Automatically converted from old format: GPLv2+ and CC-BY-SA - review is highly recommended. @@ -95,6 +95,9 @@ mv $RPM_BUILD_ROOT%{_datadir}/icons/net.wz2100.warzone2100.png \ %{_datadir}/warzone2100/sequences.wz %changelog +* Fri Jul 25 2025 Fedora Release Engineering - 4.5.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Sun Jan 19 2025 Fedora Release Engineering - 4.5.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From a267a28b39ac6399410e6f0d260e05bbdb410e7d Mon Sep 17 00:00:00 2001 From: Gwyn Ciesla Date: Thu, 14 Aug 2025 08:08:05 -0500 Subject: [PATCH 24/32] Fix FTBFS --- cmake4.patch | 521 +++++++++++++++++++++++++++++++++++++++++++++++ warzone2100.spec | 1 + 2 files changed, 522 insertions(+) create mode 100644 cmake4.patch diff --git a/cmake4.patch b/cmake4.patch new file mode 100644 index 0000000..1075dc4 --- /dev/null +++ b/cmake4.patch @@ -0,0 +1,521 @@ +diff -U3 -r warzone2100.old/3rdparty/basis_universal/CMakeLists.txt warzone2100/3rdparty/basis_universal/CMakeLists.txt +--- warzone2100.old/3rdparty/basis_universal/CMakeLists.txt 2024-11-13 13:54:52.000000000 -0600 ++++ warzone2100/3rdparty/basis_universal/CMakeLists.txt 2025-08-13 14:49:48.825317535 -0500 +@@ -1,6 +1,6 @@ + project(basisu) + +-cmake_minimum_required(VERSION 3.0) ++cmake_minimum_required(VERSION 3.12...4.0) + option(STATIC "static linking" FALSE) + option(SAN "sanitize" FALSE) + +diff -U3 -r warzone2100.old/3rdparty/basis_universal/webgl/encoder/CMakeLists.txt warzone2100/3rdparty/basis_universal/webgl/encoder/CMakeLists.txt +--- warzone2100.old/3rdparty/basis_universal/webgl/encoder/CMakeLists.txt 2024-11-13 13:54:52.000000000 -0600 ++++ warzone2100/3rdparty/basis_universal/webgl/encoder/CMakeLists.txt 2025-08-13 14:49:48.825112521 -0500 +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.0) ++cmake_minimum_required(VERSION 3.12...4.0) + + project(basisu_encoder_js) + +diff -U3 -r warzone2100.old/3rdparty/basis_universal/webgl/transcoder/CMakeLists.txt warzone2100/3rdparty/basis_universal/webgl/transcoder/CMakeLists.txt +--- warzone2100.old/3rdparty/basis_universal/webgl/transcoder/CMakeLists.txt 2024-11-13 13:54:52.000000000 -0600 ++++ warzone2100/3rdparty/basis_universal/webgl/transcoder/CMakeLists.txt 2025-08-13 14:49:48.824916527 -0500 +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.0) ++cmake_minimum_required(VERSION 3.12...4.0) + + project(basisu_transcoder_js) + +diff -U3 -r warzone2100.old/3rdparty/basis_universal_host_build/CMakeLists.txt warzone2100/3rdparty/basis_universal_host_build/CMakeLists.txt +--- warzone2100.old/3rdparty/basis_universal_host_build/CMakeLists.txt 2024-11-13 13:54:24.000000000 -0600 ++++ warzone2100/3rdparty/basis_universal_host_build/CMakeLists.txt 2025-08-13 14:49:48.827655139 -0500 +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.5) ++cmake_minimum_required(VERSION 3.12...4.0) + project(basis_universal_host_build_wrapper) + + set(BASIS_UNIVERSAL_SRC_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../basis_universal") +diff -U3 -r warzone2100.old/3rdparty/CMakeLists.txt warzone2100/3rdparty/CMakeLists.txt +--- warzone2100.old/3rdparty/CMakeLists.txt 2024-11-13 13:54:24.000000000 -0600 ++++ warzone2100/3rdparty/CMakeLists.txt 2025-08-13 14:49:48.827852856 -0500 +@@ -1,4 +1,4 @@ +-cmake_minimum_required (VERSION 3.5...3.24) ++cmake_minimum_required(VERSION 3.12...4.0) + + include(CheckCompilerFlagsOutput) + +diff -U3 -r warzone2100.old/3rdparty/date/CMakeLists.txt warzone2100/3rdparty/date/CMakeLists.txt +--- warzone2100.old/3rdparty/date/CMakeLists.txt 2024-11-13 13:54:52.000000000 -0600 ++++ warzone2100/3rdparty/date/CMakeLists.txt 2025-08-13 14:49:48.826956569 -0500 +@@ -15,7 +15,7 @@ + + #]===================================================================] + +-cmake_minimum_required( VERSION 3.7 ) ++cmake_minimum_required(VERSION 3.12...4.0) + + project( date VERSION 3.0.1 ) + set(ABI_VERSION 3) # used as SOVERSION, increment when ABI changes +diff -U3 -r warzone2100.old/3rdparty/discord-rpc/CMakeLists.txt warzone2100/3rdparty/discord-rpc/CMakeLists.txt +--- warzone2100.old/3rdparty/discord-rpc/CMakeLists.txt 2024-11-13 13:54:52.000000000 -0600 ++++ warzone2100/3rdparty/discord-rpc/CMakeLists.txt 2025-08-13 14:49:48.822365594 -0500 +@@ -1,4 +1,4 @@ +-cmake_minimum_required (VERSION 3.2...3.14) ++cmake_minimum_required(VERSION 3.12...4.0) + project (DiscordRPC) + + include(GNUInstallDirs) +diff -U3 -r warzone2100.old/3rdparty/discord-rpc/thirdparty/rapidjson/example/CMakeLists.txt warzone2100/3rdparty/discord-rpc/thirdparty/rapidjson/example/CMakeLists.txt +--- warzone2100.old/3rdparty/discord-rpc/thirdparty/rapidjson/example/CMakeLists.txt 2024-11-13 13:54:54.000000000 -0600 ++++ warzone2100/3rdparty/discord-rpc/thirdparty/rapidjson/example/CMakeLists.txt 2025-08-13 14:49:48.823698588 -0500 +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 2.8) ++cmake_minimum_required(VERSION 3.12...4.0) + + if(POLICY CMP0054) + cmake_policy(SET CMP0054 NEW) +diff -U3 -r warzone2100.old/3rdparty/discord-rpc/thirdparty/rapidjson/thirdparty/gtest/CMakeLists.txt warzone2100/3rdparty/discord-rpc/thirdparty/rapidjson/thirdparty/gtest/CMakeLists.txt +--- warzone2100.old/3rdparty/discord-rpc/thirdparty/rapidjson/thirdparty/gtest/CMakeLists.txt 2024-11-13 13:54:55.000000000 -0600 ++++ warzone2100/3rdparty/discord-rpc/thirdparty/rapidjson/thirdparty/gtest/CMakeLists.txt 2025-08-13 14:49:48.823017794 -0500 +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 2.6.4) ++cmake_minimum_required(VERSION 3.12...4.0) + + if (POLICY CMP0048) + cmake_policy(SET CMP0048 NEW) +diff -U3 -r warzone2100.old/3rdparty/discord-rpc/thirdparty/rapidjson/thirdparty/gtest/googlemock/CMakeLists.txt warzone2100/3rdparty/discord-rpc/thirdparty/rapidjson/thirdparty/gtest/googlemock/CMakeLists.txt +--- warzone2100.old/3rdparty/discord-rpc/thirdparty/rapidjson/thirdparty/gtest/googlemock/CMakeLists.txt 2024-11-13 13:54:55.000000000 -0600 ++++ warzone2100/3rdparty/discord-rpc/thirdparty/rapidjson/thirdparty/gtest/googlemock/CMakeLists.txt 2025-08-13 14:49:48.822648901 -0500 +@@ -43,7 +43,7 @@ + cmake_policy(SET CMP0048 NEW) + project(gmock VERSION 1.9.0 LANGUAGES CXX C) + endif() +-cmake_minimum_required(VERSION 2.6.4) ++cmake_minimum_required(VERSION 3.12...4.0) + + if (COMMAND set_up_hermetic_build) + set_up_hermetic_build() +diff -U3 -r warzone2100.old/3rdparty/discord-rpc/thirdparty/rapidjson/thirdparty/gtest/googletest/CMakeLists.txt warzone2100/3rdparty/discord-rpc/thirdparty/rapidjson/thirdparty/gtest/googletest/CMakeLists.txt +--- warzone2100.old/3rdparty/discord-rpc/thirdparty/rapidjson/thirdparty/gtest/googletest/CMakeLists.txt 2024-11-13 13:54:55.000000000 -0600 ++++ warzone2100/3rdparty/discord-rpc/thirdparty/rapidjson/thirdparty/gtest/googletest/CMakeLists.txt 2025-08-13 14:49:48.823285576 -0500 +@@ -50,7 +50,7 @@ + cmake_policy(SET CMP0048 NEW) + project(gtest VERSION 1.9.0 LANGUAGES CXX C) + endif() +-cmake_minimum_required(VERSION 2.6.4) ++cmake_minimum_required(VERSION 3.12...4.0) + + if (POLICY CMP0063) # Visibility + cmake_policy(SET CMP0063 NEW) +diff -U3 -r warzone2100.old/3rdparty/EmbeddedJSONSignature/CMakeLists.txt warzone2100/3rdparty/EmbeddedJSONSignature/CMakeLists.txt +--- warzone2100.old/3rdparty/EmbeddedJSONSignature/CMakeLists.txt 2024-11-13 13:54:49.000000000 -0600 ++++ warzone2100/3rdparty/EmbeddedJSONSignature/CMakeLists.txt 2025-08-13 14:49:48.828146769 -0500 +@@ -1,4 +1,4 @@ +-cmake_minimum_required (VERSION 3.5) ++cmake_minimum_required(VERSION 3.12...4.0) + + list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") + +diff -U3 -r warzone2100.old/3rdparty/expected/CMakeLists.txt warzone2100/3rdparty/expected/CMakeLists.txt +--- warzone2100.old/3rdparty/expected/CMakeLists.txt 2024-11-13 13:54:56.000000000 -0600 ++++ warzone2100/3rdparty/expected/CMakeLists.txt 2025-08-13 14:49:48.824170255 -0500 +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.14) ++cmake_minimum_required(VERSION 3.12...4.0) + project(tl-expected + HOMEPAGE_URL https://tl.tartanllama.xyz + DESCRIPTION "C++11/14/17 std::expected with functional-style extensions" +diff -U3 -r warzone2100.old/3rdparty/fmt/CMakeLists.txt warzone2100/3rdparty/fmt/CMakeLists.txt +--- warzone2100.old/3rdparty/fmt/CMakeLists.txt 2024-11-13 13:54:56.000000000 -0600 ++++ warzone2100/3rdparty/fmt/CMakeLists.txt 2025-08-13 14:49:48.826660907 -0500 +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.8...3.26) ++cmake_minimum_required(VERSION 3.12...4.0) + + # Fallback for using newer policies on CMake <3.12. + if (${CMAKE_VERSION} VERSION_LESS 3.12) +diff -U3 -r warzone2100.old/3rdparty/fmt/test/add-subdirectory-test/CMakeLists.txt warzone2100/3rdparty/fmt/test/add-subdirectory-test/CMakeLists.txt +--- warzone2100.old/3rdparty/fmt/test/add-subdirectory-test/CMakeLists.txt 2024-11-13 13:54:56.000000000 -0600 ++++ warzone2100/3rdparty/fmt/test/add-subdirectory-test/CMakeLists.txt 2025-08-13 14:49:48.826180621 -0500 +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.8...3.25) ++cmake_minimum_required(VERSION 3.12...4.0) + + project(fmt-test CXX) + +diff -U3 -r warzone2100.old/3rdparty/fmt/test/compile-error-test/CMakeLists.txt warzone2100/3rdparty/fmt/test/compile-error-test/CMakeLists.txt +--- warzone2100.old/3rdparty/fmt/test/compile-error-test/CMakeLists.txt 2024-11-13 13:54:56.000000000 -0600 ++++ warzone2100/3rdparty/fmt/test/compile-error-test/CMakeLists.txt 2025-08-13 14:49:48.825980269 -0500 +@@ -1,6 +1,6 @@ + # Test if compile errors are produced where necessary. + +-cmake_minimum_required(VERSION 3.8...3.25) ++cmake_minimum_required(VERSION 3.12...4.0) + project(compile-error-test CXX) + + set(fmt_headers " +@@ -64,7 +64,7 @@ + ") + + file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/test/CMakeLists.txt" " +- cmake_minimum_required(VERSION 3.8...3.25) ++cmake_minimum_required(VERSION 3.12...4.0) + project(tests CXX) + add_subdirectory(${FMT_DIR} fmt) + ${cmake_targets} +diff -U3 -r warzone2100.old/3rdparty/fmt/test/find-package-test/CMakeLists.txt warzone2100/3rdparty/fmt/test/find-package-test/CMakeLists.txt +--- warzone2100.old/3rdparty/fmt/test/find-package-test/CMakeLists.txt 2024-11-13 13:54:56.000000000 -0600 ++++ warzone2100/3rdparty/fmt/test/find-package-test/CMakeLists.txt 2025-08-13 14:49:48.825763077 -0500 +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.8...3.25) ++cmake_minimum_required(VERSION 3.12...4.0) + + project(fmt-test) + +diff -U3 -r warzone2100.old/3rdparty/fmt/test/static-export-test/CMakeLists.txt warzone2100/3rdparty/fmt/test/static-export-test/CMakeLists.txt +--- warzone2100.old/3rdparty/fmt/test/static-export-test/CMakeLists.txt 2024-11-13 13:54:56.000000000 -0600 ++++ warzone2100/3rdparty/fmt/test/static-export-test/CMakeLists.txt 2025-08-13 14:49:48.826355603 -0500 +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.8...3.25) ++cmake_minimum_required(VERSION 3.12...4.0) + + project(fmt-link CXX) + +diff -U3 -r warzone2100.old/3rdparty/glm/CMakeLists.txt warzone2100/3rdparty/glm/CMakeLists.txt +--- warzone2100.old/3rdparty/glm/CMakeLists.txt 2024-11-13 13:54:56.000000000 -0600 ++++ warzone2100/3rdparty/glm/CMakeLists.txt 2025-08-13 14:49:48.827382757 -0500 +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.6 FATAL_ERROR) ++cmake_minimum_required(VERSION 3.12...4.0) + cmake_policy(VERSION 3.6) + + file(READ "glm/detail/setup.hpp" GLM_SETUP_FILE) +diff -U3 -r warzone2100.old/3rdparty/glm/test/cmake/CMakeLists.txt warzone2100/3rdparty/glm/test/cmake/CMakeLists.txt +--- warzone2100.old/3rdparty/glm/test/cmake/CMakeLists.txt 2024-11-13 13:54:56.000000000 -0600 ++++ warzone2100/3rdparty/glm/test/cmake/CMakeLists.txt 2025-08-13 14:49:48.827186410 -0500 +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.6 FATAL_ERROR) ++cmake_minimum_required(VERSION 3.12...4.0) + cmake_policy(VERSION 3.6) + project(test_find_glm) + +diff -U3 -r warzone2100.old/3rdparty/json/CMakeLists.txt warzone2100/3rdparty/json/CMakeLists.txt +--- warzone2100.old/3rdparty/json/CMakeLists.txt 2024-11-13 13:54:24.000000000 -0600 ++++ warzone2100/3rdparty/json/CMakeLists.txt 2025-08-13 14:49:48.823963491 -0500 +@@ -1,6 +1,6 @@ + # A simplified version of: https://github.com/nlohmann/json/blob/b21c34517900c46a943c804d9af3a20cd0c77062/CMakeLists.txt + +-cmake_minimum_required(VERSION 3.1...3.14) ++cmake_minimum_required(VERSION 3.12...4.0) + + project(nlohmann_json LANGUAGES CXX) + +diff -U3 -r warzone2100.old/3rdparty/launchinfo/CMakeLists.txt warzone2100/3rdparty/launchinfo/CMakeLists.txt +--- warzone2100.old/3rdparty/launchinfo/CMakeLists.txt 2024-11-13 13:54:56.000000000 -0600 ++++ warzone2100/3rdparty/launchinfo/CMakeLists.txt 2025-08-13 14:49:48.830539650 -0500 +@@ -1,4 +1,4 @@ +-cmake_minimum_required (VERSION 3.5) ++cmake_minimum_required(VERSION 3.12...4.0) + project (launchinfo C CXX) + + file(GLOB HEADERS "include/LaunchInfo.h") +diff -U3 -r warzone2100.old/3rdparty/libplum/CMakeLists.txt warzone2100/3rdparty/libplum/CMakeLists.txt +--- warzone2100.old/3rdparty/libplum/CMakeLists.txt 2024-11-13 13:54:56.000000000 -0600 ++++ warzone2100/3rdparty/libplum/CMakeLists.txt 2025-08-13 14:49:48.830345294 -0500 +@@ -1,4 +1,4 @@ +-cmake_minimum_required (VERSION 3.7) ++cmake_minimum_required(VERSION 3.12...4.0) + project (libplum + VERSION 0.4.0 + LANGUAGES C) +diff -U3 -r warzone2100.old/3rdparty/optional-lite/CMakeLists.txt warzone2100/3rdparty/optional-lite/CMakeLists.txt +--- warzone2100.old/3rdparty/optional-lite/CMakeLists.txt 2024-11-13 13:54:24.000000000 -0600 ++++ warzone2100/3rdparty/optional-lite/CMakeLists.txt 2025-08-13 14:49:48.825564157 -0500 +@@ -1,6 +1,6 @@ + # A very simple version of: https://github.com/martinmoene/optional-lite/blob/master/CMakeLists.txt + +-cmake_minimum_required(VERSION 3.5...3.24) ++cmake_minimum_required(VERSION 3.12...4.0) + + project( + optional_lite +diff -U3 -r warzone2100.old/3rdparty/quickjs-wz/CMakeLists.txt warzone2100/3rdparty/quickjs-wz/CMakeLists.txt +--- warzone2100.old/3rdparty/quickjs-wz/CMakeLists.txt 2024-11-13 13:54:56.000000000 -0600 ++++ warzone2100/3rdparty/quickjs-wz/CMakeLists.txt 2025-08-13 14:49:48.824391310 -0500 +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.5...3.14) ++cmake_minimum_required(VERSION 3.12...4.0) + project (quickjs C) + + if(${CMAKE_VERSION} VERSION_LESS 3.12) +diff -U3 -r warzone2100.old/3rdparty/re2/CMakeLists.txt warzone2100/3rdparty/re2/CMakeLists.txt +--- warzone2100.old/3rdparty/re2/CMakeLists.txt 2024-11-13 13:54:56.000000000 -0600 ++++ warzone2100/3rdparty/re2/CMakeLists.txt 2025-08-13 14:49:48.822044500 -0500 +@@ -4,7 +4,7 @@ + + # Old enough to support Ubuntu Bionic, + # but just the MAJOR.MINOR components. +-cmake_minimum_required(VERSION 3.10) ++cmake_minimum_required(VERSION 3.12...4.0) + + project(RE2 CXX) + include(CMakePackageConfigHelpers) +diff -U3 -r warzone2100.old/3rdparty/readerwriterqueue/CMakeLists.txt warzone2100/3rdparty/readerwriterqueue/CMakeLists.txt +--- warzone2100.old/3rdparty/readerwriterqueue/CMakeLists.txt 2024-11-13 13:54:56.000000000 -0600 ++++ warzone2100/3rdparty/readerwriterqueue/CMakeLists.txt 2025-08-13 14:49:48.828316645 -0500 +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.9) ++cmake_minimum_required(VERSION 3.12...4.0) + project(readerwriterqueue VERSION 1.0.0) + + include(GNUInstallDirs) +diff -U3 -r warzone2100.old/3rdparty/SQLiteCpp/CMakeLists.txt warzone2100/3rdparty/SQLiteCpp/CMakeLists.txt +--- warzone2100.old/3rdparty/SQLiteCpp/CMakeLists.txt 2024-11-13 13:54:49.000000000 -0600 ++++ warzone2100/3rdparty/SQLiteCpp/CMakeLists.txt 2025-08-13 14:49:48.829206089 -0500 +@@ -4,7 +4,7 @@ + # + # Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + # or copy at http://opensource.org/licenses/MIT) +-cmake_minimum_required(VERSION 3.5) ++cmake_minimum_required(VERSION 3.12...4.0) + list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") # custom CMake modules like FindSQLiteCpp + project(SQLiteCpp VERSION 3.3.1) + +diff -U3 -r warzone2100.old/3rdparty/SQLiteCpp/examples/example2/CMakeLists.txt warzone2100/3rdparty/SQLiteCpp/examples/example2/CMakeLists.txt +--- warzone2100.old/3rdparty/SQLiteCpp/examples/example2/CMakeLists.txt 2024-11-13 13:54:49.000000000 -0600 ++++ warzone2100/3rdparty/SQLiteCpp/examples/example2/CMakeLists.txt 2025-08-13 14:49:48.829010729 -0500 +@@ -4,7 +4,7 @@ + # + # Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + # or copy at http://opensource.org/licenses/MIT) +-cmake_minimum_required(VERSION 3.1) # for "CMAKE_CXX_STANDARD" version ++cmake_minimum_required(VERSION 3.12...4.0) + project(SQLiteCpp_Example VERSION 2.0) + + # SQLiteC++ 3.x now requires C++11 compiler +diff -U3 -r warzone2100.old/3rdparty/SQLiteCpp/googletest/CMakeLists.txt warzone2100/3rdparty/SQLiteCpp/googletest/CMakeLists.txt +--- warzone2100.old/3rdparty/SQLiteCpp/googletest/CMakeLists.txt 2024-11-13 13:54:50.000000000 -0600 ++++ warzone2100/3rdparty/SQLiteCpp/googletest/CMakeLists.txt 2025-08-13 14:49:48.829897152 -0500 +@@ -1,7 +1,7 @@ + # Note: CMake support is community-based. The maintainers do not use CMake + # internally. + +-cmake_minimum_required(VERSION 3.13) ++cmake_minimum_required(VERSION 3.12...4.0) + + project(googletest-distribution) + set(GOOGLETEST_VERSION 1.14.0) +diff -U3 -r warzone2100.old/3rdparty/SQLiteCpp/googletest/googlemock/CMakeLists.txt warzone2100/3rdparty/SQLiteCpp/googletest/googlemock/CMakeLists.txt +--- warzone2100.old/3rdparty/SQLiteCpp/googletest/googlemock/CMakeLists.txt 2024-11-13 13:54:50.000000000 -0600 ++++ warzone2100/3rdparty/SQLiteCpp/googletest/googlemock/CMakeLists.txt 2025-08-13 14:49:48.829669555 -0500 +@@ -36,7 +36,7 @@ + # as ${gmock_SOURCE_DIR} and to the root binary directory as + # ${gmock_BINARY_DIR}. + # Language "C" is required for find_package(Threads). +-cmake_minimum_required(VERSION 3.13) ++cmake_minimum_required(VERSION 3.12...4.0) + project(gmock VERSION ${GOOGLETEST_VERSION} LANGUAGES CXX C) + + if (COMMAND set_up_hermetic_build) +diff -U3 -r warzone2100.old/3rdparty/SQLiteCpp/googletest/googletest/CMakeLists.txt warzone2100/3rdparty/SQLiteCpp/googletest/googletest/CMakeLists.txt +--- warzone2100.old/3rdparty/SQLiteCpp/googletest/googletest/CMakeLists.txt 2024-11-13 13:54:50.000000000 -0600 ++++ warzone2100/3rdparty/SQLiteCpp/googletest/googletest/CMakeLists.txt 2025-08-13 14:49:48.830060677 -0500 +@@ -46,7 +46,7 @@ + + # Project version: + +-cmake_minimum_required(VERSION 3.13) ++cmake_minimum_required(VERSION 3.12...4.0) + project(gtest VERSION ${GOOGLETEST_VERSION} LANGUAGES CXX C) + + if (COMMAND set_up_hermetic_build) +diff -U3 -r warzone2100.old/3rdparty/utf8proc/CMakeLists.txt warzone2100/3rdparty/utf8proc/CMakeLists.txt +--- warzone2100.old/3rdparty/utf8proc/CMakeLists.txt 2024-11-13 13:54:56.000000000 -0600 ++++ warzone2100/3rdparty/utf8proc/CMakeLists.txt 2025-08-13 14:49:48.824650163 -0500 +@@ -1,4 +1,4 @@ +-cmake_minimum_required (VERSION 3.5) ++cmake_minimum_required(VERSION 3.12...4.0) + + include (utils.cmake) + +diff -U3 -r warzone2100.old/3rdparty/utfcpp/CMakeLists.txt warzone2100/3rdparty/utfcpp/CMakeLists.txt +--- warzone2100.old/3rdparty/utfcpp/CMakeLists.txt 2024-11-13 13:54:56.000000000 -0600 ++++ warzone2100/3rdparty/utfcpp/CMakeLists.txt 2025-08-13 14:49:48.828870000 -0500 +@@ -1,7 +1,7 @@ + # This file is deprecated and will be removed in a future release + # Please see the instructions for installation in README.md file + +-cmake_minimum_required (VERSION 3.14...3.27) ++cmake_minimum_required(VERSION 3.12...4.0) + project (utf8cpp + VERSION 4.0.4 + LANGUAGES CXX +diff -U3 -r warzone2100.old/3rdparty/utfcpp/extern/ftest/tests/CMakeLists.txt warzone2100/3rdparty/utfcpp/extern/ftest/tests/CMakeLists.txt +--- warzone2100.old/3rdparty/utfcpp/extern/ftest/tests/CMakeLists.txt 2024-11-13 13:54:56.000000000 -0600 ++++ warzone2100/3rdparty/utfcpp/extern/ftest/tests/CMakeLists.txt 2025-08-13 14:49:48.828480707 -0500 +@@ -1,4 +1,4 @@ +-cmake_minimum_required (VERSION 3.0.2) ++cmake_minimum_required(VERSION 3.12...4.0) + project (ftest VERSION 0.0.1 LANGUAGES CXX) + + enable_testing() +diff -U3 -r warzone2100.old/3rdparty/utfcpp/tests/CMakeLists.txt warzone2100/3rdparty/utfcpp/tests/CMakeLists.txt +--- warzone2100.old/3rdparty/utfcpp/tests/CMakeLists.txt 2024-11-13 13:54:56.000000000 -0600 ++++ warzone2100/3rdparty/utfcpp/tests/CMakeLists.txt 2025-08-13 14:49:48.828685840 -0500 +@@ -1,4 +1,4 @@ +-cmake_minimum_required (VERSION 3.5) ++cmake_minimum_required(VERSION 3.12...4.0) + project(utfcpptests LANGUAGES CXX) + enable_testing() + +diff -U3 -r warzone2100.old/build_tools/CMakeLists.txt warzone2100/build_tools/CMakeLists.txt +--- warzone2100.old/build_tools/CMakeLists.txt 2024-11-13 13:54:24.000000000 -0600 ++++ warzone2100/build_tools/CMakeLists.txt 2025-08-13 14:49:48.832806206 -0500 +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.5...3.24) ++cmake_minimum_required(VERSION 3.12...4.0) + + ############################ + # Versioning (autorevision) +diff -U3 -r warzone2100.old/CMakeLists.txt warzone2100/CMakeLists.txt +--- warzone2100.old/CMakeLists.txt 2025-08-13 14:48:22.252967002 -0500 ++++ warzone2100/CMakeLists.txt 2025-08-13 14:49:48.832964528 -0500 +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.5...3.24) ++cmake_minimum_required(VERSION 3.12...4.0) + + set(_OLD_CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}") + set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake) +diff -U3 -r warzone2100.old/data/fonts/CMakeLists.txt warzone2100/data/fonts/CMakeLists.txt +--- warzone2100.old/data/fonts/CMakeLists.txt 2024-11-13 13:54:56.000000000 -0600 ++++ warzone2100/data/fonts/CMakeLists.txt 2025-08-13 14:49:48.831038582 -0500 +@@ -1,4 +1,4 @@ +-cmake_minimum_required (VERSION 3.5) ++cmake_minimum_required(VERSION 3.12...4.0) + + configure_file( + "${CMAKE_CURRENT_SOURCE_DIR}/DejaVu/LICENSE" +diff -U3 -r warzone2100.old/lib/netplay/3rdparty/miniupnp/miniupnpc/CMakeLists.txt warzone2100/lib/netplay/3rdparty/miniupnp/miniupnpc/CMakeLists.txt +--- warzone2100.old/lib/netplay/3rdparty/miniupnp/miniupnpc/CMakeLists.txt 2024-11-13 13:54:57.000000000 -0600 ++++ warzone2100/lib/netplay/3rdparty/miniupnp/miniupnpc/CMakeLists.txt 2025-08-13 14:49:48.831256841 -0500 +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.14 FATAL_ERROR) ++cmake_minimum_required(VERSION 3.12...4.0) + + project (miniupnpc + VERSION 2.2.8 +diff -U3 -r warzone2100.old/lib/sound/3rdparty/opusfile/CMakeLists.txt warzone2100/lib/sound/3rdparty/opusfile/CMakeLists.txt +--- warzone2100.old/lib/sound/3rdparty/opusfile/CMakeLists.txt 2024-11-13 13:54:57.000000000 -0600 ++++ warzone2100/lib/sound/3rdparty/opusfile/CMakeLists.txt 2025-08-13 14:49:48.831857223 -0500 +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.16) ++cmake_minimum_required(VERSION 3.12...4.0) + + list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake") + +diff -U3 -r warzone2100.old/lib/wzmaplib/CMakeLists.txt warzone2100/lib/wzmaplib/CMakeLists.txt +--- warzone2100.old/lib/wzmaplib/CMakeLists.txt 2024-11-13 13:54:24.000000000 -0600 ++++ warzone2100/lib/wzmaplib/CMakeLists.txt 2025-08-13 14:49:48.831615733 -0500 +@@ -22,7 +22,7 @@ + ############################## + # wzmaplib project + +-cmake_minimum_required(VERSION ${_cmake_min_ver_supported}...3.24) ++cmake_minimum_required(VERSION 3.12...4.0) + project (wzmaplib CXX) + + if(${CMAKE_VERSION} VERSION_LESS 3.12) +diff -U3 -r warzone2100.old/po/CMakeLists.txt warzone2100/po/CMakeLists.txt +--- warzone2100.old/po/CMakeLists.txt 2024-11-13 13:54:24.000000000 -0600 ++++ warzone2100/po/CMakeLists.txt 2025-08-13 14:49:48.830713731 -0500 +@@ -15,7 +15,7 @@ + # CMake 3.10+ at the top of this file leads to an inability to compile via + # Visual Studio itself. + # +- # Instead of using cmake_minimum_required(VERSION 3.10), detect the ++cmake_minimum_required(VERSION 3.12...4.0) + # CMake version and emit a warning if it's below 3.10. + # + if(${CMAKE_VERSION} VERSION_LESS "3.10.0") +diff -U3 -r warzone2100.old/src/integrations/CMakeLists.txt warzone2100/src/integrations/CMakeLists.txt +--- warzone2100.old/src/integrations/CMakeLists.txt 2024-11-13 13:54:24.000000000 -0600 ++++ warzone2100/src/integrations/CMakeLists.txt 2025-08-13 14:49:48.832121148 -0500 +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.5...3.24) ++cmake_minimum_required(VERSION 3.12...4.0) + + ################################################## + # WZ Discord RPC support +diff -U3 -r warzone2100.old/tools/map/old/CMakeLists.txt warzone2100/tools/map/old/CMakeLists.txt +--- warzone2100.old/tools/map/old/CMakeLists.txt 2024-11-13 13:54:24.000000000 -0600 ++++ warzone2100/tools/map/old/CMakeLists.txt 2025-08-13 14:49:48.832305121 -0500 +@@ -1,4 +1,4 @@ +-cmake_minimum_required (VERSION 2.8) ++cmake_minimum_required(VERSION 3.12...4.0) + + project (maptools) + +diff -U3 -r warzone2100.old/tools/maptools-cli/CMakeLists.txt warzone2100/tools/maptools-cli/CMakeLists.txt +--- warzone2100.old/tools/maptools-cli/CMakeLists.txt 2024-11-13 13:54:57.000000000 -0600 ++++ warzone2100/tools/maptools-cli/CMakeLists.txt 2025-08-13 14:49:48.832560376 -0500 +@@ -7,7 +7,7 @@ + set(_cmake_min_ver_supported 3.11) # CMake 3.11 is the minimum version for FetchContent + endif() + +-cmake_minimum_required(VERSION ${_cmake_min_ver_supported}...3.14) ++cmake_minimum_required(VERSION 3.12...4.0) + + set(_OLD_CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}") + set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake) +--- warzone2100/doc/CMakeLists.txt~ 2024-11-13 13:54:24.000000000 -0600 ++++ warzone2100/doc/CMakeLists.txt 2025-08-13 15:12:41.371983496 -0500 +@@ -16,6 +16,7 @@ + COMMAND ${CMAKE_COMMAND} -DOUTPUT_DIR=${CMAKE_CURRENT_BINARY_DIR} -P ${CMAKE_CURRENT_SOURCE_DIR}/build_tools/GenerateJSDocs.cmake + WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}" + VERBATIM ++ POST_BUILD + ) + + configure_file(Scripting.md "${CMAKE_CURRENT_BINARY_DIR}/Scripting.md" COPYONLY) +--- warzone2100/doc/CMakeLists.txt~ 2025-08-13 15:23:14.837051821 -0500 ++++ warzone2100/doc/CMakeLists.txt 2025-08-13 15:25:02.458759347 -0500 +@@ -131,6 +131,7 @@ + -a toc + ${CMAKE_CURRENT_BINARY_DIR}/quickstartguide.asciidoc + VERBATIM ++ POST_BUILD + ) + + configure_file("warzone2100.6.asciidoc" "${CMAKE_CURRENT_BINARY_DIR}/warzone2100.6.asciidoc" COPYONLY) +@@ -146,6 +147,7 @@ + -D ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR}/warzone2100.6.asciidoc + VERBATIM ++ POST_BUILD + ) + + # warzone2100.6 - man-page format +@@ -160,6 +162,7 @@ + -o warzone2100.6 + ${CMAKE_CURRENT_BINARY_DIR}/warzone2100.6.asciidoc + VERBATIM ++ POST_BUILD + ) + + unset(_asciidoctor_option_failurelevel) +@@ -270,12 +273,14 @@ + COMMAND ${CMAKE_COMMAND} -E copy "${_warzone2100_6_uncompressed_orig}" "${_warzone2100_6_uncompressed}" + COMMAND ${GZIP_BIN} -n -c ${_warzone2100_6_uncompressed} > ${_warzone2100_6_compressed} + VERBATIM ++ POST_BUILD + ) + else() + add_custom_command( + TARGET wz2100_manpages + COMMAND ${GZIP_BIN} -n -c ${_warzone2100_6_uncompressed} > ${_warzone2100_6_compressed} + VERBATIM ++ POST_BUILD + ) + endif() + diff --git a/warzone2100.spec b/warzone2100.spec index 18baaa3..4a01601 100644 --- a/warzone2100.spec +++ b/warzone2100.spec @@ -13,6 +13,7 @@ Source0: https://github.com/Warzone2100/warzone2100/releases/download/%{v Source1: https://github.com/Warzone2100/wz-sequences/releases/download/v3/high-quality-en-sequences.wz Patch0: SQLiteCPP-gcc15.patch +Patch1: cmake4.patch # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} From d959a3440a5461aea601920b38d5cf25b6b9643f Mon Sep 17 00:00:00 2001 From: Gwyn Ciesla Date: Tue, 11 Nov 2025 16:22:15 -0600 Subject: [PATCH 25/32] 4.6.1 --- cmake4.patch | 487 +++++++++++++++++++++-------------------------- sources | 2 +- warzone2100.spec | 12 +- 3 files changed, 226 insertions(+), 275 deletions(-) diff --git a/cmake4.patch b/cmake4.patch index 1075dc4..95bc503 100644 --- a/cmake4.patch +++ b/cmake4.patch @@ -1,157 +1,139 @@ diff -U3 -r warzone2100.old/3rdparty/basis_universal/CMakeLists.txt warzone2100/3rdparty/basis_universal/CMakeLists.txt ---- warzone2100.old/3rdparty/basis_universal/CMakeLists.txt 2024-11-13 13:54:52.000000000 -0600 -+++ warzone2100/3rdparty/basis_universal/CMakeLists.txt 2025-08-13 14:49:48.825317535 -0500 +--- warzone2100.old/3rdparty/basis_universal/CMakeLists.txt 2025-09-16 11:43:01.000000000 -0500 ++++ warzone2100/3rdparty/basis_universal/CMakeLists.txt 2025-11-11 13:15:40.969955726 -0600 @@ -1,6 +1,6 @@ - project(basisu) - --cmake_minimum_required(VERSION 3.0) -+cmake_minimum_required(VERSION 3.12...4.0) - option(STATIC "static linking" FALSE) - option(SAN "sanitize" FALSE) - -diff -U3 -r warzone2100.old/3rdparty/basis_universal/webgl/encoder/CMakeLists.txt warzone2100/3rdparty/basis_universal/webgl/encoder/CMakeLists.txt ---- warzone2100.old/3rdparty/basis_universal/webgl/encoder/CMakeLists.txt 2024-11-13 13:54:52.000000000 -0600 -+++ warzone2100/3rdparty/basis_universal/webgl/encoder/CMakeLists.txt 2025-08-13 14:49:48.825112521 -0500 -@@ -1,4 +1,4 @@ --cmake_minimum_required(VERSION 3.0) -+cmake_minimum_required(VERSION 3.12...4.0) - - project(basisu_encoder_js) - -diff -U3 -r warzone2100.old/3rdparty/basis_universal/webgl/transcoder/CMakeLists.txt warzone2100/3rdparty/basis_universal/webgl/transcoder/CMakeLists.txt ---- warzone2100.old/3rdparty/basis_universal/webgl/transcoder/CMakeLists.txt 2024-11-13 13:54:52.000000000 -0600 -+++ warzone2100/3rdparty/basis_universal/webgl/transcoder/CMakeLists.txt 2025-08-13 14:49:48.824916527 -0500 -@@ -1,4 +1,4 @@ --cmake_minimum_required(VERSION 3.0) -+cmake_minimum_required(VERSION 3.12...4.0) - - project(basisu_transcoder_js) - -diff -U3 -r warzone2100.old/3rdparty/basis_universal_host_build/CMakeLists.txt warzone2100/3rdparty/basis_universal_host_build/CMakeLists.txt ---- warzone2100.old/3rdparty/basis_universal_host_build/CMakeLists.txt 2024-11-13 13:54:24.000000000 -0600 -+++ warzone2100/3rdparty/basis_universal_host_build/CMakeLists.txt 2025-08-13 14:49:48.827655139 -0500 -@@ -1,4 +1,4 @@ + # Important: The Basis Universal encoder and transcoder libraries must be compiled with -fno-strict-aliasing (MSVC's default, and also the Linux kernel). + # It should also work without this option, but we do not test with it. -cmake_minimum_required(VERSION 3.5) -+cmake_minimum_required(VERSION 3.12...4.0) ++cmake_minimum_required(VERSION 3.10...4.0) + + project(basisu) + option(STATIC "static linking" FALSE) +diff -U3 -r warzone2100.old/3rdparty/basis_universal_host_build/CMakeLists.txt warzone2100/3rdparty/basis_universal_host_build/CMakeLists.txt +--- warzone2100.old/3rdparty/basis_universal_host_build/CMakeLists.txt 2025-09-16 11:41:32.000000000 -0500 ++++ warzone2100/3rdparty/basis_universal_host_build/CMakeLists.txt 2025-11-11 13:15:40.980348748 -0600 +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.5...3.31) ++cmake_minimum_required(VERSION 3.10...4.0) project(basis_universal_host_build_wrapper) set(BASIS_UNIVERSAL_SRC_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../basis_universal") diff -U3 -r warzone2100.old/3rdparty/CMakeLists.txt warzone2100/3rdparty/CMakeLists.txt ---- warzone2100.old/3rdparty/CMakeLists.txt 2024-11-13 13:54:24.000000000 -0600 -+++ warzone2100/3rdparty/CMakeLists.txt 2025-08-13 14:49:48.827852856 -0500 +--- warzone2100.old/3rdparty/CMakeLists.txt 2025-09-16 11:41:32.000000000 -0500 ++++ warzone2100/3rdparty/CMakeLists.txt 2025-11-11 13:15:40.971048267 -0600 @@ -1,4 +1,4 @@ --cmake_minimum_required (VERSION 3.5...3.24) -+cmake_minimum_required(VERSION 3.12...4.0) +-cmake_minimum_required (VERSION 3.16...3.31) ++cmake_minimum_required(VERSION 3.10...4.0) include(CheckCompilerFlagsOutput) diff -U3 -r warzone2100.old/3rdparty/date/CMakeLists.txt warzone2100/3rdparty/date/CMakeLists.txt ---- warzone2100.old/3rdparty/date/CMakeLists.txt 2024-11-13 13:54:52.000000000 -0600 -+++ warzone2100/3rdparty/date/CMakeLists.txt 2025-08-13 14:49:48.826956569 -0500 +--- warzone2100.old/3rdparty/date/CMakeLists.txt 2025-09-16 11:43:01.000000000 -0500 ++++ warzone2100/3rdparty/date/CMakeLists.txt 2025-11-11 13:15:40.979193010 -0600 @@ -15,7 +15,7 @@ #]===================================================================] -cmake_minimum_required( VERSION 3.7 ) -+cmake_minimum_required(VERSION 3.12...4.0) ++cmake_minimum_required(VERSION 3.10...4.0) - project( date VERSION 3.0.1 ) + project( date VERSION 3.0.4 ) set(ABI_VERSION 3) # used as SOVERSION, increment when ABI changes diff -U3 -r warzone2100.old/3rdparty/discord-rpc/CMakeLists.txt warzone2100/3rdparty/discord-rpc/CMakeLists.txt ---- warzone2100.old/3rdparty/discord-rpc/CMakeLists.txt 2024-11-13 13:54:52.000000000 -0600 -+++ warzone2100/3rdparty/discord-rpc/CMakeLists.txt 2025-08-13 14:49:48.822365594 -0500 +--- warzone2100.old/3rdparty/discord-rpc/CMakeLists.txt 2025-09-16 11:43:01.000000000 -0500 ++++ warzone2100/3rdparty/discord-rpc/CMakeLists.txt 2025-11-11 13:15:40.973974804 -0600 @@ -1,4 +1,4 @@ -cmake_minimum_required (VERSION 3.2...3.14) -+cmake_minimum_required(VERSION 3.12...4.0) ++cmake_minimum_required(VERSION 3.10...4.0) project (DiscordRPC) include(GNUInstallDirs) diff -U3 -r warzone2100.old/3rdparty/discord-rpc/thirdparty/rapidjson/example/CMakeLists.txt warzone2100/3rdparty/discord-rpc/thirdparty/rapidjson/example/CMakeLists.txt ---- warzone2100.old/3rdparty/discord-rpc/thirdparty/rapidjson/example/CMakeLists.txt 2024-11-13 13:54:54.000000000 -0600 -+++ warzone2100/3rdparty/discord-rpc/thirdparty/rapidjson/example/CMakeLists.txt 2025-08-13 14:49:48.823698588 -0500 +--- warzone2100.old/3rdparty/discord-rpc/thirdparty/rapidjson/example/CMakeLists.txt 2025-09-16 11:43:03.000000000 -0500 ++++ warzone2100/3rdparty/discord-rpc/thirdparty/rapidjson/example/CMakeLists.txt 2025-11-11 13:15:40.973728553 -0600 @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8) -+cmake_minimum_required(VERSION 3.12...4.0) ++cmake_minimum_required(VERSION 3.10...4.0) if(POLICY CMP0054) cmake_policy(SET CMP0054 NEW) diff -U3 -r warzone2100.old/3rdparty/discord-rpc/thirdparty/rapidjson/thirdparty/gtest/CMakeLists.txt warzone2100/3rdparty/discord-rpc/thirdparty/rapidjson/thirdparty/gtest/CMakeLists.txt ---- warzone2100.old/3rdparty/discord-rpc/thirdparty/rapidjson/thirdparty/gtest/CMakeLists.txt 2024-11-13 13:54:55.000000000 -0600 -+++ warzone2100/3rdparty/discord-rpc/thirdparty/rapidjson/thirdparty/gtest/CMakeLists.txt 2025-08-13 14:49:48.823017794 -0500 +--- warzone2100.old/3rdparty/discord-rpc/thirdparty/rapidjson/thirdparty/gtest/CMakeLists.txt 2025-09-16 11:43:06.000000000 -0500 ++++ warzone2100/3rdparty/discord-rpc/thirdparty/rapidjson/thirdparty/gtest/CMakeLists.txt 2025-11-11 13:15:40.971423408 -0600 @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.6.4) -+cmake_minimum_required(VERSION 3.12...4.0) ++cmake_minimum_required(VERSION 3.10...4.0) if (POLICY CMP0048) cmake_policy(SET CMP0048 NEW) diff -U3 -r warzone2100.old/3rdparty/discord-rpc/thirdparty/rapidjson/thirdparty/gtest/googlemock/CMakeLists.txt warzone2100/3rdparty/discord-rpc/thirdparty/rapidjson/thirdparty/gtest/googlemock/CMakeLists.txt ---- warzone2100.old/3rdparty/discord-rpc/thirdparty/rapidjson/thirdparty/gtest/googlemock/CMakeLists.txt 2024-11-13 13:54:55.000000000 -0600 -+++ warzone2100/3rdparty/discord-rpc/thirdparty/rapidjson/thirdparty/gtest/googlemock/CMakeLists.txt 2025-08-13 14:49:48.822648901 -0500 +--- warzone2100.old/3rdparty/discord-rpc/thirdparty/rapidjson/thirdparty/gtest/googlemock/CMakeLists.txt 2025-09-16 11:43:06.000000000 -0500 ++++ warzone2100/3rdparty/discord-rpc/thirdparty/rapidjson/thirdparty/gtest/googlemock/CMakeLists.txt 2025-11-11 13:15:40.971643490 -0600 @@ -43,7 +43,7 @@ cmake_policy(SET CMP0048 NEW) project(gmock VERSION 1.9.0 LANGUAGES CXX C) endif() -cmake_minimum_required(VERSION 2.6.4) -+cmake_minimum_required(VERSION 3.12...4.0) ++cmake_minimum_required(VERSION 3.10...4.0) if (COMMAND set_up_hermetic_build) set_up_hermetic_build() diff -U3 -r warzone2100.old/3rdparty/discord-rpc/thirdparty/rapidjson/thirdparty/gtest/googletest/CMakeLists.txt warzone2100/3rdparty/discord-rpc/thirdparty/rapidjson/thirdparty/gtest/googletest/CMakeLists.txt ---- warzone2100.old/3rdparty/discord-rpc/thirdparty/rapidjson/thirdparty/gtest/googletest/CMakeLists.txt 2024-11-13 13:54:55.000000000 -0600 -+++ warzone2100/3rdparty/discord-rpc/thirdparty/rapidjson/thirdparty/gtest/googletest/CMakeLists.txt 2025-08-13 14:49:48.823285576 -0500 +--- warzone2100.old/3rdparty/discord-rpc/thirdparty/rapidjson/thirdparty/gtest/googletest/CMakeLists.txt 2025-09-16 11:43:06.000000000 -0500 ++++ warzone2100/3rdparty/discord-rpc/thirdparty/rapidjson/thirdparty/gtest/googletest/CMakeLists.txt 2025-11-11 13:15:40.972078077 -0600 @@ -50,7 +50,7 @@ cmake_policy(SET CMP0048 NEW) project(gtest VERSION 1.9.0 LANGUAGES CXX C) endif() -cmake_minimum_required(VERSION 2.6.4) -+cmake_minimum_required(VERSION 3.12...4.0) ++cmake_minimum_required(VERSION 3.10...4.0) if (POLICY CMP0063) # Visibility cmake_policy(SET CMP0063 NEW) diff -U3 -r warzone2100.old/3rdparty/EmbeddedJSONSignature/CMakeLists.txt warzone2100/3rdparty/EmbeddedJSONSignature/CMakeLists.txt ---- warzone2100.old/3rdparty/EmbeddedJSONSignature/CMakeLists.txt 2024-11-13 13:54:49.000000000 -0600 -+++ warzone2100/3rdparty/EmbeddedJSONSignature/CMakeLists.txt 2025-08-13 14:49:48.828146769 -0500 +--- warzone2100.old/3rdparty/EmbeddedJSONSignature/CMakeLists.txt 2025-09-16 11:42:25.000000000 -0500 ++++ warzone2100/3rdparty/EmbeddedJSONSignature/CMakeLists.txt 2025-11-11 13:15:40.969719514 -0600 @@ -1,4 +1,4 @@ --cmake_minimum_required (VERSION 3.5) -+cmake_minimum_required(VERSION 3.12...4.0) +-cmake_minimum_required (VERSION 3.5...3.31) ++cmake_minimum_required(VERSION 3.10...4.0) list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") diff -U3 -r warzone2100.old/3rdparty/expected/CMakeLists.txt warzone2100/3rdparty/expected/CMakeLists.txt ---- warzone2100.old/3rdparty/expected/CMakeLists.txt 2024-11-13 13:54:56.000000000 -0600 -+++ warzone2100/3rdparty/expected/CMakeLists.txt 2025-08-13 14:49:48.824170255 -0500 +--- warzone2100.old/3rdparty/expected/CMakeLists.txt 2025-09-16 11:43:06.000000000 -0500 ++++ warzone2100/3rdparty/expected/CMakeLists.txt 2025-11-11 13:15:40.981945460 -0600 @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.14) -+cmake_minimum_required(VERSION 3.12...4.0) ++cmake_minimum_required(VERSION 3.10...4.0) project(tl-expected HOMEPAGE_URL https://tl.tartanllama.xyz DESCRIPTION "C++11/14/17 std::expected with functional-style extensions" diff -U3 -r warzone2100.old/3rdparty/fmt/CMakeLists.txt warzone2100/3rdparty/fmt/CMakeLists.txt ---- warzone2100.old/3rdparty/fmt/CMakeLists.txt 2024-11-13 13:54:56.000000000 -0600 -+++ warzone2100/3rdparty/fmt/CMakeLists.txt 2025-08-13 14:49:48.826660907 -0500 +--- warzone2100.old/3rdparty/fmt/CMakeLists.txt 2025-09-16 11:43:06.000000000 -0500 ++++ warzone2100/3rdparty/fmt/CMakeLists.txt 2025-11-11 13:15:40.976616850 -0600 @@ -1,4 +1,4 @@ --cmake_minimum_required(VERSION 3.8...3.26) -+cmake_minimum_required(VERSION 3.12...4.0) +-cmake_minimum_required(VERSION 3.8...3.28) ++cmake_minimum_required(VERSION 3.10...4.0) # Fallback for using newer policies on CMake <3.12. if (${CMAKE_VERSION} VERSION_LESS 3.12) diff -U3 -r warzone2100.old/3rdparty/fmt/test/add-subdirectory-test/CMakeLists.txt warzone2100/3rdparty/fmt/test/add-subdirectory-test/CMakeLists.txt ---- warzone2100.old/3rdparty/fmt/test/add-subdirectory-test/CMakeLists.txt 2024-11-13 13:54:56.000000000 -0600 -+++ warzone2100/3rdparty/fmt/test/add-subdirectory-test/CMakeLists.txt 2025-08-13 14:49:48.826180621 -0500 +--- warzone2100.old/3rdparty/fmt/test/add-subdirectory-test/CMakeLists.txt 2025-09-16 11:43:06.000000000 -0500 ++++ warzone2100/3rdparty/fmt/test/add-subdirectory-test/CMakeLists.txt 2025-11-11 13:15:40.978473268 -0600 @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.8...3.25) -+cmake_minimum_required(VERSION 3.12...4.0) ++cmake_minimum_required(VERSION 3.10...4.0) project(fmt-test CXX) diff -U3 -r warzone2100.old/3rdparty/fmt/test/compile-error-test/CMakeLists.txt warzone2100/3rdparty/fmt/test/compile-error-test/CMakeLists.txt ---- warzone2100.old/3rdparty/fmt/test/compile-error-test/CMakeLists.txt 2024-11-13 13:54:56.000000000 -0600 -+++ warzone2100/3rdparty/fmt/test/compile-error-test/CMakeLists.txt 2025-08-13 14:49:48.825980269 -0500 +--- warzone2100.old/3rdparty/fmt/test/compile-error-test/CMakeLists.txt 2025-09-16 11:43:06.000000000 -0500 ++++ warzone2100/3rdparty/fmt/test/compile-error-test/CMakeLists.txt 2025-11-11 13:15:40.977741731 -0600 @@ -1,6 +1,6 @@ # Test if compile errors are produced where necessary. -cmake_minimum_required(VERSION 3.8...3.25) -+cmake_minimum_required(VERSION 3.12...4.0) ++cmake_minimum_required(VERSION 3.10...4.0) project(compile-error-test CXX) set(fmt_headers " @@ -160,362 +142,325 @@ diff -U3 -r warzone2100.old/3rdparty/fmt/test/compile-error-test/CMakeLists.txt file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/test/CMakeLists.txt" " - cmake_minimum_required(VERSION 3.8...3.25) -+cmake_minimum_required(VERSION 3.12...4.0) ++cmake_minimum_required(VERSION 3.10...4.0) project(tests CXX) add_subdirectory(${FMT_DIR} fmt) ${cmake_targets} diff -U3 -r warzone2100.old/3rdparty/fmt/test/find-package-test/CMakeLists.txt warzone2100/3rdparty/fmt/test/find-package-test/CMakeLists.txt ---- warzone2100.old/3rdparty/fmt/test/find-package-test/CMakeLists.txt 2024-11-13 13:54:56.000000000 -0600 -+++ warzone2100/3rdparty/fmt/test/find-package-test/CMakeLists.txt 2025-08-13 14:49:48.825763077 -0500 +--- warzone2100.old/3rdparty/fmt/test/find-package-test/CMakeLists.txt 2025-09-16 11:43:06.000000000 -0500 ++++ warzone2100/3rdparty/fmt/test/find-package-test/CMakeLists.txt 2025-11-11 13:15:40.978662191 -0600 @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.8...3.25) -+cmake_minimum_required(VERSION 3.12...4.0) ++cmake_minimum_required(VERSION 3.10...4.0) project(fmt-test) diff -U3 -r warzone2100.old/3rdparty/fmt/test/static-export-test/CMakeLists.txt warzone2100/3rdparty/fmt/test/static-export-test/CMakeLists.txt ---- warzone2100.old/3rdparty/fmt/test/static-export-test/CMakeLists.txt 2024-11-13 13:54:56.000000000 -0600 -+++ warzone2100/3rdparty/fmt/test/static-export-test/CMakeLists.txt 2025-08-13 14:49:48.826355603 -0500 +--- warzone2100.old/3rdparty/fmt/test/static-export-test/CMakeLists.txt 2025-09-16 11:43:06.000000000 -0500 ++++ warzone2100/3rdparty/fmt/test/static-export-test/CMakeLists.txt 2025-11-11 13:15:40.978096369 -0600 @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.8...3.25) -+cmake_minimum_required(VERSION 3.12...4.0) ++cmake_minimum_required(VERSION 3.10...4.0) project(fmt-link CXX) -diff -U3 -r warzone2100.old/3rdparty/glm/CMakeLists.txt warzone2100/3rdparty/glm/CMakeLists.txt ---- warzone2100.old/3rdparty/glm/CMakeLists.txt 2024-11-13 13:54:56.000000000 -0600 -+++ warzone2100/3rdparty/glm/CMakeLists.txt 2025-08-13 14:49:48.827382757 -0500 +diff -U3 -r warzone2100.old/3rdparty/GameNetworkingSockets/CMakeLists.txt warzone2100/3rdparty/GameNetworkingSockets/CMakeLists.txt +--- warzone2100.old/3rdparty/GameNetworkingSockets/CMakeLists.txt 2025-09-16 11:42:25.000000000 -0500 ++++ warzone2100/3rdparty/GameNetworkingSockets/CMakeLists.txt 2025-11-11 13:15:40.974793781 -0600 @@ -1,4 +1,4 @@ --cmake_minimum_required(VERSION 3.6 FATAL_ERROR) -+cmake_minimum_required(VERSION 3.12...4.0) - cmake_policy(VERSION 3.6) +-cmake_minimum_required(VERSION 3.9) ++cmake_minimum_required(VERSION 3.10...4.0) + + # If vcpkg present as submodule, bring in the toolchain + if( EXISTS ${CMAKE_SOURCE_DIR}/vcpkg/scripts/buildsystems/vcpkg.cmake ) +@@ -14,7 +14,7 @@ + + # CMP0069: INTERPROCEDURAL_OPTIMIZATION is enforced when enabled. + # This variable is needed for abseil, which has a different +-# cmake_minimum_required version set (3.5). ++cmake_minimum_required(VERSION 3.10...4.0) + set(CMAKE_POLICY_DEFAULT_CMP0069 NEW) + + # Put all the output from all projects into the same folder +diff -U3 -r warzone2100.old/3rdparty/GameNetworkingSockets/examples/vcpkg_example_chat/CMakeLists.txt warzone2100/3rdparty/GameNetworkingSockets/examples/vcpkg_example_chat/CMakeLists.txt +--- warzone2100.old/3rdparty/GameNetworkingSockets/examples/vcpkg_example_chat/CMakeLists.txt 2025-09-16 11:42:25.000000000 -0500 ++++ warzone2100/3rdparty/GameNetworkingSockets/examples/vcpkg_example_chat/CMakeLists.txt 2025-11-11 13:15:40.976404204 -0600 +@@ -2,7 +2,7 @@ + # Example porject that uses GameNetworkingSockets, obtaining + # dependencies, etc entirely through vcpkg. + # +-cmake_minimum_required(VERSION 3.9) ++cmake_minimum_required(VERSION 3.10...4.0) + project( example_chat_vcpkg ) + + # Ask vcpkg to fetch gamenetworkingsockets and all +diff -U3 -r warzone2100.old/3rdparty/glm/CMakeLists.txt warzone2100/3rdparty/glm/CMakeLists.txt +--- warzone2100.old/3rdparty/glm/CMakeLists.txt 2025-09-16 11:43:06.000000000 -0500 ++++ warzone2100/3rdparty/glm/CMakeLists.txt 2025-11-11 13:15:40.967344329 -0600 +@@ -1,5 +1,5 @@ + # 3.6 is the actual minimun. 3.14 as the upper policy limit avoids CMake deprecation warnings. +-cmake_minimum_required(VERSION 3.6...3.14 FATAL_ERROR) ++cmake_minimum_required(VERSION 3.10...4.0) + cmake_policy(VERSION 3.6...3.14) file(READ "glm/detail/setup.hpp" GLM_SETUP_FILE) diff -U3 -r warzone2100.old/3rdparty/glm/test/cmake/CMakeLists.txt warzone2100/3rdparty/glm/test/cmake/CMakeLists.txt ---- warzone2100.old/3rdparty/glm/test/cmake/CMakeLists.txt 2024-11-13 13:54:56.000000000 -0600 -+++ warzone2100/3rdparty/glm/test/cmake/CMakeLists.txt 2025-08-13 14:49:48.827186410 -0500 +--- warzone2100.old/3rdparty/glm/test/cmake/CMakeLists.txt 2025-09-16 11:43:06.000000000 -0500 ++++ warzone2100/3rdparty/glm/test/cmake/CMakeLists.txt 2025-11-11 13:15:40.968124096 -0600 @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.6 FATAL_ERROR) -+cmake_minimum_required(VERSION 3.12...4.0) ++cmake_minimum_required(VERSION 3.10...4.0) cmake_policy(VERSION 3.6) project(test_find_glm) diff -U3 -r warzone2100.old/3rdparty/json/CMakeLists.txt warzone2100/3rdparty/json/CMakeLists.txt ---- warzone2100.old/3rdparty/json/CMakeLists.txt 2024-11-13 13:54:24.000000000 -0600 -+++ warzone2100/3rdparty/json/CMakeLists.txt 2025-08-13 14:49:48.823963491 -0500 +--- warzone2100.old/3rdparty/json/CMakeLists.txt 2025-09-16 11:41:32.000000000 -0500 ++++ warzone2100/3rdparty/json/CMakeLists.txt 2025-11-11 13:15:40.979565140 -0600 @@ -1,6 +1,6 @@ # A simplified version of: https://github.com/nlohmann/json/blob/b21c34517900c46a943c804d9af3a20cd0c77062/CMakeLists.txt -cmake_minimum_required(VERSION 3.1...3.14) -+cmake_minimum_required(VERSION 3.12...4.0) ++cmake_minimum_required(VERSION 3.10...4.0) project(nlohmann_json LANGUAGES CXX) diff -U3 -r warzone2100.old/3rdparty/launchinfo/CMakeLists.txt warzone2100/3rdparty/launchinfo/CMakeLists.txt ---- warzone2100.old/3rdparty/launchinfo/CMakeLists.txt 2024-11-13 13:54:56.000000000 -0600 -+++ warzone2100/3rdparty/launchinfo/CMakeLists.txt 2025-08-13 14:49:48.830539650 -0500 +--- warzone2100.old/3rdparty/launchinfo/CMakeLists.txt 2025-09-16 11:43:06.000000000 -0500 ++++ warzone2100/3rdparty/launchinfo/CMakeLists.txt 2025-11-11 13:15:40.980134929 -0600 @@ -1,4 +1,4 @@ --cmake_minimum_required (VERSION 3.5) -+cmake_minimum_required(VERSION 3.12...4.0) +-cmake_minimum_required (VERSION 3.5...3.31) ++cmake_minimum_required(VERSION 3.10...4.0) project (launchinfo C CXX) file(GLOB HEADERS "include/LaunchInfo.h") diff -U3 -r warzone2100.old/3rdparty/libplum/CMakeLists.txt warzone2100/3rdparty/libplum/CMakeLists.txt ---- warzone2100.old/3rdparty/libplum/CMakeLists.txt 2024-11-13 13:54:56.000000000 -0600 -+++ warzone2100/3rdparty/libplum/CMakeLists.txt 2025-08-13 14:49:48.830345294 -0500 +--- warzone2100.old/3rdparty/libplum/CMakeLists.txt 2025-09-16 11:43:06.000000000 -0500 ++++ warzone2100/3rdparty/libplum/CMakeLists.txt 2025-11-11 13:15:40.979826761 -0600 @@ -1,4 +1,4 @@ --cmake_minimum_required (VERSION 3.7) -+cmake_minimum_required(VERSION 3.12...4.0) +-cmake_minimum_required(VERSION 3.7...4.0) ++cmake_minimum_required(VERSION 3.10...4.0) project (libplum - VERSION 0.4.0 + VERSION 0.5.3 LANGUAGES C) diff -U3 -r warzone2100.old/3rdparty/optional-lite/CMakeLists.txt warzone2100/3rdparty/optional-lite/CMakeLists.txt ---- warzone2100.old/3rdparty/optional-lite/CMakeLists.txt 2024-11-13 13:54:24.000000000 -0600 -+++ warzone2100/3rdparty/optional-lite/CMakeLists.txt 2025-08-13 14:49:48.825564157 -0500 +--- warzone2100.old/3rdparty/optional-lite/CMakeLists.txt 2025-09-16 11:41:32.000000000 -0500 ++++ warzone2100/3rdparty/optional-lite/CMakeLists.txt 2025-11-11 13:15:40.970277697 -0600 @@ -1,6 +1,6 @@ # A very simple version of: https://github.com/martinmoene/optional-lite/blob/master/CMakeLists.txt -cmake_minimum_required(VERSION 3.5...3.24) -+cmake_minimum_required(VERSION 3.12...4.0) ++cmake_minimum_required(VERSION 3.10...4.0) project( optional_lite diff -U3 -r warzone2100.old/3rdparty/quickjs-wz/CMakeLists.txt warzone2100/3rdparty/quickjs-wz/CMakeLists.txt ---- warzone2100.old/3rdparty/quickjs-wz/CMakeLists.txt 2024-11-13 13:54:56.000000000 -0600 -+++ warzone2100/3rdparty/quickjs-wz/CMakeLists.txt 2025-08-13 14:49:48.824391310 -0500 +--- warzone2100.old/3rdparty/quickjs-wz/CMakeLists.txt 2025-09-16 11:43:06.000000000 -0500 ++++ warzone2100/3rdparty/quickjs-wz/CMakeLists.txt 2025-11-11 13:15:40.982219004 -0600 @@ -1,4 +1,4 @@ --cmake_minimum_required(VERSION 3.5...3.14) -+cmake_minimum_required(VERSION 3.12...4.0) - project (quickjs C) +-cmake_minimum_required(VERSION 3.10...3.31) ++cmake_minimum_required(VERSION 3.10...4.0) + project (quickjs-wz C) if(${CMAKE_VERSION} VERSION_LESS 3.12) +diff -U3 -r warzone2100.old/3rdparty/quickjs-wz/quickjs-ng/CMakeLists.txt warzone2100/3rdparty/quickjs-wz/quickjs-ng/CMakeLists.txt +--- warzone2100.old/3rdparty/quickjs-wz/quickjs-ng/CMakeLists.txt 2025-09-16 11:43:06.000000000 -0500 ++++ warzone2100/3rdparty/quickjs-wz/quickjs-ng/CMakeLists.txt 2025-11-11 13:15:40.982512036 -0600 +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.10) ++cmake_minimum_required(VERSION 3.10...4.0) + + project(quickjs LANGUAGES C) + diff -U3 -r warzone2100.old/3rdparty/re2/CMakeLists.txt warzone2100/3rdparty/re2/CMakeLists.txt ---- warzone2100.old/3rdparty/re2/CMakeLists.txt 2024-11-13 13:54:56.000000000 -0600 -+++ warzone2100/3rdparty/re2/CMakeLists.txt 2025-08-13 14:49:48.822044500 -0500 +--- warzone2100.old/3rdparty/re2/CMakeLists.txt 2025-09-16 11:43:06.000000000 -0500 ++++ warzone2100/3rdparty/re2/CMakeLists.txt 2025-11-11 13:15:40.966731441 -0600 @@ -4,7 +4,7 @@ # Old enough to support Ubuntu Bionic, # but just the MAJOR.MINOR components. -cmake_minimum_required(VERSION 3.10) -+cmake_minimum_required(VERSION 3.12...4.0) ++cmake_minimum_required(VERSION 3.10...4.0) project(RE2 CXX) include(CMakePackageConfigHelpers) diff -U3 -r warzone2100.old/3rdparty/readerwriterqueue/CMakeLists.txt warzone2100/3rdparty/readerwriterqueue/CMakeLists.txt ---- warzone2100.old/3rdparty/readerwriterqueue/CMakeLists.txt 2024-11-13 13:54:56.000000000 -0600 -+++ warzone2100/3rdparty/readerwriterqueue/CMakeLists.txt 2025-08-13 14:49:48.828316645 -0500 -@@ -1,4 +1,4 @@ --cmake_minimum_required(VERSION 3.9) -+cmake_minimum_required(VERSION 3.12...4.0) - project(readerwriterqueue VERSION 1.0.0) +--- warzone2100.old/3rdparty/readerwriterqueue/CMakeLists.txt 2025-09-16 11:43:06.000000000 -0500 ++++ warzone2100/3rdparty/readerwriterqueue/CMakeLists.txt 2025-11-11 13:15:40.981667922 -0600 +@@ -1,7 +1,7 @@ + # See https://discourse.cmake.org/t/how-to-fix-cmake-minimum-required-deprecation-warning/2487/2 + # for more on setting the minimum required version. + +-cmake_minimum_required(VERSION 3.9...3.31.7) ++cmake_minimum_required(VERSION 3.10...4.0) + project(readerwriterqueue VERSION 1.0.7) include(GNUInstallDirs) diff -U3 -r warzone2100.old/3rdparty/SQLiteCpp/CMakeLists.txt warzone2100/3rdparty/SQLiteCpp/CMakeLists.txt ---- warzone2100.old/3rdparty/SQLiteCpp/CMakeLists.txt 2024-11-13 13:54:49.000000000 -0600 -+++ warzone2100/3rdparty/SQLiteCpp/CMakeLists.txt 2025-08-13 14:49:48.829206089 -0500 +--- warzone2100.old/3rdparty/SQLiteCpp/CMakeLists.txt 2025-09-16 11:42:54.000000000 -0500 ++++ warzone2100/3rdparty/SQLiteCpp/CMakeLists.txt 2025-11-11 13:15:40.980594580 -0600 @@ -4,7 +4,7 @@ # # Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt # or copy at http://opensource.org/licenses/MIT) -cmake_minimum_required(VERSION 3.5) -+cmake_minimum_required(VERSION 3.12...4.0) ++cmake_minimum_required(VERSION 3.10...4.0) list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") # custom CMake modules like FindSQLiteCpp - project(SQLiteCpp VERSION 3.3.1) + project(SQLiteCpp VERSION 3.3.2) diff -U3 -r warzone2100.old/3rdparty/SQLiteCpp/examples/example2/CMakeLists.txt warzone2100/3rdparty/SQLiteCpp/examples/example2/CMakeLists.txt ---- warzone2100.old/3rdparty/SQLiteCpp/examples/example2/CMakeLists.txt 2024-11-13 13:54:49.000000000 -0600 -+++ warzone2100/3rdparty/SQLiteCpp/examples/example2/CMakeLists.txt 2025-08-13 14:49:48.829010729 -0500 +--- warzone2100.old/3rdparty/SQLiteCpp/examples/example2/CMakeLists.txt 2025-09-16 11:42:54.000000000 -0500 ++++ warzone2100/3rdparty/SQLiteCpp/examples/example2/CMakeLists.txt 2025-11-11 13:15:40.981337664 -0600 @@ -4,7 +4,7 @@ # # Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt # or copy at http://opensource.org/licenses/MIT) -cmake_minimum_required(VERSION 3.1) # for "CMAKE_CXX_STANDARD" version -+cmake_minimum_required(VERSION 3.12...4.0) ++cmake_minimum_required(VERSION 3.10...4.0) project(SQLiteCpp_Example VERSION 2.0) # SQLiteC++ 3.x now requires C++11 compiler -diff -U3 -r warzone2100.old/3rdparty/SQLiteCpp/googletest/CMakeLists.txt warzone2100/3rdparty/SQLiteCpp/googletest/CMakeLists.txt ---- warzone2100.old/3rdparty/SQLiteCpp/googletest/CMakeLists.txt 2024-11-13 13:54:50.000000000 -0600 -+++ warzone2100/3rdparty/SQLiteCpp/googletest/CMakeLists.txt 2025-08-13 14:49:48.829897152 -0500 -@@ -1,7 +1,7 @@ - # Note: CMake support is community-based. The maintainers do not use CMake - # internally. - --cmake_minimum_required(VERSION 3.13) -+cmake_minimum_required(VERSION 3.12...4.0) - - project(googletest-distribution) - set(GOOGLETEST_VERSION 1.14.0) -diff -U3 -r warzone2100.old/3rdparty/SQLiteCpp/googletest/googlemock/CMakeLists.txt warzone2100/3rdparty/SQLiteCpp/googletest/googlemock/CMakeLists.txt ---- warzone2100.old/3rdparty/SQLiteCpp/googletest/googlemock/CMakeLists.txt 2024-11-13 13:54:50.000000000 -0600 -+++ warzone2100/3rdparty/SQLiteCpp/googletest/googlemock/CMakeLists.txt 2025-08-13 14:49:48.829669555 -0500 -@@ -36,7 +36,7 @@ - # as ${gmock_SOURCE_DIR} and to the root binary directory as - # ${gmock_BINARY_DIR}. - # Language "C" is required for find_package(Threads). --cmake_minimum_required(VERSION 3.13) -+cmake_minimum_required(VERSION 3.12...4.0) - project(gmock VERSION ${GOOGLETEST_VERSION} LANGUAGES CXX C) - - if (COMMAND set_up_hermetic_build) -diff -U3 -r warzone2100.old/3rdparty/SQLiteCpp/googletest/googletest/CMakeLists.txt warzone2100/3rdparty/SQLiteCpp/googletest/googletest/CMakeLists.txt ---- warzone2100.old/3rdparty/SQLiteCpp/googletest/googletest/CMakeLists.txt 2024-11-13 13:54:50.000000000 -0600 -+++ warzone2100/3rdparty/SQLiteCpp/googletest/googletest/CMakeLists.txt 2025-08-13 14:49:48.830060677 -0500 -@@ -46,7 +46,7 @@ - - # Project version: - --cmake_minimum_required(VERSION 3.13) -+cmake_minimum_required(VERSION 3.12...4.0) - project(gtest VERSION ${GOOGLETEST_VERSION} LANGUAGES CXX C) - - if (COMMAND set_up_hermetic_build) diff -U3 -r warzone2100.old/3rdparty/utf8proc/CMakeLists.txt warzone2100/3rdparty/utf8proc/CMakeLists.txt ---- warzone2100.old/3rdparty/utf8proc/CMakeLists.txt 2024-11-13 13:54:56.000000000 -0600 -+++ warzone2100/3rdparty/utf8proc/CMakeLists.txt 2025-08-13 14:49:48.824650163 -0500 +--- warzone2100.old/3rdparty/utf8proc/CMakeLists.txt 2025-09-16 11:43:06.000000000 -0500 ++++ warzone2100/3rdparty/utf8proc/CMakeLists.txt 2025-11-11 13:15:40.970489260 -0600 @@ -1,4 +1,4 @@ --cmake_minimum_required (VERSION 3.5) -+cmake_minimum_required(VERSION 3.12...4.0) +-cmake_minimum_required (VERSION 3.10) ++cmake_minimum_required(VERSION 3.10...4.0) include (utils.cmake) +diff -U3 -r warzone2100.old/3rdparty/utf8proc/test/app/CMakeLists.txt warzone2100/3rdparty/utf8proc/test/app/CMakeLists.txt +--- warzone2100.old/3rdparty/utf8proc/test/app/CMakeLists.txt 2025-09-16 11:43:06.000000000 -0500 ++++ warzone2100/3rdparty/utf8proc/test/app/CMakeLists.txt 2025-11-11 13:15:40.970768384 -0600 +@@ -1,5 +1,5 @@ + # This is a test app to test consuming utf8proc with CMake. +-cmake_minimum_required(VERSION 3.16) ++cmake_minimum_required(VERSION 3.10...4.0) + project(utf8proc-test) + find_package(utf8proc REQUIRED) + add_executable(app app.c) diff -U3 -r warzone2100.old/3rdparty/utfcpp/CMakeLists.txt warzone2100/3rdparty/utfcpp/CMakeLists.txt ---- warzone2100.old/3rdparty/utfcpp/CMakeLists.txt 2024-11-13 13:54:56.000000000 -0600 -+++ warzone2100/3rdparty/utfcpp/CMakeLists.txt 2025-08-13 14:49:48.828870000 -0500 +--- warzone2100.old/3rdparty/utfcpp/CMakeLists.txt 2025-09-16 11:43:06.000000000 -0500 ++++ warzone2100/3rdparty/utfcpp/CMakeLists.txt 2025-11-11 13:15:40.966075039 -0600 @@ -1,7 +1,7 @@ # This file is deprecated and will be removed in a future release # Please see the instructions for installation in README.md file -cmake_minimum_required (VERSION 3.14...3.27) -+cmake_minimum_required(VERSION 3.12...4.0) ++cmake_minimum_required(VERSION 3.10...4.0) project (utf8cpp VERSION 4.0.4 LANGUAGES CXX diff -U3 -r warzone2100.old/3rdparty/utfcpp/extern/ftest/tests/CMakeLists.txt warzone2100/3rdparty/utfcpp/extern/ftest/tests/CMakeLists.txt ---- warzone2100.old/3rdparty/utfcpp/extern/ftest/tests/CMakeLists.txt 2024-11-13 13:54:56.000000000 -0600 -+++ warzone2100/3rdparty/utfcpp/extern/ftest/tests/CMakeLists.txt 2025-08-13 14:49:48.828480707 -0500 +--- warzone2100.old/3rdparty/utfcpp/extern/ftest/tests/CMakeLists.txt 2025-09-16 11:43:07.000000000 -0500 ++++ warzone2100/3rdparty/utfcpp/extern/ftest/tests/CMakeLists.txt 2025-11-11 13:15:40.966488334 -0600 @@ -1,4 +1,4 @@ -cmake_minimum_required (VERSION 3.0.2) -+cmake_minimum_required(VERSION 3.12...4.0) ++cmake_minimum_required(VERSION 3.10...4.0) project (ftest VERSION 0.0.1 LANGUAGES CXX) enable_testing() diff -U3 -r warzone2100.old/3rdparty/utfcpp/tests/CMakeLists.txt warzone2100/3rdparty/utfcpp/tests/CMakeLists.txt ---- warzone2100.old/3rdparty/utfcpp/tests/CMakeLists.txt 2024-11-13 13:54:56.000000000 -0600 -+++ warzone2100/3rdparty/utfcpp/tests/CMakeLists.txt 2025-08-13 14:49:48.828685840 -0500 +--- warzone2100.old/3rdparty/utfcpp/tests/CMakeLists.txt 2025-09-16 11:43:06.000000000 -0500 ++++ warzone2100/3rdparty/utfcpp/tests/CMakeLists.txt 2025-11-11 13:15:40.966264301 -0600 @@ -1,4 +1,4 @@ -cmake_minimum_required (VERSION 3.5) -+cmake_minimum_required(VERSION 3.12...4.0) ++cmake_minimum_required(VERSION 3.10...4.0) project(utfcpptests LANGUAGES CXX) enable_testing() diff -U3 -r warzone2100.old/build_tools/CMakeLists.txt warzone2100/build_tools/CMakeLists.txt ---- warzone2100.old/build_tools/CMakeLists.txt 2024-11-13 13:54:24.000000000 -0600 -+++ warzone2100/build_tools/CMakeLists.txt 2025-08-13 14:49:48.832806206 -0500 +--- warzone2100.old/build_tools/CMakeLists.txt 2025-09-16 11:41:32.000000000 -0500 ++++ warzone2100/build_tools/CMakeLists.txt 2025-11-11 13:15:40.965846621 -0600 @@ -1,4 +1,4 @@ --cmake_minimum_required(VERSION 3.5...3.24) -+cmake_minimum_required(VERSION 3.12...4.0) +-cmake_minimum_required(VERSION 3.16...3.31) ++cmake_minimum_required(VERSION 3.10...4.0) ############################ # Versioning (autorevision) diff -U3 -r warzone2100.old/CMakeLists.txt warzone2100/CMakeLists.txt ---- warzone2100.old/CMakeLists.txt 2025-08-13 14:48:22.252967002 -0500 -+++ warzone2100/CMakeLists.txt 2025-08-13 14:49:48.832964528 -0500 +--- warzone2100.old/CMakeLists.txt 2025-11-11 13:15:14.473586912 -0600 ++++ warzone2100/CMakeLists.txt 2025-11-11 13:15:40.982956680 -0600 @@ -1,4 +1,4 @@ --cmake_minimum_required(VERSION 3.5...3.24) -+cmake_minimum_required(VERSION 3.12...4.0) +-cmake_minimum_required(VERSION 3.16...3.31) ++cmake_minimum_required(VERSION 3.10...4.0) set(_OLD_CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}") set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake) diff -U3 -r warzone2100.old/data/fonts/CMakeLists.txt warzone2100/data/fonts/CMakeLists.txt ---- warzone2100.old/data/fonts/CMakeLists.txt 2024-11-13 13:54:56.000000000 -0600 -+++ warzone2100/data/fonts/CMakeLists.txt 2025-08-13 14:49:48.831038582 -0500 +--- warzone2100.old/data/fonts/CMakeLists.txt 2025-09-16 11:43:07.000000000 -0500 ++++ warzone2100/data/fonts/CMakeLists.txt 2025-11-11 13:15:40.959816797 -0600 @@ -1,4 +1,4 @@ --cmake_minimum_required (VERSION 3.5) -+cmake_minimum_required(VERSION 3.12...4.0) +-cmake_minimum_required(VERSION 3.5...3.31) ++cmake_minimum_required(VERSION 3.10...4.0) configure_file( "${CMAKE_CURRENT_SOURCE_DIR}/DejaVu/LICENSE" diff -U3 -r warzone2100.old/lib/netplay/3rdparty/miniupnp/miniupnpc/CMakeLists.txt warzone2100/lib/netplay/3rdparty/miniupnp/miniupnpc/CMakeLists.txt ---- warzone2100.old/lib/netplay/3rdparty/miniupnp/miniupnpc/CMakeLists.txt 2024-11-13 13:54:57.000000000 -0600 -+++ warzone2100/lib/netplay/3rdparty/miniupnp/miniupnpc/CMakeLists.txt 2025-08-13 14:49:48.831256841 -0500 +--- warzone2100.old/lib/netplay/3rdparty/miniupnp/miniupnpc/CMakeLists.txt 2025-09-16 11:43:08.000000000 -0500 ++++ warzone2100/lib/netplay/3rdparty/miniupnp/miniupnpc/CMakeLists.txt 2025-11-11 13:15:40.965482788 -0600 @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.14 FATAL_ERROR) -+cmake_minimum_required(VERSION 3.12...4.0) ++cmake_minimum_required(VERSION 3.10...4.0) project (miniupnpc - VERSION 2.2.8 + VERSION 2.3.3 diff -U3 -r warzone2100.old/lib/sound/3rdparty/opusfile/CMakeLists.txt warzone2100/lib/sound/3rdparty/opusfile/CMakeLists.txt ---- warzone2100.old/lib/sound/3rdparty/opusfile/CMakeLists.txt 2024-11-13 13:54:57.000000000 -0600 -+++ warzone2100/lib/sound/3rdparty/opusfile/CMakeLists.txt 2025-08-13 14:49:48.831857223 -0500 +--- warzone2100.old/lib/sound/3rdparty/opusfile/CMakeLists.txt 2025-09-16 11:43:08.000000000 -0500 ++++ warzone2100/lib/sound/3rdparty/opusfile/CMakeLists.txt 2025-11-11 13:15:40.964008420 -0600 @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.16) -+cmake_minimum_required(VERSION 3.12...4.0) ++cmake_minimum_required(VERSION 3.10...4.0) list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake") diff -U3 -r warzone2100.old/lib/wzmaplib/CMakeLists.txt warzone2100/lib/wzmaplib/CMakeLists.txt ---- warzone2100.old/lib/wzmaplib/CMakeLists.txt 2024-11-13 13:54:24.000000000 -0600 -+++ warzone2100/lib/wzmaplib/CMakeLists.txt 2025-08-13 14:49:48.831615733 -0500 -@@ -22,7 +22,7 @@ +--- warzone2100.old/lib/wzmaplib/CMakeLists.txt 2025-09-16 11:41:32.000000000 -0500 ++++ warzone2100/lib/wzmaplib/CMakeLists.txt 2025-11-11 13:15:40.962781424 -0600 +@@ -9,7 +9,7 @@ ############################## # wzmaplib project --cmake_minimum_required(VERSION ${_cmake_min_ver_supported}...3.24) -+cmake_minimum_required(VERSION 3.12...4.0) +-cmake_minimum_required(VERSION 3.16...3.31) ++cmake_minimum_required(VERSION 3.10...4.0) project (wzmaplib CXX) - if(${CMAKE_VERSION} VERSION_LESS 3.12) + OPTION(WZMAPLIB_ENABLE_ZIPIOPROVIDER "wzmaplib: Provide ZipIOProvider (which requires libzip)" ON) diff -U3 -r warzone2100.old/po/CMakeLists.txt warzone2100/po/CMakeLists.txt ---- warzone2100.old/po/CMakeLists.txt 2024-11-13 13:54:24.000000000 -0600 -+++ warzone2100/po/CMakeLists.txt 2025-08-13 14:49:48.830713731 -0500 -@@ -15,7 +15,7 @@ - # CMake 3.10+ at the top of this file leads to an inability to compile via - # Visual Studio itself. - # -- # Instead of using cmake_minimum_required(VERSION 3.10), detect the -+cmake_minimum_required(VERSION 3.12...4.0) - # CMake version and emit a warning if it's below 3.10. - # - if(${CMAKE_VERSION} VERSION_LESS "3.10.0") -diff -U3 -r warzone2100.old/src/integrations/CMakeLists.txt warzone2100/src/integrations/CMakeLists.txt ---- warzone2100.old/src/integrations/CMakeLists.txt 2024-11-13 13:54:24.000000000 -0600 -+++ warzone2100/src/integrations/CMakeLists.txt 2025-08-13 14:49:48.832121148 -0500 +--- warzone2100.old/po/CMakeLists.txt 2025-09-16 11:41:32.000000000 -0500 ++++ warzone2100/po/CMakeLists.txt 2025-11-11 13:15:40.956128485 -0600 @@ -1,4 +1,4 @@ --cmake_minimum_required(VERSION 3.5...3.24) -+cmake_minimum_required(VERSION 3.12...4.0) +-cmake_minimum_required(VERSION 3.16...3.31) ++cmake_minimum_required(VERSION 3.10...4.0) + + if(NOT ENABLE_NLS) + message(STATUS "Skipping translations generation / native language support") +diff -U3 -r warzone2100.old/src/integrations/CMakeLists.txt warzone2100/src/integrations/CMakeLists.txt +--- warzone2100.old/src/integrations/CMakeLists.txt 2025-09-16 11:41:32.000000000 -0500 ++++ warzone2100/src/integrations/CMakeLists.txt 2025-11-11 13:15:40.959547975 -0600 +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.16...3.31) ++cmake_minimum_required(VERSION 3.10...4.0) ################################################## # WZ Discord RPC support diff -U3 -r warzone2100.old/tools/map/old/CMakeLists.txt warzone2100/tools/map/old/CMakeLists.txt ---- warzone2100.old/tools/map/old/CMakeLists.txt 2024-11-13 13:54:24.000000000 -0600 -+++ warzone2100/tools/map/old/CMakeLists.txt 2025-08-13 14:49:48.832305121 -0500 +--- warzone2100.old/tools/map/old/CMakeLists.txt 2025-09-16 11:41:32.000000000 -0500 ++++ warzone2100/tools/map/old/CMakeLists.txt 2025-11-11 13:15:40.958291818 -0600 @@ -1,4 +1,4 @@ -cmake_minimum_required (VERSION 2.8) -+cmake_minimum_required(VERSION 3.12...4.0) ++cmake_minimum_required(VERSION 3.10...4.0) project (maptools) diff -U3 -r warzone2100.old/tools/maptools-cli/CMakeLists.txt warzone2100/tools/maptools-cli/CMakeLists.txt ---- warzone2100.old/tools/maptools-cli/CMakeLists.txt 2024-11-13 13:54:57.000000000 -0600 -+++ warzone2100/tools/maptools-cli/CMakeLists.txt 2025-08-13 14:49:48.832560376 -0500 +--- warzone2100.old/tools/maptools-cli/CMakeLists.txt 2025-09-16 11:43:08.000000000 -0500 ++++ warzone2100/tools/maptools-cli/CMakeLists.txt 2025-11-11 13:15:40.957878508 -0600 @@ -7,7 +7,7 @@ set(_cmake_min_ver_supported 3.11) # CMake 3.11 is the minimum version for FetchContent endif() -cmake_minimum_required(VERSION ${_cmake_min_ver_supported}...3.14) -+cmake_minimum_required(VERSION 3.12...4.0) ++cmake_minimum_required(VERSION 3.10...4.0) set(_OLD_CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}") set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake) ---- warzone2100/doc/CMakeLists.txt~ 2024-11-13 13:54:24.000000000 -0600 -+++ warzone2100/doc/CMakeLists.txt 2025-08-13 15:12:41.371983496 -0500 -@@ -16,6 +16,7 @@ - COMMAND ${CMAKE_COMMAND} -DOUTPUT_DIR=${CMAKE_CURRENT_BINARY_DIR} -P ${CMAKE_CURRENT_SOURCE_DIR}/build_tools/GenerateJSDocs.cmake - WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}" - VERBATIM -+ POST_BUILD - ) - - configure_file(Scripting.md "${CMAKE_CURRENT_BINARY_DIR}/Scripting.md" COPYONLY) ---- warzone2100/doc/CMakeLists.txt~ 2025-08-13 15:23:14.837051821 -0500 -+++ warzone2100/doc/CMakeLists.txt 2025-08-13 15:25:02.458759347 -0500 -@@ -131,6 +131,7 @@ - -a toc - ${CMAKE_CURRENT_BINARY_DIR}/quickstartguide.asciidoc - VERBATIM -+ POST_BUILD - ) - - configure_file("warzone2100.6.asciidoc" "${CMAKE_CURRENT_BINARY_DIR}/warzone2100.6.asciidoc" COPYONLY) -@@ -146,6 +147,7 @@ - -D ${CMAKE_CURRENT_BINARY_DIR} - ${CMAKE_CURRENT_BINARY_DIR}/warzone2100.6.asciidoc - VERBATIM -+ POST_BUILD - ) - - # warzone2100.6 - man-page format -@@ -160,6 +162,7 @@ - -o warzone2100.6 - ${CMAKE_CURRENT_BINARY_DIR}/warzone2100.6.asciidoc - VERBATIM -+ POST_BUILD - ) - - unset(_asciidoctor_option_failurelevel) -@@ -270,12 +273,14 @@ - COMMAND ${CMAKE_COMMAND} -E copy "${_warzone2100_6_uncompressed_orig}" "${_warzone2100_6_uncompressed}" - COMMAND ${GZIP_BIN} -n -c ${_warzone2100_6_uncompressed} > ${_warzone2100_6_compressed} - VERBATIM -+ POST_BUILD - ) - else() - add_custom_command( - TARGET wz2100_manpages - COMMAND ${GZIP_BIN} -n -c ${_warzone2100_6_uncompressed} > ${_warzone2100_6_compressed} - VERBATIM -+ POST_BUILD - ) - endif() - diff --git a/sources b/sources index 30c27a7..d50cf36 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ +SHA512 (warzone2100_src.tar.xz) = 74a085e760e16605fde93bce0f82b09df6789913f4b6d138499cea6250955f63589b65035ae6463f450dcf779fdad0d2324b0e0a554c2f3f93a0d625061426b4 SHA512 (high-quality-en-sequences.wz) = 2a4a9e299412fe1adac21001848d10575be69039bb2d762bcad94faefbf498ff72ff0e37fc4017c7598692d250456a444d6d5619c88a9772cfd3a03d4b780f12 -SHA512 (warzone2100_src.tar.xz) = b153306ea8a55334a37580c2862579f6b6a283ba3c082901fcb97fe4da3a6ae4b7bc9bd7c1fa33f39a3b5113876080b90422174f376a7ed148a18f21f57ee8b3 diff --git a/warzone2100.spec b/warzone2100.spec index 4a01601..ba43e90 100644 --- a/warzone2100.spec +++ b/warzone2100.spec @@ -2,8 +2,8 @@ %global _cmake_shared_libs %{nil} Name: warzone2100 -Version: 4.5.5 -Release: 3%{?dist} +Version: 4.6.1 +Release: 1%{?dist} Summary: Innovative 3D real-time strategy # Automatically converted from old format: GPLv2+ and CC-BY-SA - review is highly recommended. @@ -12,11 +12,12 @@ URL: http://wz2100.net/ Source0: https://github.com/Warzone2100/warzone2100/releases/download/%{version}/warzone2100_src.tar.xz Source1: https://github.com/Warzone2100/wz-sequences/releases/download/v3/high-quality-en-sequences.wz -Patch0: SQLiteCPP-gcc15.patch Patch1: cmake4.patch # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} +# https://github.com/Warzone2100/warzone2100/issues/4577 +ExcludeArch: s390x BuildRequires: cmake BuildRequires: desktop-file-utils @@ -32,11 +33,13 @@ BuildRequires: libpng-devel BuildRequires: libsodium-devel BuildRequires: libtheora-devel BuildRequires: libvorbis-devel +BuildRequires: libzip-devel BuildRequires: openal-soft-devel BuildRequires: openssl-devel BuildRequires: opus-devel BuildRequires: p7zip BuildRequires: physfs-devel +BuildRequires: protobuf-devel BuildRequires: rubygem-asciidoctor BuildRequires: SDL2-devel BuildRequires: sqlite-devel @@ -96,6 +99,9 @@ mv $RPM_BUILD_ROOT%{_datadir}/icons/net.wz2100.warzone2100.png \ %{_datadir}/warzone2100/sequences.wz %changelog +* Tue Sep 16 2025 Gwyn Ciesla - 4.6.1-1 +- 4.6.1 + * Fri Jul 25 2025 Fedora Release Engineering - 4.5.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild From ba1815664c1446f2c3c970611fe7358eae204d36 Mon Sep 17 00:00:00 2001 From: Gwyn Ciesla Date: Wed, 10 Dec 2025 08:50:44 -0600 Subject: [PATCH 26/32] 4.6.2 --- cmake4.patch | 62 +++++++----------------------------------------- sources | 2 +- warzone2100.spec | 9 +++++-- 3 files changed, 16 insertions(+), 57 deletions(-) diff --git a/cmake4.patch b/cmake4.patch index 95bc503..b257175 100644 --- a/cmake4.patch +++ b/cmake4.patch @@ -262,15 +262,6 @@ diff -U3 -r warzone2100.old/3rdparty/quickjs-wz/CMakeLists.txt warzone2100/3rdpa project (quickjs-wz C) if(${CMAKE_VERSION} VERSION_LESS 3.12) -diff -U3 -r warzone2100.old/3rdparty/quickjs-wz/quickjs-ng/CMakeLists.txt warzone2100/3rdparty/quickjs-wz/quickjs-ng/CMakeLists.txt ---- warzone2100.old/3rdparty/quickjs-wz/quickjs-ng/CMakeLists.txt 2025-09-16 11:43:06.000000000 -0500 -+++ warzone2100/3rdparty/quickjs-wz/quickjs-ng/CMakeLists.txt 2025-11-11 13:15:40.982512036 -0600 -@@ -1,4 +1,4 @@ --cmake_minimum_required(VERSION 3.10) -+cmake_minimum_required(VERSION 3.10...4.0) - - project(quickjs LANGUAGES C) - diff -U3 -r warzone2100.old/3rdparty/re2/CMakeLists.txt warzone2100/3rdparty/re2/CMakeLists.txt --- warzone2100.old/3rdparty/re2/CMakeLists.txt 2025-09-16 11:43:06.000000000 -0500 +++ warzone2100/3rdparty/re2/CMakeLists.txt 2025-11-11 13:15:40.966731441 -0600 @@ -295,30 +286,6 @@ diff -U3 -r warzone2100.old/3rdparty/readerwriterqueue/CMakeLists.txt warzone210 project(readerwriterqueue VERSION 1.0.7) include(GNUInstallDirs) -diff -U3 -r warzone2100.old/3rdparty/SQLiteCpp/CMakeLists.txt warzone2100/3rdparty/SQLiteCpp/CMakeLists.txt ---- warzone2100.old/3rdparty/SQLiteCpp/CMakeLists.txt 2025-09-16 11:42:54.000000000 -0500 -+++ warzone2100/3rdparty/SQLiteCpp/CMakeLists.txt 2025-11-11 13:15:40.980594580 -0600 -@@ -4,7 +4,7 @@ - # - # Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt - # or copy at http://opensource.org/licenses/MIT) --cmake_minimum_required(VERSION 3.5) -+cmake_minimum_required(VERSION 3.10...4.0) - list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") # custom CMake modules like FindSQLiteCpp - project(SQLiteCpp VERSION 3.3.2) - -diff -U3 -r warzone2100.old/3rdparty/SQLiteCpp/examples/example2/CMakeLists.txt warzone2100/3rdparty/SQLiteCpp/examples/example2/CMakeLists.txt ---- warzone2100.old/3rdparty/SQLiteCpp/examples/example2/CMakeLists.txt 2025-09-16 11:42:54.000000000 -0500 -+++ warzone2100/3rdparty/SQLiteCpp/examples/example2/CMakeLists.txt 2025-11-11 13:15:40.981337664 -0600 -@@ -4,7 +4,7 @@ - # - # Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt - # or copy at http://opensource.org/licenses/MIT) --cmake_minimum_required(VERSION 3.1) # for "CMAKE_CXX_STANDARD" version -+cmake_minimum_required(VERSION 3.10...4.0) - project(SQLiteCpp_Example VERSION 2.0) - - # SQLiteC++ 3.x now requires C++11 compiler diff -U3 -r warzone2100.old/3rdparty/utf8proc/CMakeLists.txt warzone2100/3rdparty/utf8proc/CMakeLists.txt --- warzone2100.old/3rdparty/utf8proc/CMakeLists.txt 2025-09-16 11:43:06.000000000 -0500 +++ warzone2100/3rdparty/utf8proc/CMakeLists.txt 2025-11-11 13:15:40.970489260 -0600 @@ -338,27 +305,6 @@ diff -U3 -r warzone2100.old/3rdparty/utf8proc/test/app/CMakeLists.txt warzone210 project(utf8proc-test) find_package(utf8proc REQUIRED) add_executable(app app.c) -diff -U3 -r warzone2100.old/3rdparty/utfcpp/CMakeLists.txt warzone2100/3rdparty/utfcpp/CMakeLists.txt ---- warzone2100.old/3rdparty/utfcpp/CMakeLists.txt 2025-09-16 11:43:06.000000000 -0500 -+++ warzone2100/3rdparty/utfcpp/CMakeLists.txt 2025-11-11 13:15:40.966075039 -0600 -@@ -1,7 +1,7 @@ - # This file is deprecated and will be removed in a future release - # Please see the instructions for installation in README.md file - --cmake_minimum_required (VERSION 3.14...3.27) -+cmake_minimum_required(VERSION 3.10...4.0) - project (utf8cpp - VERSION 4.0.4 - LANGUAGES CXX -diff -U3 -r warzone2100.old/3rdparty/utfcpp/extern/ftest/tests/CMakeLists.txt warzone2100/3rdparty/utfcpp/extern/ftest/tests/CMakeLists.txt ---- warzone2100.old/3rdparty/utfcpp/extern/ftest/tests/CMakeLists.txt 2025-09-16 11:43:07.000000000 -0500 -+++ warzone2100/3rdparty/utfcpp/extern/ftest/tests/CMakeLists.txt 2025-11-11 13:15:40.966488334 -0600 -@@ -1,4 +1,4 @@ --cmake_minimum_required (VERSION 3.0.2) -+cmake_minimum_required(VERSION 3.10...4.0) - project (ftest VERSION 0.0.1 LANGUAGES CXX) - - enable_testing() diff -U3 -r warzone2100.old/3rdparty/utfcpp/tests/CMakeLists.txt warzone2100/3rdparty/utfcpp/tests/CMakeLists.txt --- warzone2100.old/3rdparty/utfcpp/tests/CMakeLists.txt 2025-09-16 11:43:06.000000000 -0500 +++ warzone2100/3rdparty/utfcpp/tests/CMakeLists.txt 2025-11-11 13:15:40.966264301 -0600 @@ -464,3 +410,11 @@ diff -U3 -r warzone2100.old/tools/maptools-cli/CMakeLists.txt warzone2100/tools/ set(_OLD_CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}") set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake) +--- a/3rdparty/utfcpp/CMakeLists.txt~ 2025-12-09 07:31:34.000000000 -0600 ++++ b/3rdparty/utfcpp/CMakeLists.txt 2025-12-09 13:53:08.443636881 -0600 +@@ -1,4 +1,4 @@ +-cmake_minimum_required (VERSION 3.14...3.27) ++cmake_minimum_required (VERSION 3.10...4.0) + project (utf8cpp + VERSION 4.0.8 + LANGUAGES CXX diff --git a/sources b/sources index d50cf36..0500b98 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (warzone2100_src.tar.xz) = 74a085e760e16605fde93bce0f82b09df6789913f4b6d138499cea6250955f63589b65035ae6463f450dcf779fdad0d2324b0e0a554c2f3f93a0d625061426b4 +SHA512 (warzone2100_src.tar.xz) = 24cffab0ba0e381c9d3ecb51a83532985c89a36290bd9d5a0f8a4cc369213e7fafce830a576af7204425c9ba1aa46162f1b3f0507da8d2472718a1cb41ec2982 SHA512 (high-quality-en-sequences.wz) = 2a4a9e299412fe1adac21001848d10575be69039bb2d762bcad94faefbf498ff72ff0e37fc4017c7598692d250456a444d6d5619c88a9772cfd3a03d4b780f12 diff --git a/warzone2100.spec b/warzone2100.spec index ba43e90..9de3a70 100644 --- a/warzone2100.spec +++ b/warzone2100.spec @@ -2,7 +2,7 @@ %global _cmake_shared_libs %{nil} Name: warzone2100 -Version: 4.6.1 +Version: 4.6.2 Release: 1%{?dist} Summary: Innovative 3D real-time strategy @@ -22,6 +22,7 @@ ExcludeArch: s390x BuildRequires: cmake BuildRequires: desktop-file-utils BuildRequires: freetype-devel +BuildREquires: fribidi-devel BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: gettext @@ -34,6 +35,7 @@ BuildRequires: libsodium-devel BuildRequires: libtheora-devel BuildRequires: libvorbis-devel BuildRequires: libzip-devel +BuildRequires: miniupnpc-devel BuildRequires: openal-soft-devel BuildRequires: openssl-devel BuildRequires: opus-devel @@ -41,7 +43,7 @@ BuildRequires: p7zip BuildRequires: physfs-devel BuildRequires: protobuf-devel BuildRequires: rubygem-asciidoctor -BuildRequires: SDL2-devel +BuildRequires: SDL3-devel BuildRequires: sqlite-devel BuildRequires: vulkan-devel @@ -99,6 +101,9 @@ mv $RPM_BUILD_ROOT%{_datadir}/icons/net.wz2100.warzone2100.png \ %{_datadir}/warzone2100/sequences.wz %changelog +* Tue Dec 09 2025 Gwyn Ciesla - 4.6.2-1 +- 4.6.2 + * Tue Sep 16 2025 Gwyn Ciesla - 4.6.1-1 - 4.6.1 From a138d543df7021444914756911506e55a8d4ccfb Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 17 Jan 2026 20:07:14 +0000 Subject: [PATCH 27/32] Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild --- warzone2100.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/warzone2100.spec b/warzone2100.spec index 9de3a70..9fb049c 100644 --- a/warzone2100.spec +++ b/warzone2100.spec @@ -3,7 +3,7 @@ Name: warzone2100 Version: 4.6.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Innovative 3D real-time strategy # Automatically converted from old format: GPLv2+ and CC-BY-SA - review is highly recommended. @@ -101,6 +101,9 @@ mv $RPM_BUILD_ROOT%{_datadir}/icons/net.wz2100.warzone2100.png \ %{_datadir}/warzone2100/sequences.wz %changelog +* Sat Jan 17 2026 Fedora Release Engineering - 4.6.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + * Tue Dec 09 2025 Gwyn Ciesla - 4.6.2-1 - 4.6.2 From e894ce1c158a4bbe794174191aad22bb33295655 Mon Sep 17 00:00:00 2001 From: Gwyn Ciesla Date: Thu, 5 Feb 2026 08:56:59 -0600 Subject: [PATCH 28/32] 4.6.3 --- sources | 2 +- warzone2100.spec | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sources b/sources index 0500b98..4225166 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (warzone2100_src.tar.xz) = 24cffab0ba0e381c9d3ecb51a83532985c89a36290bd9d5a0f8a4cc369213e7fafce830a576af7204425c9ba1aa46162f1b3f0507da8d2472718a1cb41ec2982 +SHA512 (warzone2100_src.tar.xz) = 14b7e502dd2f5b5350d80e5210718aa9118859381e3f33e80ae0b83a05136103b480d1e510e56b0cfac20a56bc51801db98c25c15636d21f1c847a70a56bf8ed SHA512 (high-quality-en-sequences.wz) = 2a4a9e299412fe1adac21001848d10575be69039bb2d762bcad94faefbf498ff72ff0e37fc4017c7598692d250456a444d6d5619c88a9772cfd3a03d4b780f12 diff --git a/warzone2100.spec b/warzone2100.spec index 9fb049c..d57b2bf 100644 --- a/warzone2100.spec +++ b/warzone2100.spec @@ -2,8 +2,8 @@ %global _cmake_shared_libs %{nil} Name: warzone2100 -Version: 4.6.2 -Release: 2%{?dist} +Version: 4.6.3 +Release: 1%{?dist} Summary: Innovative 3D real-time strategy # Automatically converted from old format: GPLv2+ and CC-BY-SA - review is highly recommended. @@ -101,6 +101,9 @@ mv $RPM_BUILD_ROOT%{_datadir}/icons/net.wz2100.warzone2100.png \ %{_datadir}/warzone2100/sequences.wz %changelog +* Wed Feb 04 2026 Gwyn Ciesla - 4.6.3-1 +- 4.6.3 + * Sat Jan 17 2026 Fedora Release Engineering - 4.6.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild From 27ed080c454109da56f7763f2cfcb92b6c2207c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Mon, 13 Apr 2026 08:33:45 +0200 Subject: [PATCH 29/32] migrate to SPDX license This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4 --- warzone2100.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/warzone2100.spec b/warzone2100.spec index d57b2bf..e96bbc2 100644 --- a/warzone2100.spec +++ b/warzone2100.spec @@ -6,8 +6,8 @@ Version: 4.6.3 Release: 1%{?dist} Summary: Innovative 3D real-time strategy -# Automatically converted from old format: GPLv2+ and CC-BY-SA - review is highly recommended. -License: GPL-2.0-or-later AND LicenseRef-Callaway-CC-BY-SA +# See COPYING.NONGPL +License: GPL-2.0-or-later AND CC-BY-SA-3.0 AND CC0-1.0 AND MIT AND Apache-2.0 AND OFL-1.1 AND BSD-3-Clause AND CC-BY-4.0 AND MPL-2.0 AND ISC URL: http://wz2100.net/ Source0: https://github.com/Warzone2100/warzone2100/releases/download/%{version}/warzone2100_src.tar.xz Source1: https://github.com/Warzone2100/wz-sequences/releases/download/v3/high-quality-en-sequences.wz From eb41bb4e9706712ee05c61d46f0c6fa75cb21ae5 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Fri, 12 Jun 2026 20:04:32 -0400 Subject: [PATCH 30/32] Rebuilt for openssl 4.0 --- warzone2100.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/warzone2100.spec b/warzone2100.spec index e96bbc2..f1c8112 100644 --- a/warzone2100.spec +++ b/warzone2100.spec @@ -3,7 +3,7 @@ Name: warzone2100 Version: 4.6.3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Innovative 3D real-time strategy # See COPYING.NONGPL @@ -101,6 +101,9 @@ mv $RPM_BUILD_ROOT%{_datadir}/icons/net.wz2100.warzone2100.png \ %{_datadir}/warzone2100/sequences.wz %changelog +* Sat Jun 13 2026 Yaakov Selkowitz - 4.6.3-2 +- Rebuilt for openssl 4.0 + * Wed Feb 04 2026 Gwyn Ciesla - 4.6.3-1 - 4.6.3 From b050c628cef59ec7cb8c339f78ed052768d7664e Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 17 Jul 2026 08:41:27 +0000 Subject: [PATCH 31/32] Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild --- warzone2100.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/warzone2100.spec b/warzone2100.spec index f1c8112..d08667e 100644 --- a/warzone2100.spec +++ b/warzone2100.spec @@ -3,7 +3,7 @@ Name: warzone2100 Version: 4.6.3 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Innovative 3D real-time strategy # See COPYING.NONGPL @@ -101,6 +101,9 @@ mv $RPM_BUILD_ROOT%{_datadir}/icons/net.wz2100.warzone2100.png \ %{_datadir}/warzone2100/sequences.wz %changelog +* Fri Jul 17 2026 Fedora Release Engineering - 4.6.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild + * Sat Jun 13 2026 Yaakov Selkowitz - 4.6.3-2 - Rebuilt for openssl 4.0 From 3898de6f87c138540f0514322e03236408416fbb Mon Sep 17 00:00:00 2001 From: Gwyn Ciesla Date: Mon, 10 Aug 2026 08:08:57 -0500 Subject: [PATCH 32/32] 4.7.0 --- ...c62ae68ca70da43ec915cbf6776c492e6656.patch | 44 +++++++++++++++++++ sources | 2 +- warzone2100.spec | 12 ++++- 3 files changed, 55 insertions(+), 3 deletions(-) create mode 100644 8701c62ae68ca70da43ec915cbf6776c492e6656.patch diff --git a/8701c62ae68ca70da43ec915cbf6776c492e6656.patch b/8701c62ae68ca70da43ec915cbf6776c492e6656.patch new file mode 100644 index 0000000..a4b432c --- /dev/null +++ b/8701c62ae68ca70da43ec915cbf6776c492e6656.patch @@ -0,0 +1,44 @@ +From 8701c62ae68ca70da43ec915cbf6776c492e6656 Mon Sep 17 00:00:00 2001 +From: Dmitry Marakasov +Date: Tue, 12 May 2026 22:55:00 +0300 +Subject: [PATCH] Replace deprecated vulkan enum value +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Replace `eVkColorspaceSrgbNonlinear` with `eSrgbNonlinear`, as the +former was removed in vulkan 1.4.350, and was a legacy alias to the latter +(more precisely, `eSrgbNonlinear` → `VK_COLORSPACE_SRGB_NONLINEAR_KHR` → +[legacy alias to] `VK_COLOR_SPACE_SRGB_NONLINEAR_KHR` ← `eSrgbNonlinear`). +--- + lib/ivis_opengl/gfx_api_vk.cpp | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) + +diff --git a/lib/ivis_opengl/gfx_api_vk.cpp b/lib/ivis_opengl/gfx_api_vk.cpp +index f137f496509..dcedf473de7 100644 +--- a/lib/ivis_opengl/gfx_api_vk.cpp ++++ b/lib/ivis_opengl/gfx_api_vk.cpp +@@ -4255,10 +4255,10 @@ void VkRoot::createNewSwapchainAndSwapchainSpecificStuff(const vk::Result& reaso + vk::SurfaceFormatKHR chooseSwapSurfaceFormat(const std::vector& availableFormats) + { + const auto desiredFormats = std::array { +- vk::SurfaceFormatKHR{ vk::Format::eA2B10G10R10UnormPack32, vk::ColorSpaceKHR::eVkColorspaceSrgbNonlinear }, +- vk::SurfaceFormatKHR{ vk::Format::eA2R10G10B10UnormPack32, vk::ColorSpaceKHR::eVkColorspaceSrgbNonlinear }, +- vk::SurfaceFormatKHR{ vk::Format::eB8G8R8A8Unorm, vk::ColorSpaceKHR::eVkColorspaceSrgbNonlinear }, +- vk::SurfaceFormatKHR{ vk::Format::eR8G8B8A8Unorm, vk::ColorSpaceKHR::eVkColorspaceSrgbNonlinear } ++ vk::SurfaceFormatKHR{ vk::Format::eA2B10G10R10UnormPack32, vk::ColorSpaceKHR::eSrgbNonlinear }, ++ vk::SurfaceFormatKHR{ vk::Format::eA2R10G10B10UnormPack32, vk::ColorSpaceKHR::eSrgbNonlinear }, ++ vk::SurfaceFormatKHR{ vk::Format::eB8G8R8A8Unorm, vk::ColorSpaceKHR::eSrgbNonlinear }, ++ vk::SurfaceFormatKHR{ vk::Format::eR8G8B8A8Unorm, vk::ColorSpaceKHR::eSrgbNonlinear } + }; + + if(availableFormats.size() == 1 +@@ -4266,7 +4266,7 @@ vk::SurfaceFormatKHR chooseSwapSurfaceFormat(const std::vector - 4.7.0-1 +- 4.7.0 + * Fri Jul 17 2026 Fedora Release Engineering - 4.6.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild