diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python3-transforms3d.spec | 78 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 80 insertions, 0 deletions
@@ -0,0 +1 @@ +/python-transforms3d-0.4.2.tar.gz diff --git a/python3-transforms3d.spec b/python3-transforms3d.spec new file mode 100644 index 0000000..509b7d8 --- /dev/null +++ b/python3-transforms3d.spec @@ -0,0 +1,78 @@ +%global pypi_name transforms3d + +Name: python-%{pypi_name} +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/v%{version}/%{name}-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-versioneer + +%description +Code to convert between various geometric transformations, including: +composing rotations, zooms, shears and translations into affine matrices, +decomposing affine matrices, and converting between different representations +of rotations (matrices, Euler angles, quaternions). + + +%package -n python3-%{pypi_name} +Summary: Functions for 3D coordinate transformations +Provides: python-%{pypi_name} = %{version}-%{release} +Provides: python3dist(%{pypi_name}) = %{version} +Requires: python3-numpy >= 1.15 + +%description -n python3-%{pypi_name} +Code to convert between various geometric transformations, including: +composing rotations, zooms, shears and translations into affine matrices, +decomposing affine matrices, and converting between different representations +of rotations (matrices, Euler angles, quaternions). + + +%package help +Summary: Development documents and examples for %{pypi_name} +Provides: python3-%{pypi_name}-doc +Requires: python3-%{pypi_name} = %{version}-%{release} + +%description help +Development documents and examples for %{pypi_name}. + + +%prep +%autosetup -n %{name}-%{version} -p1 +# versioneer reads version from git tags or parentdir_prefix; override _version.py +# with a minimal hardcoded version to avoid UNKNOWN version in the build environment +cat > transforms3d/_version.py << 'EOF' +# This file is auto-generated by RPM spec to fix versioneer in non-git build environments. +__version__ = "0.4.2" +__version_tuple__ = (0, 4, 2) +version = "0.4.2" +version_tuple = (0, 4, 2) +EOF + + +%build +%py3_build + + +%install +%py3_install + + +%files -n python3-%{pypi_name} +%license LICENSE +%{python3_sitelib}/%{pypi_name}/ +%{python3_sitelib}/%{pypi_name}-%{version}*.egg-info/ + +%files help +%doc README.rst Changelog +%license LICENSE + + +%changelog +* Sun Sep 20 2026 Python_Bot <Python_Bot@openeuler.org> - 0.4.2-1 +- Initial package @@ -0,0 +1 @@ +d62e53232f705bacaf5aa20afcbb8fb4 python-transforms3d-0.4.2.tar.gz |
