python-Send2Trash/python-Send2Trash.spec

64 lines
2.1 KiB
RPMSpec
Raw Normal View History

2021-12-03 16:02:27 +08:00
%global _empty_manifest_terminate_build 0
Name: python-Send2Trash
2023-05-05 09:51:01 +08:00
Version: 1.8.2
Release: 1
2021-12-03 16:02:27 +08:00
Summary: Send file to trash natively under Mac OS X, Windows and Linux.
License: BSD
URL: https://github.com/arsenetar/send2trash
2023-05-05 09:51:01 +08:00
Source0: https://files.pythonhosted.org/packages/4a/d2/d4b4d8b1564752b4e593c6d007426172b6574df5a7c07322feba010f5551/Send2Trash-1.8.2.tar.gz
2021-12-03 16:02:27 +08:00
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.
2023-05-05 09:51:01 +08:00
Provides: python-Send2Trash = %{version}-%{release}
2021-12-03 16:02:27 +08:00
BuildRequires: python3-devel
BuildRequires: zlib >= 1.2.11
2023-05-05 09:51:01 +08:00
BuildRequires: python3-pip
BuildRequires: python3-wheel
2021-12-03 16:02:27 +08:00
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
2023-05-05 09:51:01 +08:00
%autosetup -n Send2Trash-%{version}
2021-12-03 16:02:27 +08:00
%build
2023-05-05 09:51:01 +08:00
%pyproject_build
2021-12-03 16:02:27 +08:00
%install
2023-05-05 09:51:01 +08:00
%pyproject_install Send2Trash==%{version}
2021-12-03 16:02:27 +08:00
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
2023-05-05 09:51:01 +08:00
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
2021-12-03 16:02:27 +08:00
2023-05-05 09:51:01 +08:00
%files -n python3-Send2Trash
%{python3_sitelib}/*
%{_bindir}/send2trash
2021-12-03 16:02:27 +08:00
2023-05-05 09:51:01 +08:00
%files help
2021-12-03 16:02:27 +08:00
%{_docdir}/*
%changelog
2023-05-05 09:51:01 +08:00
* 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
2021-12-03 16:02:27 +08:00
* Fri Dec 03 2021 Python_Bot <Python_Bot@openeuler.org> -1.8.0-1
- Package Init