summaryrefslogtreecommitdiff
path: root/python3-transforms3d.spec
blob: 9dc65fff80fabffbc03040f31e12ce789f3ca1e2 (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
# 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