Accepting request 536642 from home:TheBlackCat:branches:devel:languages:python

- Renamed to python-Send2Trash to follow openSUSE pyhon package
  naming guidelines
- Implement single-spec version
- Update to Version 1.4.1
  * Fix crash on Windows introduced in v1.4.0. Oops… (#14)
- Update to Version Version 1.4.0
  * Use bytes instead of str for internal path handling in plat_other. (#13)
- Update to Version Version 1.3.1
  * Throw WindowsError instead of OSError in plat_win. (#7)
  * Fix TypeError on python 2 in plat_other. (#12)
- created package using py2pack

OBS-URL: https://build.opensuse.org/request/show/536642
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Send2Trash?expand=0&rev=1
This commit is contained in:
Todd R 2017-10-26 03:03:36 +00:00 committed by Git OBS Bridge
commit dcfc681f74
5 changed files with 117 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
Send2Trash-1.4.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:55e70d96b61a6c05911c96bb14ef313d5dc70d3e0197929dcc868870b58a1196
size 6068

20
python-Send2Trash.changes Normal file
View File

@ -0,0 +1,20 @@
-------------------------------------------------------------------
Fri Oct 20 16:18:31 UTC 2017 - toddrme2178@gmail.com
- Renamed to python-Send2Trash to follow openSUSE pyhon package
naming guidelines
- Implement single-spec version
- Update to Version 1.4.1
* Fix crash on Windows introduced in v1.4.0. Oops… (#14)
- Update to Version Version 1.4.0
* Use bytes instead of str for internal path handling in plat_other. (#13)
- Update to Version Version 1.3.1
* Throw WindowsError instead of OSError in plat_win. (#7)
* Fix TypeError on python 2 in plat_other. (#12)
-------------------------------------------------------------------
Fri Sep 27 13:48:57 UTC 2013 - barendartchuk@suse.com
- created package using py2pack

70
python-Send2Trash.spec Normal file
View File

@ -0,0 +1,70 @@
#
# spec file for package python-Send2Trash
#
# 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-%{**}}
# test scripts missing
%bcond_with test
%define oldpython python
Name: python-Send2Trash
Version: 1.4.1
Release: 0
License: BSD-3-Clause
Summary: Send file to trash natively under Mac OS X, Windows and Linux
Url: https://github.com/hsoft/send2trash
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/S/Send2Trash/Send2Trash-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
Recommends: python-gobject
%ifpython2
Obsoletes: %{oldpython}-send2trash < %{version}
Provides: %{oldpython}-send2trash = %{version}
%endif
BuildArch: noarch
%python_subpackages
%description
Send2Trash is a small package that sends files to the Trash (or Recycle Bin) natively and on
all platforms. On OS X, it uses native FSMoveObjectToTrashSync Cocoa calls, on Windows, it
uses native (and ugly) SHFileOperation win32 calls. On other platforms, if PyGObject and
GIO are available, it will use this. Otherwise, it will fallback to its own implementation
of the trash specifications from freedesktop.org.
%prep
%setup -q -n Send2Trash-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
%check
%python_exec setup.py test
%endif
%files %{python_files}
%defattr(-,root,root,-)
%doc CHANGES.rst README.rst
%{python_sitelib}/*
%changelog