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