summaryrefslogtreecommitdiff
path: root/sniffio.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-10-27 04:16:21 +0000
committerCoprDistGit <infra@openeuler.org>2026-10-27 04:16:21 +0000
commit0e2a82895e161758219e11672e26a697f18cba52 (patch)
tree7b73d48c7556a3e8a410684116144e1e5e1a2c6c /sniffio.spec
parent2061ee0a2f0f357276dfa65e50915ccf8ae066c9 (diff)
automatic import of python-sniffio
Diffstat (limited to 'sniffio.spec')
-rw-r--r--sniffio.spec76
1 files changed, 76 insertions, 0 deletions
diff --git a/sniffio.spec b/sniffio.spec
new file mode 100644
index 0000000..e834e04
--- /dev/null
+++ b/sniffio.spec
@@ -0,0 +1,76 @@
+# 构建方案: pip(pyproject.toml build-backend=setuptools.build_meta,源码无 setup.py,走 PEP 517 pip 路径)
+# 上游源码: https://github.com/python-trio/sniffio
+# 构建工具链: python3=3.11.6, python3-setuptools=68.0.0, python3-setuptools-scm=7.1.0 (openeuler-24.03_LTS_SP4-x86_64)
+# 版本来源: sniffio/_version.py 硬编码 __version__="1.3.1"(pyproject dynamic version = attr,非 scm 计算)
+# topdir: sniffio-1.3.1
+%global pypi_name sniffio
+
+Name: python-%{pypi_name}
+Version: 1.3.1
+Release: 1%{?dist}
+Summary: Sniff out which async library your code is running under
+License: MIT OR Apache-2.0
+URL: https://github.com/python-trio/sniffio
+Source0: https://github.com/python-trio/sniffio/archive/refs/tags/v%{version}/%{pypi_name}-%{version}.tar.gz
+BuildArch: noarch
+
+BuildRequires: python3-devel
+BuildRequires: python3-pip
+BuildRequires: python3-setuptools >= 64
+BuildRequires: python3-setuptools-scm >= 6.4
+
+%description
+Sniff out which async library your code is running under. This is a tiny
+package whose only purpose is to let you detect which async library your
+code is running under, so you can write cross-library code.
+
+
+%package -n python3-%{pypi_name}
+Summary: Sniff out which async library your code is running under
+Provides: python-%{pypi_name}
+Provides: python3dist(%{pypi_name}) = %{version}
+
+%description -n python3-%{pypi_name}
+Sniff out which async library your code is running under. This is a tiny
+package whose only purpose is to let you detect which async library your
+code is running under, so you can write cross-library code.
+
+
+%package help
+Summary: Development documents and examples for %{pypi_name}
+Provides: python3-%{pypi_name}-doc
+Requires: python3-%{pypi_name}
+
+%description help
+This package provides development documents and examples for %{pypi_name}.
+
+
+%prep
+%autosetup -n %{pypi_name}-%{version} -p1
+
+
+%build
+pip3 wheel --no-build-isolation --no-deps --wheel-dir %{_builddir}/wheels .
+
+
+%install
+pip3 install --no-build-isolation --no-index \
+ --find-links %{_builddir}/wheels \
+ --root %{buildroot} --prefix /usr \
+ %{pypi_name}==%{version}
+
+
+%files -n python3-%{pypi_name}
+%license LICENSE LICENSE.MIT LICENSE.APACHE2
+%{python3_sitelib}/sniffio/
+%{python3_sitelib}/sniffio-%{version}*.dist-info/
+
+
+%files help
+%license LICENSE LICENSE.MIT LICENSE.APACHE2
+%doc README.rst CHEATSHEET.rst
+
+
+%changelog
+* Tue Oct 27 2026 Python_Bot <Python_Bot@openeuler.org> - 1.3.1-1
+- Initial package