From acfb86827d0e848c678bbdbaeb2d8d5109f6cb33 Mon Sep 17 00:00:00 2001 From: tigro Date: Sun, 5 Jan 2025 22:59:39 +0300 Subject: [PATCH] import python-async-lru-2.0.4-5.el10 --- .gitignore | 1 + .python-async-lru.metadata | 1 + SPECS/python-async-lru.spec | 104 ++++++++++++++++++++++++++++++++++++ 3 files changed, 106 insertions(+) create mode 100644 .gitignore create mode 100644 .python-async-lru.metadata create mode 100644 SPECS/python-async-lru.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..316b81f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/v2.0.4.tar.gz diff --git a/.python-async-lru.metadata b/.python-async-lru.metadata new file mode 100644 index 0000000..ca67be2 --- /dev/null +++ b/.python-async-lru.metadata @@ -0,0 +1 @@ +70420072c12a622f2328b5985fc8bdad79cd43ad SOURCES/v2.0.4.tar.gz diff --git a/SPECS/python-async-lru.spec b/SPECS/python-async-lru.spec new file mode 100644 index 0000000..0e55e53 --- /dev/null +++ b/SPECS/python-async-lru.spec @@ -0,0 +1,104 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.6.5) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 5; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +Name: python-async-lru +Version: 2.0.4 +Release: %autorelease +Summary: Simple lru_cache for asyncio +# SPDX +License: MIT +URL: https://github.com/aio-libs/async_lru +Source: https://github.com/aio-libs/async-lru/archive/refs/tags/v%{version}.tar.gz + +BuildArch: noarch +BuildRequires: python3-devel +BuildRequires: python3-pytest +BuildRequires: python3-pytest-asyncio +BuildRequires: python3-pytest-timeout + + +%global _description %{expand: +This package is 100% port of Python built-in +function functools.lru_cache for asyncio.} + + +%description %_description + +%package -n python3-async-lru +Summary: %{summary} + +%description -n python3-async-lru %_description + + +%prep +%autosetup -p1 -n async-lru-%{version} +# Removing pytest CLI options. Most of them are related to coverage. +sed -i "/addopts/d" setup.cfg + +%generate_buildrequires +%pyproject_buildrequires + + +%build +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files async_lru + + +%check +%pytest + + +%files -n python3-async-lru -f %{pyproject_files} +%doc README.rst + + +%changelog +* Sun Jan 05 2025 Arkady L. Shane - 2.0.4-5 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Fri Jul 19 2024 Fedora Release Engineering - 2.0.4-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jun 07 2024 Python Maint - 2.0.4-4 +- Rebuilt for Python 3.13 + +* Fri Jan 26 2024 Fedora Release Engineering - 2.0.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 2.0.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jul 31 2023 Lumir Balhar - 2.0.4-1 +- Update to 2.0.4 (rhbz#2227096) + +* Fri Jul 21 2023 Fedora Release Engineering - 2.0.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Mon Jul 17 2023 Lumir Balhar - 2.0.3-1 +- Update to 2.0.3 (rhbz#2221301), SPDX + +* Wed Jun 14 2023 Python Maint - 2.0.1-2 +- Rebuilt for Python 3.12 + +* Thu Feb 23 2023 Lumir Balhar - 2.0.1-1 +- Update to 2.0.1 (rhbz#2171288) + +* Fri Jan 20 2023 Fedora Release Engineering - 1.0.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Mon Dec 05 2022 Lumír Balhar - 1.0.3-1 +- Initial package + +## END: Generated by rpmautospec