Fix spec for el5

This commit is contained in:
Athmane Madjoudj 2012-08-28 18:51:57 +01:00
parent 3ca8ebab5c
commit da246602cf

View File

@ -1,7 +1,7 @@
Summary: ModSecurity Rules Summary: ModSecurity Rules
Name: mod_security_crs Name: mod_security_crs
Version: 2.2.5 Version: 2.2.5
Release: 3%{?dist} Release: 4%{?dist}
License: ASL 2.0 License: ASL 2.0
URL: http://www.modsecurity.org/ URL: http://www.modsecurity.org/
Group: System Environment/Daemons Group: System Environment/Daemons
@ -29,6 +29,8 @@ This package provides supplementary rules for mod_security.
%build %build
%install %install
rm -rf %{buildroot}
install -d %{buildroot}%{_sysconfdir}/httpd/modsecurity.d/ install -d %{buildroot}%{_sysconfdir}/httpd/modsecurity.d/
install -d %{buildroot}%{_sysconfdir}/httpd/modsecurity.d/activated_rules install -d %{buildroot}%{_sysconfdir}/httpd/modsecurity.d/activated_rules
@ -53,6 +55,9 @@ 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; ln -s %{_prefix}/lib/modsecurity.d/base_rules/$f %{buildroot}%{_sysconfdir}/httpd/modsecurity.d/activated_rules/$f;
done done
%clean
rm -rf %{buildroot}
%files %files
%doc CHANGELOG INSTALL LICENSE README %doc CHANGELOG INSTALL LICENSE README
@ -68,6 +73,9 @@ done
%endif %endif
%changelog %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 * Tue Aug 28 2012 Athmane Madjoudj <athmane@fedoraproject.org> 2.2.5-3
- Add BuildRoot def for el5 compatibility - Add BuildRoot def for el5 compatibility