hyperscan/hyperscan.spec

86 lines
2.4 KiB
RPMSpec
Raw Normal View History

2020-06-12 15:56:07 +08:00
Name: hyperscan
Version: 5.2.1
2021-07-24 15:44:19 +08:00
Release: 3
2020-06-12 15:56:07 +08:00
Summary: High-performance regular expression matching library
License: BSD
URL: https://www.hyperscan.io/
Source0: https://github.com/intel/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
2020-07-20 15:40:20 +08:00
Patch0: hyperscan-aarch64-support.patch
2021-07-24 15:44:19 +08:00
Patch1: Fix-build-errot-on-x86_64.patch
2020-07-20 15:40:20 +08:00
2020-06-12 15:56:07 +08:00
BuildRequires: gcc-c++
BuildRequires: boost-devel
BuildRequires: cmake
BuildRequires: pcre-devel
BuildRequires: python3
BuildRequires: ragel
BuildRequires: sqlite-devel >= 3.0
BuildRequires: libpcap-devel
%description
Hyperscan is a high-performance 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
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
Hyperscan is a high-performance 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
2020-07-20 15:40:20 +08:00
%autosetup -n %{name}-%{version} -p1
2020-06-12 15:56:07 +08:00
%build
%cmake -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_STATIC_AND_SHARED:BOOL=OFF .
%make_build
%install
%make_install
%files
%doc %{_defaultdocdir}/%{name}/examples/README.md
%doc %{_defaultdocdir}/%{name}/examples/*.cc
%doc %{_defaultdocdir}/%{name}/examples/*.c
%license COPYING
%license LICENSE
%{_libdir}/*.so.*
%files devel
%{_libdir}/*.so
%{_libdir}/pkgconfig/libhs.pc
%{_includedir}/hs/
%changelog
2021-07-24 15:44:19 +08:00
* Sat Jul 24 2021 wangyue <wangyue92@huawei.com> - 5.2.1-3
- Fix build error on X86
2020-07-20 15:40:20 +08:00
* Mon Jul 20 2020 Yikun Jiang <yikunkero@gmail.com> - 5.2.1-2
- Add aarch64 support
2020-06-12 15:56:07 +08:00
2020-07-20 15:40:20 +08:00
* Fri Jun 12 2020 Yikun Jiang <yikunkero@gmail.com> - 5.2.1-1
- Init x86 package
2020-06-12 15:56:07 +08:00