summaryrefslogtreecommitdiff
path: root/tf2-tools.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-04-06 12:58:15 +0000
committerCoprDistGit <infra@openeuler.org>2026-04-06 12:58:15 +0000
commitacb888b363b3c47c63d54694987f38851ca67b4d (patch)
tree9171844d30b0ed2c0b2d7fe87be9c4bf61e83ef0 /tf2-tools.spec
parenta8eb6631e711710038dea3f263988d0ebbc3d211 (diff)
automatic import of tf2-tools
Diffstat (limited to 'tf2-tools.spec')
-rw-r--r--tf2-tools.spec80
1 files changed, 80 insertions, 0 deletions
diff --git a/tf2-tools.spec b/tf2-tools.spec
new file mode 100644
index 0000000..c57e215
--- /dev/null
+++ b/tf2-tools.spec
@@ -0,0 +1,80 @@
+%bcond_without tests
+%bcond_without weak_deps
+
+%define ros_distro humble
+
+%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}/.*$
+
+%define RosPkgName tf2-tools
+
+Name: ros-%{ros_distro}-%{RosPkgName}
+Version: 0.25.20
+Release: 2%{?dist}%{?release_suffix}
+Summary: tf2_tools
+
+Url: http://www.ros.org/wiki/tf2_tools
+License: BSD
+Source0: %{RosPkgName}-%{version}.tar.gz
+
+Requires: graphviz
+Requires: python3-yaml
+Requires: ros-%{ros_distro}-rclpy
+Requires: ros-%{ros_distro}-tf2-msgs
+Requires: ros-%{ros_distro}-tf2-py
+Requires: ros-%{ros_distro}-tf2-ros-py
+Requires: ros-%{ros_distro}-ros-workspace
+
+BuildRequires: ros-%{ros_distro}-ros-workspace
+
+%if 0%{?with_tests}
+%endif
+
+Provides: %{name}-devel = %{version}-%{release}
+Provides: %{name}-doc = %{version}-%{release}
+Provides: %{name}-runtime = %{version}-%{release}
+
+%description
+tf2_tools
+
+%prep
+%autosetup -n %{RosPkgName}-%{version} -p1
+
+%build
+
+# In case we're installing to a non-standard location, look for a setup.sh
+# in the install tree and source it. It will set things like
+# CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
+if [ -f "/opt/ros/%{ros_distro}/setup.sh" ]; then . "/opt/ros/%{ros_distro}/setup.sh"; fi
+cd %{RosPkgName}-%{version}
+%py3_build
+
+%install
+# In case we're installing to a non-standard location, look for a setup.sh
+# in the install tree and source it. It will set things like
+# CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
+if [ -f "/opt/ros/%{ros_distro}/setup.sh" ]; then . "/opt/ros/%{ros_distro}/setup.sh"; fi
+cd %{RosPkgName}-%{version}
+%py3_install -- --prefix "/opt/ros/%{ros_distro}"
+
+%if 0%{?with_tests}
+%check
+# Look for a directory with a name indicating that it contains tests
+TEST_TARGET=$(ls -d * | grep -m1 "\(test\|tests\)" ||:)
+if [ -n "$TEST_TARGET" ] && %__python3 -m pytest --version; then
+# In case we're installing to a non-standard location, look for a setup.sh
+# in the install tree and source it. It will set things like
+# CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
+if [ -f "/opt/ros/%{ros_distro}/setup.sh" ]; then . "/opt/ros/%{ros_distro}/setup.sh"; fi
+%__python3 -m pytest $TEST_TARGET || echo "RPM TESTS FAILED"
+else echo "RPM TESTS SKIPPED"; fi
+%endif
+
+%files
+/opt/ros/%{ros_distro}
+
+%changelog
+* Fri Apr 03 2026 Chris Lalancette clalancette@openrobotics.org - 0.25.20-2
+- Autogenerated by ros-porting-tools