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
6070b05
%global _description \
6070b05
ASGI is a standard for Python asynchronous web apps and servers to communicate\
6070b05
with each other, and positioned as an asynchronous successor to WSGI.  This\
6070b05
package includes ASGI base libraries, such as:\
6070b05
\
6070b05
* Sync-to-async and async-to-sync function wrappers, asgiref.sync\
6070b05
* Server base classes, asgiref.server\
6070b05
* A WSGI-to-ASGI adapter, in asgiref.wsgi
6070b05
6070b05
%bcond_without tests
6070b05
6070b05
6070b05
Name:           python-%{pkgname}
2f46a58
Version:        3.2.5
2f46a58
Release:        1%{?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
6070b05
%description %{_description}
6070b05
6070b05
6070b05
%package -n python3-%{pkgname}
6070b05
Summary:        %{summary}
6070b05
BuildRequires:  python3-devel
6070b05
BuildRequires:  python3-setuptools
6070b05
%if %{with tests}
6070b05
BuildRequires:  python3-pytest >= 3.3
6070b05
BuildRequires:  python3-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
6070b05
%description -n python3-%{pkgname} %{_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
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