spec: fix emul build error 56/271156/2 accepted/tizen/unified/20220217.153506 submit/tizen/20220216.051033
authorEunhye Choi <eunhae1.choi@samsung.com>
Wed, 16 Feb 2022 06:25:16 +0000 (15:25 +0900)
committerEunhye Choi <eunhae1.choi@samsung.com>
Wed, 16 Feb 2022 06:36:27 +0000 (15:36 +0900)
- exclude omx build in case of ix86, x86_64

Change-Id: I3bbc650746a12b0dcd2459107af52f4c8b9790f3

packaging/gstreamer.spec

index 37d5a63..b8b4422 100644 (file)
@@ -358,6 +358,8 @@ BuildRequires:  pkgconfig(opencore-amrnb)
 ## Package info of Omx Plugin
 #######################################################
 
+%ifarch %{arm} aarch64
+
 %if "%{plugin}" == "all"
 %package -n gst-omx
 Summary:        GStreamer plug-in that allows communication with OpenMAX IL components
@@ -373,7 +375,6 @@ BuildRequires:  pkgconfig(mm-common)
 BuildRequires:  pkgconfig(bcm_host)
 BuildRequires:  pkgconfig(brcmegl)
 %endif
-ExclusiveArch: %arm aarch64
 
 %description -n gst-omx
 gst-openmax is a GStreamer plug-in that allows communication with OpenMAX IL components.
@@ -381,6 +382,8 @@ Multiple OpenMAX IL implementations can be used.
 
 %endif
 
+%endif # arch
+
 #######################################################
 ## Package info of libav Plugin
 #######################################################
@@ -512,6 +515,9 @@ export CXXFLAGS+=" -Wno-error"
 export LDFLAGS+=" -pthread"
 
 meson --auto-features=disabled --prefix=/usr --libdir=%{_libdir} --datadir=%{_datadir} --sysconfdir=%{_hal_sysconfdir} \
+%ifarch x86_64 %{ix86}
+  -D omx=disabled \
+%endif
 %if "%{plugin}" == "all" || "%{plugin}" == "core"
   -D %{_core_opt}check=enabled \
   -D %{_core_opt}coretracers=enabled \
@@ -664,19 +670,21 @@ meson --auto-features=disabled --prefix=/usr --libdir=%{_libdir} --datadir=%{_da
   -D %{_ugly_opt}amrnb=enabled \
   %endif # tv
 %endif # plugin
-%if "%{plugin}" == "all" || "%{plugin}" == "omx"
-  %if "%{target}" == "rpi"
-    -D %{_omx_opt}target=rpi \
-    -D %{_omx_opt}header_path=/opt/vc/include/interface/vmcs_host/khronos/IL \
-  %else
-    %ifarch aarch64
-      -D %{_omx_opt}target=exynos64 \
+%ifarch %{arm} aarch64
+  %if "%{plugin}" == "all" || "%{plugin}" == "omx"
+    %if "%{target}" == "rpi"
+      -D %{_omx_opt}target=rpi \
+      -D %{_omx_opt}header_path=/opt/vc/include/interface/vmcs_host/khronos/IL \
     %else
-      -D %{_omx_opt}target=exynos \
-      -D %{_omx_opt}vp9=true \
-    %endif # arch
-  %endif # target
-%endif # plugin
+      %ifarch aarch64
+        -D %{_omx_opt}target=exynos64 \
+      %else
+        -D %{_omx_opt}target=exynos \
+        -D %{_omx_opt}vp9=true \
+      %endif # arch
+    %endif # target
+  %endif # plugin
+%endif # arch
 %if "%{plugin}" == "all" || "%{plugin}" == "libav"
   %if "%{tizen_profile_name}" == "tv"
     -D %{_libav_opt}tv-profile=true \
@@ -1137,6 +1145,7 @@ rm -rf $RPM_BUILD_ROOT
 %endif
 
 ########################## gst-omx ###########################
+%ifarch %{arm} aarch64
 
 %if "%{plugin}" == "all" || "%{plugin}" == "omx"
 
@@ -1148,6 +1157,8 @@ rm -rf $RPM_BUILD_ROOT
 
 %endif
 
+%endif # arch
+
 ######################## gst-libav ###########################
 
 %if "%{plugin}" == "all" || "%{plugin}" == "libav"