summaryrefslogtreecommitdiff
path: root/nao-meshes.spec
diff options
context:
space:
mode:
Diffstat (limited to 'nao-meshes.spec')
-rw-r--r--nao-meshes.spec21
1 files changed, 14 insertions, 7 deletions
diff --git a/nao-meshes.spec b/nao-meshes.spec
index ec2e76e..280c10f 100644
--- a/nao-meshes.spec
+++ b/nao-meshes.spec
@@ -1,14 +1,19 @@
%define ros_distro humble
%define RosPkgName nao-meshes
-%define src_version 2.1.2-1
+%global commit 25780ffd9325c3af3d63ecf76e1c11ca08ea26b4
Name: ros-%{ros_distro}-%{RosPkgName}
Version: 2.1.2
Release: 1%{?dist}
Summary: ROS2 Meshes for the NAO robot
License: Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International Public License
-URL: https://github.com/ros-naoqi/nao_meshes2/tree/main
-Source0: %{RosPkgName}-%{src_version}.tar.gz
+URL: https://github.com/ros-naoqi/nao_meshes2
+# GitHub commit 归档,解压根目录为纯完整 SHA(spec-rules-ros §2 实踩纪律)
+Source0: https://github.com/ros-naoqi/nao_meshes2/archive/%{commit}.tar.gz#/%{commit}.tar.gz
+
+# 上游 CMakeLists.txt 第 21 行硬编码架构检查:仅提供 x86/x86_64 预编译安装器
+# aarch64 及其他架构在 cmake 配置阶段直接 FATAL_ERROR,无法绕过
+ExclusiveArch: x86_64
%global debug_package %{nil}
%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
@@ -26,10 +31,12 @@ Provides: %{name}-doc = %{version}-%{release}
Provides: %{name}-runtime = %{version}-%{release}
%description
-ROS2 Meshes for the NAO robot
+ROS2 Meshes for the NAO robot. Provides mesh and texture assets for
+the SoftBank Robotics NAO robot, installed under the ROS 2 share prefix.
%prep
-%autosetup -n %{RosPkgName}-%{src_version}
+# GitHub commit 归档解压根目录为纯完整 SHA(非 <repo>-<sha>)
+%autosetup -n %{commit}
%build
source /opt/ros/%{ros_distro}/setup.sh 2>/dev/null || true
@@ -57,5 +64,5 @@ make install DESTDIR=%{buildroot}
/opt/ros/%{ros_distro}
%changelog
-* Wed Sep 16 2026 ai-importer <ai-importer@openeuler.org> - 2.1.2-1
-- Initial import (ROS batch)
+* Tue Sep 16 2026 ai-importer <ai-importer@openeuler.org> - 2.1.2-1
+- Initial import; restrict to x86_64 (upstream installer is x86-only)