diff options
author | Remi Collet <remi@remirepo.net> | 2024-11-26 07:10:36 +0100 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2024-11-26 07:10:36 +0100 |
commit | 84659bf5b74a551a0a487680ead526f2f8f2b49c (patch) | |
tree | c5253c65d3c26908a1f2504f3a593d977714f8a2 | |
parent | 32a793226cc463aa309d75ac5c4804a9b7a55152 (diff) |
open https://github.com/eduardok/libsmbclient-php/issues/106 broken for PHP 5
-rw-r--r-- | PHPINFO | 4 | ||||
-rw-r--r-- | REFLECTION | 2 | ||||
-rw-r--r-- | php-smbclient.spec | 13 |
3 files changed, 13 insertions, 6 deletions
@@ -2,5 +2,5 @@ smbclient smbclient Support => enabled -smbclient extension Version => 1.1.1 -libsmbclient library Version => 4.17.7 +smbclient extension Version => 1.1.2 +libsmbclient library Version => 4.19.9 @@ -1,4 +1,4 @@ -Extension [ <persistent> extension #122 smbclient version 1.1.1 ] { +Extension [ <persistent> extension #125 smbclient version 1.1.2 ] { - Constants [30] { Constant [ int SMBCLIENT_XATTR_CREATE ] { 1 } diff --git a/php-smbclient.spec b/php-smbclient.spec index d423950..813f2b7 100644 --- a/php-smbclient.spec +++ b/php-smbclient.spec @@ -32,8 +32,8 @@ Name: %{?scl_prefix}php-smbclient -Version: 1.1.1 -Release: 6%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Version: 1.1.2 +Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} Summary: PHP wrapper for libsmbclient @@ -44,6 +44,7 @@ Source0: https://pecl.php.net/get/%{sources}.tgz Source2: %{pecl_name}-phpunit.xml %endif +# See https://github.com/eduardok/libsmbclient-php/issues/106 Patch0: %{pecl_name}-upstream.patch BuildRequires: %{?dtsprefix}gcc @@ -85,7 +86,9 @@ sed -e 's/role="test"/role="src"/' \ -i package.xml cd %{sources} -%patch -P0 -p1 -b .up +if [ $(%{__php} -r 'echo PHP_VERSION_ID;') -lt 70000 ]; then +%patch -P0 -p1 -R -b .up +fi # Check extension version ver=$(sed -n '/define PHP_SMBCLIENT_VERSION/{s/.* "//;s/".*$//;p}' php_smbclient.h) @@ -187,6 +190,10 @@ cp %{SOURCE2} phpunit.xml %changelog +* Tue Nov 26 2024 Remi Collet <remi@remirepo.net> - 1.1.2-1 +- update to 1.1.2 +- open https://github.com/eduardok/libsmbclient-php/issues/106 broken for PHP 5 + * Mon Jan 29 2024 Remi Collet <remi@remirepo.net> - 1.1.1-6 - fix incompatible pointer types using upstream patch - build out of sources tree |