From ea08661243802488eca21f45afdee164298069f7 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 11 May 2022 14:18:55 +0200 Subject: add upstream patch for PHP 8.2 --- php-pecl-zip.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'php-pecl-zip.spec') diff --git a/php-pecl-zip.spec b/php-pecl-zip.spec index 446d07b..60ef394 100644 --- a/php-pecl-zip.spec +++ b/php-pecl-zip.spec @@ -34,13 +34,15 @@ Summary: A ZIP archive management extension Name: %{?scl_prefix}php-pecl-zip Version: %{upstream_version}%{?upstream_prever:~%{upstream_lower}} -Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: PHP Group: Development/Languages URL: https://pecl.php.net/package/zip Source0: https://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upstream_prever}.tgz +Patch0: 0001-support-8.2.patch + BuildRequires: make BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?scl_prefix}php-devel @@ -144,6 +146,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_ZIP_VERSION/{s/.* "//;s/".*$//;p}' php7/php_zip.h) if test "x${extver}" != "x%{upstream_version}%{?upstream_prever}" -a "x${extver}" != "x%{upstream_version}-%{?upstream_prever}"; then @@ -281,6 +285,9 @@ fi %changelog +* Wed May 11 2022 Remi Collet - 1.20.1-2 +- add upstream patch for PHP 8.2 + * Mon May 2 2022 Remi Collet - 1.20.1-1 - update to 1.20.1 -- cgit