diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-09-21 03:05:02 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-09-21 03:05:02 +0000 |
| commit | ba4dfb3d73ccb40a9aeba24b0d1ed116e9309a82 (patch) | |
| tree | 2578c754286baede6c5a8cca0a9f9f3805ee4459 | |
| parent | cf00355e94447111fe6704b94880b10e7f797495 (diff) | |
automatic import of ros-humble-nebula-msgsopeneuler24.03_LTS_SP3
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | nebula-msgs.spec | 70 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 72 insertions, 0 deletions
@@ -0,0 +1 @@ +/26749c80dff89f39000a9817141143c05ec151ab.tar.gz diff --git a/nebula-msgs.spec b/nebula-msgs.spec new file mode 100644 index 0000000..70773dc --- /dev/null +++ b/nebula-msgs.spec @@ -0,0 +1,70 @@ +%define ros_distro humble +%define RosPkgName nebula-msgs +%global commit 26749c80dff89f39000a9817141143c05ec151ab + +Name: ros-%{ros_distro}-%{RosPkgName} +Version: 1.2.0 +Release: 1%{?dist} +Summary: Generic sensor raw data messages for Nebula +License: Apache-2.0 +# GitHub commit 归档解压根目录为完整 SHA,用 #/ 强制重定向避免猜错 +Source0: https://github.com/tier4/nebula/archive/%{commit}.tar.gz#/%{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-%{ros_distro}-autoware-cmake +BuildRequires: ros-%{ros_distro}-rosidl-default-generators +BuildRequires: ros-%{ros_distro}-builtin-interfaces +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}-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 +Generic sensor raw data messages for Nebula. Part of the Nebula lidar +driver framework by TIER IV. + +%prep +%autosetup -n %{commit} +# nebula_msgs 位于 monorepo 的 src/nebula_core/nebula_msgs 子目录 +# 将子包内容提升到构建根目录 +cp -r src/nebula_core/nebula_msgs/. . + +%build +[ -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} + +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 \ + .. +make %{?_smp_mflags} + +%install +cd .obj +make install DESTDIR=%{buildroot} + +%files +/opt/ros/%{ros_distro}/ + +%changelog +* Sun Sep 20 2026 ROS SIG <ros@openeuler.org> - 1.2.0-1 +- Initial package for ros-humble-nebula-msgs 1.2.0 @@ -0,0 +1 @@ +8d3db78f1fddc8a33dc84c4cedae0114 26749c80dff89f39000a9817141143c05ec151ab.tar.gz |
