1 Summary: Common dirs for different PHP versions
2 Summary(pl.UTF-8): Wspólne katalogi dla różnych wersji PHP
8 Source0: php-session.sh
9 BuildRequires: rpmbuild(macros) >= 1.461
10 Requires(postun): /usr/sbin/groupdel
11 Requires(pre): /usr/bin/getgid
12 Requires(pre): /usr/sbin/groupadd
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 Common directories for PHP version 4 and version 5.
21 %description -l pl.UTF-8
22 Wspólne katalogi dla PHP w wersji 4 oraz 5.
27 rm -rf $RPM_BUILD_ROOT
28 install -d $RPM_BUILD_ROOT{%{php_data_dir}/tests,/etc/cron.hourly,/var/run/php}
29 install -d $RPM_BUILD_ROOT%{_docdir}/phpdoc
31 install %{SOURCE0} $RPM_BUILD_ROOT/etc/cron.hourly
34 rm -rf $RPM_BUILD_ROOT
40 if [ "$1" = "0" ]; then
45 %defattr(644,root,root,755)
47 %dir %{php_data_dir}/tests
48 %dir %{_docdir}/phpdoc
49 # http needs only x for directory (otherwise it knows session file
50 # names and can read it contents)
51 %attr(730,root,http) %dir %verify(not group mode) /var/run/php
52 %attr(755,root,root) %{_sysconfdir}/cron.hourly/php-session.sh