--- /dev/null
+--- grpc-0.15.0/config.m4~ 2016-06-28 02:33:35.000000000 +0300
++++ grpc-0.15.0/config.m4 2016-07-20 22:29:20.633876591 +0300
+@@ -5,9 +5,9 @@
+ dnl Write more examples of tests here...
+
+ dnl # --with-grpc -> add include path
+- PHP_ADD_INCLUDE(../../grpc/include)
+- PHP_ADD_INCLUDE(../../grpc/src/php/ext/grpc)
+- PHP_ADD_INCLUDE(../../grpc/third_party/boringssl/include)
++ PHP_ADD_INCLUDE(include)
++ PHP_ADD_INCLUDE(src/php/ext/grpc)
++ PHP_ADD_INCLUDE(third_party/boringssl/include)
+
+ LIBS="-lpthread $LIBS"
+
Group: Development/Languages/PHP
Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
# Source0-md5: ba80ec5aa995d7b9e3df7d6d299bbd4b
+Patch0: includes.patch
URL: http://pecl.php.net/package/grpc/
%{?with_tests:BuildRequires: %{php_name}-cli}
BuildRequires: %{php_name}-devel >= 4:5.5
%prep
%setup -qc
mv %{modname}-%{version}/* .
+%patch0 -p1
%build
phpize
%configure
-%{__make} \
- EXTRA_INCLUDES="-I include/ -I src/php/ext/grpc/ -I third_party/boringssl/include/"
+%{__make}
%if %{with tests}
# simple module load test