2012-10-01 20:00:53 +00:00
|
|
|
%global git_short 3f85c76
|
2012-09-15 15:52:33 +00:00
|
|
|
|
2012-05-07 09:54:36 +00:00
|
|
|
Summary: ModSecurity Rules
|
|
|
|
Name: mod_security_crs
|
2012-09-15 15:52:33 +00:00
|
|
|
Version: 2.2.6
|
2012-10-17 15:10:26 +00:00
|
|
|
Release: 3%{?dist}
|
2012-05-07 09:54:36 +00:00
|
|
|
License: ASL 2.0
|
|
|
|
URL: http://www.modsecurity.org/
|
|
|
|
Group: System Environment/Daemons
|
2012-09-15 15:52:33 +00:00
|
|
|
|
|
|
|
# Use the following command to generate the tarball:
|
|
|
|
# wget https://github.com/SpiderLabs/owasp-modsecurity-crs/tarball/GIT_SHORT
|
|
|
|
|
2012-10-01 20:00:53 +00:00
|
|
|
Source: SpiderLabs-owasp-modsecurity-crs-v%{version}-0-g%{git_short}.tar.gz
|
2012-05-07 09:54:36 +00:00
|
|
|
BuildArch: noarch
|
2012-10-17 15:10:26 +00:00
|
|
|
Requires: mod_security >= 2.7.0
|
2012-09-13 09:27:58 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2012-05-07 09:54:36 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package provides the base rules for mod_security.
|
|
|
|
|
|
|
|
%package extras
|
|
|
|
Summary: Supplementary mod_security rules
|
|
|
|
Group: System Environment/Daemons
|
|
|
|
Requires: %name = %version-%release
|
|
|
|
|
|
|
|
%description extras
|
|
|
|
This package provides supplementary rules for mod_security.
|
|
|
|
|
|
|
|
%prep
|
2012-09-15 15:52:33 +00:00
|
|
|
%setup -q -n SpiderLabs-owasp-modsecurity-crs-%{git_short}
|
2012-05-07 09:54:36 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
2012-09-13 09:27:58 +00:00
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
2012-05-07 09:54:36 +00:00
|
|
|
install -d %{buildroot}%{_sysconfdir}/httpd/modsecurity.d/
|
|
|
|
install -d %{buildroot}%{_sysconfdir}/httpd/modsecurity.d/activated_rules
|
|
|
|
|
|
|
|
install -d %{buildroot}%{_prefix}/lib/modsecurity.d/base_rules
|
2012-06-20 16:02:25 +00:00
|
|
|
|
2012-05-07 09:54:36 +00:00
|
|
|
install -d %{buildroot}%{_prefix}/lib/modsecurity.d/optional_rules
|
|
|
|
install -d %{buildroot}%{_prefix}/lib/modsecurity.d/experimental_rules
|
|
|
|
install -d %{buildroot}%{_prefix}/lib/modsecurity.d/slr_rules
|
|
|
|
|
2012-06-22 07:41:42 +00:00
|
|
|
install -m0644 modsecurity_crs_10_setup.conf.example %{buildroot}%{_sysconfdir}/httpd/modsecurity.d/modsecurity_crs_10_config.conf
|
2012-05-07 09:54:36 +00:00
|
|
|
install -m0644 base_rules/* %{buildroot}%{_prefix}/lib/modsecurity.d/base_rules/
|
|
|
|
install -m0644 optional_rules/* %{buildroot}%{_prefix}/lib/modsecurity.d/optional_rules/
|
|
|
|
install -m0644 experimental_rules/* %{buildroot}%{_prefix}/lib/modsecurity.d/experimental_rules/
|
|
|
|
install -m0644 slr_rules/* %{buildroot}%{_prefix}/lib/modsecurity.d/slr_rules
|
|
|
|
|
|
|
|
# activate base_rules
|
|
|
|
for f in `ls %{buildroot}/%{_prefix}/lib/modsecurity.d/base_rules/` ; do
|
|
|
|
ln -s %{_prefix}/lib/modsecurity.d/base_rules/$f %{buildroot}%{_sysconfdir}/httpd/modsecurity.d/activated_rules/$f;
|
|
|
|
done
|
|
|
|
|
2012-09-13 09:27:58 +00:00
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
2012-05-07 09:54:36 +00:00
|
|
|
|
|
|
|
%files
|
2012-09-15 15:52:33 +00:00
|
|
|
%doc CHANGELOG INSTALL LICENSE README.md
|
2012-05-07 09:54:36 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/httpd/modsecurity.d/activated_rules/*
|
|
|
|
%config(noreplace) %{_sysconfdir}/httpd/modsecurity.d/modsecurity_crs_10_config.conf
|
|
|
|
%{_prefix}/lib/modsecurity.d/base_rules
|
|
|
|
|
|
|
|
%files extras
|
|
|
|
%{_prefix}/lib/modsecurity.d/optional_rules
|
|
|
|
%{_prefix}/lib/modsecurity.d/experimental_rules
|
|
|
|
%{_prefix}/lib/modsecurity.d/slr_rules
|
|
|
|
|
|
|
|
%changelog
|
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
|
|
|
|
|
2012-05-07 09:54:36 +00:00
|
|
|
* Wed May 03 2012 Peter Vrabec <pvrabec@redhat.com> 2.2.4-2
|
|
|
|
- fix fedora-review issues (#816975)
|
|
|
|
|
|
|
|
* Thu Apr 19 2012 Peter Vrabec <pvrabec@redhat.com> 2.2.4-1
|
|
|
|
- initial package
|
|
|
|
|
|
|
|
|