blob: 11c100b9c33eaffe00f7ae36a3cad6f5480184cb (
plain)
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
|
%global pypi_name jsonpickle
Name: python-%{pypi_name}
Version: 4.1.2
Release: 1%{?dist}
Summary: Python library for serializing any arbitrary object graph into JSON
License: BSD-3-Clause
URL: https://github.com/jsonpickle/jsonpickle
# topdir: python-jsonpickle-4.1.2(本地源 tarball 已由流程用 tar --transform 重命名,
# 解压顶层目录即 <Name>-<Version>;上游 tag 归档原始顶层目录名为 jsonpickle-4.1.2,
# Source0 仅作溯源,内容与包内 tarball 一致)
Source0: %{url}/archive/refs/tags/v%{version}/%{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-pip
BuildRequires: python3-setuptools
BuildRequires: python3-setuptools_scm
BuildRequires: python3-wheel
%description
jsonpickle is a library for the two-way conversion of complex Python objects
and JSON. jsonpickle builds upon the existing JSON encoders, such as simplejson,
json, and ujson.
%package -n python3-%{pypi_name}
Summary: Python library for serializing any arbitrary object graph into JSON
Provides: python-%{pypi_name} = %{version}-%{release}
%description -n python3-%{pypi_name}
jsonpickle is a library for the two-way conversion of complex Python objects
and JSON. jsonpickle builds upon the existing JSON encoders, such as simplejson,
json, and ujson.
%package help
Summary: Development documents and examples for %{pypi_name}
Provides: python3-%{pypi_name}-doc
Requires: python3-%{pypi_name}
%description help
Development documents and examples for jsonpickle.
%prep
%autosetup -n %{name}-%{version}
%build
# 上游用 setuptools_scm 动态取版本(pyproject.toml dynamic version),
# 源码树由 git checkout 重打为 tarball,这里显式锚定版本号,避免构建环境
# 缺少 git 元数据 / 所有权检查导致版本漂移
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
%pyproject_build
%install
%pyproject_install
# 上游测试套件(pytest + testing extra 的 numpy/pandas/scipy/pymongo 等)
# 需要大量未打包的第三方依赖,离线构建环境无法运行,故不提供 %check
%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst CHANGES.rst
%{python3_sitelib}/jsonpickle/
%{python3_sitelib}/jsonpickle-%{version}.dist-info/
%files help
%license LICENSE
%doc README.rst CHANGES.rst
%changelog
* Tue Sep 22 2026 Python_Bot <Python_Bot@openeuler.org> - 4.1.2-1
- Initial package
|