summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python3-jsonpickle.spec73
-rw-r--r--sources1
3 files changed, 75 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..4fea39a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/python-jsonpickle-4.1.2.tar.gz
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 重命名,
+# 解压顶层目录即 <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
diff --git a/sources b/sources
new file mode 100644
index 0000000..e7a97a9
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+03ee3f91c68a97e7ffcd729022f01a37 python-jsonpickle-4.1.2.tar.gz