summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-09-23 03:47:57 +0000
committerCoprDistGit <infra@openeuler.org>2026-09-23 03:47:57 +0000
commita35850949093778438db83ac33886a7b5756cd4d (patch)
tree2d4723d506e7e0ca5efdea17ff6f4cd15c653205
parent6c9f22e143ce3d6bb062616c78e21f6bbfd77361 (diff)
automatic import of ros-humble-robotont-msgs
-rw-r--r--.gitignore1
-rw-r--r--robotont-msgs.spec71
-rw-r--r--sources1
3 files changed, 73 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..de627e0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/ros-humble-robotont-msgs-0.2.0^20240913git3254b76.tar.gz
diff --git a/robotont-msgs.spec b/robotont-msgs.spec
new file mode 100644
index 0000000..f48a69f
--- /dev/null
+++ b/robotont-msgs.spec
@@ -0,0 +1,71 @@
+# topdir: ros-humble-robotont-msgs-0.2.0^20240913git3254b76
+# ROS 2 ament_cmake message package built from humble-devel branch snapshot
+%define ros_distro humble
+%define RosPkgName robotont-msgs
+%global commit 3254b7656ae490aad09b768d83451c30f496af8d
+
+Name: ros-%{ros_distro}-%{RosPkgName}
+Version: 0.2.0^20240913git3254b76
+Release: 1%{?dist}
+Summary: Custom ROS 2 messages for the robotont mobile robot platform
+License: Apache-2.0
+URL: https://github.com/robotont/robotont_msgs
+Source0: https://github.com/robotont/robotont_msgs/archive/%{commit}/%{name}-%{version}.tar.gz
+
+# ament_cmake build toolchain + rosidl generators + referenced std_msgs
+BuildRequires: ros-%{ros_distro}-ament-cmake
+BuildRequires: ros-%{ros_distro}-rosidl-default-generators
+BuildRequires: ros-%{ros_distro}-std-msgs
+BuildRequires: gcc-c++
+BuildRequires: cmake
+
+# ROS installs under /opt/ros -> disable debug, byte-compile and autodeps scan
+%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}/.*$
+
+# Single package policy: virtual aliases instead of real subpackages
+Provides: %{name}-devel = %{version}-%{release}
+Provides: %{name}-doc = %{version}-%{release}
+Provides: %{name}-runtime = %{version}-%{release}
+
+%description
+The robotont_msgs package provides custom ROS 2 message definitions for the
+robotont mobile robot platform, including ColorRGB, LedModulePixel,
+LedModuleSegment, LedModuleMode, PowerSupply and LaserScanSplit messages.
+
+%prep
+%autosetup -n %{name}-%{version}
+
+%build
+# ROS base environment (guarded: buildroot may not ship setup.sh for leaf pkgs)
+[ -f /opt/ros/%{ros_distro}/setup.sh ] && source /opt/ros/%{ros_distro}/setup.sh || 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}
+
+# Explicit out-of-source build (avoid openEuler %cmake position-arg pitfall)
+mkdir -p .obj
+cd .obj
+cmake .. \
+ -DCMAKE_INSTALL_PREFIX="/opt/ros/%{ros_distro}" \
+ -DAMENT_PREFIX_PATH="/opt/ros/%{ros_distro}" \
+ -DCMAKE_PREFIX_PATH="/opt/ros/%{ros_distro}" \
+ -UINCLUDE_INSTALL_DIR -ULIB_INSTALL_DIR -USYSCONF_INSTALL_DIR -USHARE_INSTALL_PREFIX -ULIB_SUFFIX \
+ -DSETUPTOOLS_DEB_LAYOUT=OFF \
+ -DBUILD_TESTING=OFF
+make %{?_smp_mflags}
+
+%install
+[ -f /opt/ros/%{ros_distro}/setup.sh ] && source /opt/ros/%{ros_distro}/setup.sh || 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}
+
+make -C .obj install DESTDIR=%{buildroot}
+
+%files
+/opt/ros/%{ros_distro}
+
+%changelog
+* Wed Sep 23 2026 AI Importer <ai-importer@openeuler.org> - 0.2.0^20240913git3254b76-1
+- Initial package for ros-humble-robotont-msgs built from humble-devel branch snapshot
diff --git a/sources b/sources
new file mode 100644
index 0000000..8c17d46
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+73c2ea6004da6a0519cfb676f9708dca ros-humble-robotont-msgs-0.2.0^20240913git3254b76.tar.gz