]> git.pld-linux.org Git - packages/php-dirs.git/blob - php-dirs.spec
- tabs in preamble
[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.0
5 Release:        3
6 License:        GPL
7 Group:          Base
8 BuildRequires:  rpmbuild(macros) >= 1.202
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{%{_datadir}/php,/var/run/php,%{_tmpwatchdir}}
29
30 echo '/var/run/php 720' > $RPM_BUILD_ROOT%{_tmpwatchdir}/php.conf
31
32 %clean
33 rm -rf $RPM_BUILD_ROOT
34
35 %pre
36 %groupadd -g 51 http
37
38 %postun
39 if [ "$1" = "0" ]; then
40         %groupremove http
41 fi
42
43 %files
44 %defattr(644,root,root,755)
45 %dir %{_datadir}/php
46 %attr(770,root,http) %dir %verify(not group mode) /var/run/php
47 %config(noreplace) %verify(not md5 mtime size) %{_tmpwatchdir}/php.conf
This page took 0.05915 seconds and 3 git commands to generate.