6070b05
# what it's called on pypi
6070b05
%global srcname asgiref
6070b05
# what it's imported as
6070b05
%global libname %{srcname}
6070b05
# name of egg info directory
6070b05
%global eggname %{srcname}
6070b05
# package name fragment
6070b05
%global pkgname %{srcname}
6070b05
b8ef332
%global common_description %{expand:
b8ef332
ASGI is a standard for Python asynchronous web apps and servers to communicate
b8ef332
with each other, and positioned as an asynchronous successor to WSGI.  This
b8ef332
package includes ASGI base libraries, such as:
6070b05
b8ef332
* Sync-to-async and async-to-sync function wrappers, asgiref.sync
b8ef332
* Server base classes, asgiref.server
b8ef332
* A WSGI-to-ASGI adapter, in asgiref.wsgi}
b8ef332
b8ef332
%bcond_without  tests
6070b05
6070b05
6070b05
Name:           python-%{pkgname}
b8ef332
Version:        3.2.10
566e132
Release:        3%{?dist}
6070b05
Summary:        ASGI specs, helper code, and adapters
cb241f2
# This is BSD + bundled async-timeout ASL 2.0
cb241f2
License:        BSD and ASL 2.0
6070b05
URL:            https://github.com/django/asgiref
6070b05
# PyPI tarball doesn't have tests
6070b05
Source0:        %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz
6070b05
BuildArch:      noarch
6070b05
6070b05
b8ef332
%description %{common_description}
6070b05
6070b05
6070b05
%package -n python3-%{pkgname}
6070b05
Summary:        %{summary}
6070b05
BuildRequires:  python3-devel
b8ef332
BuildRequires:  %{py3_dist setuptools}
6070b05
%if %{with tests}
b8ef332
BuildRequires:  %{py3_dist pytest pytest-asyncio}
6070b05
%endif
cb241f2
# https://github.com/django/asgiref/commit/9c6df6e02700092eb19adefff3552d44388f69b8
cb241f2
Provides:       bundled(python3dist(async-timeout)) == 3.0.1
6070b05
%{?python_provide:%python_provide python3-%{pkgname}}
6070b05
6070b05
b8ef332
%description -n python3-%{pkgname} %{common_description}
6070b05
6070b05
6070b05
%prep
6070b05
%autosetup -n %{srcname}-%{version}
6070b05
6070b05
6070b05
%build
6070b05
%py3_build
6070b05
6070b05
6070b05
%install
6070b05
%py3_install
6070b05
6070b05
6070b05
%if %{with tests}
6070b05
%check
6070b05
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} --verbose tests
6070b05
%endif
6070b05
6070b05
6070b05
%files -n python3-%{pkgname}
6070b05
%license LICENSE
6070b05
%doc README.rst
6070b05
%{python3_sitelib}/%{libname}
6070b05
%{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info
6070b05
6070b05
6070b05
%changelog
566e132
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.10-3
566e132
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
566e132
e173204
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.10-2
e173204
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
e173204
b8ef332
* Thu Jun 18 2020 Carl George <carl@george.computer> - 3.2.10-1
b8ef332
- Latest upstream
b8ef332
d66c375
* Mon May 25 2020 Miro Hrončok <mhroncok@redhat.com> - 3.2.7-2
d66c375
- Rebuilt for Python 3.9
d66c375
3faeda3
* Thu Apr 09 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 3.2.7-1
3faeda3
- Update to 3.2.7
3faeda3
2f46a58
* Sat Mar 21 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 3.2.5-1
2f46a58
- Update to 3.2.5 (rhbz #1764824)
2f46a58
0593a0d
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.2-2
0593a0d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
0593a0d
cb241f2
* Mon Sep 16 2019 Miro Hrončok <mhroncok@redhat.com> - 3.2.2-1
cb241f2
- Update to 3.2.2 (#1691128)
cb241f2
64c943f
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.3.2-4
64c943f
- Rebuilt for Python 3.8
64c943f
0e164ad
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.2-3
0e164ad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
0e164ad
bb09e4d
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.2-2
bb09e4d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
bb09e4d
6070b05
* Wed Oct 17 2018 Carl George <carl@george.computer> - 2.3.2-1
6070b05
- Initial package