* Roll back bugfix for github issue #350: Besides using scratch for corresponding database, Hyperscan also allows user to use larger scratch allocated for another database. Users can leverage this property to achieve safe scratch usage in multi-database scenarios. Behaviors beyond these are discouraged and results are undefined. * Fix hsdump issue due to invalid nfa type. OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/hyperscan?expand=0&rev=23
121 lines
3.8 KiB
RPMSpec
121 lines
3.8 KiB
RPMSpec
#
|
|
# spec file for package hyperscan
|
|
#
|
|
# Copyright (c) 2023 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define _lto_cflags %{nil}
|
|
%define sover 5
|
|
Name: hyperscan
|
|
Version: 5.4.2
|
|
Release: 0
|
|
Summary: Regular expression matching library
|
|
License: BSD-3-Clause
|
|
Group: Development/Libraries/C and C++
|
|
URL: https://www.hyperscan.io/
|
|
#Git-Clone: https://github.com/intel/hyperscan.git
|
|
Source: https://github.com/intel/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
BuildRequires: boost-devel >= 1.57
|
|
BuildRequires: cmake
|
|
BuildRequires: gcc-c++ >= 4.9
|
|
BuildRequires: libpcap-devel
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: python3-base
|
|
BuildRequires: ragel
|
|
BuildRequires: pkgconfig(libpcre)
|
|
BuildRequires: pkgconfig(sqlite3)
|
|
ExclusiveArch: %{ix86} x86_64
|
|
|
|
%description
|
|
Hyperscan is a multiple regex matching library. It
|
|
follows the regular expression syntax of the commonly-used libpcre
|
|
library, but is a standalone library with its own C API.
|
|
|
|
Hyperscan uses hybrid automata techniques to allow simultaneous
|
|
matching of large numbers (up to tens of thousands) of regular
|
|
expressions and for the matching of regular expressions across streams
|
|
of data.
|
|
|
|
Hyperscan is typically used in a DPI library stack.
|
|
|
|
%package -n libhs%{sover}
|
|
Summary: Regular expression matching library
|
|
Group: System/Libraries
|
|
|
|
%description -n libhs%{sover}
|
|
Hyperscan is a multiple regex matching library. It
|
|
follows the regular expression syntax of the commonly-used libpcre
|
|
library, but is a standalone library with its own C API.
|
|
|
|
Hyperscan uses hybrid automata techniques to allow simultaneous
|
|
matching of large numbers (up to tens of thousands) of regular
|
|
expressions and for the matching of regular expressions across streams
|
|
of data.
|
|
|
|
Hyperscan is typically used in a DPI library stack.
|
|
|
|
%package devel
|
|
Summary: Libraries and header files for the hyperscan library
|
|
Group: Development/Libraries/C and C++
|
|
Requires: libhs%{sover} = %{version}
|
|
|
|
%description devel
|
|
Hyperscan is a multiple regex matching library. It
|
|
follows the regular expression syntax of the commonly-used libpcre
|
|
library, but is a standalone library with its own C API.
|
|
|
|
Hyperscan uses hybrid automata techniques to allow simultaneous
|
|
matching of large numbers (up to tens of thousands) of regular
|
|
expressions and for the matching of regular expressions across streams
|
|
of data.
|
|
|
|
Hyperscan is typically used in a DPI library stack.
|
|
|
|
This package provides the libraries, include files and other resources
|
|
needed for developing Hyperscan applications.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%cmake \
|
|
-DCMAKE_INSTALL_DOCDIR=%{_defaultdocdir}/%{name} \
|
|
-DBUILD_AVX512=ON
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%cmake_install
|
|
|
|
%post -n libhs%{sover} -p /sbin/ldconfig
|
|
%postun -n libhs%{sover} -p /sbin/ldconfig
|
|
|
|
%files -n libhs%{sover}
|
|
%license COPYING LICENSE
|
|
%{_libdir}/libhs.so.%{sover}*
|
|
%{_libdir}/libhs_runtime.so.%{sover}*
|
|
|
|
%files devel
|
|
%{_libdir}/libhs.so
|
|
%{_libdir}/libhs_runtime.so
|
|
%{_libdir}/pkgconfig/libhs.pc
|
|
%{_includedir}/hs/
|
|
%dir %{_defaultdocdir}/%{name}
|
|
%dir %{_defaultdocdir}/%{name}/examples
|
|
%doc %{_defaultdocdir}/%{name}/examples/README.md
|
|
%doc %{_defaultdocdir}/%{name}/examples/*.cc
|
|
%doc %{_defaultdocdir}/%{name}/examples/*.c
|
|
|
|
%changelog
|