%bcond_without xmlrpc # without XML-RPC extension module
%bcond_without apache1 # disable building apache 1.3.x module
%bcond_without apache2 # disable building apache 2.x module
+%bcond_without fcgi # disable building FCGI SAPI
%define apxs1 /usr/sbin/apxs1
%define apxs2 /usr/sbin/apxs
Summary(uk): PHP ÷ÅÒÓ¦§ 5 - ÍÏ×Á ÐÒÅÐÒÏÃÅÓÕ×ÁÎÎÑ HTML-ÆÁÊ̦×, ×ÉËÏÎÕ×ÁÎÁ ÎÁ ÓÅÒ×ÅÒ¦
Name: php
Version: 5.0.5
-Release: 8%{?with_hardening:hardened}
+Release: 8.1%{?with_hardening:hardened}
Epoch: 4
Group: Libraries
License: PHP
%endif
%{?with_fam:BuildRequires: fam-devel}
%{?with_fdf:BuildRequires: fdftk-devel}
-BuildRequires: fcgi-devel
+%{?with_fcgi:BuildRequires: fcgi-devel}
BuildRequires: flex
%if %{with mssql} || %{with sybase} || %{with sybase_ct}
BuildRequires: freetds-devel
PROG_SENDMAIL="/usr/lib/sendmail"; export PROG_SENDMAIL
sapis="
-fcgi cgi cli
+%if %{with fcgi}
+%endif
+cgi cli
%if %{with apache1}
apxs1
%endif
%endif
# FCGI
+%if %{with fcgi}
cp -af php_config.h.fcgi main/php_config.h
%{__make} sapi/cgi/php -f Makefile.fcgi
cp -r sapi/cgi sapi/fcgi
rm -rf sapi/cgi/.libs sapi/cgi/*.lo
+%endif
# CGI
cp -af php_config.h.cgi main/php_config.h
libtool --silent --mode=install install sapi/cgi/php $RPM_BUILD_ROOT%{_bindir}/php.cgi
# install FCGI
+%if %{with fcgi}
libtool --silent --mode=install install sapi/fcgi/php $RPM_BUILD_ROOT%{_bindir}/php.fcgi
+%endif
# install CLI
libtool --silent --mode=install install sapi/cli/php $RPM_BUILD_ROOT%{_bindir}/php.cli
ln -sf php.cli $RPM_BUILD_ROOT%{_bindir}/php
install php.ini $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
+%if %{with fcgi}
install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi-fcgi.ini
+%endif
install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi.ini
install %{SOURCE8} $RPM_BUILD_ROOT%{_sysconfdir}/php-cli.ini
install %{SOURCE3} $RPM_BUILD_ROOT%{_sbindir}
/home/services/httpd/icons/*
%endif
+%if %{with fcgi}
%files fcgi
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/php.fcgi
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/php-cgi-fcgi.ini
+%endif
%files cgi
%defattr(644,root,root,755)