summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-10-27 04:03:21 +0000
committerCoprDistGit <infra@openeuler.org>2026-10-27 04:03:21 +0000
commit990a318a3180d59f7f45a7a0be71cb4d420a9bee (patch)
treef9af954e146ca64879d9d2a55f83019141039c41
parent8e5c666f5239c6f3c6c7ba9deea611811a78bd07 (diff)
automatic import of python-msgspecopeneuler24.03_LTS_SP4
-rw-r--r--.gitignore1
-rw-r--r--msgspec.spec79
-rw-r--r--sources1
3 files changed, 81 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..c739f63 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/msgspec-0.18.2.tar.gz
diff --git a/msgspec.spec b/msgspec.spec
new file mode 100644
index 0000000..c2f46e9
--- /dev/null
+++ b/msgspec.spec
@@ -0,0 +1,79 @@
+# Build system: setuptools via setup.py (pyproject.toml only has [tool.ruff], no [build-system])
+# C extension: msgspec/_core.c compiled via Extension() in setup.py -> python3_sitearch, arch-dependent
+# topdir: msgspec-0.18.2
+%global pypi_name msgspec
+
+Name: python-%{pypi_name}
+Version: 0.18.2
+Release: 1%{?dist}
+Summary: Fast serialization and validation library with JSON/MessagePack/YAML/TOML support
+License: BSD-3-Clause
+URL: https://github.com/jcrist/msgspec
+Source0: https://github.com/jcrist/msgspec/archive/refs/tags/%{version}/%{pypi_name}-%{version}.tar.gz
+
+%description
+msgspec is a fast serialization and validation library, with builtin support
+for JSON, MessagePack, YAML, and TOML. It features high performance
+encoders/decoders, support for a wide variety of Python types, zero-cost
+schema validation using familiar Python type annotations, and a speedy Struct
+type for representing structured data. The library is lightweight with no
+required dependencies.
+
+
+%package -n python3-%{pypi_name}
+Summary: Fast serialization and validation library with JSON/MessagePack/YAML/TOML support
+Provides: python-%{pypi_name}
+Provides: python3dist(%{pypi_name}) = %{version}
+Provides: python3-%{pypi_name} = %{version}-%{release}
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: gcc
+
+%description -n python3-%{pypi_name}
+msgspec is a fast serialization and validation library, with builtin support
+for JSON, MessagePack, YAML, and TOML. It features high performance
+encoders/decoders, support for a wide variety of Python types, zero-cost
+schema validation using familiar Python type annotations, and a speedy Struct
+type for representing structured data. The library is lightweight with no
+required dependencies.
+
+
+%package help
+Summary: Development documents and examples for %{pypi_name}
+Provides: python3-%{pypi_name}-doc
+BuildArch: noarch
+Requires: python3-%{pypi_name}
+
+%description help
+msgspec is a fast serialization and validation library, with builtin support
+for JSON, MessagePack, YAML, and TOML. This package provides development
+documents and examples for %{pypi_name}.
+
+
+%prep
+%autosetup -n %{pypi_name}-%{version} -p1
+
+
+%build
+%define _lto_cflags %{nil}
+%undefine _hardened_build
+%py3_build
+
+
+%install
+%py3_install
+
+
+%files -n python3-%{pypi_name}
+%license LICENSE
+%{python3_sitearch}/%{pypi_name}/
+%{python3_sitearch}/%{pypi_name}-%{version}*.egg-info/
+
+%files help
+%doc README.md
+%license LICENSE
+
+
+%changelog
+* Tue Oct 27 2026 Python_Bot <Python_Bot@openeuler.org> - 0.18.2-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..4e676dc
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+2aac6947ad7ce062898b85c316435e66 msgspec-0.18.2.tar.gz