From 468f3a80cc734a632837dbf6d4e35c59adc8c379 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 9 Jun 2021 11:52:00 +0200 Subject: add patch for test suite with 8.1 from https://github.com/m6w6/ext-apfd/pull/4 --- php-pecl-apfd.spec | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'php-pecl-apfd.spec') diff --git a/php-pecl-apfd.spec b/php-pecl-apfd.spec index 9809115..020b3ef 100644 --- a/php-pecl-apfd.spec +++ b/php-pecl-apfd.spec @@ -3,7 +3,7 @@ # # Fedora spec file for php-pecl-apfd # -# Copyright (c) 2015-2020 Remi Collet +# Copyright (c) 2015-2021 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # @@ -31,13 +31,16 @@ Summary: Always Populate Form Data Name: %{?sub_prefix}php-pecl-%{pecl_name} Version: 1.0.2 -Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Release: 4%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: BSD URL: https://pecl.php.net/package/%{pecl_name} Source0: https://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz +Patch0: %{pecl_name}-php81.patch + BuildRequires: %{?dtsprefix}gcc -BuildRequires: %{?scl_prefix}php-devel > 5.3 +BuildRequires: make +BuildRequires: %{?scl_prefix}php-devel BuildRequires: %{?scl_prefix}php-pear Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} @@ -53,24 +56,15 @@ Conflicts: %{?scl_prefix}php-pecl(http) < 2.4 %if "%{?packager}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel} # Other third party repo stuff -%if "%{php_version}" > "7.2" -Obsoletes: php72u-pecl-%{pecl_name} <= %{version} -%endif -%if "%{php_version}" > "7.3" -Obsoletes: php73-pecl-%{pecl_name} <= %{version} -%endif %if "%{php_version}" > "7.4" Obsoletes: php74-pecl-%{pecl_name} <= %{version} %endif %if "%{php_version}" > "8.0" Obsoletes: php80-pecl-%{pecl_name} <= %{version} %endif +%if "%{php_version}" > "8.1" +Obsoletes: php81-pecl-%{pecl_name} <= %{version} %endif - -%if 0%{?fedora} < 20 && 0%{?rhel} < 7 -# Filter shared private -%{?filter_provides_in: %filter_provides_in %{_libdir}/.*\.so$} -%{?filter_setup} %endif @@ -94,6 +88,8 @@ sed -e 's/role="test"/role="src"/' \ -i package.xml cd NTS +%patch0 -p1 + # Sanity check, really often broken extver=$(sed -n '/#define PHP_APFD_VERSION/{s/.* "//;s/".*$//;p}' php_apfd.h) if test "x${extver}" != "x%{version}%{?prever}"; then @@ -221,6 +217,10 @@ cd ../ZTS %changelog +* Wed Jun 9 2021 Remi Collet - 1.0.2-4 +- add patch for test suite with 8.1 from + https://github.com/m6w6/ext-apfd/pull/4 + * Wed Sep 30 2020 Remi Collet - 1.0.2-2 - rebuild for PHP 8.0.0RC1 -- cgit