[packages/php-pecl-xhprof] update module load testing

glen glen at pld-linux.org
Sun Jun 23 12:01:08 CEST 2013


commit 62ad4ea71366334d3c0ca0a7deeacd17dc1dc2e3
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Jun 23 12:58:59 2013 +0300

    update module load testing

 php-pecl-xhprof.spec | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/php-pecl-xhprof.spec b/php-pecl-xhprof.spec
index b850dfa..4ee8187 100644
--- a/php-pecl-xhprof.spec
+++ b/php-pecl-xhprof.spec
@@ -12,7 +12,7 @@ Source1:	%{modname}.ini
 Source2:	apache.conf
 URL:		http://pecl.php.net/package/xhprof
 BuildRequires:	%{php_name}-devel >= 4:5.2.0
-BuildRequires:	rpmbuild(macros) >= 1.650
+BuildRequires:	rpmbuild(macros) >= 1.666
 %{?requires_php_extension}
 # https://bugs.php.net/61262
 ExclusiveArch:	%{ix86} %{x8664}
@@ -74,10 +74,11 @@ cd -
 
 %if %{with tests}
 # simple module load test
-%{__php} --no-php-ini \
-	--define extension_dir=extension/modules \
-	--define extension=%{modname}.so \
-	--modules | grep %{modname}
+%{__php} -n -q \
+	-d extension_dir=extension/modules \
+	-d extension=%{modname}.so \
+	-m > modules.log
+grep %{modname} modules.log
 %endif
 
 %install
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-xhprof.git/commitdiff/62ad4ea71366334d3c0ca0a7deeacd17dc1dc2e3



More information about the pld-cvs-commit mailing list