From 78e0ba0c445981929eb7577829209e511362341e Mon Sep 17 00:00:00 2001 From: rdobuilder Date: Mar 10 2022 09:27:52 +0000 Subject: Build python-asgiref to 3.4.1-5 Related-to: https://review.rdoproject.org/r/q/I893d386a97e4348edd12118bb3e649ed5201687a --- diff --git a/.python-asgiref.metadata b/.python-asgiref.metadata new file mode 100644 index 0000000..bc6de74 --- /dev/null +++ b/.python-asgiref.metadata @@ -0,0 +1 @@ +463f8f227c433dbd3bf65a70ad5709e7e11ba363 SOURCES/asgiref-3.4.1.tar.gz diff --git a/SOURCES/.gitignore b/SOURCES/.gitignore new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/SOURCES/.gitignore diff --git a/SPECS/python-asgiref.spec b/SPECS/python-asgiref.spec new file mode 100644 index 0000000..3cf46b0 --- /dev/null +++ b/SPECS/python-asgiref.spec @@ -0,0 +1,142 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.2.5) +%define autorelease(e:s:pb:) %{?-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*}}%{?dist} +## END: Set by rpmautospec + +%global srcname asgiref + +%global common_description %{expand: +ASGI is a standard for Python asynchronous web apps and servers to communicate +with each other, and positioned as an asynchronous successor to WSGI. This +package includes ASGI base libraries, such as: + +* Sync-to-async and async-to-sync function wrappers, asgiref.sync +* Server base classes, asgiref.server +* A WSGI-to-ASGI adapter, in asgiref.wsgi} + +%bcond_without tests + + +Name: python-%{srcname} +Version: 3.4.1 +Release: %autorelease +Summary: ASGI specs, helper code, and adapters +# This is BSD + bundled async-timeout ASL 2.0 +License: BSD and ASL 2.0 +URL: https://github.com/django/asgiref +# PyPI tarball doesn't have tests +Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz +BuildArch: noarch + + +%description %{common_description} + + +%package -n python3-%{srcname} +Summary: %{summary} +BuildRequires: python3-devel +BuildRequires: pyproject-rpm-macros +BuildRequires: python3-wheel +BuildRequires: python3dist(tox-current-env) +BuildRequires: python3dist(mypy) +BuildRequires: python3dist(pytest-asyncio) + +# https://github.com/django/asgiref/commit/9c6df6e02700092eb19adefff3552d44388f69b8 +Provides: bundled(python3dist(async-timeout)) == 3.0.1 + + +%description -n python3-%{srcname} %{common_description} + + +%prep +%autosetup -n %{srcname}-%{version} + + +%generate_buildrequires +%pyproject_buildrequires %{?with_tests:-e %{toxenv}-test} + + +%build +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files %{srcname} + + +%if %{with tests} +%check +%tox -e %{toxenv}-test +%endif + + +%files -n python3-%{srcname} -f %{pyproject_files} +%license LICENSE +%doc README.rst + + +%changelog +* Fri Jan 21 2022 Fedora Release Engineering 3.4.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Wed Dec 15 2021 Miro Hrončok 3.4.1-4 +- Keep tests enabled + +* Sat Nov 27 2021 Igor Raits 3.4.1-3 +- Initial adjustments for the EPEL9 + +* Sat Nov 27 2021 Igor Raits 3.4.1-2 +- Adjust %pyproject_buildrequires to work with %bcond tests + +* Wed Jul 28 2021 Carl George 3.4.1-1 +- Latest upstream 3.4.1 + +* Fri Jul 23 2021 Fedora Release Engineering 3.3.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Jun 04 2021 Python Maint 3.3.4-2 +- Rebuilt for Python 3.10 + +* Wed May 12 2021 Miro Hrončok 3.3.4-1 +- Update to 3.3.4 + +* Wed Jan 27 2021 Fedora Release Engineering 3.2.10-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering 3.2.10-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Thu Jun 18 2020 Carl George 3.2.10-1 +- Latest upstream 3.2.10 + +* Mon May 25 2020 Miro Hrončok 3.2.7-2 +- Rebuilt for Python 3.9 + +* Thu Apr 09 2020 Peter Robinson 3.2.7-1 +- 3.2.7 + +* Sat Mar 21 2020 Peter Robinson 3.2.5-1 +- Update to 3.2.5 (rhbz #1764824) + +* Thu Jan 30 2020 Fedora Release Engineering 3.2.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Tue Sep 17 2019 Miro Hrončok 3.2.2-1 +- Update to 3.2.2 (#1691128) + +* Mon Aug 19 2019 Miro Hrončok 2.3.2-4 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering 2.3.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Feb 02 2019 Fedora Release Engineering 2.3.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Mon Oct 22 2018 Carl George 2.3.2-1 +- Initial import (rhbz#1640297)