diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-10-26 02:04:07 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-10-26 02:04:07 +0000 |
| commit | 2a872ee7838e385aaf07c95029bfcafc493de2d5 (patch) | |
| tree | b7700e8f57b396de4fbda9753bbdc0b69111acbf /depthai.spec | |
| parent | 5c52cef74f79b29e994450d21d25e0d4dc1353a3 (diff) | |
automatic import of ros-humble-depthai
Diffstat (limited to 'depthai.spec')
| -rw-r--r-- | depthai.spec | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/depthai.spec b/depthai.spec new file mode 100644 index 0000000..27a9ff9 --- /dev/null +++ b/depthai.spec @@ -0,0 +1,70 @@ +%define ros_distro humble +%define RosPkgName depthai +%define src_version 2.20.2 + +Name: ros-%{ros_distro}-%{RosPkgName} +Version: 2.20.2 +Release: 1%{?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 \ + .. +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 <ai-importer@openeuler.org> - 2.20.2-1 +- Rebase to 2.20.2 (ROS batch import) +* Tue Oct 13 2026 ai-importer <ai-importer@openeuler.org> - 2.20.2-1 +- Initial import (ROS batch)
\ No newline at end of file |
