]> git.pld-linux.org Git - packages/php-dirs.git/blob - php-dirs.spec
- add %{php_data_dir}/tests; rel 3
[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:        3
6 License:        GPL
7 Group:          Base
8 BuildRequires:  rpmbuild(macros) >= 1.461
9 Requires(postun):       /usr/sbin/groupdel
10 Requires(pre):  /usr/bin/getgid
11 Requires(pre):  /usr/sbin/groupadd
12 Provides:       group(http)
13 BuildArch:      noarch
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %define         _tmpwatchdir    /etc/tmpwatch
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,/var/run/php}
29 install -d $RPM_BUILD_ROOT%{_docdir}/phpdoc
30
31 install -d $RPM_BUILD_ROOT%{_tmpwatchdir}
32 echo '/var/run/php 720' > $RPM_BUILD_ROOT%{_tmpwatchdir}/php.conf
33
34 %clean
35 rm -rf $RPM_BUILD_ROOT
36
37 %pre
38 %groupadd -g 51 http
39
40 %postun
41 if [ "$1" = "0" ]; then
42         %groupremove http
43 fi
44
45 %files
46 %defattr(644,root,root,755)
47 %dir %{php_data_dir}
48 %dir %{php_data_dir}/tests
49 %dir %{_docdir}/phpdoc
50 %attr(770,root,http) %dir %verify(not group mode) /var/run/php
51 %config(noreplace) %verify(not md5 mtime size) %{_tmpwatchdir}/php.conf
This page took 0.13181 seconds and 3 git commands to generate.