forked from pool/python-pysmbc
- Rename to python-pysmbc to follow python package naming rules.
- Update to version 1.0.15.8 * No changelog - singlespec auto-conversion - Fix Url - 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, OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pysmbc?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal 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
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
3
pysmbc-1.0.15.8.tar.bz2
Normal file
3
pysmbc-1.0.15.8.tar.bz2
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0567c1789a911500b83c64becdaa0015c135cce0bcf59ec593df48859bebbf1d
|
||||
size 24691
|
128
python-pysmbc.changes
Normal file
128
python-pysmbc.changes
Normal file
@@ -0,0 +1,128 @@
|
||||
-------------------------------------------------------------------
|
||||
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.
|
||||
|
85
python-pysmbc.spec
Normal file
85
python-pysmbc.spec
Normal file
@@ -0,0 +1,85 @@
|
||||
#
|
||||
# spec file for package python-pysmbc
|
||||
#
|
||||
# Copyright (c) 2017 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-%{**}}
|
||||
%define oldpython python
|
||||
# Tests don't work in rpmbuild sandbox
|
||||
%bcond_with test
|
||||
Name: python-pysmbc
|
||||
Version: 1.0.15.8
|
||||
Release: 0
|
||||
Summary: Python bindings for samba clients (libsmbclient)
|
||||
License: GPL-2.0+
|
||||
Group: Development/Languages/Python
|
||||
Url: http://cyberelk.net/tim/software/pysmbc/
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pysmbc/pysmbc-%{version}.tar.bz2
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: libsmbclient-devel
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: python-rpm-macros
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module nose}
|
||||
%endif
|
||||
%ifpython2
|
||||
Obsoletes: %{oldpython}-smbc < %{version}
|
||||
Provides: %{oldpython}-smbc = %{version}
|
||||
%endif
|
||||
%ifpython3
|
||||
Obsoletes: python3-smbc < %{version}
|
||||
Provides: python3-smbc = %{version}
|
||||
%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}
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags}"
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
|
||||
%{python_expand chmod a+x %{buildroot}%{$python_sitearch}/smbc/xattr.py
|
||||
sed -i "s|^#!/usr/bin/python$|#!%__$python|" %{buildroot}%{$python_sitearch}/smbc/xattr.py
|
||||
$python -m compileall -d %{$python_sitearch} %{buildroot}%{$python_sitearch}/smbc/
|
||||
$python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitearch}/smbc/
|
||||
%fdupes %{buildroot}%{$python_sitearch}
|
||||
}
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
pushd tests
|
||||
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch}
|
||||
$python -B -m nose .
|
||||
}
|
||||
%endif
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING NEWS
|
||||
%{python_sitearch}/*
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user