libmodsecurity-vl.spec 4.0 KB

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