From 6ffe57a407407328d56ebff90a7465a555d92c09 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 22 Sep 2026 10:57:41 +0000 Subject: automatic import of python-jsonpickle --- python3-jsonpickle.spec | 73 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 python3-jsonpickle.spec (limited to 'python3-jsonpickle.spec') diff --git a/python3-jsonpickle.spec b/python3-jsonpickle.spec new file mode 100644 index 0000000..11c100b --- /dev/null +++ b/python3-jsonpickle.spec @@ -0,0 +1,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 重命名, +# 解压顶层目录即 -;上游 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 - 4.1.2-1 +- Initial package -- cgit v1.2.3