]> git.pld-linux.org Git - packages/php-dirs.git/blame - php-dirs.spec
- http group creation as group is used in %files
[packages/php-dirs.git] / php-dirs.spec
CommitLineData
a8668484
ER
1Summary: Common dirs for different PHP versions
2Name: php-dirs
3Version: 0.9
4Release: 0.1
5License: GPL
6Group: Base
31b41079
ER
7BuildRequires: rpmbuild(macros) >= 1.202
8Requires(postun): /usr/sbin/groupdel
9Requires(pre): /usr/bin/getgid
10Requires(pre): /usr/sbin/groupadd
11Provides: group(http)
a8668484
ER
12BuildArch: noarch
13BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
31b41079 15%define _tmpwatchdir /etc/tmpwatch
a8668484
ER
16
17%description
18Common directories for PHP version 4 and version 5.
19
20%prep
21
22%install
23rm -rf $RPM_BUILD_ROOT
31b41079 24install -d $RPM_BUILD_ROOT{%{_datadir}/php,/var/run/php,%{_tmpwatchdir}}
a8668484 25
31b41079 26echo '/var/run/php 720' > $RPM_BUILD_ROOT%{_tmpwatchdir}/php.conf
a8668484
ER
27
28%clean
29rm -rf $RPM_BUILD_ROOT
30
31b41079
ER
31%pre
32%groupadd -g 51 http
33
34%postun
35if [ "$1" = "0" ]; then
36 %groupremove http
37fi
38
a8668484
ER
39%files
40%defattr(644,root,root,755)
41%dir %{_datadir}/php
42%attr(770,root,http) %dir %verify(not group mode) /var/run/php
31b41079 43%attr(644,root,root) %config(noreplace) %verify(not md5 mtime size) %{_tmpwatchdir}/php.conf
This page took 0.058731 seconds and 4 git commands to generate.