summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--PHPINFO2
-rw-r--r--REFLECTION2
-rw-r--r--php-pecl-yaml.spec64
-rw-r--r--yaml-build.patch22
4 files changed, 51 insertions, 39 deletions
diff --git a/PHPINFO b/PHPINFO
index ed141de..f9b3dcc 100644
--- a/PHPINFO
+++ b/PHPINFO
@@ -2,7 +2,7 @@
yaml
LibYAML Support => enabled
-Module Version => 2.2.3
+Module Version => 2.3.0
LibYAML Version => 0.2.5
Directive => Local Value => Master Value
diff --git a/REFLECTION b/REFLECTION
index 37098b7..1737643 100644
--- a/REFLECTION
+++ b/REFLECTION
@@ -1,4 +1,4 @@
-Extension [ <persistent> extension #106 yaml version 2.2.3 ] {
+Extension [ <persistent> extension #135 yaml version 2.3.0 ] {
- Dependencies {
Dependency [ date (Optional) ]
diff --git a/php-pecl-yaml.spec b/php-pecl-yaml.spec
index d724e77..a514d39 100644
--- a/php-pecl-yaml.spec
+++ b/php-pecl-yaml.spec
@@ -1,6 +1,6 @@
# remirepo spec file for php-pecl-yaml
#
-# Copyright (c) 2012-2024 Remi Collet
+# Copyright (c) 2012-2025 Remi Collet
# Fedora spec file for php-pecl-yaml
#
@@ -15,9 +15,11 @@
%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}}
%global pecl_name yaml
+%global pie_vend pecl
+%global pie_proj yaml
%global ini_name 40-%{pecl_name}.ini
-%global upstream_version 2.2.3
+%global upstream_version 2.3.0
#global upstream_prever b2
%global sources %{pecl_name}-%{upstream_version}%{?upstream_prever}
%global _configure ../%{sources}/configure
@@ -25,14 +27,12 @@
Summary: PHP Bindings for yaml
Name: %{?scl_prefix}php-pecl-yaml
Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}}
-Release: 4%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
License: MIT
URL: https://pecl.php.net/package/yaml
Source0: https://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upstream_prever}.tgz
-Patch0: %{pecl_name}-build.patch
-
ExcludeArch: %{ix86}
BuildRequires: make
@@ -44,10 +44,14 @@ BuildRequires: libyaml-devel
Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api}
Requires: %{?scl_prefix}php(api) = %{php_core_api}
-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}
+# Extension
+Provides: %{?scl_prefix}php-%{pecl_name} = %{version}
+Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version}
+# PECL
+Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version}
+Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version}
+# PIE
+Provides: %{?scl_prefix}php-pie(%{pie_vend}/%{pie_proj}) = %{version}
%description
@@ -68,8 +72,6 @@ sed -e 's/role="test"/role="src"/' \
-i package.xml
cd %{sources}
-%patch -P0 -p1
-
# Check upstream version (often broken)
extver=$(sed -n '/#define PHP_YAML_VERSION/{s/.* "//;s/".*$//;p}' php_yaml.h)
if test "x${extver}" != "x%{upstream_version}%{?upstream_prever}"; then
@@ -113,26 +115,30 @@ mkdir NTS ZTS
cd %{sources}
%{__phpize}
+[ -f Makefile.global ] && GLOBAL=Makefile.global || GLOBAL=build/Makefile.global
+sed -e 's/INSTALL_ROOT/DESTDIR/' -i $GLOBAL
cd ../NTS
%configure \
--with-libdir=%{_lib} \
--with-php-config=%{__phpconfig}
-make %{?_smp_mflags}
+
+%make_build
%if %{with_zts}
cd ../ZTS
%configure \
--with-libdir=%{_lib} \
--with-php-config=%{__ztsphpconfig}
-make %{?_smp_mflags}
+
+%make_build
%endif
%install
%{?dtsenable}
-make -C NTS install INSTALL_ROOT=%{buildroot}
+%make_install -C NTS
# Install XML package description
install -Dpm 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml
@@ -141,7 +147,7 @@ install -Dpm 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml
install -Dpm644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name}
%if %{with_zts}
-make -C ZTS install INSTALL_ROOT=%{buildroot}
+%make_install -C ZTS
install -Dpm644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name}
%endif
@@ -197,6 +203,34 @@ REPORT_EXIT_STATUS=1 \
%changelog
+* Wed Nov 12 2025 Remi Collet <remi@remirepo.net> - 2.3.0-1
+- update to 2.3.0
+- drop patch merged upstream
+
+* Sat Sep 27 2025 Remi Collet <remi@remirepo.net> - 2.2.5-3
+- add patch for PHP 8.5.0RC1 from
+ https://github.com/php/pecl-file_formats-yaml/pull/95
+
+* Thu Sep 25 2025 Remi Collet <remi@remirepo.net> - 2.2.5-2
+- rebuild for PHP 8.5.0RC1
+- ignore 1 test with PHP 8.5 (NaN)
+
+* Mon Aug 4 2025 Remi Collet <remi@remirepo.net> - 2.2.5-1
+- update to 2.2.5
+- drop patch merged upstream
+
+* Wed Jul 30 2025 Remi Collet <remi@remirepo.net> - 2.2.4-2
+- add patch for PHP 8.5.0alpha3 from
+ https://github.com/php/pecl-file_formats-yaml/pull/92
+
+* Mon Oct 7 2024 Remi Collet <remi@remirepo.net> - 2.2.4-1
+- update to 2.2.4
+- drop patches merged upstream
+
+* Mon Sep 30 2024 Remi Collet <remi@remirepo.net> - 2.2.3-5
+- fix test suite with 8.4 using patch from
+ https://github.com/php/pecl-file_formats-yaml/pull/86
+
* Mon Feb 19 2024 Remi Collet <remi@remirepo.net> - 2.2.3-4
- fix incompatible-pointer-types using patch from
https://github.com/php/pecl-file_formats-yaml/pull/74
diff --git a/yaml-build.patch b/yaml-build.patch
deleted file mode 100644
index 4f74086..0000000
--- a/yaml-build.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-From 84d72fcdcf64f39a55a262db23b64b0b58b08a17 Mon Sep 17 00:00:00 2001
-From: Remi Collet <remi@remirepo.net>
-Date: Mon, 6 Mar 2023 09:29:07 +0100
-Subject: [PATCH] Fix [-Wincompatible-pointer-types] warning
-
----
- parse.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/parse.c b/parse.c
-index e63f3d8..17f70ba 100644
---- a/parse.c
-+++ b/parse.c
-@@ -531,7 +531,7 @@ void handle_sequence (parser_state_t *state, zval *retval) {
- /* apply callbacks to the collected node */
- if (Y_FILTER_FAILURE == apply_filter(
- retval, src_event, state->callbacks)) {
-- zval_ptr_dtor(&retval);
-+ zval_ptr_dtor(retval);
- ZVAL_UNDEF(retval);
- goto done;
- //TODO Sean-Der