1 %define apxs /usr/sbin/apxs
2 Summary: Support for the PHP via FastCGI protocol for Apache webserver
7 Group: Applications/WWW
9 BuildRequires: apache-devel >= 1.3.39
10 BuildRequires: rpmbuild(macros) >= 1.268
11 Requires: apache-mod_fastcgi
13 Suggests: php-fcgi-init
14 Provides: webserver(php) = %{version}
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 %define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)
21 This virtual package provides support for the PHP via FastCGI
28 rm -rf $RPM_BUILD_ROOT
29 install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
30 cp -p %{SOURCE0} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_php-fcgi.conf
33 rm -rf $RPM_BUILD_ROOT
36 %service -q httpd restart
39 if [ "$1" = "0" ]; then
40 %service -q httpd restart
44 %defattr(644,root,root,755)
45 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_php-fcgi.conf