Name: apache1-mod_%{mod_name}
# NOTE: remember about apache-mod_fastcgi.spec when messing here
Version: 2.4.2
-Release: 1.2
+Release: 1.4
License: distributable
Group: Networking/Daemons
Source0: http://www.FastCGI.com/dist/mod_%{mod_name}-%{version}.tar.gz
%define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
%define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)
+%define _pkglogdir %(%{apxs} -q PREFIX 2>/dev/null)/logs
%description
This 3rd party module provides support for the FastCGI protocol.
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d}
+install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d,%{_pkglogdir}/fastcgi/dynamic}
install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
%doc docs/LICENSE.TERMS CHANGES docs/*.html
%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf
%attr(755,root,root) %{_pkglibdir}/*.so
+%attr(770,root,http) %{_pkglogdir}/fastcgi
+%attr(770,root,http) %{_pkglogdir}/fastcgi/dynamic