14
0
forked from pool/python-pysmbc

- Convert to pip-based build

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pysmbc?expand=0&rev=19
This commit is contained in:
2025-06-10 12:32:44 +00:00
committed by Git OBS Bridge
commit aac1070fbe
5 changed files with 303 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
pysmbc-1.0.25.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:22f1715df82589fd9cc4253feab390b4ef0babf14f64513cd8d07b3789963226
size 33192

201
python-pysmbc.changes Normal file
View File

@@ -0,0 +1,201 @@
-------------------------------------------------------------------
Tue Jun 10 12:32:12 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Thu Dec 14 21:06:17 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 1.0.25.1:
* Introduced use_kerberos keyword to allow Kerberos authentication
* Added new test cases to verify setxattr() input and getxattr()
output
* smbc/context.c: Fix PY_MAJOR_VERSION define
-------------------------------------------------------------------
Wed Feb 2 12:05:18 UTC 2022 - Samuel Cabrero <scabrero@suse.de>
- Remove libsmbclient-devel BuildRequires in favor of
pkgconfig(smbclient); (jsc#SLE-20577);
-------------------------------------------------------------------
Tue Nov 23 06:59:19 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
- Remove python2 guard so we always Provide/Obsolete the old name.
-------------------------------------------------------------------
Thu Jan 14 12:05:43 UTC 2021 - Benjamin Greiner <code@bnavigator.de>
- Update to 1.0.23
No changelog provided. From the git log:
* Python 3 API changes
* Rework Context.getxattr() To Only Allocate Needed Buffer Space
- Remove evil ifpython3. Let the macros figure out the correct
provides/obsoletes tags. gh#openSUSE/python-rpm-macros#66
- Upstream is moving to pytest, but the tests still need a running
samba server.
-------------------------------------------------------------------
Fri Aug 7 08:28:57 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
- update to 1.0.22
* Add File_seekable #52
* Rework some routines to fix holes in error checking #50
* Fix File_read when the current location is not zero #49
* Add File_flush #48
* Add File_tell #47
* Added SAMBA protocol version optional variable #41
-------------------------------------------------------------------
Mon Mar 23 12:56:53 UTC 2020 - pgajdos@suse.com
- version update to 1.0.19
* no upstream changelog found (NEWS not updated)
-------------------------------------------------------------------
Mon Jan 6 03:56:31 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 1.0.18:
+ New in 1.0.18:
* Support Fix memleak for auth_fn #32
* Support readinto #31
+ New in 1.0.17:
* Support buffer protocol #30
* exceptions: use a shared superclass #28
* setup: autodetect required library dirs #27
-------------------------------------------------------------------
Mon Jul 22 14:55:40 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 1.0.16:
* no changelog
-------------------------------------------------------------------
Thu Sep 7 16:38:12 UTC 2017 - toddrme2178@gmail.com
- Rename to python-pysmbc to follow python package naming rules.
- Update to version 1.0.15.8
* No changelog
-------------------------------------------------------------------
Thu Aug 24 13:55:05 UTC 2017 - jmatejek@suse.com
- singlespec auto-conversion
-------------------------------------------------------------------
Sat Sep 3 18:29:28 UTC 2016 - p.drouand@gmail.com
- Fix Url
-------------------------------------------------------------------
Fri Jan 15 15:49:39 UTC 2016 - termim@gmail.com
- Remove python-smbc-pkg-config.patch - applied upstream
- Remove pre_checking.sh - no need to copy python files to python3
- Update to version 1.0.15.5:
* fix NUL-termination bug
- Update to version 1.0.15.4:
* added some constants
- Update to version 1.0.15.3:
* added smbc.ConnectionRefusedError
- Update to version 1.0.15.1:
* Return direntry with unicode string
- Update to version 1.0.15:
* Working with Python3
- Update to version 1.0.14.2:
* added smbc.NotDirectoryError
- Update to version 1.0.14.1:
* Fix for Python 2.6
- Update to version 1.0.14:
* Context.set_credentials_with_fallback()
* Context.getxattr, Context.setxattr
* smbc.XATTR, smbc.XATTR_ACL, smbc.XATTR_ACL_SID, smbc.XATTR_ALL,
smbc.XATTR_ALL_SID, smbc.XATTR_FLAG_CREATE, smbc.XATTR_FLAG_REPLACE,
smbc.XATTR_GROUP, smbc.XATTR_GROUP_SID, smbc.XATTR_OWNER,
smbc.XATTR_OWNER_SID, smbc.XATTR_REVISION
-------------------------------------------------------------------
Mon Jun 2 15:07:19 UTC 2014 - dvaleev@suse.com
- Add pkgconfig to BuildRequires to fix build
-------------------------------------------------------------------
Mon Sep 2 21:41:19 UTC 2013 - zaitor@opensuse.org
- Add python-smbc-pkg-config.patch, fixes build with samba 4.
-------------------------------------------------------------------
Tue Jan 15 21:33:03 UTC 2013 - p.drouand@gmail.com
- Initial python3 support
-------------------------------------------------------------------
Wed Feb 15 20:13:29 UTC 2012 - dimstar@opensuse.org
- Update to version 1.0.13:
+ Call initial libsmbclient functions in right order.
+ Memory/connection leaks.
-------------------------------------------------------------------
Tue Dec 20 13:54:30 UTC 2011 - vuntz@opensuse.org
- Update to version 1.0.12:
+ Add Context.optionUseKerberos
+ Add Context.optionFallbackAfterKerberos
-------------------------------------------------------------------
Fri May 27 15:22:24 CEST 2011 - vuntz@opensuse.org
- Update to version 1.0.11:
+ read/iternext now use Bytes type
-------------------------------------------------------------------
Wed Nov 10 14:02:41 CET 2010 - vuntz@opensuse.org
- Update to version 1.0.10:
+ smbc.NoSpaceError
+ Now buildable against Python 3
-------------------------------------------------------------------
Mon Sep 6 14:35:08 UTC 2010 - coolo@novell.com
- Fix build with python 2.7, by fixing a filename in the file list.
-------------------------------------------------------------------
Mon Aug 23 10:22:33 CEST 2010 - dimstar@opensuse.org
- Update to version 1.0.9:
+ iteration file read
+ rewrite tests for python nose
+ fixed stat portability issue
+ smbc.NoEntryError
+ smbc.ExistsError
+ smbc.NotEmptyError
+ smbc.TimedOutError
+ File.seek() and File.lseek()
-------------------------------------------------------------------
Fri Aug 6 17:21:51 CEST 2010 - vuntz@opensuse.org
- Update to version 1.0.8:
+ Context.chmod()
+ Context.rename()
+ Context.unlink()
+ Context.creat()
- Changes from version 1.0.7:
+ Context.open: omissible flags and mode
+ File: omissible flags and mode
+ File.read()
+ smbc.PermissionError
+ Context.mkdir()
+ Context.stat()
+ File.fstat()
+ File.write()
+ File.close()
-------------------------------------------------------------------
Sat Feb 21 23:57:23 CET 2009 - vuntz@novell.com
- Split from system-config-printer.

75
python-pysmbc.spec Normal file
View File

@@ -0,0 +1,75 @@
#
# spec file for package python-pysmbc
#
# Copyright (c) 2025 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 oldpython python
# Tests need a running samba server
%bcond_with test
Name: python-pysmbc
Version: 1.0.25.1
Release: 0
Summary: Python bindings for samba clients (libsmbclient)
License: GPL-2.0-or-later
Group: Development/Languages/Python
URL: https://github.com/hamano/pysmbc
Source: https://files.pythonhosted.org/packages/source/p/pysmbc/pysmbc-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: pkgconfig
BuildRequires: python-rpm-macros
BuildRequires: pkgconfig(smbclient)
Obsoletes: %{oldpython}-smbc < %{version}
Provides: %{oldpython}-smbc = %{version}
Obsoletes: python-smbc < %{version}-%{release}
Provides: python-smbc = %{version}-%{release}
%if %{with test}
BuildRequires: %{python_module pytest}
%endif
%python_subpackages
%description
This is a set of Python bindings for the libsmbclient library
from the samba project.
%prep
%setup -q -n pysmbc-%{version}
sed -i '1{/^#!.*/ d}' smbc/xattr.py
%build
export CFLAGS="%{optflags}"
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%if %{with test}
%check
%pytest_arch
%endif
%files %{python_files}
%license COPYING
%doc NEWS
%{python_sitearch}/smbc
%{python_sitearch}/_smbc*
%{python_sitearch}/pysmbc-%{version}*-info
%changelog