1 Summary: Common dirs for different PHP versions
7 BuildRequires: rpmbuild(macros) >= 1.202
8 Requires(postun): /usr/sbin/groupdel
9 Requires(pre): /usr/bin/getgid
10 Requires(pre): /usr/sbin/groupadd
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15 %define _tmpwatchdir /etc/tmpwatch
18 Common directories for PHP version 4 and version 5.
23 rm -rf $RPM_BUILD_ROOT
24 install -d $RPM_BUILD_ROOT{%{_datadir}/php,/var/run/php,%{_tmpwatchdir}}
26 echo '/var/run/php 720' > $RPM_BUILD_ROOT%{_tmpwatchdir}/php.conf
29 rm -rf $RPM_BUILD_ROOT
35 if [ "$1" = "0" ]; then
40 %defattr(644,root,root,755)
42 %attr(770,root,http) %dir %verify(not group mode) /var/run/php
43 %attr(644,root,root) %config(noreplace) %verify(not md5 mtime size) %{_tmpwatchdir}/php.conf