summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--delphi-mrr-msgs.spec75
-rw-r--r--sources1
3 files changed, 77 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/delphi-mrr-msgs.spec b/delphi-mrr-msgs.spec
new file mode 100644
index 0000000..9699344
--- /dev/null
+++ b/delphi-mrr-msgs.spec
@@ -0,0 +1,75 @@
+%define ros_distro humble
+%define RosPkgName delphi-mrr-msgs
+%define commit a07119d26d202023e5239a17007e93b1af4d9e32
+
+Name: ros-%{ros_distro}-%{RosPkgName}
+Version: 4.0.0
+Release: 1%{?dist}
+Summary: Message definitions for the Delphi MRR
+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: cmake
+BuildRequires: ros-%{ros_distro}-ament-cmake
+BuildRequires: ros-%{ros_distro}-builtin-interfaces
+BuildRequires: ros-%{ros_distro}-ros-environment
+BuildRequires: ros-%{ros_distro}-rosidl-default-generators
+BuildRequires: ros-%{ros_distro}-std-msgs
+
+Requires: ros-%{ros_distro}-ros-workspace
+Requires: ros-%{ros_distro}-ament-cmake
+Requires: ros-%{ros_distro}-builtin-interfaces
+Requires: ros-%{ros_distro}-rosidl-default-runtime
+Requires: ros-%{ros_distro}-std-msgs
+
+Provides: %{name}-devel = %{version}-%{release}
+Provides: %{name}-doc = %{version}-%{release}
+Provides: %{name}-runtime = %{version}-%{release}
+
+%description
+Message definitions for the Delphi MRR radar sensor, part of the
+astuff_sensor_msgs monorepo. Provides ROS 2 message types for
+MRR detection, status, and control data.
+
+%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 %{_builddir}/astuff_sensor_msgs-%{commit}/delphi_mrr_msgs/.obj
+cd %{_builddir}/astuff_sensor_msgs-%{commit}/delphi_mrr_msgs/.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 \
+ ..
+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 %{_builddir}/astuff_sensor_msgs-%{commit}/delphi_mrr_msgs/.obj
+make install DESTDIR=%{buildroot}
+
+%files
+/opt/ros/%{ros_distro}/
+
+%changelog
+* Mon Sep 15 2026 ROS SIG <ros-sig@openeuler.org> - 4.0.0-1
+- Initial package for openEuler (commit a07119d)
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