summaryrefslogtreecommitdiff
path: root/tf-transformations.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-09-16 11:29:51 +0000
committerCoprDistGit <infra@openeuler.org>2026-09-16 11:29:51 +0000
commit1a46216bad351e3005dd9940e5634fef6095865d (patch)
tree0e1f8e9552e78e62b870e50ba08a921cb85edadf /tf-transformations.spec
parent1133ad22d271e0a33b095dd19013acd97192eee9 (diff)
automatic import of ros-humble-tf-transformationsopeneuler24.03_LTS_SP3
Diffstat (limited to 'tf-transformations.spec')
-rw-r--r--tf-transformations.spec58
1 files changed, 58 insertions, 0 deletions
diff --git a/tf-transformations.spec b/tf-transformations.spec
new file mode 100644
index 0000000..cf81c4e
--- /dev/null
+++ b/tf-transformations.spec
@@ -0,0 +1,58 @@
+%define ros_distro humble
+%define RosPkgName tf-transformations
+%define src_version 1.1.1-1
+
+Name: ros-%{ros_distro}-%{RosPkgName}
+Version: 1.1.1
+Release: 1%{?dist}
+Summary: Reimplementation of the tf/transformations.py library for common Python spatial
+License: BSD
+URL: https://github.com/DLu/tf_transformations/tree/main
+Source0: %{RosPkgName}-%{src_version}.tar.gz
+
+%global debug_package %{nil}
+%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
+%global __provides_exclude_from ^/opt/ros/%{ros_distro}/.*$
+%global __requires_exclude_from ^/opt/ros/%{ros_distro}/.*$
+
+BuildRequires: python3-numpy
+BuildRequires: python3-transforms3d
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+
+Requires: ros-%{ros_distro}-ros-workspace
+Requires: ros-%{ros_distro}-ament-cmake
+Requires: python3-numpy
+Requires: python3-transforms3d
+
+Provides: %{name}-devel = %{version}-%{release}
+Provides: %{name}-doc = %{version}-%{release}
+Provides: %{name}-runtime = %{version}-%{release}
+
+%description
+Reimplementation of the tf/transformations.py library for common Python spatial operations
+
+%prep
+%autosetup -n %{RosPkgName}-%{src_version}
+
+%build
+source /opt/ros/%{ros_distro}/setup.sh 2>/dev/null || true
+export PYTHONPATH=/opt/ros/%{ros_distro}/lib/python%{python3_version}/site-packages${PYTHONPATH:+:$PYTHONPATH}
+export PKG_CONFIG_PATH=/opt/ros/%{ros_distro}/lib/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}
+%{__python3} setup.py build
+
+%install
+source /opt/ros/%{ros_distro}/setup.sh 2>/dev/null || true
+export PYTHONPATH=/opt/ros/%{ros_distro}/lib/python%{python3_version}/site-packages${PYTHONPATH:+:$PYTHONPATH}
+export PKG_CONFIG_PATH=/opt/ros/%{ros_distro}/lib/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}
+%{__python3} setup.py install --skip-build --root %{buildroot} \
+ --prefix /opt/ros/%{ros_distro} \
+ --install-lib /opt/ros/%{ros_distro}/lib/python%{python3_version}/site-packages \
+ --single-version-externally-managed --record installed.txt
+
+%files
+/opt/ros/%{ros_distro}
+
+%changelog
+* Wed Sep 16 2026 ai-importer <ai-importer@openeuler.org> - 1.1.1-1
+- Initial import (ROS batch)