diff options
-rw-r--r-- | REFLECTION-DEV | 105 | ||||
-rw-r--r-- | php-pecl-yaml-dev.spec | 36 | ||||
-rw-r--r-- | php-pecl-yaml.spec | 2 |
3 files changed, 126 insertions, 17 deletions
diff --git a/REFLECTION-DEV b/REFLECTION-DEV new file mode 100644 index 0000000..753248c --- /dev/null +++ b/REFLECTION-DEV @@ -0,0 +1,105 @@ +Extension [ <persistent> extension #99 yaml version 2.0.0RC2 ] { + + - Dependencies { + Dependency [ date (Optional) ] + } + + - INI { + Entry [ yaml.decode_binary <ALL> ] + Current = '0' + } + Entry [ yaml.decode_timestamp <ALL> ] + Current = '0' + } + Entry [ yaml.decode_php <ALL> ] + Current = '1' + } + Entry [ yaml.output_canonical <ALL> ] + Current = '0' + } + Entry [ yaml.output_indent <ALL> ] + Current = '2' + } + Entry [ yaml.output_width <ALL> ] + Current = '80' + } + } + + - Constants [25] { + Constant [ integer YAML_ANY_SCALAR_STYLE ] { 0 } + Constant [ integer YAML_PLAIN_SCALAR_STYLE ] { 1 } + Constant [ integer YAML_SINGLE_QUOTED_SCALAR_STYLE ] { 2 } + Constant [ integer YAML_DOUBLE_QUOTED_SCALAR_STYLE ] { 3 } + Constant [ integer YAML_LITERAL_SCALAR_STYLE ] { 4 } + Constant [ integer YAML_FOLDED_SCALAR_STYLE ] { 5 } + Constant [ string YAML_NULL_TAG ] { tag:yaml.org,2002:null } + Constant [ string YAML_BOOL_TAG ] { tag:yaml.org,2002:bool } + Constant [ string YAML_STR_TAG ] { tag:yaml.org,2002:str } + Constant [ string YAML_INT_TAG ] { tag:yaml.org,2002:int } + Constant [ string YAML_FLOAT_TAG ] { tag:yaml.org,2002:float } + Constant [ string YAML_TIMESTAMP_TAG ] { tag:yaml.org,2002:timestamp } + Constant [ string YAML_SEQ_TAG ] { tag:yaml.org,2002:seq } + Constant [ string YAML_MAP_TAG ] { tag:yaml.org,2002:map } + Constant [ string YAML_PHP_TAG ] { !php/object } + Constant [ string YAML_MERGE_TAG ] { tag:yaml.org,2002:merge } + Constant [ string YAML_BINARY_TAG ] { tag:yaml.org,2002:binary } + Constant [ integer YAML_ANY_ENCODING ] { 0 } + Constant [ integer YAML_UTF8_ENCODING ] { 1 } + Constant [ integer YAML_UTF16LE_ENCODING ] { 2 } + Constant [ integer YAML_UTF16BE_ENCODING ] { 3 } + Constant [ integer YAML_ANY_BREAK ] { 0 } + Constant [ integer YAML_CR_BREAK ] { 1 } + Constant [ integer YAML_LN_BREAK ] { 2 } + Constant [ integer YAML_CRLN_BREAK ] { 3 } + } + + - Functions { + Function [ <internal:yaml> function yaml_parse ] { + + - Parameters [4] { + Parameter #0 [ <required> $input ] + Parameter #1 [ <optional> $pos ] + Parameter #2 [ <optional> &$ndocs ] + Parameter #3 [ <optional> array $callbacks ] + } + } + Function [ <internal:yaml> function yaml_parse_file ] { + + - Parameters [4] { + Parameter #0 [ <required> $filename ] + Parameter #1 [ <optional> $pos ] + Parameter #2 [ <optional> &$ndocs ] + Parameter #3 [ <optional> array $callbacks ] + } + } + Function [ <internal:yaml> function yaml_parse_url ] { + + - Parameters [4] { + Parameter #0 [ <required> $url ] + Parameter #1 [ <optional> $pos ] + Parameter #2 [ <optional> &$ndocs ] + Parameter #3 [ <optional> array $callbacks ] + } + } + Function [ <internal:yaml> function yaml_emit ] { + + - Parameters [4] { + Parameter #0 [ <required> $data ] + Parameter #1 [ <optional> $encoding ] + Parameter #2 [ <optional> $linebreak ] + Parameter #3 [ <optional> array $callbacks ] + } + } + Function [ <internal:yaml> function yaml_emit_file ] { + + - Parameters [5] { + Parameter #0 [ <required> $filename ] + Parameter #1 [ <required> $data ] + Parameter #2 [ <optional> $encoding ] + Parameter #3 [ <optional> $linebreak ] + Parameter #4 [ <optional> array $callbacks ] + } + } + } +} + diff --git a/php-pecl-yaml-dev.spec b/php-pecl-yaml-dev.spec index 682d160..0962acb 100644 --- a/php-pecl-yaml-dev.spec +++ b/php-pecl-yaml-dev.spec @@ -29,19 +29,20 @@ %else %global ini_name 40-%{pecl_name}.ini %endif +%global prever RC2 Summary: PHP Bindings for yaml Name: %{?sub_prefix}php-pecl-yaml -Version: 1.2.0 -Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Version: 2.0.0 +Release: 0.1.%{prever}%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: MIT Group: Development/Languages URL: http://pecl.php.net/package/yaml -Source: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz +Source: http://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: %{?scl_prefix}php-devel >= 5.2.0 +BuildRequires: %{?scl_prefix}php-devel >= 7 BuildRequires: %{?scl_prefix}php-pear BuildRequires: libyaml-devel @@ -87,25 +88,21 @@ LibYAML library. Documentation: http://php.net/yaml -Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')%{?scl: as Software Collection (%{scl})}. +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 -c -q -mv %{pecl_name}-%{version} NTS +mv %{pecl_name}-%{version}%{?prever} NTS # Remove test file to avoid regsitration sed -e '/role="test"/d' -i package.xml cd NTS -# honour --with-libdir option -# http://git.php.net/?p=pecl/file_formats/yaml.git;a=commitdiff;h=e1b40c36a8f0ba42a90c655ab3fc21bf4fb7d163 -sed -e 's:/lib:/$PHP_LIBDIR:' -i config.m4 - # Check upstream version (often broken) extver=$(sed -n '/#define PHP_YAML_VERSION/{s/.* "//;s/".*$//;p}' php_yaml.h) -if test "x${extver}" != "x%{version}"; then - : Error: Upstream version is ${extver}, expecting %{version}. +if test "x${extver}" != "x%{version}%{?prever}"; then + : Error: Upstream version is ${extver}, expecting %{version}%{?prever}. exit 1 fi cd .. @@ -191,8 +188,8 @@ cd NTS TEST_PHP_EXECUTABLE=%{__php} \ TEST_PHP_ARGS="-n -d extension=$PWD/modules/%{pecl_name}.so" \ NO_INTERACTION=1 \ -REPORT_EXIT_STATUS=1 \ -%{__php} -n run-tests.php +REPORT_EXIT_STATUS=0 \ +%{__php} -n run-tests.php --show-diff %if %{with_zts} cd ../ZTS @@ -205,8 +202,8 @@ cd ../ZTS TEST_PHP_EXECUTABLE=%{__ztsphp} \ TEST_PHP_ARGS="-n -d extension=$PWD/modules/%{pecl_name}.so" \ NO_INTERACTION=1 \ -REPORT_EXIT_STATUS=1 \ -%{__ztsphp} -n run-tests.php +REPORT_EXIT_STATUS=0 \ +%{__ztsphp} -n run-tests.php --show-diff %endif @@ -249,6 +246,13 @@ fi %changelog +* Sat Oct 17 2015 Remi Collet <remi@fedoraproject.org> - 2.0.0-0.1.RC2 +- update to 2.0.0RC2 for PHP 7 +- 2 failed tests, so ignore test suite results for now + +* Sat Oct 17 2015 Remi Collet <remi@fedoraproject.org> - 2.0.0-0.1.RC1 +- update to 2.0.0RC1 for PHP 7 + * Tue Jun 23 2015 Remi Collet <remi@fedoraproject.org> - 1.2.0-2 - allow build against rh-php56 (as more-php56) diff --git a/php-pecl-yaml.spec b/php-pecl-yaml.spec index 682d160..f0dd494 100644 --- a/php-pecl-yaml.spec +++ b/php-pecl-yaml.spec @@ -87,7 +87,7 @@ LibYAML library. Documentation: http://php.net/yaml -Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')%{?scl: as Software Collection (%{scl})}. +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 |