diff --git a/async-timeout-4.0.2.tar.gz b/async-timeout-4.0.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..d057d9314b3520b6c7ca034f50ae34e758258309 Binary files /dev/null and b/async-timeout-4.0.2.tar.gz differ diff --git a/python-async-timeout.spec b/python-async-timeout.spec index 68b1308f73c7187f677217ce35bdbfe9ac9caa75..cbc30fe54c598f7cc4f16505abda1da285fc56e5 100644 --- a/python-async-timeout.spec +++ b/python-async-timeout.spec @@ -1,39 +1,47 @@ %global _empty_manifest_terminate_build 0 -Name: python-async-timeout -Version: 3.0.1 -Release: 2 -Summary: Timeout context manager for asyncio programs -License: Apache-2.0 -URL: https://github.com/aio-libs/async_timeout/ -Source0: https://files.pythonhosted.org/packages/a1/78/aae1545aba6e87e23ecab8d212b58bb70e72164b67eb090b81bb17ad38e3/async-timeout-3.0.1.tar.gz -BuildArch: noarch - +%global common_description \ +async-timeout asyncio-compatible timeout context manager. Usage example The \ +context manager is useful in cases when you want to apply timeout logic around \ +block of code or in cases when asyncio. +Name: python-async-timeout +Version: 4.0.2 +Release: 1 +Summary: Timeout context manager for asyncio programs +License: Apache-2.0 +URL: https://github.com/aio-libs/async-timeout +Source0: https://files.pythonhosted.org/packages/54/6e/9678f7b2993537452710ffb1750c62d2c26df438aa621ad5fa9d1507a43a/async-timeout-4.0.2.tar.gz +BuildArch: noarch %description -asyncio-compatible timeout context manager. +%{common_description} %package -n python3-async-timeout -Summary: Timeout context manager for asyncio programs -Provides: python-async-timeout -BuildRequires: python3-devel -BuildRequires: python3-setuptools +Summary: Timeout context manager for asyncio programs +Provides: python-async-timeout +# Base build requires +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pbr +BuildRequires: python3-pip +BuildRequires: python3-wheel %description -n python3-async-timeout -asyncio-compatible timeout context manager. +%{common_description} %package help -Summary: Development documents and examples for async-timeout -Provides: python3-async-timeout-doc +Summary: Timeout context manager for asyncio programs +Provides: python3-async-timeout-doc %description help -asyncio-compatible timeout context manager. +%{common_description} %prep -%autosetup -n async-timeout-3.0.1 +%autosetup -n async-timeout-%{version} %build %py3_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 @@ -41,25 +49,26 @@ 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 + 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 + 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 + 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 + 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 + 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-async-timeout -f filelist.lst %dir %{python3_sitelib}/* @@ -67,6 +76,9 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog +* Wed Mar 20 2024 wangjing - 4.0.2-1 +- Upgrade package python3-async-timeout to version 4.0.2 + * Fri May 20 2022 liukuo - 3.0.1-2 - License compliance rectification