68 lines
2.2 KiB
RPMSpec
68 lines
2.2 KiB
RPMSpec
%global _empty_manifest_terminate_build 0
|
|
Name: python-Send2Trash
|
|
Version: 1.8.3
|
|
Release: 1
|
|
Summary: Send file to trash natively under Mac OS X, Windows and Linux.
|
|
License: BSD
|
|
URL: https://github.com/arsenetar/send2trash
|
|
Source0: https://files.pythonhosted.org/packages/fd/3a/aec9b02217bb79b87bbc1a21bc6abc51e3d5dcf65c30487ac96c0908c722/Send2Trash-1.8.3.tar.gz
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
Python library to natively send files to Trash (or Recycle bin) on all platforms.
|
|
|
|
%package -n python3-Send2Trash
|
|
Summary: Send file to trash natively under Mac OS X, Windows and Linux.
|
|
Provides: python-Send2Trash = %{version}-%{release}
|
|
BuildRequires: python3-devel
|
|
BuildRequires: zlib >= 1.2.11
|
|
BuildRequires: python3-pip
|
|
BuildRequires: python3-wheel
|
|
BuildRequires: python3-setuptools
|
|
%description -n python3-Send2Trash
|
|
Python library to natively send files to Trash (or Recycle bin) on all platforms.
|
|
|
|
%package help
|
|
Summary: Development documents and examples for Send2Trash
|
|
Provides: python3-Send2Trash-doc
|
|
%description help
|
|
Python library to natively send files to Trash (or Recycle bin) on all platforms.
|
|
|
|
%prep
|
|
%autosetup -n Send2Trash-%{version}
|
|
|
|
%build
|
|
%pyproject_build
|
|
|
|
%install
|
|
%pyproject_install Send2Trash==%{version}
|
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
|
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
|
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
|
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
|
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
|
if [ -f README.rst ]; then cp -af README.rst %{buildroot}/%{_pkgdocdir}; fi
|
|
if [ -f README.md ]; then cp -af README.md %{buildroot}/%{_pkgdocdir}; fi
|
|
if [ -f README.txt ]; then cp -af README.txt %{buildroot}/%{_pkgdocdir}; fi
|
|
|
|
%files -n python3-Send2Trash
|
|
%{python3_sitelib}/*
|
|
%{_bindir}/send2trash
|
|
|
|
%files help
|
|
%{_docdir}/*
|
|
|
|
%changelog
|
|
* Thu Apr 25 2024 zhaojingyu <zhaojingyu@kylinos.cn> - 1.8.3-1
|
|
- Update package to version 1.8.3
|
|
- Fix minor flake8 error that can be ignored
|
|
|
|
* Fri May 05 2023 wangjunqi <wangjunqi@kylinos.cn> - 1.8.2-1
|
|
- Update package to version 1.8.2
|
|
|
|
* Fri Apr 08 2022 liqiuyu <liqiuyu@kylinos.cn> - 1.8.0-2
|
|
- Add zlib to buildrequires
|
|
|
|
* Fri Dec 03 2021 Python_Bot <Python_Bot@openeuler.org> -1.8.0-1
|
|
- Package Init
|