summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-uvloop.spec67
-rw-r--r--sources1
3 files changed, 69 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..3585675 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/uvloop-0.20.0.tar.gz
diff --git a/python-uvloop.spec b/python-uvloop.spec
new file mode 100644
index 0000000..050badd
--- /dev/null
+++ b/python-uvloop.spec
@@ -0,0 +1,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.
diff --git a/sources b/sources
new file mode 100644
index 0000000..eaa535f
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+c3395ddc1746e2bf4b2987d88c4707e8 uvloop-0.20.0.tar.gz