diff options
Diffstat (limited to 'python3-transforms3d.spec')
| -rw-r--r-- | python3-transforms3d.spec | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/python3-transforms3d.spec b/python3-transforms3d.spec new file mode 100644 index 0000000..9dc65ff --- /dev/null +++ b/python3-transforms3d.spec @@ -0,0 +1,52 @@ +# topdir: python3-transforms3d-0.4.2 (tar --transform 归一化顶层目录) +# 构建系统: setuptools (pyproject.toml build-backend=setuptools.build_meta + setup.py) +# 版本管理: versioneer,构建期通过 git tag 计算版本 (tag 0.4.2);需 git + 源码 .git +# 运行时依赖: numpy >= 1.15 (官方源 python3-numpy 1.24.3 满足) + +Name: python3-transforms3d +Version: 0.4.2 +Release: 1%{?dist} +Summary: Functions for 3D coordinate transformations +License: BSD-2-Clause +URL: https://github.com/matthew-brett/transforms3d +Source0: %{url}/archive/refs/tags/%{version}/python3-transforms3d-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-versioneer +BuildRequires: git + +Requires: python3-numpy >= 1.15 + +%description +Transforms3d is a Python library for 3D coordinate transformations. It provides +functions for composing and decomposing affine matrices into rotations, zooms, +shears and translations, and converting between different representations of +rotations, including 3x3 rotation matrices, Euler angles and quaternions. + +%prep +%autosetup -n %{name}-%{version} + +%build +# versioneer 在构建期调用 git 计算 version;mock 中源码 .git 属主可能与构建用户不一致, +# 显式放行 safe.directory 以避免 "detected dubious ownership" 导致版本回退为 0+unknown +export GIT_CONFIG_COUNT=1 +export GIT_CONFIG_KEY_0="safe.directory" +export GIT_CONFIG_VALUE_0="*" +%py3_build + +%install +%py3_install + +%files +%license LICENSE +%doc README.rst +%{python3_sitelib}/transforms3d/ +%{python3_sitelib}/transforms3d-%{version}*.egg-info/ + +%changelog +* Wed Sep 23 2026 ai-importer <ai-importer@openeuler.org> - 0.4.2-1 +- Initial import |
