From d77ecf9c54b7f7bfb5fefe73f7d8fb22df717bc7 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 12 Jun 2015 13:46:40 +0200 Subject: php-pecl-yar: 1.2.5dev for PHP 7 --- REFLECTION-DEV | 706 ++++++++++++++++++++++++++++++++++++++++++++++++++ php-pecl-yar-dev.spec | 57 ++-- php-pecl-yar.spec | 2 +- 3 files changed, 749 insertions(+), 16 deletions(-) create mode 100644 REFLECTION-DEV diff --git a/REFLECTION-DEV b/REFLECTION-DEV new file mode 100644 index 0000000..db0f5af --- /dev/null +++ b/REFLECTION-DEV @@ -0,0 +1,706 @@ +Extension [ extension #92 yar version 1.2.5-dev ] { + + - Dependencies { + Dependency [ json (Required) ] + Dependency [ msgpack (Required) ] + } + + - INI { + Entry [ yar.packager ] + Current = 'msgpack' + } + Entry [ yar.transport ] + Current = 'curl' + } + Entry [ yar.debug ] + Current = 'Off' + } + Entry [ yar.expose_info ] + Current = 'On' + } + Entry [ yar.connect_timeout ] + Current = '1000' + } + Entry [ yar.timeout ] + Current = '5000' + } + Entry [ yar.content_type ] + Current = 'application/octet-stream' + } + Entry [ yar.allow_persistent ] + Current = '0' + } + } + + - Constants [18] { + Constant [ string YAR_VERSION ] { 1.2.5-dev } + Constant [ integer YAR_OPT_PACKAGER ] { 1 } + Constant [ integer YAR_OPT_PERSISTENT ] { 2 } + Constant [ integer YAR_OPT_TIMEOUT ] { 4 } + Constant [ integer YAR_OPT_CONNECT_TIMEOUT ] { 8 } + Constant [ integer YAR_CLIENT_PROTOCOL_HTTP ] { 1 } + Constant [ integer YAR_CLIENT_PROTOCOL_TCP ] { 2 } + Constant [ integer YAR_CLIENT_PROTOCOL_UNIX ] { 4 } + Constant [ string YAR_PACKAGER_PHP ] { PHP } + Constant [ string YAR_PACKAGER_JSON ] { JSON } + Constant [ string YAR_PACKAGER_MSGPACK ] { MSGPACK } + Constant [ integer YAR_ERR_OKEY ] { 0 } + Constant [ integer YAR_ERR_OUTPUT ] { 8 } + Constant [ integer YAR_ERR_TRANSPORT ] { 16 } + Constant [ integer YAR_ERR_REQUEST ] { 4 } + Constant [ integer YAR_ERR_PROTOCOL ] { 2 } + Constant [ integer YAR_ERR_PACKAGER ] { 64 } + Constant [ integer YAR_ERR_EXCEPTION ] { 64 } + } + + - Classes [12] { + Class [ class Yar_Server ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [1] { + Property [ protected $_executor ] + } + + - Methods [2] { + Method [ final public method __construct ] { + + - Parameters [2] { + Parameter #0 [ $obj ] + Parameter #1 [ $protocol ] + } + } + + Method [ public method handle ] { + + - Parameters [0] { + } + } + } + } + + Class [ class Yar_Client ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [4] { + Property [ protected $_protocol ] + Property [ protected $_uri ] + Property [ protected $_options ] + Property [ protected $_running ] + } + + - Methods [5] { + Method [ final public method __construct ] { + + - Parameters [2] { + Parameter #0 [ $url ] + Parameter #1 [ $async ] + } + } + + Method [ public method call ] { + + - Parameters [2] { + Parameter #0 [ $method ] + Parameter #1 [ $parameters ] + } + } + + Method [ public method __call ] { + + - Parameters [2] { + Parameter #0 [ $method ] + Parameter #1 [ $parameters ] + } + } + + Method [ public method getOpt ] { + + - Parameters [1] { + Parameter #0 [ $type ] + } + } + + Method [ public method setOpt ] { + + - Parameters [2] { + Parameter #0 [ $type ] + Parameter #1 [ $value ] + } + } + } + } + + Class [ class Yar_Concurrent_Client ] { + + - Constants [0] { + } + + - Static properties [4] { + Property [ protected static $_callstack ] + Property [ protected static $_callback ] + Property [ protected static $_error_callback ] + Property [ protected static $_start ] + } + + - Static methods [3] { + Method [ static public method call ] { + + - Parameters [4] { + Parameter #0 [ $uri ] + Parameter #1 [ $method ] + Parameter #2 [ $parameters ] + Parameter #3 [ $callback ] + } + } + + Method [ static public method loop ] { + + - Parameters [2] { + Parameter #0 [ $callback ] + Parameter #1 [ $error_callback ] + } + } + + Method [ static public method reset ] { + } + } + + - Properties [0] { + } + + - Methods [0] { + } + } + + Class [ class Yar_Server_Exception extends Exception ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [5] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] + Property [ protected $_type ] + } + + - Methods [10] { + Method [ public method getType ] { + } + + Method [ public method __construct ] { + + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] + } + } + + Method [ final public method getMessage ] { + } + + Method [ final public method getCode ] { + } + + Method [ final public method getFile ] { + } + + Method [ final public method getLine ] { + } + + Method [ final public method getTrace ] { + } + + Method [ final public method getPrevious ] { + } + + Method [ final public method getTraceAsString ] { + } + + Method [ public method __toString ] { + } + } + } + + Class [ class Yar_Server_Request_Exception extends Yar_Server_Exception ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [4] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] + } + + - Methods [10] { + Method [ public method getType ] { + } + + Method [ public method __construct ] { + + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] + } + } + + Method [ final public method getMessage ] { + } + + Method [ final public method getCode ] { + } + + Method [ final public method getFile ] { + } + + Method [ final public method getLine ] { + } + + Method [ final public method getTrace ] { + } + + Method [ final public method getPrevious ] { + } + + Method [ final public method getTraceAsString ] { + } + + Method [ public method __toString ] { + } + } + } + + Class [ class Yar_Server_Protocol_Exception extends Yar_Server_Exception ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [4] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] + } + + - Methods [10] { + Method [ public method getType ] { + } + + Method [ public method __construct ] { + + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] + } + } + + Method [ final public method getMessage ] { + } + + Method [ final public method getCode ] { + } + + Method [ final public method getFile ] { + } + + Method [ final public method getLine ] { + } + + Method [ final public method getTrace ] { + } + + Method [ final public method getPrevious ] { + } + + Method [ final public method getTraceAsString ] { + } + + Method [ public method __toString ] { + } + } + } + + Class [ class Yar_Server_Packager_Exception extends Yar_Server_Exception ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [4] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] + } + + - Methods [10] { + Method [ public method getType ] { + } + + Method [ public method __construct ] { + + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] + } + } + + Method [ final public method getMessage ] { + } + + Method [ final public method getCode ] { + } + + Method [ final public method getFile ] { + } + + Method [ final public method getLine ] { + } + + Method [ final public method getTrace ] { + } + + Method [ final public method getPrevious ] { + } + + Method [ final public method getTraceAsString ] { + } + + Method [ public method __toString ] { + } + } + } + + Class [ class Yar_Server_Output_Exception extends Yar_Server_Exception ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [4] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] + } + + - Methods [10] { + Method [ public method getType ] { + } + + Method [ public method __construct ] { + + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] + } + } + + Method [ final public method getMessage ] { + } + + Method [ final public method getCode ] { + } + + Method [ final public method getFile ] { + } + + Method [ final public method getLine ] { + } + + Method [ final public method getTrace ] { + } + + Method [ final public method getPrevious ] { + } + + Method [ final public method getTraceAsString ] { + } + + Method [ public method __toString ] { + } + } + } + + Class [ class Yar_Client_Exception extends Exception ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [4] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] + } + + - Methods [10] { + Method [ public method getType ] { + } + + Method [ public method __construct ] { + + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] + } + } + + Method [ final public method getMessage ] { + } + + Method [ final public method getCode ] { + } + + Method [ final public method getFile ] { + } + + Method [ final public method getLine ] { + } + + Method [ final public method getTrace ] { + } + + Method [ final public method getPrevious ] { + } + + Method [ final public method getTraceAsString ] { + } + + Method [ public method __toString ] { + } + } + } + + Class [ class Yar_Client_Transport_Exception extends Yar_Client_Exception ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [4] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] + } + + - Methods [10] { + Method [ public method getType ] { + } + + Method [ public method __construct ] { + + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] + } + } + + Method [ final public method getMessage ] { + } + + Method [ final public method getCode ] { + } + + Method [ final public method getFile ] { + } + + Method [ final public method getLine ] { + } + + Method [ final public method getTrace ] { + } + + Method [ final public method getPrevious ] { + } + + Method [ final public method getTraceAsString ] { + } + + Method [ public method __toString ] { + } + } + } + + Class [ class Yar_Client_Packager_Exception extends Yar_Client_Exception ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [4] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] + } + + - Methods [10] { + Method [ public method getType ] { + } + + Method [ public method __construct ] { + + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] + } + } + + Method [ final public method getMessage ] { + } + + Method [ final public method getCode ] { + } + + Method [ final public method getFile ] { + } + + Method [ final public method getLine ] { + } + + Method [ final public method getTrace ] { + } + + Method [ final public method getPrevious ] { + } + + Method [ final public method getTraceAsString ] { + } + + Method [ public method __toString ] { + } + } + } + + Class [ class Yar_Client_Protocol_Exception extends Yar_Client_Exception ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [4] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] + } + + - Methods [10] { + Method [ public method getType ] { + } + + Method [ public method __construct ] { + + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] + } + } + + Method [ final public method getMessage ] { + } + + Method [ final public method getCode ] { + } + + Method [ final public method getFile ] { + } + + Method [ final public method getLine ] { + } + + Method [ final public method getTrace ] { + } + + Method [ final public method getPrevious ] { + } + + Method [ final public method getTraceAsString ] { + } + + Method [ public method __toString ] { + } + } + } + } +} + diff --git a/php-pecl-yar-dev.spec b/php-pecl-yar-dev.spec index 7bde1ee..73eeab2 100644 --- a/php-pecl-yar-dev.spec +++ b/php-pecl-yar-dev.spec @@ -1,4 +1,4 @@ -# spec file for php-pecl-yar +# remirepo spec file for php-pecl-yar # # Copyright (c) 2013-2015 Remi Collet # License: CC-BY-SA @@ -11,6 +11,11 @@ %{!?__pecl: %global __pecl %{_bindir}/pecl} %{!?__php: %global __php %{_bindir}/php} +%global gh_commit 7aca9e671815d884206e8fc47c789ab76c2865f2 +%global gh_short %(c=%{gh_commit}; echo ${c:0:7}) +%global gh_owner laruence +%global gh_project yar +%global gh_date 20150612 %global with_zts 0%{?__ztsphp:1} %global pecl_name yar %if "%{php_version}" < "5.6" @@ -23,12 +28,16 @@ Summary: Light, concurrent RPC framework Name: %{?scl_prefix}php-pecl-%{pecl_name} -Version: 1.2.4 -Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}.1 -License: BSD +Version: 1.2.5 +%if 0%{?gh_date:1} +Release: 0.2.%{gh_date}git%{gh_short}%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} +%else +Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} +%endif +License: PHP Group: Development/Languages URL: http://pecl.php.net/package/%{pecl_name} -Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz +Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{pecl_name}-%{version}-%{gh_short}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: curl-devel @@ -36,8 +45,6 @@ BuildRequires: %{?scl_prefix}php-devel BuildRequires: %{?scl_prefix}php-pear BuildRequires: %{?scl_prefix}php-pecl-msgpack-devel -Requires(post): %{__pecl} -Requires(postun): %{__pecl} Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} Requires: %{?scl_prefix}php(api) = %{php_core_api} %if "%{php_version}" < "5.4" @@ -70,6 +77,10 @@ Obsoletes: php55w-pecl-%{pecl_name} <= %{version} 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 %endif %if 0%{?fedora} < 20 && 0%{?rhel} < 7 @@ -87,11 +98,14 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO %prep -%setup -q -c -mv %{pecl_name}-%{version} NTS +%setup -qc +mv %{gh_project}-%{gh_commit} NTS +mv NTS/package2.xml . # Don't install/register tests -sed -e 's/role="test"/role="src"/' -i package2.xml +sed -e 's/role="test"/role="src"/' \ + -e '/README/s/role="doc"/role="test"/' \ + -i package2.xml cd NTS @@ -101,8 +115,8 @@ sed -e 's:/dev/null || : +# 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 ] ; then +if [ $1 -eq 0 -a -x %{__pecl} ] ; then %{pecl_uninstall} %{pecl_name} >/dev/null || : fi @@ -230,6 +252,11 @@ rm -rf %{buildroot} %changelog +* Fri Jun 12 2015 Remi Collet - 1.2.5-0.1.20150612git7aca9e6 +- Update to 1.2.5-dev for PHP 7 +- sources from github +- drop runtime dependency on pear, new scriptlets + * Wed Dec 24 2014 Remi Collet - 1.2.4-1.1 - Fedora 21 SCL mass rebuild diff --git a/php-pecl-yar.spec b/php-pecl-yar.spec index 7bde1ee..b042f1f 100644 --- a/php-pecl-yar.spec +++ b/php-pecl-yar.spec @@ -1,4 +1,4 @@ -# spec file for php-pecl-yar +# remirepo spec file for php-pecl-yar # # Copyright (c) 2013-2015 Remi Collet # License: CC-BY-SA -- cgit