]> git.pld-linux.org Git - packages/php-pecl-grpc.git/commitdiff
spl requires pcre on non-x86_64 platforms
authorElan Ruusamäe <glen@delfi.ee>
Wed, 20 Jul 2016 22:06:04 +0000 (01:06 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Wed, 20 Jul 2016 22:06:04 +0000 (01:06 +0300)
php-pecl-grpc.spec

index b0a77372b30f20056407653a9b0f21a0e14a7377..4e1f13c82f031c88dfa5226f12b23830e4e30a28 100644 (file)
@@ -22,6 +22,7 @@ BuildRequires:        %{php_name}-devel >= 4:5.5
 BuildRequires: rpmbuild(macros) >= 1.666
 %if %{with tests}
 BuildRequires: %{php_name}-cli
+BuildRequires: %{php_name}-pcre
 BuildRequires: %{php_name}-spl
 %endif
 %{?requires_php_extension}
@@ -49,6 +50,7 @@ phpize
 # simple module load test
 %{__php} -n -q \
        -d extension_dir=modules \
+       -d extension=%{php_extensiondir}/pcre.so \
        -d extension=%{php_extensiondir}/spl.so \
        -d extension=%{modname}.so \
        -m > modules.log
@@ -57,7 +59,7 @@ grep %{modname} modules.log
 export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
 %{__make} test \
        PHP_EXECUTABLE=%{__php} \
-       PHP_TEST_SHARED_SYSTEM_EXTENSIONS="spl"
+       PHP_TEST_SHARED_SYSTEM_EXTENSIONS="pcre spl"
 %endif
 
 %install
This page took 0.21579 seconds and 4 git commands to generate.