summaryrefslogtreecommitdiffstats
path: root/php-pecl-zip.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-zip.spec')
-rw-r--r--php-pecl-zip.spec8
1 files changed, 7 insertions, 1 deletions
diff --git a/php-pecl-zip.spec b/php-pecl-zip.spec
index 37a034e..0917fc0 100644
--- a/php-pecl-zip.spec
+++ b/php-pecl-zip.spec
@@ -43,13 +43,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-3.01
Group: Development/Languages
URL: https://pecl.php.net/package/zip
Source0: https://pecl.php.net/get/%{sources}.tgz
+Patch0: 0001-8.5-compat.patch
+
BuildRequires: make
BuildRequires: %{?dtsprefix}gcc
BuildRequires: %{?scl_prefix}php-devel
@@ -98,6 +100,7 @@ sed -e 's/role="test"/role="src"/' \
-i package.xml
cd %{sources}
+%patch -P0 -p1
sed -e '/PHP_ZIP_VERSION/s/1.22.dev/%{version}/' -i php74/php_zip.h
# Sanity check, really often broken
@@ -223,6 +226,9 @@ TEST_PHP_EXECUTABLE=%{__ztsphp} \
%changelog
+* Tue Jul 1 2025 Remi Collet <remi@remirepo.net> - 1.22.6-2
+- add upstream patch for 8.5
+
* Wed May 7 2025 Remi Collet <remi@remirepo.net> - 1.22.6-1
- update to 1.22.6