diff --git a/wslay-cmake4.0-compat.patch b/wslay-cmake4.0-compat.patch new file mode 100644 index 0000000..57eaba8 --- /dev/null +++ b/wslay-cmake4.0-compat.patch @@ -0,0 +1,40 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 7a41914..2b4f4fb 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 2.8) ++cmake_minimum_required(VERSION 3.5...4.0) + + # This CMakeLists.txt file intended for: + # - development of wslay library +diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt +index 5d6aabf..468e8f4 100644 +--- a/examples/CMakeLists.txt ++++ b/examples/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.2) ++cmake_minimum_required(VERSION 3.5...4.0) + + include(CheckIncludeFiles) + check_include_files("sys/epoll.h" HAVE_EPOLL) +diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt +index 4af972e..741e4ab 100644 +--- a/lib/CMakeLists.txt ++++ b/lib/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 2.8) ++cmake_minimum_required(VERSION 3.5...4.0) + + # This CMakeLists.txt file intended for: + # - include by master ../CMakeLists.txt +diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt +index 344680b..72917a1 100644 +--- a/tests/CMakeLists.txt ++++ b/tests/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.2) ++cmake_minimum_required(VERSION 3.5...4.0) + + find_package(CUnit REQUIRED) + diff --git a/wslay.spec b/wslay.spec index 28df28b..5b57760 100644 --- a/wslay.spec +++ b/wslay.spec @@ -2,13 +2,15 @@ Name: wslay Version: 1.1.1 -Release: 3%{?dist} +Release: 9%{?dist} Summary: Lightweight WebSocket library in C License: MIT URL: https://tatsuhiro-t.github.io/wslay Source0: https://github.com/tatsuhiro-t/wslay/archive/release-%{version}/%{name}-release-%{version}.tar.gz # Patch from Debian: https://salsa.debian.org/debian/wslay Patch0: 10_update_cmake.patch +# Fix build with cmake 4.0. Could be upstreamed but project unmaintained. +Patch1: wslay-cmake4.0-compat.patch BuildRequires: cmake BuildRequires: gcc-c++ @@ -77,6 +79,24 @@ EOF %{_libdir}/pkgconfig/lib%{name}.pc %changelog +* Fri Jul 17 2026 Fedora Release Engineering - 1.1.1-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild + +* Sat Jan 17 2026 Fedora Release Engineering - 1.1.1-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + +* Sun Jul 27 2025 Rémi Verschelde - 1.1.1-7 +- Patch config to support CMake 4.0 with min policy 3.5 (rhbz#2381635) + +* Fri Jul 25 2025 Fedora Release Engineering - 1.1.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + +* Sun Jan 19 2025 Fedora Release Engineering - 1.1.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + +* Sat Jul 20 2024 Fedora Release Engineering - 1.1.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + * Sat Jan 27 2024 Fedora Release Engineering - 1.1.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild