From b1f37f20ebe2df5c627843c37ea6ebf654e02e91 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Sat, 10 Oct 2026 12:40:20 +0000 Subject: automatic import of ros-humble-navmap-core --- .gitignore | 1 + navmap-core.spec | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 67 insertions(+) create mode 100644 navmap-core.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..59a2b11 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/navmap-core-0.6.0.tar.gz diff --git a/navmap-core.spec b/navmap-core.spec new file mode 100644 index 0000000..758afd7 --- /dev/null +++ b/navmap-core.spec @@ -0,0 +1,65 @@ +%define ros_distro humble +%define RosPkgName navmap-core +%global commit c96d8c81ac50ac98b4d9c837ffa39dba21b6f042 + +Name: ros-%{ros_distro}-%{RosPkgName} +Version: 0.6.0 +Release: 1%{?dist} +Summary: Core C++ library for NavMap +License: Apache-2.0 +URL: https://github.com/EasyNavigation/NavMap +Source0: %{url}/archive/%{commit}.tar.gz#/%{RosPkgName}-%{version}.tar.gz + +# topdir: navmap-core-0.6.0 (via --transform) +# ROS package subdir: navmap_core (from package.xml ) + +%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}-ament-cmake +BuildRequires: ros-%{ros_distro}-eigen3-cmake-module +BuildRequires: ros-%{ros_distro}-ros-workspace +BuildRequires: eigen3-devel +BuildRequires: cmake +BuildRequires: gcc-c++ + +Requires: ros-%{ros_distro}-ros-workspace +Requires: ros-%{ros_distro}-ament-cmake +Requires: ros-%{ros_distro}-eigen3-cmake-module +Requires: eigen3-devel + +%description +Core C++ library for NavMap, a ROS 2 navigation mapping package that provides +efficient grid-based navigation mapping data structures and algorithms. + +%prep +%autosetup -n %{RosPkgName}-%{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} + +cd navmap_core +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 +%make_build + +%install +cd navmap_core/.obj +make install DESTDIR=%{buildroot} + +%files +/opt/ros/%{ros_distro} + +%changelog +* Sat Oct 10 2026 ROS SIG - 0.6.0-1 +- Initial RPM release diff --git a/sources b/sources new file mode 100644 index 0000000..cb45e3c --- /dev/null +++ b/sources @@ -0,0 +1 @@ +4734d2c9277065db87144567b8a0e64a navmap-core-0.6.0.tar.gz -- cgit v1.2.3