SPECS: php.spec - check what sapi thinks it is

glen glen at pld-linux.org
Wed Oct 31 15:40:57 CET 2007


Author: glen                         Date: Wed Oct 31 14:40:57 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- check what sapi thinks it is

---- Files affected:
SPECS:
   php.spec (1.691 -> 1.692) 

---- Diffs:

================================================================
Index: SPECS/php.spec
diff -u SPECS/php.spec:1.691 SPECS/php.spec:1.692
--- SPECS/php.spec:1.691	Wed Oct 31 14:36:21 2007
+++ SPECS/php.spec	Wed Oct 31 15:40:52 2007
@@ -72,7 +72,7 @@
 %undefine	with_filter
 %endif
 
-%define		_rel 0.2
+%define		_rel 0.3
 %define		_rc RC1
 Summary:	PHP: Hypertext Preprocessor
 Summary(fr.UTF-8):	Le langage de script embarque-HTML PHP
@@ -1821,16 +1821,19 @@
 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
 %{__make} sapi/cgi/php-cgi -f Makefile.fcgi
 cp -r sapi/cgi sapi/fcgi
+[ "$(echo '<?=php_sapi_name();' | ./sapi/fcgi/php-cgi -q)" = cgi-fcgi ] || exit 1
 %endif
 
 # CGI
 cp -af php_config.h.cgi main/php_config.h
 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
 %{__make} sapi/cgi/php-cgi -f Makefile.cgi
+[ "$(echo '<?=php_sapi_name();' | ./sapi/cgi/php-cgi -q)" = cgi ] || exit 1
 
 # CLI
 cp -af php_config.h.cli main/php_config.h
 %{__make} sapi/cli/php -f Makefile.cli
+[ "$(echo '<?=php_sapi_name();' | ./sapi/cli/php -q)" = cli ] || exit 1
 
 %if %{with tests}
 # Run tests, using the CLI SAPI
@@ -2735,6 +2738,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.692  2007/10/31 14:40:52  glen
+- check what sapi thinks it is
+
 Revision 1.691  2007/10/31 13:36:21  glen
 - remove sapi/cgi objects _before_ building
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/php.spec?r1=1.691&r2=1.692&f=u



More information about the pld-cvs-commit mailing list