hyperscan-vl.spec 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. Name: hyperscan
  2. Version: 5.4.0
  3. Release: 1%{?_dist_release}
  4. Summary: High-performance regular expression matching library
  5. Group: system
  6. Vendor: Project Vine
  7. Distribution: Vine Linux
  8. License: BSD
  9. URL: https://www.hyperscan.io/
  10. Source0: https://github.com/intel/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
  11. Patch0: hyperscan-5.4.0-fix-compilation-error.patch
  12. BuildRequires: gcc-c++
  13. BuildRequires: libboost-devel
  14. BuildRequires: cmake
  15. BuildRequires: pcre-devel
  16. BuildRequires: python
  17. BuildRequires: ragel
  18. BuildRequires: sqlite3-devel
  19. BuildRequires: libpcap-devel
  20. #package requires SSE support and fails to build on non x86_64 archs
  21. ExclusiveArch: x86_64
  22. %description
  23. Hyperscan is a high-performance multiple regex matching library. It
  24. follows the regular expression syntax of the commonly-used libpcre
  25. library, but is a standalone library with its own C API.
  26. Hyperscan uses hybrid automata techniques to allow simultaneous
  27. matching of large numbers (up to tens of thousands) of regular
  28. expressions and for the matching of regular expressions across streams
  29. of data.
  30. Hyperscan is typically used in a DPI library stack.
  31. %package devel
  32. Summary: Libraries and header files for the hyperscan library
  33. Group: programming
  34. Requires: %{name}%{?_isa} = %{version}-%{release}
  35. %description devel
  36. Hyperscan is a high-performance multiple regex matching library. It
  37. follows the regular expression syntax of the commonly-used libpcre
  38. library, but is a standalone library with its own C API.
  39. Hyperscan uses hybrid automata techniques to allow simultaneous
  40. matching of large numbers (up to tens of thousands) of regular
  41. expressions and for the matching of regular expressions across streams
  42. of data.
  43. Hyperscan is typically used in a DPI library stack.
  44. This package provides the libraries, include files and other resources
  45. needed for developing Hyperscan applications.
  46. %debug_package
  47. %prep
  48. %autosetup -p1
  49. %build
  50. export CXXFLAGS="%{optflags} -DBOOST_ALLOW_DEPRECATED_HEADERS"
  51. #cmake -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_STATIC_AND_SHARED:BOOL=OFF .
  52. # workaround for https://github.com/intel/hyperscan/issues/186
  53. %cmake \
  54. -DCMAKE_BUILD_TYPE=Release \
  55. -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
  56. -DCMAKE_INSTALL_PREFIX:PATH=/usr \
  57. -DCMAKE_INSTALL_LIBDIR=%{_lib} \
  58. -DINCLUDE_INSTALL_DIR:PATH=/usr/include \
  59. -DSYSCONF_INSTALL_DIR:PATH=/etc \
  60. -DBUILD_STATIC_AND_SHARED=ON \
  61. .
  62. %cmake_build
  63. %install
  64. %cmake_install
  65. rm -f %{buildroot}%{_libdir}/*.a
  66. %files
  67. %doc %{_defaultdocdir}/%{name}/examples/README.md
  68. %doc %{_defaultdocdir}/%{name}/examples/*.cc
  69. %doc %{_defaultdocdir}/%{name}/examples/*.c
  70. %license COPYING
  71. %license LICENSE
  72. %{_libdir}/*.so.*
  73. %files devel
  74. %{_libdir}/*.so
  75. %{_libdir}/pkgconfig/libhs.pc
  76. %{_includedir}/hs/
  77. %changelog
  78. * Mon Jul 26 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.4.0-1
  79. - new upstream release.
  80. - imported Patch0 from upstream.
  81. * Mon Aug 17 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.3.0-1
  82. - new upstream release.
  83. * Sat Mar 07 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.2.1-1
  84. - new upstream release.
  85. * Wed Oct 30 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.2.0-1
  86. - initial build for Vine Linux.
  87. - new upstream release.
  88. * Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.1-2
  89. - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
  90. * Wed Apr 10 2019 Jason Taylor <jtfas90@gmail.com> - 5.1.1-1
  91. - Latest upstream version (#1698365)
  92. - Removed patch added for FTBFS (#1675120)
  93. * Tue Feb 12 2019 Björn Esser <besser82@fedoraproject.org> - 5.1.0-1
  94. - Latest upstream version (#1671192)
  95. - Add patch to fix build (#1675120)
  96. * Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-3
  97. - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
  98. * Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-2
  99. - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
  100. * Mon Jul 09 2018 Jason Taylor <jtfas90@gmail.com> - 5.0.0-1
  101. - Latest upstream version
  102. * Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.7.0-2
  103. - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
  104. * Thu Jan 25 2018 Jason Taylor <jtfas90@gmail.com> - 4.7.0-1
  105. - upstream bugfix release
  106. * Fri Sep 22 2017 Jason Taylor <jtfas90@gmail.com> - 4.6.0-1
  107. - latest upstream release
  108. * Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.2-2
  109. - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
  110. * Thu Jul 27 2017 Jason Taylor <jtfas90@gmail.com> - 4.5.2-1
  111. - upstream bugfix release
  112. * Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.1-2
  113. - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
  114. * Fri Jun 16 2017 Jason Taylor <jtfas90@gmail.com> - 4.5.1-1
  115. - upstream bugfix release
  116. * Fri Jun 09 2017 Jason Taylor <jtfas90@gmail.com> - 4.5.0-1
  117. - Update to latest upstream
  118. - Removed CMakeLists.txt patch, moved into upstream
  119. * Fri May 12 2017 Jason Taylor <jtfas90@gmail.com> - 4.4.1-1
  120. - Update to latest upstream
  121. - Add CMakeLists.txt path patch
  122. - Spec file updates to meet packaging standards
  123. * Fri Sep 2 2016 Jason Taylor <jtfas90@gmail.com> - 4.3.1-1
  124. - Updated to latest upstream release.
  125. * Fri Jul 1 2016 Jason Ish <ish@unx.ca> - 4.2.0-1
  126. - Initial package of Hyperscan.