summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--autoware-mission-details-overlay-rviz-plugin.spec107
-rw-r--r--sources1
3 files changed, 109 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..de0540a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/b3d59795932ee08cad52de5f1981cb8ef9d6d37c.tar.gz
diff --git a/autoware-mission-details-overlay-rviz-plugin.spec b/autoware-mission-details-overlay-rviz-plugin.spec
new file mode 100644
index 0000000..a2caa87
--- /dev/null
+++ b/autoware-mission-details-overlay-rviz-plugin.spec
@@ -0,0 +1,107 @@
+# ROS spec: autoware-mission-details-overlay-rviz-plugin
+# 由 AI 引包流程生成,遵循 /app/.claude/skills/build-rpm/spec-rules-ros.md
+# 源码仓库: autowarefoundation/autoware_rviz_plugins(monorepo,含多个兄弟包)
+# 本包位于子目录 autoware_overlay_rviz_plugin/autoware_mission_details_overlay_rviz_plugin/
+
+%define ros_distro humble
+%define RosPkgName autoware-mission-details-overlay-rviz-plugin
+
+# 实际拉取源为 main 分支 HEAD(commit b3d5979),该 commit 恰为上游 0.6.0 release tag。
+# 仓库无 0.5.0 tag,故 Source0 指向实际 commit 以保证可追溯。
+# Version 取自 ros_pkg_manifest.json 的 target_version(0.5.0),系 gate 决策值(规则 §2 优先级)。
+%global commit b3d59795932ee08cad52de5f1981cb8ef9d6d37c
+
+Name: ros-%{ros_distro}-%{RosPkgName}
+Version: 0.5.0
+Release: 1%{?dist}
+Summary: RViz2 plugin for 2D overlays for mission details in the 3D view
+License: Apache-2.0
+URL: https://github.com/autowarefoundation/autoware_rviz_plugins
+# GitHub commit 归档实测解压根目录为 autoware_rviz_plugins-<full-sha>(非纯 SHA,已下载归档 tarfile 验证)
+Source0: https://github.com/autowarefoundation/autoware_rviz_plugins/archive/%{commit}.tar.gz
+
+# /opt 前缀,debug 子包无意义
+%global debug_package %{nil}
+# /opt 下 python 字节码编译路径非常规,摘掉 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 形态,规则 §6 line 98)
+BuildRequires: ros-%{ros_distro}-ament-cmake
+
+# 系统依赖(package.xml <depend>boost + CMakeLists 用 qt5_wrap_cpp/Qt5Widgets,经 pkg.remap 映射)
+BuildRequires: boost-devel
+BuildRequires: qt5-qtbase-devel
+
+# ROS 依赖(package.xml <depend>;manifest 依赖分析字段为空,按规则 §6 line 94 不得静默丢弃)
+# rviz-2d-overlay-msgs / rviz-2d-overlay-plugins / rviz-common / rviz-ogre-vendor / rviz-rendering
+# 均在 ros-projects.list(SIG 已有);autoware-internal-msgs 不在任何清单,由 verify 门禁注册递归引入
+BuildRequires: ros-%{ros_distro}-autoware-internal-msgs
+BuildRequires: ros-%{ros_distro}-rviz-2d-overlay-msgs
+BuildRequires: ros-%{ros_distro}-rviz-2d-overlay-plugins
+BuildRequires: ros-%{ros_distro}-rviz-common
+BuildRequires: ros-%{ros_distro}-rviz-ogre-vendor
+BuildRequires: ros-%{ros_distro}-rviz-rendering
+
+# 运行时 Requires(ROS 特有,/opt 被 __requires_exclude_from 豁免、autodeps 扫不到,规则 §6)
+Requires: ros-%{ros_distro}-ros-workspace
+Requires: ros-%{ros_distro}-ament-cmake
+Requires: ros-%{ros_distro}-autoware-internal-msgs
+Requires: ros-%{ros_distro}-rviz-2d-overlay-msgs
+Requires: ros-%{ros_distro}-rviz-2d-overlay-plugins
+Requires: ros-%{ros_distro}-rviz-common
+Requires: ros-%{ros_distro}-rviz-ogre-vendor
+Requires: ros-%{ros_distro}-rviz-rendering
+# package.xml <depend>boost 对应运行时
+Requires: boost
+
+# 单包策略:虚拟别名兼容依赖方(规则 §7,严禁拆实体 devel 子包)
+Provides: %{name}-devel = %{version}-%{release}
+Provides: %{name}-doc = %{version}-%{release}
+Provides: %{name}-runtime = %{version}-%{release}
+
+%description
+RViz2 plugin for 2D overlays for mission details in the 3D view.
+This package is part of the Autoware rviz plugins suite.
+
+%prep
+%autosetup -n autoware_rviz_plugins-%{commit}
+
+%build
+# ROS 基座环境 bootstrap(规则 §4,[ -f ] 守卫避免 source 不存在文件中止脚本)
+[ -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}
+
+# monorepo:进入本包子目录做 out-of-source 构建(规则 §5,避免 %cmake 位置参数坑)
+cd autoware_overlay_rviz_plugin/autoware_mission_details_overlay_rviz_plugin
+mkdir -p .obj && cd .obj
+cmake .. \
+ -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 \
+ -DCMAKE_BUILD_TYPE=Release
+make %{?_smp_mflags}
+
+%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}
+export PKG_CONFIG_PATH=/opt/ros/%{ros_distro}/lib/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}
+
+cd autoware_overlay_rviz_plugin/autoware_mission_details_overlay_rviz_plugin/.obj
+make install DESTDIR=%{buildroot}
+
+%files
+# 整树拥有(规则 §7,对「装了没打包」免疫)
+/opt/ros/%{ros_distro}
+
+%changelog
+* Mon Oct 12 2026 AI Importer <ai-importer@opencode> - 0.5.0-1
+- Initial package for ros-humble-autoware-mission-details-overlay-rviz-plugin
+- Source fetched from autowarefoundation/autoware_rviz_plugins main (commit b3d5979)
+- ament_cmake build type, installed into /opt/ros/humble prefix
diff --git a/sources b/sources
new file mode 100644
index 0000000..eb05411
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+61f0a76b679aab93ea7d2864c934b91f b3d59795932ee08cad52de5f1981cb8ef9d6d37c.tar.gz