hyperscan-vl.spec 5.8 KB

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