hyperscan-vl.spec 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. Name: hyperscan
  2. Version: 5.4.0
  3. Release: 2%{?_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. Patch1: hyperscan-glibc234.patch
  13. BuildRequires: gcc-c++
  14. BuildRequires: libboost-devel
  15. BuildRequires: cmake
  16. BuildRequires: pcre2-devel
  17. BuildRequires: python
  18. BuildRequires: ragel
  19. BuildRequires: sqlite3-devel
  20. BuildRequires: libpcap-devel
  21. #package requires SSE support and fails to build on non x86_64 archs
  22. ExclusiveArch: x86_64
  23. %description
  24. Hyperscan is a high-performance multiple regex matching library. It
  25. follows the regular expression syntax of the commonly-used libpcre
  26. library, but is a standalone library with its own C API.
  27. Hyperscan uses hybrid automata techniques to allow simultaneous
  28. matching of large numbers (up to tens of thousands) of regular
  29. expressions and for the matching of regular expressions across streams
  30. of data.
  31. Hyperscan is typically used in a DPI library stack.
  32. %package devel
  33. Summary: Libraries and header files for the hyperscan library
  34. Group: programming
  35. Requires: %{name}%{?_isa} = %{version}-%{release}
  36. %description devel
  37. Hyperscan is a high-performance multiple regex matching library. It
  38. follows the regular expression syntax of the commonly-used libpcre
  39. library, but is a standalone library with its own C API.
  40. Hyperscan uses hybrid automata techniques to allow simultaneous
  41. matching of large numbers (up to tens of thousands) of regular
  42. expressions and for the matching of regular expressions across streams
  43. of data.
  44. Hyperscan is typically used in a DPI library stack.
  45. This package provides the libraries, include files and other resources
  46. needed for developing Hyperscan applications.
  47. %debug_package
  48. %prep
  49. %autosetup -p1
  50. %build
  51. export CXXFLAGS="%{optflags} -DBOOST_ALLOW_DEPRECATED_HEADERS"
  52. #cmake -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_STATIC_AND_SHARED:BOOL=OFF .
  53. # workaround for https://github.com/intel/hyperscan/issues/186
  54. %cmake \
  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_SHARED_LIBS:BOOL=ON \
  61. -DBUILD_STATIC_AND_SHARED:BOOL=OFF
  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. * Wed Nov 02 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.4.0-2
  79. - rebuilt with current environment.
  80. * Mon Jul 26 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.4.0-1
  81. - new upstream release.
  82. - imported Patch0 from upstream.
  83. * Mon Aug 17 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.3.0-1
  84. - new upstream release.
  85. * Sat Mar 07 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.2.1-1
  86. - new upstream release.
  87. * Wed Oct 30 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.2.0-1
  88. - initial build for Vine Linux.
  89. - new upstream release.
  90. * Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.1-2
  91. - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
  92. * Wed Apr 10 2019 Jason Taylor <jtfas90@gmail.com> - 5.1.1-1
  93. - Latest upstream version (#1698365)
  94. - Removed patch added for FTBFS (#1675120)
  95. * Tue Feb 12 2019 Björn Esser <besser82@fedoraproject.org> - 5.1.0-1
  96. - Latest upstream version (#1671192)
  97. - Add patch to fix build (#1675120)
  98. * Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-3
  99. - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
  100. * Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-2
  101. - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
  102. * Mon Jul 09 2018 Jason Taylor <jtfas90@gmail.com> - 5.0.0-1
  103. - Latest upstream version
  104. * Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.7.0-2
  105. - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
  106. * Thu Jan 25 2018 Jason Taylor <jtfas90@gmail.com> - 4.7.0-1
  107. - upstream bugfix release
  108. * Fri Sep 22 2017 Jason Taylor <jtfas90@gmail.com> - 4.6.0-1
  109. - latest upstream release
  110. * Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.2-2
  111. - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
  112. * Thu Jul 27 2017 Jason Taylor <jtfas90@gmail.com> - 4.5.2-1
  113. - upstream bugfix release
  114. * Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.1-2
  115. - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
  116. * Fri Jun 16 2017 Jason Taylor <jtfas90@gmail.com> - 4.5.1-1
  117. - upstream bugfix release
  118. * Fri Jun 09 2017 Jason Taylor <jtfas90@gmail.com> - 4.5.0-1
  119. - Update to latest upstream
  120. - Removed CMakeLists.txt patch, moved into upstream
  121. * Fri May 12 2017 Jason Taylor <jtfas90@gmail.com> - 4.4.1-1
  122. - Update to latest upstream
  123. - Add CMakeLists.txt path patch
  124. - Spec file updates to meet packaging standards
  125. * Fri Sep 2 2016 Jason Taylor <jtfas90@gmail.com> - 4.3.1-1
  126. - Updated to latest upstream release.
  127. * Fri Jul 1 2016 Jason Ish <ish@unx.ca> - 4.2.0-1
  128. - Initial package of Hyperscan.