SPECS: php.spec - fcgi bcond as requested by djurban
glen
glen at pld-linux.org
Fri Sep 23 00:59:03 CEST 2005
Author: glen Date: Thu Sep 22 22:59:03 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- fcgi bcond as requested by djurban
---- Files affected:
SPECS:
php.spec (1.484 -> 1.485)
---- Diffs:
================================================================
Index: SPECS/php.spec
diff -u SPECS/php.spec:1.484 SPECS/php.spec:1.485
--- SPECS/php.spec:1.484 Tue Sep 20 01:17:53 2005
+++ SPECS/php.spec Fri Sep 23 00:58:57 2005
@@ -51,6 +51,7 @@
%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
@@ -78,7 +79,7 @@
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
@@ -146,7 +147,7 @@
%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
@@ -1530,7 +1531,9 @@
PROG_SENDMAIL="/usr/lib/sendmail"; export PROG_SENDMAIL
sapis="
-fcgi cgi cli
+%if %{with fcgi}
+%endif
+cgi cli
%if %{with apache1}
apxs1
%endif
@@ -1694,10 +1697,12 @@
%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
@@ -1740,7 +1745,9 @@
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
@@ -1753,7 +1760,9 @@
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}
@@ -2513,10 +2522,12 @@
/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)
@@ -2938,6 +2949,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.485 2005/09/22 22:58:57 glen
+- fcgi bcond as requested by djurban
+
Revision 1.484 2005/09/19 23:17:53 glen
- add ssl link patch for ftp extension; rel 8
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/php.spec?r1=1.484&r2=1.485&f=u
More information about the pld-cvs-commit
mailing list