From 3c7f679a87c63df1fc870900b2119074599d2724 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Sat, 10 Oct 2026 13:06:37 +0000 Subject: automatic import of ros-humble-navmap-ros-interfaces --- ros-humble-navmap-ros-interfaces.spec | 81 +++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 ros-humble-navmap-ros-interfaces.spec (limited to 'ros-humble-navmap-ros-interfaces.spec') diff --git a/ros-humble-navmap-ros-interfaces.spec b/ros-humble-navmap-ros-interfaces.spec new file mode 100644 index 0000000..a39f93d --- /dev/null +++ b/ros-humble-navmap-ros-interfaces.spec @@ -0,0 +1,81 @@ +# topdir: ros-humble-navmap-ros-interfaces-0.6.0 (via --transform) +# ros package subdir: navmap_ros_interfaces (monorepo NavMap) + +%define ros_distro humble +%define RosPkgName navmap-ros-interfaces + +%global commit c96d8c81ac50ac98b4d9c837ffa39dba21b6f042 + +# debug subpackage meaningless (/opt prefix, strip/debugedit paths non-standard) +%global debug_package %{nil} +# /opt python bytecode would write standard sitelib path, strip brp-python-bytecompile +%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g') +# ROS packages: no auto dependency scanning (.so all under /opt/ros, ament indirect deps model instead) +%global __provides_exclude_from ^/opt/ros/%{ros_distro}/.*$ +%global __requires_exclude_from ^/opt/ros/%{ros_distro}/.*$ + +Name: ros-%{ros_distro}-%{RosPkgName} +Version: 0.6.0 +Release: 1%{?dist} +Summary: ROS 2 interfaces for NavMap (messages for visualization and layers) +License: Apache-2.0 +URL: https://github.com/EasyNavigation/NavMap +Source0: https://github.com/EasyNavigation/NavMap/archive/%{commit}.tar.gz#/ros-humble-navmap-ros-interfaces-%{version}.tar.gz + +BuildRequires: ros-%{ros_distro}-ament-cmake +BuildRequires: ros-%{ros_distro}-builtin-interfaces +BuildRequires: ros-%{ros_distro}-rosidl-default-generators +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 + +# Single package strategy: no real subpackages, virtual provides for compat +Provides: %{name}-devel = %{version}-%{release} +Provides: %{name}-doc = %{version}-%{release} +Provides: %{name}-runtime = %{version}-%{release} + +%description +ROS 2 interfaces for NavMap (messages for visualization and layers). +This package provides the message definitions (NavMap, NavMapSurface, +NavMapLayer) used by the NavMap navigation framework. + +%prep +%autosetup -n %{name}-%{version} + +%build +# ROS base environment (chroot may not have setup.sh, guard with [ -f ]) +[ -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} + +# Build the navmap_ros_interfaces subdirectory (monorepo layout) +cd navmap_ros_interfaces +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 -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} +export PKG_CONFIG_PATH=/opt/ros/%{ros_distro}/lib/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH} + +cd navmap_ros_interfaces/.obj +%make_install + +%files +/opt/ros/%{ros_distro} + +%changelog +* Sat Oct 10 2026 AI Importer - 0.6.0-1 +- Initial package for ros-humble-navmap-ros-interfaces -- cgit v1.2.3