# TODO # - move tmpwatch S: to php-session package (as session files file storage no # longer can cleanup itself due dir perms) Summary: Common dirs for PHP Summary(pl.UTF-8): Wspólne katalogi dla PHP Name: php-dirs Version: 1.6 Release: 1 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 Requires(pre): /usr/sbin/groupadd Suggests: tmpwatch Conflicts: php-pear < 4:1.4-2 Provides: group(http) BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Common directories for PHP. %description -l pl.UTF-8 Wspólne katalogi dla PHP. %prep %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{/etc/cron.hourly,/var/{cache,log,run}/php,/var/log/archive/php} \ $RPM_BUILD_ROOT%{_docdir}/phpdoc \ $RPM_BUILD_ROOT%{systemdtmpfilesdir} install -p %{SOURCE0} $RPM_BUILD_ROOT/etc/cron.hourly cp -p %{SOURCE1} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf while read dir; do install -d $RPM_BUILD_ROOT$dir done <