mv3d: exclude open3d from tv profile 76/283176/1
authorTae-Young Chung <ty83.chung@samsung.com>
Thu, 20 Oct 2022 00:54:14 +0000 (09:54 +0900)
committerTae-Young Chung <ty83.chung@samsung.com>
Thu, 20 Oct 2022 01:05:03 +0000 (10:05 +0900)
[Version]: 0.23.40-1
[Issue type]: update

VD has build profile with aarch64 but there is no Open3D package now.
This commit moves BuildRequires of Open3D-devel package when %arch is
aarch64 but profile isn't tv

Change-Id: I5c1f43e3fe1473f0cdeb50a4e779d735cbe09d16
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
packaging/capi-media-vision.spec

index a49c1736f77dd13ec9146452780ef8c96c87626c..e05325fc30cb3db88af5e624e72efdec37981302 100644 (file)
@@ -1,7 +1,7 @@
 Name:        capi-media-vision
 Summary:     Media Vision library for Tizen Native API
 Version:     0.23.40
-Release:     0
+Release:     1
 Group:       Multimedia/Framework
 License:     Apache-2.0 and BSD-3-Clause
 Source0:     %{name}-%{version}.tar.gz
@@ -33,9 +33,6 @@ BuildRequires: pkgconfig(wayland-egl)
 BuildRequires: pkgconfig(glesv2)
 BuildRequires: gtest-devel
 BuildRequires: pkgconfig(dfs-adaptation)
-%ifarch aarch64
-BuildRequires: Open3D-devel
-%endif
 %if 0%{?visualizer:1}
 BuildRequires: pkgconfig(protobuf)
 BuildRequires: pkgconfig(grpc++)
@@ -45,6 +42,7 @@ BuildRequires: pkgconfig(grpc++)
 # Build options
 # ENABLE_INFERENCE_PROFILER
 # 0 : disable Mediavision inference engine profiler, 1 : enable Mediavision inference engine profiler.
+%define enable_mv3d_pointcloud 0
 %if "%{tizen_profile_name}" == "tv"
 %define enable_ml_face_recognition 0
 %define build_depth_stream_testsuite 0
@@ -55,8 +53,12 @@ Requires:      training-engine-interface-common
 
 %define build_depth_stream_testsuite 1
 BuildRequires: pkgconfig(vision-source)
+%ifarch aarch64
+%define enable_mv3d_pointcloud 1
+BuildRequires: Open3D-devel
+%endif
 %endif
-%define build_options -DENABLE_INFERENCE_PROFILER=0 -DENABLE_ML_FACE_RECOGNITION=%{enable_ml_face_recognition} -DBUILD_DEPTH_STREAM_TESTSUITE=%{build_depth_stream_testsuite}
+%define build_options -DENABLE_INFERENCE_PROFILER=0 -DENABLE_ML_FACE_RECOGNITION=%{enable_ml_face_recognition} -DBUILD_DEPTH_STREAM_TESTSUITE=%{build_depth_stream_testsuite} -DMV_3D_POINTCLOUD_IS_AVAILABLE=%{enable_mv3d_pointcloud}
 
 Requires:   %{name}-machine_learning
 Requires:   inference-engine-interface-common
@@ -277,9 +279,6 @@ export LDFLAGS+=" -lgcov"
 %endif
 
 %cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfo %{build_options} \
-%ifarch aarch64
--DMV_3D_POINTCLOUD_IS_AVAILABLE=TRUE \
-%endif
 %if 0%{?ml_only:1}
  -DBUILD_ML_ONLY=ON \
 %endif