commit c6637ec7610d70562bd3049bb7b4416509660847cd2056eeb5572382ef861687 Author: Dirk Mueller Date: Fri Sep 7 21:40:44 2018 +0000 Accepting request 633777 from home:mnhauke Initial package for python-smbprotocol OBS-URL: https://build.opensuse.org/request/show/633777 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-smbprotocol?expand=0&rev=1 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/python-smbprotocol-0.1.0.tar.gz b/python-smbprotocol-0.1.0.tar.gz new file mode 100644 index 0000000..fe42b4d --- /dev/null +++ b/python-smbprotocol-0.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3070837255861e8197e6278eec6397ac7e785625c97a0792ca87187ef0c9658e +size 93786 diff --git a/python-smbprotocol.changes b/python-smbprotocol.changes new file mode 100644 index 0000000..6f446a2 --- /dev/null +++ b/python-smbprotocol.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu Sep 6 17:42:06 UTC 2018 - mardnh@gmx.de + +- Initial package, version 0.1.0 diff --git a/python-smbprotocol.spec b/python-smbprotocol.spec new file mode 100644 index 0000000..d172806 --- /dev/null +++ b/python-smbprotocol.spec @@ -0,0 +1,82 @@ +# +# spec file for package python-smbprotocol +# +# Copyright (c) 2018 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 http://bugs.opensuse.org/ + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-smbprotocol +Version: 0.1.0 +Release: 0 +Summary: Interact with a server using the SMB 2/3 Protocol +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 devel} +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 six} +BuildRequires: %{python_module pytest} +%python_subpackages + +%description +SMBv2 and v3 Client for both Python 2 and 3. +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 +%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_version} + +%files %{python_files} +%license LICENSE +%doc CHANGELOG.md README.md +%{python_sitelib}/* + +%changelog