commit 1dda24b30e3889d4fe49be61ef95662f23f2dc6d Author: tigro Date: Sat Jan 4 18:01:47 2025 +0300 import python-a2wsgi-1.7.0-5.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3dfc99d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/a2wsgi-1.7.0.tar.gz diff --git a/.python-a2wsgi.metadata b/.python-a2wsgi.metadata new file mode 100644 index 0000000..a3f51c3 --- /dev/null +++ b/.python-a2wsgi.metadata @@ -0,0 +1 @@ +23621b4c14a9661faf9eb3fce9d2264018f77bad SOURCES/a2wsgi-1.7.0.tar.gz diff --git a/SPECS/python-a2wsgi.spec b/SPECS/python-a2wsgi.spec new file mode 100644 index 0000000..2a26a5e --- /dev/null +++ b/SPECS/python-a2wsgi.spec @@ -0,0 +1,94 @@ +## 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-a2wsgi +Version: 1.7.0 +Release: %autorelease +Summary: Convert WSGI app to ASGI app or ASGI app to WSGI app +License: Apache-2.0 +URL: https://github.com/abersheeran/a2wsgi +Source: %{pypi_source a2wsgi} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-pytest +BuildRequires: python3-pytest-asyncio +BuildRequires: python3-httpx + +%global _description %{expand: +Convert WSGI app to ASGI app or ASGI app to WSGI app. Pure Python. Only +depend on the standard library. Compared with other converters, the advantage +is that a2wsgi will not accumulate the requested content or response content in +the memory, so you do not have to worry about the memory limit caused by +a2wsgi. This problem exists in converters implemented by uvicorn/startlette or +hypercorn.} + + +%description %_description + + +%package -n python3-a2wsgi +Summary: %{summary} + + +%description -n python3-a2wsgi %_description + + +%prep +%autosetup -p1 -n a2wsgi-%{version} + + +%generate_buildrequires +%pyproject_buildrequires + + +%build +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files a2wsgi + +# The pdm build backend includes the license files, but currently the +# pyproject macros don't mark these files as licenses. +sed -e '/LICENSE/ s/^/%%license /' -i %{pyproject_files} + + +%check +# This project doesn't use the src layout. Set the import mode during tests to +# ensure we tests the installed Python module, not the local directory. +%pytest --import-mode append --verbose + + +%files -n python3-a2wsgi -f %{pyproject_files} +%doc README.md + + +%changelog +* Sat Jan 04 2025 Arkady L. Shane - 1.7.0-5 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Fri Jul 19 2024 Fedora Release Engineering - 1.7.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sun Jun 09 2024 Python Maint - 1.7.0-4 +- Rebuilt for Python 3.13 + +* Fri Jan 26 2024 Fedora Release Engineering - 1.7.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 1.7.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Sep 25 2023 Carl George - 1.7.0-1 +- Initial package, resolves rhbz#2240682 +## END: Generated by rpmautospec