From: Eunhye Choi Date: Wed, 16 Feb 2022 06:25:16 +0000 (+0900) Subject: spec: fix emul build error X-Git-Tag: accepted/tizen/unified/20220217.153506^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8e909e22f8b8078944664adc81377382881f8c9b;p=platform%2Fupstream%2Fgstreamer.git spec: fix emul build error - exclude omx build in case of ix86, x86_64 Change-Id: I3bbc650746a12b0dcd2459107af52f4c8b9790f3 --- diff --git a/packaging/gstreamer.spec b/packaging/gstreamer.spec index 37d5a63..b8b4422 100644 --- a/packaging/gstreamer.spec +++ b/packaging/gstreamer.spec @@ -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"