diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-09-14 12:34:20 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-09-14 12:34:20 +0000 |
| commit | 85cb0985ebfeb6ff27892cc9995d5194e716c09e (patch) | |
| tree | 302d645037c6706a93a0457c44a82cd4b520fc1c /msgspec.spec | |
| parent | e39e0f933caf89b918933c2d9a5ff2f3231f7ab7 (diff) | |
automatic import of python-msgspecopeneuler24.03_LTS_SP3
Diffstat (limited to 'msgspec.spec')
| -rw-r--r-- | msgspec.spec | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/msgspec.spec b/msgspec.spec new file mode 100644 index 0000000..7eeda21 --- /dev/null +++ b/msgspec.spec @@ -0,0 +1,72 @@ +%global pypi_name msgspec + +Name: python-%{pypi_name} +Version: 0.18.2 +Release: 1%{?dist} +Summary: A fast serialization and validation library with builtin support for JSON, MessagePack, YAML, and TOML +License: BSD-3-Clause +URL: https://jcristharif.com/msgspec/ +Source0: https://github.com/jcrist/msgspec/archive/v%{version}/%{pypi_name}-%{version}.tar.gz + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: gcc + +%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 Python type annotations, and a +speedy Struct type for representing structured data. + + +%package -n python3-%{pypi_name} +Summary: A fast serialization and validation library with builtin support for JSON, MessagePack, YAML, and TOML +Provides: python-%{pypi_name} +Provides: python3dist(%{pypi_name}) = %{version} + +%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 Python type annotations, and a +speedy Struct type for representing structured data. + + +%package help +Summary: Development documents and examples for %{pypi_name} +Provides: python3-%{pypi_name}-doc +Requires: python3-%{pypi_name} + +%description help +Documentation and examples for msgspec. + + +%prep +%autosetup -n %{pypi_name}-%{version} -p1 + + +%build +# C extension: disable LTO/BTI for aarch64 compatibility +%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 +%license LICENSE +%doc README.md + + +%changelog +* Mon Sep 14 2026 Python_Bot <Python_Bot@openeuler.org> - 0.18.2-1 +- Initial package |
