From 291f98c53be6fab5a330f2198a844558d36fd7f7ae34aef7669064f4fe47a11c Mon Sep 17 00:00:00 2001 From: Arjen de Korte Date: Wed, 15 Jan 2025 20:05:47 +0000 Subject: [PATCH] - Update to version 1.1.2 * Build fixes. OBS-URL: https://build.opensuse.org/package/show/server:php:extensions/php-smbclient?expand=0&rev=14 --- .gitattributes | 23 +++++++++ .gitignore | 1 + _multibuild | 4 ++ php-smbclient-rpmlintrc | 1 + php-smbclient.changes | 103 ++++++++++++++++++++++++++++++++++++++++ php-smbclient.spec | 78 ++++++++++++++++++++++++++++++ smbclient-1.1.1.tgz | 3 ++ smbclient-1.1.2.tgz | 3 ++ 8 files changed, 216 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _multibuild create mode 100644 php-smbclient-rpmlintrc create mode 100644 php-smbclient.changes create mode 100644 php-smbclient.spec create mode 100644 smbclient-1.1.1.tgz create mode 100644 smbclient-1.1.2.tgz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..e9f3445 --- /dev/null +++ b/_multibuild @@ -0,0 +1,4 @@ + + php7 + php8 + diff --git a/php-smbclient-rpmlintrc b/php-smbclient-rpmlintrc new file mode 100644 index 0000000..0866836 --- /dev/null +++ b/php-smbclient-rpmlintrc @@ -0,0 +1 @@ +addFilter("invalid-spec-name") diff --git a/php-smbclient.changes b/php-smbclient.changes new file mode 100644 index 0000000..6b500c3 --- /dev/null +++ b/php-smbclient.changes @@ -0,0 +1,103 @@ +------------------------------------------------------------------- +Tue Dec 3 21:13:15 UTC 2024 - Arjen de Korte + +- Update to version 1.1.2 + * Build fixes. + +------------------------------------------------------------------- +Tue Apr 18 17:57:48 UTC 2023 - Arjen de Korte + +- Update to version 1.1.1 + * Workaround for regression in libsmbclient 4.16.9 and 4.17.5. + +------------------------------------------------------------------- +Mon Apr 3 20:33:48 UTC 2023 - Arjen de Korte + +- Update to version 1.1.0 + * PHP 8 readiness +- Update to version 1.0.7 + * xattr fix + +------------------------------------------------------------------- +Sat Dec 10 10:32:12 UTC 2022 - Arjen de Korte + +- Remove php7 build for Tumbleweed (PHP 7.4 has reached EOL) + +------------------------------------------------------------------- +Sun Feb 28 22:52:22 UTC 2021 - Arjen de Korte + +- Update to version 1.0.6 + * ftruncate implemented on smb_streams + +------------------------------------------------------------------- +Fri Feb 19 18:59:18 UTC 2021 - Arjen de Korte + +- Mention rpmlintrc file in spec + + php-smbclient-rpmlintrc + +------------------------------------------------------------------- +Wed Feb 17 21:32:51 UTC 2021 - Arjen de Korte + +- Use _multibuild to also build for php8 + +------------------------------------------------------------------- +Thu Feb 11 12:30:02 UTC 2021 - Arjen de Korte + +- Update to version 1.0.5 + * Fixes possible segfault in php_smb_ops_close. + +------------------------------------------------------------------- +Fri Jan 22 10:06:14 UTC 2021 - Arjen de Korte + +- Update to version 1.0.4 + * Check if smbc_setOptionProtocols is available, as at least one + distro might have a libsmbclient that is too old. + +------------------------------------------------------------------- +Thu Jan 21 13:50:35 UTC 2021 - Arjen de Korte + +- Update to version 1.0.3 + * Add client min/max protocol to streams, and make either min/max + optional. +- Update to version 1.0.2 + * Introduces smbclient_client_protocols() to set min and max + protocol for negotiation. + +------------------------------------------------------------------- +Sun Jan 17 10:36:07 UTC 2021 - Arjen de Korte + +- Upgrade to version 1.0.1 + * Code fixes for PHP 7.4/8, and memory free, ReadTest added, + Travis build updated, and smbclient_state_init documentation fixed +- Remove patch (upstreamed) + - 0001-fix-incorrect-deallocation-of-zend_string.patch +- Use php_cfgdir and php_extdir macros to determine location of files + +------------------------------------------------------------------- +Fri Jan 11 13:41:36 UTC 2019 - Cristian Rodríguez + +- Upgrade to version 1.0.0 (boo#1123503) + * stream optimization: reuse previous connections (Remi) +- 0001-fix-incorrect-deallocation-of-zend_string.patch: zend_strings + are to be zend_string_release()'ed not efree()'ed. + +------------------------------------------------------------------- +Thu Dec 20 16:48:09 UTC 2018 - jweberhofer@weberhofer.at + +- Added php7-smbclient-fix_for_PHP_7.3.patch to allow building with PHP 7.3 + as discussed in gh#eduardok/libsmbclient-php#60 + +------------------------------------------------------------------- +Mon Jul 23 09:50:15 UTC 2018 - idonmez@suse.com + +- Cleanup with spec-cleaner + +------------------------------------------------------------------- +Tue Mar 27 23:55:54 UTC 2018 - crrodriguez@opensuse.org + +- Build module with -fvisibility=hidden + +------------------------------------------------------------------- +Mon Nov 20 15:15:07 UTC 2017 - crrodriguez@opensuse.org + +- Initial version for php 7 diff --git a/php-smbclient.spec b/php-smbclient.spec new file mode 100644 index 0000000..8108ff9 --- /dev/null +++ b/php-smbclient.spec @@ -0,0 +1,78 @@ +# +# spec file for package php-smbclient +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define pkg_name smbclient + +%define flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "" || (0%{?suse_version} >= 1550 && "%{flavor}" == "php7") +%define php_name php +ExclusiveArch: do-not-build +%else +%define php_name %{flavor} +%endif +%if 0%{?suse_version} <= 1500 +%define php_extdir %(%{__php_config} --extension-dir) +%define php_cfgdir %{_sysconfdir}/%{php_name}/conf.d +%endif + +Name: %{php_name}-%{pkg_name} +Version: 1.1.2 +Release: 0 +Summary: A PHP wrapper for libsmbclient +License: PHP-3.01 +Group: Productivity/Networking/Web/Servers +URL: https://pecl.php.net/package/smbclient +Source0: https://pecl.php.net/get/%{pkg_name}-%{version}.tgz +Source1: php-%{pkg_name}-rpmlintrc +BuildRequires: %{php_name}-devel +BuildRequires: pkgconfig +BuildRequires: pkgconfig(smbclient) +Requires: php(api) = %{php_core_api} +Requires: php(zend-abi) = %{php_zend_api} +Provides: php-smbclient = %{version} +Obsoletes: php-smbclient < %{version} + +%description +smbclient is a PHP extension that uses Samba's libsmbclient library to provide +Samba related functions and 'smb' streams to PHP programs. + +%prep +%setup -q -n %{pkg_name}-%{version} + +%build +export CFLAGS="%{optflags} -fvisibility=hidden" +%{__phpize} +%configure +%make_build + +%check +%make_build test PHP_EXECUTABLE=%{_bindir}/php NO_INTERACTION=1 + +%install +%make_install INSTALL_ROOT=%{buildroot} +mkdir -p %{buildroot}%{php_cfgdir} +cat > %{buildroot}%{php_cfgdir}/%{pkg_name}.ini << EOF +; comment out next line to disable %{pkg_name} extension in php +extension = %{pkg_name}.so +EOF + +%files +%config(noreplace) %{php_cfgdir}/%{pkg_name}.ini +%{php_extdir}/%{pkg_name}.so + +%changelog diff --git a/smbclient-1.1.1.tgz b/smbclient-1.1.1.tgz new file mode 100644 index 0000000..63e1ddf --- /dev/null +++ b/smbclient-1.1.1.tgz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:84520d5c73f8b7c9f590371c510ccf1f0d77405cf9a76726687359e6df9e96b2 +size 35405 diff --git a/smbclient-1.1.2.tgz b/smbclient-1.1.2.tgz new file mode 100644 index 0000000..b0f8470 --- /dev/null +++ b/smbclient-1.1.2.tgz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1e6a744563aac700815e571ad98b1135a84e840d44e6ac67997494c780a9cde7 +size 35517