]> git.pld-linux.org Git - packages/apache-php-fcgi.git/blame_incremental - apache-php-fcgi.spec
requires mod_actions
[packages/apache-php-fcgi.git] / apache-php-fcgi.spec
... / ...
CommitLineData
1%define apxs /usr/sbin/apxs
2Summary: Support for the PHP via FastCGI protocol for Apache webserver
3Name: apache-php-fcgi
4Version: 5.6
5Release: 2
6License: GPL
7Group: Applications/WWW
8Source0: apache.conf
9BuildRequires: apache-devel >= 1.3.39
10BuildRequires: rpmbuild(macros) >= 1.268
11Requires: apache-mod_actions
12Requires: apache-mod_fastcgi
13Requires: php(fcgi)
14Suggests: php-fcgi-init
15Provides: webserver(php) = %{version}
16BuildArch: noarch
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)
20
21%description
22This virtual package provides support for the PHP via FastCGI
23protocol.
24
25%prep
26%setup -qcT
27
28%install
29rm -rf $RPM_BUILD_ROOT
30install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
31cp -p %{SOURCE0} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_php-fcgi.conf
32
33%clean
34rm -rf $RPM_BUILD_ROOT
35
36%post
37%service -q httpd restart
38
39%postun
40if [ "$1" = "0" ]; then
41 %service -q httpd restart
42fi
43
44%files
45%defattr(644,root,root,755)
46%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_php-fcgi.conf
This page took 0.069816 seconds and 4 git commands to generate.