14
0
Files
python-smbprotocol/python-smbprotocol.spec

80 lines
2.5 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-smbprotocol
#
Accepting request 869043 from home:mnhauke - Update to version 1.4.0 * Fixed up secure negotiation logic when connecting to older SMB dialects. * Will attempt to perform secure negotiation even on older dialects that may not implement it properly. * Added `ClientConfig` option `require_secure_negotiate` to globally turn off secure negotiation if the client wishes. * Fix explicit `ntlm` or `kerberos` authentication when the server response with the initial SPNEGO mech list token. - Update to version 1.3.0 * Changed initial credit request from 256 to 64 when creating the SMB session. + This is done to avoid overloading the SMB server. + If smbclient requires more credits to perform an operation it will request it automatically. * Improve credit handling when reading and writing large amounts of data to reduce the number of requests being made. * Fixed up write() in smbclient.open_file() to be able to write bytes greater than the max_write_size. * Fixed issue when receiving an unknown NtStatus error code from the server. * Added PipeBusy exception for STATUS_PIPE_NOT_AVAILABLE 0xC00000AD error responses. * Fix credit granting calculation when receiving a compound response. + Original logic granted len(responses) - 1 credits than what the server actually given causing errors when the client ran out of credits without it knowing. * Added auth_protocol to Session, ClientConfig, and OBS-URL: https://build.opensuse.org/request/show/869043 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-smbprotocol?expand=0&rev=18
2021-02-04 16:33:13 +00:00
# Copyright (c) 2021 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-smbprotocol
Version: 1.6.2
Release: 0
Summary: SMBv2/v3 client for Python 2 and 3
License: MIT
Group: Development/Languages/Python
URL: https://github.com/jborean93/smbprotocol
#Source: https://files.pythonhosted.org/packages/source/s/smbprotocol/smbprotocol-%%{version}.tar.gz
Source: https://github.com/jborean93/smbprotocol/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: %{python_module cryptography >= 2.0}
BuildRequires: %{python_module pyspnego}
BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-cryptography >= 2.0
Requires: python-pyspnego
Requires: python-six
Suggests: python-gssapi >= 1.4.1
BuildArch: noarch
%python_subpackages
%description
This library implements the SMBv2 and SMBv3 protocol.
Features
--------
- Negotiation of the SMB 2.0.2 protocol to SMB 3.1.1 (Windows 10/Server
2016)
- Authentication with both NTLM and Kerberos
- Message signing
- Message encryption (SMB 3.x.x+)
- Connect to a Tree/Share
- Opening of files, pipes and directories
- Set create contexts when opening files
- Read and writing of files and pipes
- Sending IOCTL commands
- Sending of multiple messages in one packet (compounding)
%prep
%setup -q -n smbprotocol-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%license LICENSE
%doc CHANGELOG.md README.md
%{python_sitelib}/*
%changelog