diff --git a/hyperscan.spec b/hyperscan.spec index 34862d4ebb9e8977ab46907435ab82255e98b0e2..cc01a6138e8ecc63aa4897e568c1a458c38a2624 100644 --- a/hyperscan.spec +++ b/hyperscan.spec @@ -1,17 +1,17 @@ +%define _lto_cflags %{nil} + Name: hyperscan Version: 5.4.2 -Release: 2 +Release: 3 Summary: High-performance regular expression matching library -License: BSD +License: BSD-3-Clause URL: https://www.hyperscan.io/ Source0: https://github.com/intel/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Patch0: hyperscan-aarch64-support.patch Patch1: Fix-hyperscan-gcc10.patch -%if "%{?toolchain}" == "clang" Patch2: support-clang-build.patch -%endif BuildRequires: gcc-c++ BuildRequires: boost-devel @@ -36,7 +36,7 @@ Hyperscan is typically used in a DPI library stack. %package devel Summary: Libraries and header files for the hyperscan library -Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: %{name} = %{version}-%{release} %description devel Hyperscan is a high-performance multiple regex matching library. It @@ -55,24 +55,22 @@ needed for developing Hyperscan applications. %prep %setup -q -n %{name}-%{version} -cd %{_builddir}/%{name}-%{version} mv src/util/simd_utils.h src/util/simd_x86.h sed -i 's/SIMD_UTILS/SIMD_X86/' src/util/simd_x86.h sed -i 's/_mm_set_epi32/set32x4/' src/util/state_compress.c sed -i 's/_mm_set_epi64x/set64x2/' src/util/state_compress.c sed -i 's/_mm_srli_si128/rshiftbyte_m128/' src/util/state_compress.c -cd - %autopatch -p1 %build -%cmake -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_STATIC_AND_SHARED:BOOL=OFF . -%make_build +%cmake -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_STATIC_AND_SHARED:BOOL=OFF +%cmake_build %install -%make_install +%cmake_install %check -./bin/unit-hyperscan +%{__cmake_builddir}/bin/unit-hyperscan %files %doc %{_defaultdocdir}/%{name}/examples/README.md @@ -85,9 +83,13 @@ cd - %files devel %{_libdir}/*.so %{_libdir}/pkgconfig/libhs.pc -%{_includedir}/hs/ +%{_includedir}/hs %changelog +* Sun Oct 06 2024 Funda Wang - 5.4.2-3 +- disable LTO build +- adopt to new cmake macro + * Fri Sep 8 2023 luofeng - 5.4.2-2 - support clang build diff --git a/hyperscan.yaml b/hyperscan.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e370cfe9a87cb442ac285291fb95ee12f5bb6e98 --- /dev/null +++ b/hyperscan.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: intel/hyperscan +tag_prefix: ^v +separator: .