From 6ab913b164493f95aceaf412e2108d7369a4f9c6 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 3 Apr 2023 16:20:15 +0200 Subject: add workaround for regression in libsmbclient 4.16.9/4.17.5 from https://github.com/eduardok/libsmbclient-php/pull/100 --- php-smbclient.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'php-smbclient.spec') diff --git a/php-smbclient.spec b/php-smbclient.spec index 8c55e6b..a815019 100644 --- a/php-smbclient.spec +++ b/php-smbclient.spec @@ -39,7 +39,7 @@ Version: 1.1.0 %if 0%{?gh_date} Release: 0.9.%{gh_date}git%{gh_short}%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} %else -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;')}} %endif Summary: PHP wrapper for libsmbclient @@ -55,6 +55,8 @@ Source0: https://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz Source2: %{pecl_name}-phpunit.xml %endif +Patch0: %{pecl_name}-bug98.patch + BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?scl_prefix}php-devel BuildRequires: %{?scl_prefix}php-pear @@ -117,6 +119,8 @@ sed -e 's/role="test"/role="src"/' \ -i package.xml cd NTS +%patch -P0 -p1 -b .pr100 + # Check extension version ver=$(sed -n '/define PHP_SMBCLIENT_VERSION/{s/.* "//;s/".*$//;p}' php_smbclient.h) if test "$ver" != "%{version}%{?prever}%{?gh_date:-dev}"; then @@ -234,6 +238,10 @@ fi %changelog +* Mon Apr 3 2023 Remi Collet - 1.1.0-2 +- add workaround for regression in libsmbclient 4.16.9/4.17.5 + from https://github.com/eduardok/libsmbclient-php/pull/100 + * Mon Apr 3 2023 Remi Collet - 1.1.0-1 - update to 1.1.0 - drop patch merged upstream -- cgit