File python-smbprotocol.spec of Package python-smbprotocol

# spec file for package python-smbprotocol
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# 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

%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           python-smbprotocol
Version:        0.1.1
Release:        0
Summary:        SMBv2/v3 client for Python 2 and 3
License:        MIT
Group:          Development/Languages/Python
BuildRequires:  %{python_module setuptools}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
Requires:       python-cryptography >= 2.0
Requires:       python-ntlm-auth
Requires:       python-pyasn1
Requires:       python-six
Suggests:       python-gssapi >= 1.4.1
Suggests:       python-ordereddict
BuildArch:      noarch
BuildRequires:  %{python_module cryptography >= 2.0}
BuildRequires:  %{python_module ntlm-auth}
BuildRequires:  %{python_module pyasn1}
BuildRequires:  %{python_module pytest}
BuildRequires:  %{python_module six}

This library implements the SMBv2 and SMBv3 protocol.

-  Negotiation of the SMB 2.0.2 protocol to SMB 3.1.1 (Windows 10/Server
-  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)

%setup -q -n smbprotocol-%{version}


%python_expand %fdupes %{buildroot}%{$python_sitelib}

%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_version}

%files %{python_files}
%license LICENSE

openSUSE Build Service is sponsored by