!5 Update to upstream version 2.3.0 for termcolor upgraded

From: @desert-sailor 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
This commit is contained in:
openeuler-ci-bot 2023-06-16 06:24:27 +00:00 committed by Gitee
commit 0e50c0788d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 29 additions and 50 deletions

View File

@ -1,78 +1,57 @@
%global _empty_manifest_terminate_build 0 %global _empty_manifest_terminate_build 0
Name: python-yaspin %global pypi_name yaspin
Version: 2.1.0
Release: 2 Name: python-%{pypi_name}
Version: 2.3.0
Release: 1
Summary: Yet Another Terminal Spinner Summary: Yet Another Terminal Spinner
License: MIT License: MIT
URL: https://github.com/pavdmyt/yaspin URL: https://github.com/pavdmyt/yaspin
Source0: https://files.pythonhosted.org/packages/6a/b2/144d100c915784ab551e0f7809aaecdd103786a227b0f30db341ffe649be/yaspin-2.1.0.tar.gz Source0: https://files.pythonhosted.org/packages/e7/d3/9dc42eaa5a41d64f83b6fcf68aef0993cc9be94dc3ea14038270680ff4e1/yaspin-2.3.0.tar.gz
BuildArch: noarch BuildArch: noarch
Requires: python3-termcolor BuildRequires: python3-devel
Requires: python3-dataclasses BuildRequires: python3-setuptools
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-editables
BuildRequires: python3-hatch-vcs
BuildRequires: python3-hatchling
BuildRequires: python3-virtualenv
BuildRequires: python3-poetry-core
BuildRequires: python3-termcolor
BuildRequires: zlib >= 1.2.11 BuildRequires: zlib >= 1.2.11
%description %description
Yaspin provides a full-featured terminal spinner to show the progress during long-hanging operations. Yaspin provides a full-featured terminal spinner to show the progress during long-hanging operations.
%package -n python3-yaspin %package -n python3-%{pypi_name}
Summary: Yet Another Terminal Spinner Summary: Yet Another Terminal Spinner
Provides: python-yaspin Provides: python-yaspin
BuildRequires: python3-devel %description -n python3-%{pypi_name}
BuildRequires: python3-setuptools
%description -n python3-yaspin
Yaspin provides a full-featured terminal spinner to show the progress during long-hanging operations.
%package help
Summary: Development documents and examples for yaspin
Provides: python3-yaspin-doc
%description help
Yaspin provides a full-featured terminal spinner to show the progress during long-hanging operations. Yaspin provides a full-featured terminal spinner to show the progress during long-hanging operations.
%prep %prep
%autosetup -n yaspin-2.1.0 %autosetup -n %{pypi_name}-%{version}
%build %build
%py3_build %pyproject_build
%install %install
%py3_install %pyproject_install
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
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%files -n python3-yaspin -f filelist.lst %files -n python3-%{pypi_name}
%dir %{python3_sitelib}/* %license LICENSE
%doc README.rst
%files help -f doclist.lst %{python3_sitelib}/%{pypi_name}
%{_docdir}/* %{python3_sitelib}/%{pypi_name}*.dist-info/
%changelog %changelog
* Fri Jun 16 2023 Dongxing Wang <dxwangk@isoftstone.com> - 2.3.0-1
- Upgrade to version 2.3.0
* Wed Apr 06 2022 jiangxinyu <jiangxinyu@kylinos.cn> - 2.1.0-2 * Wed Apr 06 2022 jiangxinyu <jiangxinyu@kylinos.cn> - 2.1.0-2
- Add zlib to buildrequires - Add zlib to buildrequires

Binary file not shown.

BIN
yaspin-2.3.0.tar.gz Normal file

Binary file not shown.