summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-09-15 15:12:54 +0000
committerCoprDistGit <infra@openeuler.org>2026-09-15 15:12:54 +0000
commit36b252aa81395023a77aab32a6d052c5b4816128 (patch)
treec54a771eae8d497acd368d98fc314ecdcb8dc199
parent7acdaa38dc7a695296a724a41f13e4847bfe46c5 (diff)
automatic import of ros-humble-neobotix-usboard-msgsopeneuler24.03_LTS
-rw-r--r--.gitignore1
-rw-r--r--neobotix-usboard-msgs.spec71
-rw-r--r--sources1
3 files changed, 73 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..71a7f31 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/astuff_sensor_msgs-a07119d26d202023e5239a17007e93b1af4d9e32.tar.gz
diff --git a/neobotix-usboard-msgs.spec b/neobotix-usboard-msgs.spec
new file mode 100644
index 0000000..83dedae
--- /dev/null
+++ b/neobotix-usboard-msgs.spec
@@ -0,0 +1,71 @@
+%define ros_distro humble
+%define RosPkgName neobotix-usboard-msgs
+%define commit a07119d26d202023e5239a17007e93b1af4d9e32
+
+Name: ros-%{ros_distro}-%{RosPkgName}
+Version: 4.0.0
+Release: 1%{?dist}
+Summary: neobotix_usboard package
+License: MIT
+URL: https://github.com/astuff/astuff_sensor_msgs
+Source0: https://github.com/astuff/astuff_sensor_msgs/archive/%{commit}.tar.gz#/astuff_sensor_msgs-%{commit}.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: ros-humble-ament-cmake
+BuildRequires: ros-humble-builtin-interfaces
+BuildRequires: ros-humble-ros-environment
+BuildRequires: ros-humble-rosidl-default-generators
+BuildRequires: ros-humble-rosidl-default-runtime
+BuildRequires: ros-humble-std-msgs
+
+Requires: ros-%{ros_distro}-ros-workspace
+Requires: ros-%{ros_distro}-ament-cmake
+Requires: ros-%{ros_distro}-builtin-interfaces
+Requires: ros-%{ros_distro}-std-msgs
+Requires: ros-%{ros_distro}-rosidl-default-runtime
+
+Provides: %{name}-devel = %{version}-%{release}
+Provides: %{name}-doc = %{version}-%{release}
+Provides: %{name}-runtime = %{version}-%{release}
+
+%description
+neobotix_usboard package - ROS 2 message definitions for the Neobotix USBoard sensor.
+
+%prep
+%autosetup -n astuff_sensor_msgs-%{commit}
+
+%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}
+
+mkdir -p .obj && cd .obj
+%cmake3 \
+ -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 -DTESTING=OFF -DCMAKE_SUPPRESS_REGENERATION=ON \
+ ../neobotix_usboard_msgs
+make %{?_smp_mflags}
+
+%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}
+
+cd .obj
+make install DESTDIR=%{buildroot}
+
+%files
+/opt/ros/%{ros_distro}/
+
+%changelog
+* Tue Sep 15 2026 AutonomouStuff Software Team <software@autonomoustuff.com> - 4.0.0-1
+- Initial package for ROS 2 Humble
diff --git a/sources b/sources
new file mode 100644
index 0000000..ac41c40
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+a78deed562fac48527aad19dac61aede astuff_sensor_msgs-a07119d26d202023e5239a17007e93b1af4d9e32.tar.gz