summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-09-14 13:01:50 +0000
committerCoprDistGit <infra@openeuler.org>2026-09-14 13:01:50 +0000
commit115e606abed301f482a2b49821b274f7ae9c72c2 (patch)
tree30be4e62702a9dd328aabdb86b4f83a3e70e99e8
parentd79e50f9229853674cfcf3ea30d670a1c8d9eaf2 (diff)
automatic import of python-sniffioopeneuler24.03_LTS_SP3
-rw-r--r--.gitignore1
-rw-r--r--sniffio.spec9
-rw-r--r--sources2
3 files changed, 8 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index 0462bc6..d4eb40c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/python-sniffio-1.3.1.tar.gz
+/sniffio-1.3.1.tar.gz
diff --git a/sniffio.spec b/sniffio.spec
index 6a35d74..dd32181 100644
--- a/sniffio.spec
+++ b/sniffio.spec
@@ -2,11 +2,11 @@
Name: python-%{pypi_name}
Version: 1.3.1
-Release: 1%{?dist}
+Release: 2%{?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: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
+Source0: %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
@@ -37,7 +37,7 @@ Requires: python3-%{pypi_name}
Development documents and examples for %{pypi_name}.
%prep
-%autosetup -n %{name}-%{version} -p1
+%autosetup -n %{pypi_name}-%{version} -p1
%build
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
@@ -60,5 +60,8 @@ pip3 install --no-build-isolation --no-index \
%doc README.rst
%changelog
+* Mon Sep 14 2026 Python_Bot <Python_Bot@openeuler.org> - 1.3.1-2
+- 修复 %prep 阶段目录名不匹配问题:%autosetup 使用 %{pypi_name}-%{version}(即 sniffio-1.3.1),与 tarball 内部顶层目录名一致
+
* Mon Sep 14 2026 Python_Bot <Python_Bot@openeuler.org> - 1.3.1-1
- Initial package
diff --git a/sources b/sources
index 4144000..39f8d8e 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-5741990e80d1ee05d638c5adb5578c5d python-sniffio-1.3.1.tar.gz
+5741990e80d1ee05d638c5adb5578c5d sniffio-1.3.1.tar.gz