summaryrefslogtreecommitdiff
path: root/librealsense2.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-03-26 13:22:10 +0000
committerCoprDistGit <infra@openeuler.org>2026-03-26 13:22:10 +0000
commit4f62537a4d0d21602b6a7066ddd84bf18b225427 (patch)
treef7172a5a179a63daac4592c9794e703f4eaeae10 /librealsense2.spec
parent5753bda242dd849249cb183ec4d2e7cbd8b6d9b1 (diff)
automatic import of librealsense2
Diffstat (limited to 'librealsense2.spec')
-rw-r--r--librealsense2.spec13
1 files changed, 7 insertions, 6 deletions
diff --git a/librealsense2.spec b/librealsense2.spec
index 43d0794..56a7bea 100644
--- a/librealsense2.spec
+++ b/librealsense2.spec
@@ -20,15 +20,13 @@ License: Apache License, Version 2.0
Patch1: 0-librealsense2-fix-threads-not-found.patch
Patch2: 0-librealsense2-add-riscv-arch.patch
Patch3: disable-lto.patch
-Source0: %{RosPkgName}-%{version}.tar.gz
+Source0: https://github.com/IntelRealSense/librealsense/archive/refs/tags/v2.57.7.tar.gz#/librealsense2-2.57.7.tar.gz
-Requires: libx11
-Requires: libglfw3-dev
+Requires: libX11-devel
Requires: mesa-libGL-devel
Requires: ros-%{ros_distro}-ros-workspace
-BuildRequires: libx11
-BuildRequires: libglfw3-dev
+BuildRequires: libX11-devel
BuildRequires: mesa-libGL-devel
BuildRequires: pkgconfig
BuildRequires: libusbx-devel
@@ -51,7 +49,7 @@ Provides: %{name}-runtime = %{version}-%{release}
Library for controlling and capturing data from the Intel(R) RealSense(TM) D400 devices.
%prep
-%autosetup -c -n %{name}-%{version}
+%autosetup -p1 -n librealsense-2.57.7
%build
# Needed to bootstrap since the ros_workspace package does not yet exist.
@@ -72,6 +70,9 @@ mkdir -p .obj-%{_target_platform} && cd .obj-%{_target_platform}
-DAMENT_PREFIX_PATH="/opt/ros/%{ros_distro}" \
-DCMAKE_PREFIX_PATH="/opt/ros/%{ros_distro}" \
-DSETUPTOOLS_DEB_LAYOUT=OFF \
+ -DBUILD_EXAMPLES=OFF \
+ -DBUILD_GLSL_EXTENSIONS=OFF \
+ -DBUILD_GRAPHICAL_EXAMPLES=OFF \
%if !0%{?with_tests}
-DBUILD_TESTING=OFF \
%endif