|
|
d2c022 |
%global modname uvloop
|
|
|
d2c022 |
|
|
|
d2c022 |
Name: python-%{modname}
|
|
|
d2c022 |
Version: 0.14.0
|
|
|
d2c022 |
Release: 4%{?dist}
|
|
|
d2c022 |
Summary: Ultra fast implementation of asyncio event loop on top of libuv
|
|
|
d2c022 |
|
|
|
d2c022 |
License: MIT or ASL 2.0
|
|
|
d2c022 |
URL: https://github.com/MagicStack/uvloop
|
|
|
d2c022 |
Source0: %{url}/archive/v%{version}/%{modname}-%{version}.tar.gz
|
|
|
d2c022 |
|
|
|
d2c022 |
# Stop using `loop` kwarg in `asyncio.wait()` call (Python 3.10+)
|
|
|
d2c022 |
Patch1: %{url}/commit/2870219558.patch
|
|
|
d2c022 |
|
|
|
d2c022 |
BuildRequires: gcc
|
|
|
d2c022 |
BuildRequires: libuv-devel
|
|
|
d2c022 |
|
|
|
d2c022 |
%global _description \
|
|
|
d2c022 |
uvloop is a fast, drop-in replacement of the built-in asyncio event loop.\
|
|
|
d2c022 |
uvloop is implemented in Cython and uses libuv under the hood.
|
|
|
d2c022 |
|
|
|
d2c022 |
%description %{_description}
|
|
|
d2c022 |
|
|
|
d2c022 |
%package -n python3-%{modname}
|
|
|
d2c022 |
Summary: %{summary}
|
|
|
d2c022 |
%{?python_provide:%python_provide python3-%{modname}}
|
|
|
d2c022 |
BuildRequires: python3-devel
|
|
|
d2c022 |
BuildRequires: python3-setuptools
|
|
|
d2c022 |
BuildRequires: python3-Cython
|
|
|
d2c022 |
#BuildRequires: python3-aiohttp
|
|
|
d2c022 |
#BuildRequires: python3-psutil
|
|
|
d2c022 |
#BuildRequires: python3-pyOpenSSL
|
|
|
d2c022 |
|
|
|
d2c022 |
%description -n python3-%{modname} %{_description}
|
|
|
d2c022 |
|
|
|
d2c022 |
%prep
|
|
|
d2c022 |
%autosetup -p1 -n %{modname}-%{version}
|
|
|
d2c022 |
# always use cython to generate code
|
|
|
d2c022 |
sed -i -e "/self.cython_always/s/False/True/" setup.py
|
|
|
d2c022 |
# use system libuv
|
|
|
d2c022 |
sed -i -e "/self.use_system_libuv/s/False/True/" setup.py
|
|
|
d2c022 |
# To be sure, no 3rd-party stuff
|
|
|
d2c022 |
rm -vrf vendor/
|
|
|
d2c022 |
|
|
|
d2c022 |
%build
|
|
|
d2c022 |
%py3_build
|
|
|
d2c022 |
|
|
|
d2c022 |
%install
|
|
|
d2c022 |
%py3_install
|
|
|
d2c022 |
# https://github.com/MagicStack/uvloop/issues/70
|
|
|
d2c022 |
rm -vf %{buildroot}%{python3_sitearch}/%{modname}/_testbase.py
|
|
|
d2c022 |
rm -vf %{buildroot}%{python3_sitearch}/%{modname}/__pycache__/_testbase.*
|
|
|
d2c022 |
|
|
|
d2c022 |
%check
|
|
|
d2c022 |
#{__python3} setup.py test
|
|
|
d2c022 |
|
|
|
d2c022 |
%files -n python3-%{modname}
|
|
|
d2c022 |
%license LICENSE-APACHE LICENSE-MIT
|
|
|
d2c022 |
%doc README.rst
|
|
|
d2c022 |
%{python3_sitearch}/%{modname}-*.egg-info/
|
|
|
d2c022 |
%{python3_sitearch}/%{modname}/
|
|
|
d2c022 |
|
|
|
d2c022 |
%changelog
|
|
|
d2c022 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.0-4
|
|
|
d2c022 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
d2c022 |
|
|
|
d2c022 |
* Thu Jan 07 2021 Miro Hrončok <mhroncok@redhat.com> - 0.14.0-3
|
|
|
d2c022 |
- Backport Python 3.10+ compatibility
|
|
|
d2c022 |
- Fixes: rhbz#1913435
|
|
|
d2c022 |
|
|
|
d2c022 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.0-2
|
|
|
d2c022 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
d2c022 |
|
|
|
d2c022 |
* Thu Jun 18 2020 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 0.14.0-1
|
|
|
d2c022 |
- Update to 0.14.0
|
|
|
d2c022 |
|
|
|
d2c022 |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.12.2-6
|
|
|
d2c022 |
- Rebuilt for Python 3.9
|
|
|
d2c022 |
|
|
|
d2c022 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.2-5
|
|
|
d2c022 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
d2c022 |
|
|
|
d2c022 |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.12.2-4
|
|
|
d2c022 |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
d2c022 |
|
|
|
d2c022 |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.12.2-3
|
|
|
d2c022 |
- Rebuilt for Python 3.8
|
|
|
d2c022 |
|
|
|
d2c022 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.2-2
|
|
|
d2c022 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
d2c022 |
|
|
|
d2c022 |
* Thu May 02 14:15:58 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.12.2-1
|
|
|
d2c022 |
- Update to 0.12.2
|
|
|
d2c022 |
|
|
|
d2c022 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.2-3
|
|
|
d2c022 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
d2c022 |
|
|
|
d2c022 |
* Mon Oct 15 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.11.2-2
|
|
|
d2c022 |
- Include files which were excluded
|
|
|
d2c022 |
|
|
|
d2c022 |
* Wed Aug 08 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.11.2-1
|
|
|
d2c022 |
- Update to 0.11.2
|
|
|
d2c022 |
|
|
|
d2c022 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.0-2
|
|
|
d2c022 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
d2c022 |
|
|
|
d2c022 |
* Sat Jul 07 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.11.0-1
|
|
|
d2c022 |
- Update to 0.11.0
|
|
|
d2c022 |
|
|
|
d2c022 |
* Thu Jun 21 2018 Jerry James <loganjerry@gmail.com> - 0.10.1-1
|
|
|
d2c022 |
- Update to 0.10.1 for python 3.7 support (bz 1556279 and 1584458)
|
|
|
d2c022 |
|
|
|
d2c022 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.8.1-3
|
|
|
d2c022 |
- Rebuilt for Python 3.7
|
|
|
d2c022 |
|
|
|
d2c022 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.1-2
|
|
|
d2c022 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
d2c022 |
|
|
|
d2c022 |
* Wed Sep 13 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.8.1-1
|
|
|
d2c022 |
- Update to 0.8.1
|
|
|
d2c022 |
|
|
|
d2c022 |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-3
|
|
|
d2c022 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
d2c022 |
|
|
|
d2c022 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-2
|
|
|
d2c022 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
d2c022 |
|
|
|
d2c022 |
* Sat Feb 11 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.8.0-1
|
|
|
d2c022 |
- Update to 0.8.0
|
|
|
d2c022 |
|
|
|
d2c022 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2-2
|
|
|
d2c022 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
d2c022 |
|
|
|
d2c022 |
* Sat Jan 07 2017 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.7.2-1
|
|
|
d2c022 |
- Update to 0.7.2
|
|
|
d2c022 |
|
|
|
d2c022 |
* Tue Jan 03 2017 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.7.1-1
|
|
|
d2c022 |
- Update to 0.7.1
|
|
|
d2c022 |
|
|
|
d2c022 |
* Sun Jan 01 2017 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.7.0-1
|
|
|
d2c022 |
- Initial package
|