[packages/php/PHP_5_6] optimize builds for non-defautl sapis not to build cli/cgi

glen glen at pld-linux.org
Fri May 2 15:25:03 CEST 2014


commit 8678b0a7ef57d90c7ea43d71246272dfcf7f99a0
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Fri May 2 11:32:16 2014 +0300

    optimize builds for non-defautl sapis not to build cli/cgi

 php.spec | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/php.spec b/php.spec
index 4b3ee5b..b3225c2 100644
--- a/php.spec
+++ b/php.spec
@@ -2199,21 +2199,21 @@ for sapi in $sapis; do
 		sapi_args='--disable-cgi %{?with_gcov:--enable-gcov}'
 	;;
 	fpm)
-		sapi_args='--disable-cli --enable-fpm'
+		sapi_args='--disable-cli --disable-cgi --enable-fpm'
 		;;
 	embed)
 		sapi_args='--disable-cli --disable-cgi --enable-embed'
 		;;
 	apxs1)
 		ver=$(rpm -q --qf '%{V}' apache1-devel)
-		sapi_args="--disable-cli --with-apxs=%{apxs1} --with-apache-version=$ver"
+		sapi_args="--disable-cli --disable-cgi --with-apxs=%{apxs1} --with-apache-version=$ver"
 	;;
 	apxs2)
 		ver=$(rpm -q --qf '%{V}' apache-devel)
-		sapi_args="--disable-cli --with-apxs2=%{apxs2} --with-apache-version=$ver"
+		sapi_args="--disable-cli --disable-cgi --with-apxs2=%{apxs2} --with-apache-version=$ver"
 	;;
 	litespeed)
-		sapi_args='--with-litespeed'
+		sapi_args='--disable-cli --disable-cgi --with-litespeed '
 	;;
 	esac
 
@@ -2354,7 +2354,7 @@ cp -af Makefile.cli Makefile
 %endif
 
 %if %{with litespeed}
-%{__make} -f Makefile.litespeed
+%{__make} -f Makefile.litespeed litespeed
 %endif
 
 # CGI/FCGI
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php.git/commitdiff/c42c0fb8110dc4504b6c6519ac183efeef9e5a8c



More information about the pld-cvs-commit mailing list