summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mobileye-560-660-msgs.spec11
1 files changed, 5 insertions, 6 deletions
diff --git a/mobileye-560-660-msgs.spec b/mobileye-560-660-msgs.spec
index e596940..2f16cb3 100644
--- a/mobileye-560-660-msgs.spec
+++ b/mobileye-560-660-msgs.spec
@@ -15,6 +15,7 @@ Source0: https://github.com/astuff/astuff_sensor_msgs/archive/master.tar.gz#/
%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
@@ -34,13 +35,11 @@ Provides: %{name}-runtime = %{version}-%{release}
%description
Message definitions for the Mobileye 560/660 sensor, part of the
-astuff_sensor_msgs collection.
+astuff_sensor_msgs monorepo. Provides ROS 2 message types for
+Mobileye 560/660 detection and obstacle data.
%prep
-%setup -q -n astuff_sensor_msgs-master
-# 源码包为 monorepo,目标子包在子目录中
-cp -r %{RosPkgNameUnderscore}/* .
-cp %{RosPkgNameUnderscore}/.* . 2>/dev/null || true
+%autosetup -n astuff_sensor_msgs-master
%build
source /opt/ros/%{ros_distro}/setup.sh 2>/dev/null || true
@@ -56,7 +55,7 @@ mkdir -p .obj && cd .obj
-USHARE_INSTALL_PREFIX -ULIB_SUFFIX \
-DSETUPTOOLS_DEB_LAYOUT=OFF \
-DBUILD_TESTING=OFF -DTESTING=OFF -DCMAKE_SUPPRESS_REGENERATION=ON \
- ..
+ ../%{RosPkgNameUnderscore}
make %{?_smp_mflags}
%install