diff --git a/hyperscan-5.4.2-port-to-newer-cmake.patch b/hyperscan-5.4.2-port-to-newer-cmake.patch new file mode 100644 index 0000000000000000000000000000000000000000..ef111aa32a690668724f8fa4b850ec3cc406a7ba --- /dev/null +++ b/hyperscan-5.4.2-port-to-newer-cmake.patch @@ -0,0 +1,24 @@ +--- hyperscan-5.4.2/CMakeLists.txt.orig 2025-03-04 14:31:48.931393681 +0800 ++++ hyperscan-5.4.2/CMakeLists.txt 2025-03-04 14:32:31.624998106 +0800 +@@ -1,4 +1,4 @@ +-cmake_minimum_required (VERSION 2.8.11) ++cmake_minimum_required (VERSION 3.12) + project (hyperscan C CXX) + + set (HS_MAJOR_VERSION 5) +@@ -72,12 +72,12 @@ + include (${CMAKE_MODULE_PATH}/boost.cmake) + + # -- make this work? set(python_ADDITIONAL_VERSIONS 2.7 2.6) +-find_package(PythonInterp) ++find_package(Python) + find_program(RAGEL ragel) + find_program(COPY cp) + +-if(PYTHONINTERP_FOUND) +- set(PYTHON ${PYTHON_EXECUTABLE}) ++if(Python_FOUND) ++ set(PYTHON ${Python_EXECUTABLE}) + else() + message(FATAL_ERROR "No python interpreter found") + endif() diff --git a/hyperscan.spec b/hyperscan.spec index cc01a6138e8ecc63aa4897e568c1a458c38a2624..b2f30b14fab2d72eedda06f29d8e98440ef710b0 100644 --- a/hyperscan.spec +++ b/hyperscan.spec @@ -2,7 +2,7 @@ Name: hyperscan Version: 5.4.2 -Release: 3 +Release: 4 Summary: High-performance regular expression matching library License: BSD-3-Clause @@ -12,6 +12,7 @@ Source0: https://github.com/intel/%{name}/archive/v%{version}.tar.gz#/%{name}-%{ Patch0: hyperscan-aarch64-support.patch Patch1: Fix-hyperscan-gcc10.patch Patch2: support-clang-build.patch +Patch3: hyperscan-5.4.2-port-to-newer-cmake.patch BuildRequires: gcc-c++ BuildRequires: boost-devel @@ -86,6 +87,9 @@ sed -i 's/_mm_srli_si128/rshiftbyte_m128/' src/util/state_compress.c %{_includedir}/hs %changelog +* Tue Mar 04 2025 Funda Wang - 5.4.2-4 +- try build with cmake 4.0 + * Sun Oct 06 2024 Funda Wang - 5.4.2-3 - disable LTO build - adopt to new cmake macro