summaryrefslogtreecommitdiff
path: root/python-uvloop.spec
blob: 050badd16022f764be7b08f71b7695e16c4efe80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Created by pyp2rpm-3.2.2
%global pypi_name uvloop

Name:           python-%{pypi_name}
Version:        0.20.0
Release:        1
Summary:        Fast implementation of asyncio event loop on top of libuv
License:        MIT
URL:            http://github.com/MagicStack/uvloop
Source0:        https://files.pythonhosted.org/packages/source/u/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
 
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-sphinx

%description
 uvloop is a fast, dropin replacement of the builtin asyncio event loop. uvloop
is implemented in Cython and uses libuv under the hood.

%package -n     python3-%{pypi_name}
Summary:        %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}

%description -n python3-%{pypi_name}
uvloop is a fast, dropin replacement of the builtin asyncio event loop. uvloop
is implemented in Cython and uses libuv under the hood.

%package -n python-%{pypi_name}-help
Summary:        uvloop documentation
%description -n python-%{pypi_name}-help
Documentation for uvloop

%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
# rm -rf %{pypi_name}.egg-info

%build
%py3_build
# generate html docs 
sphinx-build-3 docs html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}

%install
%py3_install


%files -n python3-%{pypi_name}
%license LICENSE-APACHE LICENSE-MIT vendor/libuv/LICENSE vendor/libuv/LICENSE-docs
%doc README.rst vendor/libuv/README.md
%{python3_sitearch}/%{pypi_name}
%{python3_sitearch}/%{pypi_name}-*.egg-info

%files -n python-%{pypi_name}-help
%doc html 

%changelog
* Thu Sep 19 2024 kkz <zhaoshuang@uniontech.com> - 0.20.0-1
- Update package to version 0.20.0
  Upgrade libuv to v1.48.0 and fix some issues

* Mon Feb 26 2024 jiangxinyu <jiangxinyu@kylinos.cn> - 0.19.0-1
- Update package to version 0.19.0

* Mon Jul 24 2023 ysliu <ysliuci@isoftstone.com> - 0.17.0-1
- Initial package.