summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-09-20 12:05:19 +0000
committerCoprDistGit <infra@openeuler.org>2026-09-20 12:05:19 +0000
commite35f87d083769ad1fca11b7d463340ecdcd0069f (patch)
treeea31fd45b88df5b23de50d431f2bc7e4e7860e47
parent23b90724cd156b1df5a9957c8f10eb922bb05ac9 (diff)
automatic import of ros-humble-nebula-core-decodersopeneuler24.03_LTS_SP3
-rw-r--r--.gitignore1
-rw-r--r--nebula-core-decoders.spec78
-rw-r--r--sources1
3 files changed, 80 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..bbe6b42 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/nebula-1.2.0.tar.gz
diff --git a/nebula-core-decoders.spec b/nebula-core-decoders.spec
new file mode 100644
index 0000000..00489e7
--- /dev/null
+++ b/nebula-core-decoders.spec
@@ -0,0 +1,78 @@
+%define ros_distro humble
+%define RosPkgName nebula-core-decoders
+
+Name: ros-%{ros_distro}-%{RosPkgName}
+Version: 1.2.0
+Release: 1%{?dist}
+Summary: Nebula Decoders Base Library
+License: Apache 2.0
+URL: https://github.com/tier4/nebula
+Source0: https://github.com/tier4/nebula/archive/refs/tags/v%{version}.tar.gz#/nebula-%{version}.tar.gz
+
+# debug 子包无意义(/opt 前缀,strip/debugedit 路径非常规)
+%global debug_package %{nil}
+# /opt 下 python 字节码编译会写标准 sitelib 路径,摘掉 brp-python-bytecompile
+%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
+# ROS 包不做自动依赖扫描(.so 全在 /opt/ros 下,由 ament 间接依赖模型替代)
+%global __provides_exclude_from ^/opt/ros/%{ros_distro}/.*$
+%global __requires_exclude_from ^/opt/ros/%{ros_distro}/.*$
+
+# ament_cmake 构建工具
+BuildRequires: ros-%{ros_distro}-ament-cmake
+BuildRequires: ros-%{ros_distro}-autoware-cmake
+BuildRequires: ros-%{ros_distro}-ros-environment
+# 系统依赖
+BuildRequires: libpng-devel
+BuildRequires: eigen3-devel
+BuildRequires: boost-devel
+# ROS 依赖
+BuildRequires: ros-%{ros_distro}-nebula-core-common
+BuildRequires: ros-%{ros_distro}-sensor-msgs
+
+Requires: ros-%{ros_distro}-ros-workspace
+Requires: ros-%{ros_distro}-ament-cmake
+Requires: ros-%{ros_distro}-nebula-core-common
+Requires: ros-%{ros_distro}-sensor-msgs
+
+Provides: %{name}-devel = %{version}-%{release}
+Provides: %{name}-doc = %{version}-%{release}
+Provides: %{name}-runtime = %{version}-%{release}
+
+%description
+Nebula Decoders Base Library — header-only interface library providing
+point filter and scan cutter primitives for the Nebula LiDAR driver suite.
+
+%prep
+%autosetup -n nebula-%{version}
+
+%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 src/nebula_core/nebula_core_decoders/.obj
+cd src/nebula_core/nebula_core_decoders/.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_build
+
+%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}
+
+cd src/nebula_core/nebula_core_decoders/.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-core-decoders 1.2.0
diff --git a/sources b/sources
new file mode 100644
index 0000000..b5d4b78
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+b6a23134a73c395de3b6d31e1c38f83f nebula-1.2.0.tar.gz