%define ros_distro humble %define RosPkgName depthai %define src_version 2.20.2 Name: ros-%{ros_distro}-%{RosPkgName} Version: 2.20.2 Release: 3%{?dist} Summary: DepthAI core is a C++ library which comes with firmware and an API to interact License: MIT URL: https://github.com/luxonis/depthai-core/tree/ros-release Source0: %{RosPkgName}-%{src_version}.tar.gz %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: cmake BuildRequires: ros-%{ros_distro}-ament-cmake BuildRequires: ros-%{ros_distro}-ros-environment BuildRequires: libusbx-devel BuildRequires: nlohmann-json-devel BuildRequires: opencv Requires: ros-%{ros_distro}-ros-workspace Requires: ros-%{ros_distro}-ament-cmake Requires: libusbx-devel Requires: nlohmann-json-devel Requires: opencv Provides: %{name}-devel = %{version}-%{release} Provides: %{name}-doc = %{version}-%{release} Provides: %{name}-runtime = %{version}-%{release} %description DepthAI core is a C++ library which comes with firmware and an API to interact with OAK Platform %prep %autosetup -n %{RosPkgName}-%{src_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} mkdir -p .obj && cd .obj %cmake3 \ -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 \ -DDEPTHAI_ENABLE_CURL=OFF \ .. 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 .obj make install DESTDIR=%{buildroot} %files /opt/ros/%{ros_distro} %changelog * Mon Oct 26 2026 ai-importer - 2.20.2-3 - Skip hunter-managed nlohmann_json, use system nlohmann-json-devel instead - Hunter 2.20.2's bundled cmake/projects/nlohmann_json/hunter.cmake registers 3.9.1 too, conflicting with config.cmake's hunter_config(nlohmann_json 3.9.1 URL ...). Setting HUNTER_SKIP_PACKAGE_nlohmann_json=ON routes depthaiDependencies to find_package(nlohmann_json) (system >= 3.6.0), bypassing the duplicate hunter_add_version and resolving the "3.9.1 already used" fatal error. * Mon Oct 26 2026 ai-importer - 2.20.2-2 - Vendor all Hunter dependencies + device binaries for offline COPR build - Disable CURL support (runtime-only, avoids transitive openssl dep) - Patch HunterGate/config.cmake URLs to local vendor/ archives - Patch DepthaiDownloader/BootloaderDownloader to use vendor/ offline cache * Mon Oct 26 2026 ai-importer - 2.20.2-1 - Rebase to 2.20.2 (ROS batch import) * Tue Oct 13 2026 ai-importer - 2.20.2-1 - Initial import (ROS batch)