Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37633339
en ru br
ALT Linux repos
S:5.4.2-alt1

Group :: System/Libraries
RPM: hyperscan

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %_var
%define major 5.4
%define libname libhyperscan%major
%define develname libhyperscan-devel

# builds are broken with LTO - disable for for now

%define optflags_lto %nil

Name: hyperscan
Version: %major.0
Release: alt2

Summary: High-performance regular expression matching library

Group: System/Libraries
License: BSD
Url: https://www.hyperscan.io/

Packager: Vitaly Lipatov <lav at altlinux.ru>

# Source-url: https://github.com/01org/%name/archive/v%version.tar.gz

Source: %name-%version.tar

Patch: hyperscan-fix-missed-symbols.patch

BuildRequires: boost-complete
BuildRequires: cmake ctest
BuildRequires: pkgconfig(libpcre)
BuildRequires: pkgconfig(python2)
BuildRequires: ragel
BuildRequires: pkgconfig(sqlite3) >= 3.0
BuildRequires: libpcap-devel
BuildRequires: %_bindir/doxygen %_bindir/sphinx-build gcc-c++
# python-devel rpm-build-python

Requires: pcretest

#package requires SSE support and fails to build on non x86_64 archs

ExclusiveArch: x86_64
Source44: import.info

%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 -n %libname
Group: System/Libraries
Summary: Dynamic libraries for the hyperscan library

%description -n %libname
This package provides the dynamic libraries needed for developing Hyperscan
applications.

%package -n %develname
Group: Development/C
Summary: Libraries and header files for the hyperscan library
Requires: %libname = %version

%description -n %develname
This package provides the libraries, include files and other resources
needed for developing Hyperscan applications.

%prep
%setup
%patch -p1

%build
%cmake -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_STATIC_AND_SHARED:BOOL=OFF
%cmake_build

%install
%cmakeinstall_std

%files -n %libname
%doc %_docdir/%name
%doc COPYING
%doc LICENSE
%_libdir/*.so.*

%files -n %develname
%_libdir/*.so
%_pkgconfigdir/libhs.pc
%_includedir/hs/

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin