2012-05-07 09:54:36 +00:00
|
|
|
Summary: ModSecurity Rules
|
|
|
|
Name: mod_security_crs
|
2021-03-05 15:16:22 +00:00
|
|
|
Version: 3.2.0
|
|
|
|
Release: 1%{?dist}
|
2012-05-07 09:54:36 +00:00
|
|
|
License: ASL 2.0
|
2016-03-08 20:32:58 +00:00
|
|
|
URL: https://www.owasp.org/index.php/Category:OWASP_ModSecurity_Core_Rule_Set_Project
|
2017-04-22 09:29:16 +00:00
|
|
|
Source: https://github.com/SpiderLabs/owasp-modsecurity-crs/archive/v%{version}/owasp-modsecurity-crs-%{version}.tar.gz
|
2012-05-07 09:54:36 +00:00
|
|
|
BuildArch: noarch
|
2017-04-22 13:35:44 +00:00
|
|
|
Requires: mod_security >= 2.8.0
|
2017-04-22 13:54:50 +00:00
|
|
|
Obsoletes: mod_security_crs-extras < 3.0.0
|
2012-05-07 09:54:36 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package provides the base rules for mod_security.
|
|
|
|
|
|
|
|
%prep
|
2017-04-22 13:35:44 +00:00
|
|
|
%setup -q -n owasp-modsecurity-crs-%{version}
|
2012-05-07 09:54:36 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
2012-09-13 09:27:58 +00:00
|
|
|
|
2012-05-07 09:54:36 +00:00
|
|
|
install -d %{buildroot}%{_sysconfdir}/httpd/modsecurity.d/
|
|
|
|
install -d %{buildroot}%{_sysconfdir}/httpd/modsecurity.d/activated_rules
|
2017-04-22 13:54:50 +00:00
|
|
|
install -d %{buildroot}%{_datarootdir}/mod_modsecurity_crs/rules
|
2012-06-20 16:02:25 +00:00
|
|
|
|
2017-04-22 13:35:44 +00:00
|
|
|
# To exclude rules (pre/post)
|
2017-04-22 14:16:56 +00:00
|
|
|
mv rules/REQUEST-900-EXCLUSION-RULES-BEFORE-CRS.conf.example %{buildroot}%{_sysconfdir}/httpd/modsecurity.d/activated_rules/REQUEST-900-EXCLUSION-RULES-BEFORE-CRS.conf
|
|
|
|
mv rules/RESPONSE-999-EXCLUSION-RULES-AFTER-CRS.conf.example %{buildroot}%{_sysconfdir}/httpd/modsecurity.d/activated_rules/RESPONSE-999-EXCLUSION-RULES-AFTER-CRS.conf
|
2012-11-19 21:04:59 +00:00
|
|
|
|
2017-04-22 13:54:50 +00:00
|
|
|
install -m0644 rules/* %{buildroot}%{_datarootdir}/mod_modsecurity_crs/rules/
|
2017-04-22 13:35:44 +00:00
|
|
|
mv crs-setup.conf.example %{buildroot}%{_sysconfdir}/httpd/modsecurity.d/crs-setup.conf
|
2012-05-07 09:54:36 +00:00
|
|
|
|
|
|
|
# activate base_rules
|
2017-04-22 13:54:50 +00:00
|
|
|
for f in `ls %{buildroot}%{_datarootdir}/mod_modsecurity_crs/rules/` ; do
|
|
|
|
ln -s %{_datarootdir}/mod_modsecurity_crs/rules/$f %{buildroot}%{_sysconfdir}/httpd/modsecurity.d/activated_rules/$f;
|
2012-05-07 09:54:36 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
2017-04-22 13:35:44 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc CHANGES README.md
|
2012-05-07 09:54:36 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/httpd/modsecurity.d/activated_rules/*
|
2017-04-22 13:35:44 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/httpd/modsecurity.d/crs-setup.conf
|
2017-04-22 13:54:50 +00:00
|
|
|
%{_datarootdir}/mod_modsecurity_crs
|
2012-05-07 09:54:36 +00:00
|
|
|
|
|
|
|
%changelog
|
2021-03-05 15:16:22 +00:00
|
|
|
* Fri Mar 05 2021 Lubos Uhliarik <luhliari@redhat.com> - 3.2.0-1
|
|
|
|
- new version 3.2.0
|
|
|
|
|
2021-01-26 20:41:51 +00:00
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-12
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-07-28 08:18:40 +00:00
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-11
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-01-29 13:52:26 +00:00
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-10
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-07-25 17:32:13 +00:00
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-02-01 11:18:15 +00:00
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-07-13 10:54:02 +00:00
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-02-08 03:01:57 +00:00
|
|
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-07-26 22:06:35 +00:00
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-04-22 14:16:56 +00:00
|
|
|
* Sat Apr 22 2017 Athmane Madjoudj <athmane@fedoraproject.org> - 3.0.0-4
|
|
|
|
- Exclude rule files should not be symlink
|
|
|
|
|
2017-04-22 13:54:50 +00:00
|
|
|
* Sat Apr 22 2017 Athmane Madjoudj <athmane@fedoraproject.org> - 3.0.0-3
|
|
|
|
- Use versioned obsoletes
|
|
|
|
- Move away from /lib since rules are data
|
|
|
|
|
2017-04-22 13:35:44 +00:00
|
|
|
* Sat Apr 22 2017 Athmane Madjoudj <athmane@fedoraproject.org> - 3.0.0-2
|
|
|
|
- Fix the install part since extra and experimental rules are not longer included in 3.x
|
|
|
|
- Remove EL5 bits since EL5/EPEL5 are OEL-ed
|
|
|
|
- Bump reqs
|
|
|
|
|
2017-04-22 09:29:16 +00:00
|
|
|
* Sat Apr 22 2017 Athmane Madjoudj <athmane@fedoraproject.org> - 3.0.0-1
|
|
|
|
- Update to 3.0.0
|
|
|
|
- Clean up the spec
|
|
|
|
|
2017-02-10 21:35:05 +00:00
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.9.20160414git-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-04-29 21:30:35 +00:00
|
|
|
* Fri Apr 29 2016 Athmane Madjoudj <athmane@fedoraproject.org> 2.2.9.20160414git-1
|
|
|
|
- Update to 2.9.20160414git
|
|
|
|
|
2016-03-08 20:32:58 +00:00
|
|
|
* Tue Mar 08 2016 Athmane Madjoudj <athmane@fedoraproject.org> 2.2.9.20160219git-1
|
|
|
|
- Update to 2.2.9
|
|
|
|
- Minor spec cleanup
|
|
|
|
|
2016-02-04 08:36:35 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.8-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-06-17 20:53:51 +00:00
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.8-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2014-06-07 10:49:15 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.8-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2013-08-03 11:33:37 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.8-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-07-02 19:09:21 +00:00
|
|
|
* Tue Jul 02 2013 Athmane Madjoudj <athmane@fedoraproject.org> 2.2.8-1
|
|
|
|
- Update to 2.2.8
|
|
|
|
- Adapt the spec file to new github tarball schema.
|
|
|
|
- Correct bugus date in the spec file.
|
|
|
|
|
2013-02-14 07:22:13 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.6-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-11-19 21:04:59 +00:00
|
|
|
* Mon Nov 19 2012 Peter Vrabec <pvrabec@redhat.com> 2.2.6-4
|
|
|
|
- "extras" subpackage is not provided on RHEL7
|
|
|
|
|
2012-10-17 15:10:26 +00:00
|
|
|
* Wed Oct 17 2012 Athmane Madjoudj <athmane@fedoraproject.org> 2.2.6-3
|
|
|
|
- Remove the patch since we're requiring mod_security >= 2.7.0
|
|
|
|
- Require mod_security >= 2.7.0
|
|
|
|
|
2012-10-01 20:00:53 +00:00
|
|
|
* Mon Oct 01 2012 Athmane Madjoudj <athmane@fedoraproject.org> 2.2.6-2
|
|
|
|
- Add a patch to fix incompatible rules.
|
|
|
|
- Update to new git release
|
|
|
|
|
2012-09-15 15:52:33 +00:00
|
|
|
* Sat Sep 15 2012 Athmane Madjoudj <athmane@fedoraproject.org> 2.2.6-1
|
|
|
|
- Update to 2.2.6
|
|
|
|
- Update spec file since upstream moved to Github.
|
|
|
|
|
2012-09-13 09:31:59 +00:00
|
|
|
* Thu Sep 13 2012 Athmane Madjoudj <athmane@fedoraproject.org> 2.2.5-5
|
|
|
|
- Enable extra rules sub-package for EPEL.
|
|
|
|
|
2012-09-13 09:27:58 +00:00
|
|
|
* Tue Aug 28 2012 Athmane Madjoudj <athmane@fedoraproject.org> 2.2.5-4
|
|
|
|
- Fix spec for el5
|
|
|
|
|
|
|
|
* Tue Aug 28 2012 Athmane Madjoudj <athmane@fedoraproject.org> 2.2.5-3
|
|
|
|
- Add BuildRoot def for el5 compatibility
|
|
|
|
|
2012-07-20 02:27:40 +00:00
|
|
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.5-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-06-22 07:41:42 +00:00
|
|
|
* Fri Jun 22 2012 Peter Vrabec <pvrabec@redhat.com> 2.2.5-1
|
|
|
|
- upgrade
|
|
|
|
|
2012-06-20 16:02:25 +00:00
|
|
|
* Wed Jun 20 2012 Peter Vrabec <pvrabec@redhat.com> 2.2.4-3
|
|
|
|
- "extras" subpackage is not provided on RHEL
|
|
|
|
|
2013-07-02 19:09:21 +00:00
|
|
|
* Thu May 03 2012 Peter Vrabec <pvrabec@redhat.com> 2.2.4-2
|
2012-05-07 09:54:36 +00:00
|
|
|
- fix fedora-review issues (#816975)
|
|
|
|
|
|
|
|
* Thu Apr 19 2012 Peter Vrabec <pvrabec@redhat.com> 2.2.4-1
|
|
|
|
- initial package
|
|
|
|
|
|
|
|
|