]> git.pld-linux.org Git - packages/php-dirs.git/blame - php-dirs.spec
v1.6: move /usr/share/php subdirs here; cleanup descs
[packages/php-dirs.git] / php-dirs.spec
CommitLineData
0f165b1d
ER
1# TODO
2# - move tmpwatch S: to php-session package (as session files file storage no
3# longer can cleanup itself due dir perms)
0bcfd373
ER
4Summary: Common dirs for PHP
5Summary(pl.UTF-8): Wspólne katalogi dla PHP
a8668484 6Name: php-dirs
0bcfd373
ER
7Version: 1.6
8Release: 1
a8668484
ER
9License: GPL
10Group: Base
ee96ae59 11Source0: php-session.sh
56b17828 12Source1: %{name}.tmpfiles
05ac7df2 13BuildRequires: rpmbuild(macros) >= 1.644
31b41079
ER
14Requires(postun): /usr/sbin/groupdel
15Requires(pre): /usr/bin/getgid
16Requires(pre): /usr/sbin/groupadd
c29d80f3 17Suggests: tmpwatch
0bcfd373 18Conflicts: php-pear < 4:1.4-2
31b41079 19Provides: group(http)
a8668484
ER
20BuildArch: noarch
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
a8668484 23%description
0bcfd373 24Common directories for PHP.
a8668484 25
f4cc5fb9 26%description -l pl.UTF-8
0bcfd373 27Wspólne katalogi dla PHP.
cce45ac9 28
a8668484
ER
29%prep
30
31%install
32rm -rf $RPM_BUILD_ROOT
0bcfd373 33install -d $RPM_BUILD_ROOT{/etc/cron.hourly,/var/{cache,log,run}/php,/var/log/archive/php} \
56b17828 34 $RPM_BUILD_ROOT%{_docdir}/phpdoc \
05ac7df2 35 $RPM_BUILD_ROOT%{systemdtmpfilesdir}
56b17828 36
b6be0353 37install -p %{SOURCE0} $RPM_BUILD_ROOT/etc/cron.hourly
05ac7df2 38cp -p %{SOURCE1} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
a8668484 39
0bcfd373
ER
40while read dir; do
41 install -d $RPM_BUILD_ROOT$dir
42done <<EOF
43%{php_data_dir}/tests
44%{php_data_dir}/Symfony/Bridge
45%{php_data_dir}/Symfony/Component
46EOF
47
a8668484
ER
48%clean
49rm -rf $RPM_BUILD_ROOT
50
31b41079
ER
51%pre
52%groupadd -g 51 http
53
54%postun
55if [ "$1" = "0" ]; then
56 %groupremove http
57fi
58
a8668484
ER
59%files
60%defattr(644,root,root,755)
05ac7df2 61%{systemdtmpfilesdir}/%{name}.conf
b6be0353 62%attr(755,root,root) %{_sysconfdir}/cron.hourly/php-session.sh
0bcfd373
ER
63%{php_data_dir}
64
dea06829 65%dir %{_docdir}/phpdoc
05ac7df2 66%attr(775,root,http) %dir %verify(not group mode) /var/log/php
ec175e53 67%attr(770,root,root) %dir %verify(not group mode) /var/log/archive/php
0bcfd373 68
ebe84aa1
ER
69# no +r, so only predictable names can be used. currently php-soap wsdl cache is there
70%attr(730,root,http) %dir %verify(not group mode) /var/cache/php
0bcfd373
ER
71
72# http needs only +x for directory
73# (otherwise it knows session file names and can read it contents)
4ce953dd
ER
74# keep o+x for fcgi.sock (lighttpd)
75%attr(731,root,http) %dir %verify(not group mode) /var/run/php
This page took 0.123734 seconds and 4 git commands to generate.