From 6faf94065b10084efa237fcd78d68f5f729cb059 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 22 Feb 2022 15:17:49 +0100 Subject: fix gh#65 yaml_parse_url method not working using patch from https://github.com/php/pecl-file_formats-yaml/pull/66 --- php-pecl-yaml.spec | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'php-pecl-yaml.spec') diff --git a/php-pecl-yaml.spec b/php-pecl-yaml.spec index f8c5217..20cdeb0 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-2018 Remi Collet +# Copyright (c) 2012-2022 Remi Collet # Fedora spec file for php-pecl-yaml # @@ -22,14 +22,16 @@ Summary: PHP Bindings for yaml Name: %{?sub_prefix}php-pecl-yaml Version: 2.0.4 -Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Release: 5%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: MIT URL: http://pecl.php.net/package/yaml Source: http://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz +Patch0: %{pecl_name}-pr66.patch + BuildRequires: %{?dtsprefix}gcc -BuildRequires: %{?scl_prefix}php-devel >= 7 +BuildRequires: %{?scl_prefix}php-devel >= 7.0 BuildRequires: %{?scl_prefix}php-pear BuildRequires: libyaml-devel @@ -92,6 +94,8 @@ sed -e 's/role="test"/role="src"/' \ -i package.xml cd NTS +%patch0 -p1 -b .pr66 + # Check upstream version (often broken) extver=$(sed -n '/#define PHP_YAML_VERSION/{s/.* "//;s/".*$//;p}' php_yaml.h) if test "x${extver}" != "x%{version}%{?prever}"; then @@ -239,6 +243,10 @@ fi %changelog +* Tue Feb 22 2022 Remi Collet - 2.0.4-2 +- fix gh#65 yaml_parse_url method not working using patch from + https://github.com/php/pecl-file_formats-yaml/pull/66 + * Sat Nov 24 2018 Remi Collet - 2.0.4-1 - update to 2.0.4 -- cgit