summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-03-08 13:10:36 +0000
committerCoprDistGit <infra@openeuler.org>2025-03-08 13:10:36 +0000
commit949528921671566f2a1307a16ed4a5229b7c784e (patch)
treefe0bd9a204727e473eec30fb2cba6505387f768e
parent09edffe68293dfbfc2f3672905d51a9f25f067aa (diff)
automatic import of ros-humble-tf2-toolsopeneuler24.03_LTS
-rw-r--r--.gitignore1
-rw-r--r--sources1
-rw-r--r--tf2-tools.spec79
3 files changed, 81 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..5dd351e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/ros-humble-tf2-tools_0.25.2.orig.tar.gz
diff --git a/sources b/sources
new file mode 100644
index 0000000..4531f28
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+d113da6b45fb50abfaf334a94672617a ros-humble-tf2-tools_0.25.2.orig.tar.gz
diff --git a/tf2-tools.spec b/tf2-tools.spec
new file mode 100644
index 0000000..0dd464a
--- /dev/null
+++ b/tf2-tools.spec
@@ -0,0 +1,79 @@
+%bcond_without tests
+%bcond_without weak_deps
+
+%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
+%define ros_distro humble
+
+Name: ros-%{ros_distro}-%{RosPkgName}
+Version: 0.25.2
+Release: 1%{?dist}%{?release_suffix}
+Summary: ROS tf2-tools package
+
+Url: http://www.ros.org/wiki/tf2_tools
+License: BSD
+Source0: %{name}_%{version}.orig.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 -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
+%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
+%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
+* Thu May 04 2023 Chris Lalancette clalancette@openrobotics.org - 0.25.2-1
+- Autogenerated by ros-porting-tools