libmodsecurity-vl.spec 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. Summary: A library that loads/interprets rules written in the ModSecurity SecRules
  2. Name: libmodsecurity
  3. Version: 3.0.4
  4. Release: 2%{?_dist_release}
  5. Group: security
  6. Vendor: Project Vine
  7. Distribution: Vine Linux
  8. License: ASL 2.0
  9. URL: https://www.modsecurity.org/
  10. Source0: https://github.com/SpiderLabs/ModSecurity/releases/download/v%{version}/modsecurity-v%{version}.tar.gz
  11. Patch1000: CVE-2020-15598.patch
  12. BuildRequires: gcc-c++
  13. BuildRequires: make
  14. BuildRequires: flex
  15. BuildRequires: bison
  16. BuildRequires: git-core
  17. BuildRequires: ssdeep-devel
  18. BuildRequires: pkgconfig(libxml-2.0)
  19. BuildRequires: pkgconfig(yajl)
  20. BuildRequires: curl-devel
  21. BuildRequires: pkgconfig(geoip)
  22. BuildRequires: pkgconfig(libpcre)
  23. BuildRequires: pkgconfig(lmdb)
  24. # libinjection is supposed to be bundled (same as with mod_security 2.x)
  25. # See: https://github.com/client9/libinjection#embedding
  26. Provides: bundled(libinjection) = 3.9.2
  27. %description
  28. Libmodsecurity is one component of the ModSecurity v3 project.
  29. The library codebase serves as an interface to ModSecurity Connectors
  30. taking in web traffic and applying traditional ModSecurity processing.
  31. In general, it provides the capability to load/interpret rules written
  32. in the ModSecurity SecRules format and apply them to HTTP content provided
  33. by your application via Connectors.
  34. %package devel
  35. Summary: Development files for %{name}
  36. Group: programming
  37. Requires: %{name}%{?_isa} = %{version}-%{release}
  38. %description devel
  39. The %{name}-devel package contains libraries and header files for
  40. developing applications that use %{name}.
  41. %package static
  42. Summary: Development files for %{name}
  43. Group: programming
  44. Requires: %{name}%{?_isa} = %{version}-%{release}
  45. %description static
  46. The %{name}-static package contains static libraries for developing
  47. applications that use %{name}.
  48. %debug_package
  49. %prep
  50. %autosetup -p1 -n modsecurity-v%{version}
  51. %build
  52. %configure --libdir=%{_libdir} --with-lmdb
  53. %make_build
  54. %install
  55. %make_install
  56. %post -p /sbin/ldconfig
  57. %postun -p /sbin/ldconfig
  58. %files
  59. %license LICENSE
  60. %doc README.md AUTHORS
  61. %doc modsecurity.conf-recommended unicode.mapping
  62. %{_libdir}/*.so.*
  63. %{_bindir}/*
  64. %files devel
  65. %license LICENSE
  66. %doc README.md AUTHORS
  67. %{_includedir}/*
  68. %{_libdir}/*.so
  69. %{_libdir}/pkgconfig/*
  70. %files static
  71. %{_libdir}/*.a
  72. %{_libdir}/*.la
  73. %changelog
  74. * Wed Oct 14 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 3.0.4-2
  75. - imported Patch1000 to fix CVE-2020-15598.
  76. * Mon Mar 09 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 3.0.4-1
  77. - new upstream release.
  78. * Sun Oct 27 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 3.0.3-4
  79. - added sample configurations to %%doc.
  80. * Wed Oct 23 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 3.0.3-3
  81. - initial build for Vine Linux.
  82. * Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.3-2
  83. - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
  84. * Sun Mar 31 2019 Athmane Madjoudj <athmane@fedoraproject.org> - 3.0.3-1
  85. - Update to 3.0.3 (rhbz #1672678)
  86. - Remove pkg-config bits since it's included in this release
  87. * Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-5
  88. - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
  89. * Fri Oct 19 2018 Dridi Boukelmoune <dridi@fedoraproject.org> - 3.0.2-4
  90. - Back-port of modsecurity.pc
  91. * Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-3
  92. - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
  93. * Sun Apr 29 2018 Athmane Madjoudj <athmane@fedoraproject.org> - 3.0.2-2
  94. - Rebuild after PR#1
  95. * Sat Apr 14 2018 Athmane Madjoudj <athmane@fedoraproject.org> - 3.0.2-1
  96. - Update to 3.0.2 (rhbz #1563219)
  97. * Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-2
  98. - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
  99. * Sun Jan 21 2018 Athmane Madjoudj <athmane@fedoraproject.org> - 3.0.0-1
  100. - Update to 3.0.0 final release
  101. - Drop upstreamed patch
  102. - Add some new BRs
  103. * Sun Oct 22 2017 Athmane Madjoudj <athmane@fedoraproject.org> - 3.0.0-0.2.rc1
  104. - Add a patch to fix the build on non-x86 arch
  105. * Fri Sep 01 2017 Athmane Madjoudj <athmane@fedoraproject.org> - 3.0.0-0.1.rc1
  106. - Fix release tag
  107. * Wed Aug 30 2017 Athmane Madjoudj <athmane@fedoraproject.org> - 3.0.0-0.rc1
  108. - Update to RC1
  109. - Fix some spec issues
  110. * Mon Feb 22 2016 Athmane Madjoudj <athmane@fedoraproject.org> 3.0-0.git
  111. - Initial release