From 962a85c3b07a4cb0d6782f1755d1b44dcb051ad2 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 25 Apr 2017 14:08:29 +0200 Subject: v1.2.0 - New package --- .gitignore | 7 + Makefile | 4 + REFLECTION | 400 ++++++++++++++++ package.xml | 1342 ++++++++++++++++++++++++++++++++++++++++++++++++++++ php-pecl-grpc.spec | 222 +++++++++ 5 files changed, 1975 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 REFLECTION create mode 100644 package.xml create mode 100644 php-pecl-grpc.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1ab5c4f --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +package-*.xml +*.tgz +*.tar.gz +*.tar.xz +*.tar.xz.asc +*.src.rpm +*/*rpm diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..13af741 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +SRCDIR := $(shell pwd) +NAME := $(shell basename $(SRCDIR)) +include ../../../common/Makefile + diff --git a/REFLECTION b/REFLECTION new file mode 100644 index 0000000..01f8e11 --- /dev/null +++ b/REFLECTION @@ -0,0 +1,400 @@ +Extension [ extension #92 grpc version 1.2.0 ] { + + - Constants [41] { + Constant [ integer Grpc\CALL_OK ] { 0 } + Constant [ integer Grpc\CALL_ERROR ] { 1 } + Constant [ integer Grpc\CALL_ERROR_NOT_ON_SERVER ] { 2 } + Constant [ integer Grpc\CALL_ERROR_NOT_ON_CLIENT ] { 3 } + Constant [ integer Grpc\CALL_ERROR_ALREADY_INVOKED ] { 5 } + Constant [ integer Grpc\CALL_ERROR_NOT_INVOKED ] { 6 } + Constant [ integer Grpc\CALL_ERROR_ALREADY_FINISHED ] { 7 } + Constant [ integer Grpc\CALL_ERROR_TOO_MANY_OPERATIONS ] { 8 } + Constant [ integer Grpc\CALL_ERROR_INVALID_FLAGS ] { 9 } + Constant [ integer Grpc\WRITE_BUFFER_HINT ] { 1 } + Constant [ integer Grpc\WRITE_NO_COMPRESS ] { 2 } + Constant [ integer Grpc\STATUS_OK ] { 0 } + Constant [ integer Grpc\STATUS_CANCELLED ] { 1 } + Constant [ integer Grpc\STATUS_UNKNOWN ] { 2 } + Constant [ integer Grpc\STATUS_INVALID_ARGUMENT ] { 3 } + Constant [ integer Grpc\STATUS_DEADLINE_EXCEEDED ] { 4 } + Constant [ integer Grpc\STATUS_NOT_FOUND ] { 5 } + Constant [ integer Grpc\STATUS_ALREADY_EXISTS ] { 6 } + Constant [ integer Grpc\STATUS_PERMISSION_DENIED ] { 7 } + Constant [ integer Grpc\STATUS_UNAUTHENTICATED ] { 16 } + Constant [ integer Grpc\STATUS_RESOURCE_EXHAUSTED ] { 8 } + Constant [ integer Grpc\STATUS_FAILED_PRECONDITION ] { 9 } + Constant [ integer Grpc\STATUS_ABORTED ] { 10 } + Constant [ integer Grpc\STATUS_OUT_OF_RANGE ] { 11 } + Constant [ integer Grpc\STATUS_UNIMPLEMENTED ] { 12 } + Constant [ integer Grpc\STATUS_INTERNAL ] { 13 } + Constant [ integer Grpc\STATUS_UNAVAILABLE ] { 14 } + Constant [ integer Grpc\STATUS_DATA_LOSS ] { 15 } + Constant [ integer Grpc\OP_SEND_INITIAL_METADATA ] { 0 } + Constant [ integer Grpc\OP_SEND_MESSAGE ] { 1 } + Constant [ integer Grpc\OP_SEND_CLOSE_FROM_CLIENT ] { 2 } + Constant [ integer Grpc\OP_SEND_STATUS_FROM_SERVER ] { 3 } + Constant [ integer Grpc\OP_RECV_INITIAL_METADATA ] { 4 } + Constant [ integer Grpc\OP_RECV_MESSAGE ] { 5 } + Constant [ integer Grpc\OP_RECV_STATUS_ON_CLIENT ] { 6 } + Constant [ integer Grpc\OP_RECV_CLOSE_ON_SERVER ] { 7 } + Constant [ integer Grpc\CHANNEL_IDLE ] { 0 } + Constant [ integer Grpc\CHANNEL_CONNECTING ] { 1 } + Constant [ integer Grpc\CHANNEL_READY ] { 2 } + Constant [ integer Grpc\CHANNEL_TRANSIENT_FAILURE ] { 3 } + Constant [ integer Grpc\CHANNEL_FATAL_FAILURE ] { 4 } + } + + - Classes [7] { + Class [ class Grpc\Call ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [5] { + Method [ public method __construct ] { + + - Parameters [4] { + Parameter #0 [ $channel ] + Parameter #1 [ $method ] + Parameter #2 [ $deadline ] + Parameter #3 [ $host_override ] + } + } + + Method [ public method startBatch ] { + + - Parameters [1] { + Parameter #0 [ $ops ] + } + } + + Method [ public method getPeer ] { + + - Parameters [0] { + } + } + + Method [ public method cancel ] { + + - Parameters [0] { + } + } + + Method [ public method setCredentials ] { + + - Parameters [1] { + Parameter #0 [ $credentials ] + } + } + } + } + + Class [ class Grpc\Channel ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [5] { + Method [ public method __construct ] { + + - Parameters [2] { + Parameter #0 [ $target ] + Parameter #1 [ $args ] + } + } + + Method [ public method getTarget ] { + + - Parameters [0] { + } + } + + Method [ public method getConnectivityState ] { + + - Parameters [1] { + Parameter #0 [ $try_to_connect ] + } + } + + Method [ public method watchConnectivityState ] { + + - Parameters [2] { + Parameter #0 [ $last_state ] + Parameter #1 [ $deadline ] + } + } + + Method [ public method close ] { + + - Parameters [0] { + } + } + } + } + + Class [ class Grpc\Server ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [5] { + Method [ public method __construct ] { + + - Parameters [1] { + Parameter #0 [ $args ] + } + } + + Method [ public method requestCall ] { + + - Parameters [0] { + } + } + + Method [ public method addHttp2Port ] { + + - Parameters [1] { + Parameter #0 [ $addr ] + } + } + + Method [ public method addSecureHttp2Port ] { + + - Parameters [2] { + Parameter #0 [ $addr ] + Parameter #1 [ $server_creds ] + } + } + + Method [ public method start ] { + + - Parameters [0] { + } + } + } + } + + Class [ class Grpc\Timeval ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [6] { + Method [ static public method compare ] { + + - Parameters [2] { + Parameter #0 [ $a_timeval ] + Parameter #1 [ $b_timeval ] + } + } + + Method [ static public method infFuture ] { + + - Parameters [0] { + } + } + + Method [ static public method infPast ] { + + - Parameters [0] { + } + } + + Method [ static public method now ] { + + - Parameters [0] { + } + } + + Method [ static public method similar ] { + + - Parameters [3] { + Parameter #0 [ $a_timeval ] + Parameter #1 [ $b_timeval ] + Parameter #2 [ $threshold_timeval ] + } + } + + Method [ static public method zero ] { + + - Parameters [0] { + } + } + } + + - Properties [0] { + } + + - Methods [4] { + Method [ public method __construct ] { + + - Parameters [1] { + Parameter #0 [ $microseconds ] + } + } + + Method [ public method add ] { + + - Parameters [1] { + Parameter #0 [ $timeval ] + } + } + + Method [ public method sleepUntil ] { + + - Parameters [0] { + } + } + + Method [ public method subtract ] { + + - Parameters [1] { + Parameter #0 [ $timeval ] + } + } + } + } + + Class [ class Grpc\ChannelCredentials ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [5] { + Method [ static public method setDefaultRootsPem ] { + + - Parameters [1] { + Parameter #0 [ $pem_roots ] + } + } + + Method [ static public method createDefault ] { + + - Parameters [0] { + } + } + + Method [ static public method createSsl ] { + + - Parameters [3] { + Parameter #0 [ $pem_root_certs ] + Parameter #1 [ $pem_private_key ] + Parameter #2 [ $pem_cert_chain ] + } + } + + Method [ static public method createComposite ] { + + - Parameters [2] { + Parameter #0 [ $channel_creds ] + Parameter #1 [ $call_creds ] + } + } + + Method [ static public method createInsecure ] { + + - Parameters [0] { + } + } + } + + - Properties [0] { + } + + - Methods [0] { + } + } + + Class [ class Grpc\CallCredentials ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [2] { + Method [ static public method createComposite ] { + + - Parameters [2] { + Parameter #0 [ $creds1 ] + Parameter #1 [ $creds2 ] + } + } + + Method [ static public method createFromPlugin ] { + + - Parameters [1] { + Parameter #0 [ $callback ] + } + } + } + + - Properties [0] { + } + + - Methods [0] { + } + } + + Class [ class Grpc\ServerCredentials ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [1] { + Method [ static public method createSsl ] { + + - Parameters [3] { + Parameter #0 [ $pem_root_certs ] + Parameter #1 [ $pem_private_key ] + Parameter #2 [ $pem_cert_chain ] + } + } + } + + - Properties [0] { + } + + - Methods [0] { + } + } + } +} + diff --git a/package.xml b/package.xml new file mode 100644 index 0000000..4ad54c4 --- /dev/null +++ b/package.xml @@ -0,0 +1,1342 @@ + + + grpc + pecl.php.net + A high performance, open source, general RPC framework that puts mobile and HTTP/2 first. + Remote Procedure Calls (RPCs) provide a useful abstraction for building distributed applications and services. The libraries in this repository provide a concrete implementation of the gRPC protocol, layered over HTTP/2. These libraries enable communication between clients and servers using any combination of the supported languages. + + Stanley Cheung + stanleycheung + grpc-packages@google.com + yes + + 2017-03-20 + + + 1.2.0 + 1.2.0 + + + stable + stable + + BSD + +- Added arg info macros #9751 +- Updated codegen to be consistent with protobuf #9492 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 5.5.0 + + + 1.4.0 + + + + grpc + + + + + 0.5.0 + 0.5.0 + + + alpha + alpha + + 2015-06-16 + BSD + +First alpha release + + + + + 0.5.1 + 0.5.1 + + + alpha + alpha + + 2015-07-09 + BSD + +Update to wrap gRPC C Core version 0.10.0 + + + + + 0.6.0 + 0.6.0 + + + beta + beta + + 2015-09-24 + BSD + +- support per message compression disable +- expose per-call host override option +- expose connectivity API +- expose channel target and call peer +- add user-agent +- update to wrap gRPC C core library beta version 0.11.0 + + + + + 0.6.1 + 0.6.0 + + + beta + beta + + 2015-10-21 + BSD + +- fixed undefined constant fatal error when run with apache/nginx #2275 + + + + + 0.7.0 + 0.7.0 + + + beta + beta + + 2016-01-13 + BSD + +- Breaking change to Credentials class (removed) #3765 +- Replaced by ChannelCredentials and CallCredentials class #3765 +- New plugin based metadata auth API #4394 +- Explicit ChannelCredentials::createInsecure() call + + + + + 0.8.0 + 0.8.0 + + + beta + beta + + 2016-02-24 + BSD + +- Simplify gRPC PHP installation #4517 +- Wrap gRPC core library version 0.13 + + + + + 0.8.1 + 0.8.1 + + + beta + beta + + 2016-03-01 + BSD + +- Increase unit test code coverage #5225 + + + + + 0.14.0 + 0.14.0 + + + beta + beta + + 2016-04-19 + BSD + +- wrap grpc C core version 0.14.0 +- destroy grpc_byte_buffer after startBatch #6096 + + + + + 0.15.0 + 0.15.0 + + + beta + beta + + 2016-05-18 + BSD + +- Updated functions with TSRM macros for ZTS support #6607 +- Load default roots.pem via grpc_set_ssl_roots_override_callback #6848 + + + + + 1.0.0RC1 + 1.0.0RC1 + + + stable + stable + + 2016-07-13 + BSD + +- GA release +- Fix shutdown hang problem #4017 + + + + + 1.0.0RC2 + 1.0.0RC2 + + + stable + stable + + 2016-07-21 + BSD + +- PHP7 Support #7464 + + + + + 1.0.0RC3 + 1.0.0RC3 + + + stable + stable + + 2016-07-28 + BSD + +- PHP7 Support continued, reduce code duplication #7543 + + + + + 1.0.0RC4 + 1.0.0RC4 + + + stable + stable + + 2016-08-09 + BSD + +- Fixed Ubuntu compile error #7571, #7642 + + + + + 1.0.0 + 1.0.0 + + + stable + stable + + 2016-08-18 + BSD + +- gRPC 1.0.0 release + + + + + 1.0.1RC1 + 1.0.1RC1 + + + beta + beta + + 2016-10-06 + BSD + +- Reject metadata keys which are not legal #7881 + + + + + 1.0.1 + 1.0.1 + + + stable + stable + + 2016-10-27 + BSD + +- Reject metadata keys which are not legal #7881 + + + + + 1.1.0RC1 + 1.1.0RC1 + + + beta + beta + + 2017-01-13 + BSD + +- PHP Proto3 adoption #8179 +- Various bug fixes + + + + + 1.1.0 + 1.1.0 + + + stable + stable + + 2017-01-31 + BSD + +- PHP Proto3 adoption #8179 +- Various bug fixes + + + + + 1.2.0RC1 + 1.2.0RC1 + + + beta + beta + + 2017-03-01 + BSD + +- Added arg info macros #9751 +- Updated codegen to be consistent with protobuf #9492 + + + + + 1.2.0 + 1.2.0 + + + stable + stable + + 2017-03-20 + BSD + +- Added arg info macros #9751 +- Updated codegen to be consistent with protobuf #9492 + + + + diff --git a/php-pecl-grpc.spec b/php-pecl-grpc.spec new file mode 100644 index 0000000..6ea9832 --- /dev/null +++ b/php-pecl-grpc.spec @@ -0,0 +1,222 @@ +# remirepo spec file for php-pecl-grpc +# +# Copyright (c) 2017 Remi Collet +# License: CC-BY-SA +# http://creativecommons.org/licenses/by-sa/4.0/ +# +# Please, preserve the changelog entries +# +%if 0%{?scl:1} +%global sub_prefix %{scl_prefix} +%scl_package php-pecl-grpc +%endif + +%global pecl_name grpc +%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} +%if "%{php_version}" < "5.6" +%global ini_name %{pecl_name}.ini +%else +%global ini_name 40-%{pecl_name}.ini +%endif + +Summary: General RPC framework +Name: %{?sub_prefix}php-pecl-%{pecl_name} +Version: 1.2.0 +Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +License: MIT +Group: Development/Languages +URL: http://pecl.php.net/package/%{pecl_name} +Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz + +BuildRequires: %{?scl_prefix}php-devel > 5.5 +BuildRequires: %{?scl_prefix}php-pear +BuildRequires: zlib-devel + +Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} +Requires: %{?scl_prefix}php(api) = %{php_core_api} +%{?_sclreq:Requires: %{?scl_prefix}runtime%{?_sclreq}%{?_isa}} + +Provides: %{?scl_prefix}php-%{pecl_name} = %{version} +Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version} +Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version} +Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version} +%if "%{?scl_prefix}" != "%{?sub_prefix}" +Provides: %{?scl_prefix}php-pecl-%{pecl_name} = %{version}-%{release} +Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{release} +%endif + +%if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel} +# Other third party repo stuff +Obsoletes: php55u-pecl-%{pecl_name} <= %{version} +Obsoletes: php55w-pecl-%{pecl_name} <= %{version} +%if "%{php_version}" > "5.6" +Obsoletes: php56u-pecl-%{pecl_name} <= %{version} +Obsoletes: php56w-pecl-%{pecl_name} <= %{version} +%endif +%if "%{php_version}" > "7.0" +Obsoletes: php70u-pecl-%{pecl_name} <= %{version} +Obsoletes: php70w-pecl-%{pecl_name} <= %{version} +%endif +%if "%{php_version}" > "7.1" +Obsoletes: php71u-pecl-%{pecl_name} <= %{version} +Obsoletes: php71w-pecl-%{pecl_name} <= %{version} +%endif +%if "%{php_version}" > "7.2" +Obsoletes: php72u-pecl-%{pecl_name} <= %{version} +Obsoletes: php72w-pecl-%{pecl_name} <= %{version} +%endif +%endif + +%if 0%{?fedora} < 20 && 0%{?rhel} < 7 +# Filter shared private +%{?filter_provides_in: %filter_provides_in %{_libdir}/.*\.so$} +%{?filter_setup} +%endif + + +%description +Remote Procedure Calls (RPCs) provide a useful abstraction for building +distributed applications and services. The libraries in this repository +provide a concrete implementation of the gRPC protocol, layered over HTTP/2. +These libraries enable communication between clients and servers using +any combination of the supported languages + +Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')%{?scl: as Software Collection (%{scl} by %{?scl_vendor}%{!?scl_vendor:rh})}. + + +%prep +%setup -q -c +mv %{pecl_name}-%{version} NTS + +# Don't install/register tests +sed -e 's/role="test"/role="src"/' \ + %{?_licensedir:-e '/LICENSE/s/role="doc"/role="src"/' } \ + -i package.xml + +cd NTS +# https://github.com/grpc/grpc/issues/10842 +sed -e '/Replace with version number/s/0.1.0/%{version}/' \ + -i src/php/ext/grpc/php_grpc.h + +# Sanity check, really often broken +extver=$(sed -n '/Replace/{s/.* "//;s/".*$//;p}' src/php/ext/grpc/php_grpc.h) +if test "x${extver}" != "x%{version}%{?prever:-%{prever}}"; then + : Error: Upstream extension version is ${extver}, expecting %{version}%{?prever:-%{prever}}. + exit 1 +fi +cd .. + +%if %{with_zts} +# Duplicate source tree for NTS / ZTS build +cp -pr NTS ZTS +%endif + +# Create configuration file +cat << 'EOF' | tee %{ini_name} +; Enable "%{summary}" extension module +extension=%{pecl_name}.so +EOF + + +%build +%{?dtsenable} + +cd NTS +%{_bindir}/phpize +%configure \ + --enable-grpc \ + --with-libdir=%{_lib} \ + --with-php-config=%{_bindir}/php-config + +make %{?_smp_mflags} + +%if %{with_zts} +cd ../ZTS +%{_bindir}/zts-phpize +%configure \ + --enable-grpc \ + --with-libdir=%{_lib} \ + --with-php-config=%{_bindir}/zts-php-config + +make %{?_smp_mflags} +%endif + + +%install +%{?dtsenable} + +make -C NTS install INSTALL_ROOT=%{buildroot} + +# install config file +install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name} + +# Install XML package description +install -D -m 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml + +%if %{with_zts} +make -C ZTS install INSTALL_ROOT=%{buildroot} + +install -D -m 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name} +%endif + +# Documentation +for i in $(grep 'role="doc"' package.xml | sed -e 's/^.*name="//;s/".*$//') +do install -Dpm 644 NTS/$i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i +done + + +%if 0%{?fedora} < 24 +# when pear installed alone, after us +%triggerin -- %{?scl_prefix}php-pear +if [ -x %{__pecl} ] ; then + %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || : +fi + +# posttrans as pear can be installed after us +%posttrans +if [ -x %{__pecl} ] ; then + %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || : +fi + +%postun +if [ $1 -eq 0 -a -x %{__pecl} ] ; then + %{pecl_uninstall} %{pecl_name} >/dev/null || : +fi +%endif + + +%check +: Minimal load test for NTS extension +cd NTS +%{__php} --no-php-ini \ + --define extension=modules/%{pecl_name}.so \ + --modules | grep %{pecl_name} + +%if %{with_zts} +: Minimal load test for ZTS extension +cd ../ZTS +%{__ztsphp} --no-php-ini \ + --define extension=modules/%{pecl_name}.so \ + --modules | grep %{pecl_name} +%endif + + +%files +%{!?_licensedir:%global license %%doc} +%license NTS/src/php/ext/grpc/LICENSE +%{pecl_xmldir}/%{name}.xml + +%config(noreplace) %{php_inidir}/%{ini_name} +%{php_extdir}/%{pecl_name}.so + +%if %{with_zts} +%config(noreplace) %{php_ztsinidir}/%{ini_name} +%{php_ztsextdir}/%{pecl_name}.so +%endif + + +%changelog +* Thu Dec 1 2016 Remi Collet - 1.2.0-1 +- initial package, version 1.2.0 (stable) +- open https://github.com/grpc/grpc/issues/10842 bad version +- open https://github.com/grpc/grpc/issues/10843 build fail with gcc 7 -- cgit