%global _empty_manifest_terminate_build 0 Name: python-Send2Trash Version: 1.8.2 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/4a/d2/d4b4d8b1564752b4e593c6d007426172b6574df5a7c07322feba010f5551/Send2Trash-1.8.2.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 * Fri May 05 2023 wangjunqi - 1.8.2-1 - Update package to version 1.8.2 * Fri Apr 08 2022 liqiuyu - 1.8.0-2 - Add zlib to buildrequires * Fri Dec 03 2021 Python_Bot -1.8.0-1 - Package Init