mod_security_crs/mod_security_crs.spec

98 lines
3.1 KiB
RPMSpec
Raw Normal View History

2012-05-07 09:54:36 +00:00
Summary: ModSecurity Rules
Name: mod_security_crs
2012-06-22 07:41:42 +00:00
Version: 2.2.5
Release: 4%{?dist}
2012-05-07 09:54:36 +00:00
License: ASL 2.0
URL: http://www.modsecurity.org/
Group: System Environment/Daemons
Source: https://sourceforge.net/projects/mod-security/files/modsecurity-crs/0-CURRENT/modsecurity-crs_%{version}.tar.gz
BuildArch: noarch
Requires: mod_security >= 2.6.5
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.
%if 0%{?fedora}
2012-05-07 09:54:36 +00:00
%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.
%endif
2012-05-07 09:54:36 +00:00
%prep
%setup -q -n modsecurity-crs_%{version}
%build
%install
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
%if 0%{?fedora}
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
%endif
2012-05-07 09:54:36 +00:00
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/
%if 0%{?fedora}
2012-05-07 09:54:36 +00:00
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
%endif
2012-05-07 09:54:36 +00:00
# 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
%clean
rm -rf %{buildroot}
2012-05-07 09:54:36 +00:00
%files
%doc CHANGELOG INSTALL LICENSE README
%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
%if 0%{?fedora}
2012-05-07 09:54:36 +00:00
%files extras
%{_prefix}/lib/modsecurity.d/optional_rules
%{_prefix}/lib/modsecurity.d/experimental_rules
%{_prefix}/lib/modsecurity.d/slr_rules
%endif
2012-05-07 09:54:36 +00:00
%changelog
* 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
* 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
* 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