diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-10-10 12:40:20 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-10-10 12:40:20 +0000 |
| commit | b1f37f20ebe2df5c627843c37ea6ebf654e02e91 (patch) | |
| tree | 91646b43614abfc38cdd3e43ca359d4a4aa0e114 /navmap-core.spec | |
| parent | 3d344089410b8d4e1339c92ef37157070f8498e4 (diff) | |
automatic import of ros-humble-navmap-coreopeneuler24.03_LTS_SP3
Diffstat (limited to 'navmap-core.spec')
| -rw-r--r-- | navmap-core.spec | 65 |
1 files changed, 65 insertions, 0 deletions
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 <name>) + +%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 <ros@openeuler.org> - 0.6.0-1 +- Initial RPM release |
