]> git.pld-linux.org Git - packages/php-dirs.git/blob - php-dirs.spec
- do not R fucking tmpwatch!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[packages/php-dirs.git] / php-dirs.spec
1 Summary:        Common dirs for different PHP versions
2 Summary(pl.UTF-8):      Wspólne katalogi dla różnych wersji PHP
3 Name:           php-dirs
4 Version:        1.1
5 Release:        8
6 License:        GPL
7 Group:          Base
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
13 Suggests:       tmpwatch
14 Provides:       group(http)
15 BuildArch:      noarch
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 Common directories for PHP version 4 and version 5.
20
21 %description -l pl.UTF-8
22 Wspólne katalogi dla PHP w wersji 4 oraz 5.
23
24 %prep
25
26 %install
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
30
31 install %{SOURCE0} $RPM_BUILD_ROOT/etc/cron.hourly
32
33 %clean
34 rm -rf $RPM_BUILD_ROOT
35
36 %pre
37 %groupadd -g 51 http
38
39 %postun
40 if [ "$1" = "0" ]; then
41         %groupremove http
42 fi
43
44 %files
45 %defattr(644,root,root,755)
46 %dir %{php_data_dir}
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
This page took 0.173907 seconds and 4 git commands to generate.