%define _webapp %{name}
%define _smartyplugindir /usr/share/php/Smarty/plugins
%define _sysconfdir %{_webapps}/%{_webapp}
+%define _zavar /var/lib/%{name}
%define _appdir %{_datadir}/%{_webapp}
%description
EOF
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_smartyplugindir},%{_appdir}}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_smartyplugindir},%{_zavar}/templates_c,%{_appdir}}
install apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
install apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
%dir %{_appdir}/tpl/Boxes/img
%{_appdir}/tpl/Boxes/img/*.jpg
%{_appdir}/tpl/Boxes/img/*.gif
-%dir %attr(770,root,http) %{_appdir}/templates_c
%{_smartyplugindir}/*
+%dir %{_zavar}
+%attr(770,root,http) %{_zavar}/templates_c