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
68
69
70
71
72
73
74
75
76
77
78
79
|
# Build system: setuptools via setup.py (pyproject.toml only has [tool.ruff])
# C extension: msgspec/_core.c compiled via Extension() in setup.py
# topdir after --transform: 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/msgspec/msgspec
Source0: https://github.com/msgspec/msgspec/archive/refs/tags/%{version}/%{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
* Mon Oct 26 2026 Python_Bot <Python_Bot@openeuler.org> - 0.18.2-1
- Initial package
|