From 76041d5500368be3096a4821310d0523dfaa98ae Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 23 Apr 2020 08:32:40 +0200 Subject: update to 2.1.0 raise dependency on PHP 7.1 fix 32-bit build using patch from https://github.com/php/pecl-file_formats-yaml/pull/45 --- php-pecl-yaml.spec | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'php-pecl-yaml.spec') diff --git a/php-pecl-yaml.spec b/php-pecl-yaml.spec index e0ddf03..2bd4e75 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-2019 Remi Collet +# Copyright (c) 2012-2020 Remi Collet # Fedora spec file for php-pecl-yaml # @@ -21,15 +21,17 @@ Summary: PHP Bindings for yaml Name: %{?sub_prefix}php-pecl-yaml -Version: 2.0.4 -Release: 4%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Version: 2.1.0 +Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: MIT -URL: http://pecl.php.net/package/yaml +URL: https://pecl.php.net/package/yaml -Source: http://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz +Source: https://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz + +Patch0: https://patch-diff.githubusercontent.com/raw/php/pecl-file_formats-yaml/pull/45.patch BuildRequires: %{?dtsprefix}gcc -BuildRequires: %{?scl_prefix}php-devel >= 7 +BuildRequires: %{?scl_prefix}php-devel >= 7.1 BuildRequires: %{?scl_prefix}php-pear BuildRequires: libyaml-devel @@ -52,10 +54,8 @@ Obsoletes: php56u-pecl-%{pecl_name} <= %{version} Obsoletes: php56w-pecl-%{pecl_name} <= %{version} Obsoletes: php70u-pecl-%{pecl_name} <= %{version} Obsoletes: php70w-pecl-%{pecl_name} <= %{version} -%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} @@ -96,6 +96,8 @@ sed -e 's/role="test"/role="src"/' \ -i package.xml cd NTS +%patch0 -p1 -b .pr45 + # 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 @@ -243,6 +245,12 @@ fi %changelog +* Thu Apr 23 2020 Remi Collet - 2.1.0-1 +- update to 2.1.0 +- raise dependency on PHP 7.1 +- fix 32-bit build using patch from + https://github.com/php/pecl-file_formats-yaml/pull/45 + * Tue Sep 03 2019 Remi Collet - 2.0.4-4 - rebuild for 7.4.0RC1 -- cgit