From b99e62b650664508266e01fb2082549b76e492cf Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 10 Aug 2024 11:19:52 +0200 Subject: [PATCH] package created using the webbuild interface [release 2.0.4-1mamba;Fri Aug 09 2024] --- README.md | 2 ++ python-async-lru.spec | 51 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 python-async-lru.spec diff --git a/README.md b/README.md index f2090d7..c4289fb 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-async-lru +Simple LRU cache for asyncio. + diff --git a/python-async-lru.spec b/python-async-lru.spec new file mode 100644 index 0000000..8f930c5 --- /dev/null +++ b/python-async-lru.spec @@ -0,0 +1,51 @@ +%define pkgname %(echo %name | cut -d- -f2- | tr - _) +Name: python-async-lru +Version: 2.0.4 +Release: 1mamba +Summary: Simple LRU cache for asyncio +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/aio-libs/async-lru +Source: https://pypi.debian.net/async-lru/async-lru-%{version}.tar.gz +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: libpython311-devel +## AUTOBUILDREQ-END + +%description +%{summary}. + +%if 0%{?with_pyver} +%pyver_package +%endif + +%prep +%setup -q -n async-lru-%{version} + +%build +CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%{__python} -m installer --destdir=%{buildroot} dist/*.whl + +#%if "%{?with_pyver}" != "3" +## Rename any conflicting file outside of python site packages tree +#for f in %{_bindir}/pdm; do +# mv %{buildroot}${f}{,-%{?pyappend}} +#done +#%endif + +%files %{?pyappend} +%defattr(-,root,root) +%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info +%{python_sitelib}/%{pkgname}-%{version}.dist-info/* +%dir %{python_sitelib}/%{pkgname} +%{python_sitelib}/%{pkgname}/* +%doc LICENSE + +%changelog +* Fri Aug 09 2024 Silvan Calarco 2.0.4-1mamba +- package created using the webbuild interface