diff --git a/python-yaspin.spec b/python-yaspin.spec index de16ce0..d9c0427 100644 --- a/python-yaspin.spec +++ b/python-yaspin.spec @@ -1,78 +1,57 @@ %global _empty_manifest_terminate_build 0 -Name: python-yaspin -Version: 2.1.0 -Release: 2 +%global pypi_name yaspin + +Name: python-%{pypi_name} +Version: 2.3.0 +Release: 1 Summary: Yet Another Terminal Spinner License: MIT 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 -Requires: python3-termcolor -Requires: python3-dataclasses +BuildRequires: python3-devel +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 %description 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 Provides: python-yaspin -BuildRequires: python3-devel -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 +%description -n python3-%{pypi_name} Yaspin provides a full-featured terminal spinner to show the progress during long-hanging operations. %prep -%autosetup -n yaspin-2.1.0 +%autosetup -n %{pypi_name}-%{version} %build -%py3_build +%pyproject_build %install -%py3_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 . +%pyproject_install -%files -n python3-yaspin -f filelist.lst -%dir %{python3_sitelib}/* - -%files help -f doclist.lst -%{_docdir}/* +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.rst +%{python3_sitelib}/%{pypi_name} +%{python3_sitelib}/%{pypi_name}*.dist-info/ %changelog +* Fri Jun 16 2023 Dongxing Wang - 2.3.0-1 +- Upgrade to version 2.3.0 + * Wed Apr 06 2022 jiangxinyu - 2.1.0-2 - Add zlib to buildrequires diff --git a/yaspin-2.1.0.tar.gz b/yaspin-2.1.0.tar.gz deleted file mode 100644 index fbe9af6..0000000 Binary files a/yaspin-2.1.0.tar.gz and /dev/null differ diff --git a/yaspin-2.3.0.tar.gz b/yaspin-2.3.0.tar.gz new file mode 100644 index 0000000..47ee372 Binary files /dev/null and b/yaspin-2.3.0.tar.gz differ