License: GPL
Group: Base
Source0: php-session.sh
-Source1: %{name}.tmpfiles
BuildRequires: rpmbuild(macros) >= 1.644
Requires(postun): /usr/sbin/groupdel
Requires(pre): /usr/bin/getgid
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{php_data_dir}/tests,/etc/cron.hourly,/var/{cache,log,run}/php,/var/log/archive/php} \
- $RPM_BUILD_ROOT%{_docdir}/phpdoc \
- $RPM_BUILD_ROOT%{systemdtmpfilesdir}
+ $RPM_BUILD_ROOT%{_docdir}/phpdoc
install -p %{SOURCE0} $RPM_BUILD_ROOT/etc/cron.hourly
-cp -p %{SOURCE1} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%{systemdtmpfilesdir}/%{name}.conf
%attr(755,root,root) %{_sysconfdir}/cron.hourly/php-session.sh
%dir %{php_data_dir}
%dir %{php_data_dir}/tests