update module load testing AC-branch auto/ac/php-pecl-solr-1.0.2-3
authorElan Ruusamäe <glen@delfi.ee>
Sun, 23 Jun 2013 09:58:57 +0000 (12:58 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sun, 23 Jun 2013 09:58:57 +0000 (12:58 +0300)
php-pecl-solr.spec

index 5d654c4..5c7584c 100644 (file)
@@ -20,7 +20,7 @@ BuildRequires:        %{php_name}-devel >= 4:5.2.3
 BuildRequires: curl-devel
 BuildRequires: libxml2-devel >= 1:2.6.16
 BuildRequires: php-packagexml2cl
-BuildRequires: rpmbuild(macros) >= 1.650
+BuildRequires: rpmbuild(macros) >= 1.666
 Requires:      %{php_name}-xml
 Provides:      php(solr) = %{version}
 %{?requires_php_extension}
@@ -83,12 +83,13 @@ phpize
 
 %if %{with tests}
 ln -sf %{php_extensiondir}/curl.so modules
-%{__php} \
-       -n -q -d extension_dir=modules \
+%{__php} -n -q \
+       -d extension_dir=modules \
        -d extension=curl.so \
        -d extension=%{modname}.so \
-       --modules | grep %{modname}
-rm -f modules/curl.so
+       -m > modules.log
+grep %{modname} modules.log
+%{__rm} modules/curl.so
 %endif
 
 %install
This page took 0.205789 seconds and 4 git commands to generate.