Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:languages:python
python-Send2Trash
python-Send2Trash.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-Send2Trash.spec of Package python-Send2Trash
# # spec file for package python-Send2Trash # # Copyright (c) 2024 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/ # %{?sle15_python_module_pythons} Name: python-Send2Trash Version: 1.8.3 Release: 0 Summary: Python library to send files to the Trash location License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/arsenetar/send2trash Source: https://github.com/arsenetar/send2trash/archive/refs/tags/%{version}.tar.gz#/Send2Trash-%{version}-gh.tar.gz BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: typelib(GObject) Requires: typelib(Gio) Requires(post): update-alternatives Requires(postun): update-alternatives Provides: python-send2trash = %{version}-%{release} 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 %pyproject_wheel %install %pyproject_install %python_clone -a %{buildroot}%{_bindir}/send2trash %python_expand %fdupes %{buildroot}%{$python_sitelib} %check export LANG=en_US.UTF8 %pytest %post %python_install_alternative send2trash %postun %python_uninstall_alternative send2trash %files %{python_files} %license LICENSE %doc CHANGES.rst README.rst %python_alternative %{_bindir}/send2trash %{python_sitelib}/send2trash %{python_sitelib}/Send2Trash-%{version}.dist-info %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor