spec: apply tv profile requirement 10/272210/4
authorEunhye Choi <eunhae1.choi@samsung.com>
Fri, 11 Mar 2022 07:26:45 +0000 (16:26 +0900)
committerEunhye Choi <eunhae1.choi@samsung.com>
Mon, 14 Mar 2022 08:42:06 +0000 (17:42 +0900)
Change-Id: Ia8b7a5869182bce4cbdd24c6fa96702bf5da556d

packaging/gstreamer.spec

index 89d2f10..878fac2 100644 (file)
@@ -59,7 +59,7 @@
 
 Name:           %{_name}
 Version:        1.20.0
-Release:        6
+Release:        7
 Summary:        Streaming-Media Framework Runtime
 License:        LGPL-2.0+
 Group:          Multimedia/Framework
@@ -78,7 +78,9 @@ BuildRequires:  fdupes
 BuildRequires:  flex
 BuildRequires:  libtool
 BuildRequires:  pkgconfig(dlog)
+%if "%{tizen_profile_name}" != "tv"
 BuildRequires:  pkgconfig(gobject-introspection-1.0) >= 1.31.1
+%endif
 BuildRequires:  pkgconfig(libxml-2.0)
 
 %description -n gstreamer
@@ -141,7 +143,6 @@ BuildRequires:  orc >= 0.4.16
 BuildRequires:  python
 BuildRequires:  pkgconfig(alsa) >= 0.9.1
 BuildRequires:  pkgconfig(freetype2) >= 2.0.9
-BuildRequires:  pkgconfig(gobject-introspection-1.0) >= 1.31.1
 BuildRequires:  pkgconfig(libdrm)
 BuildRequires:  pkgconfig(libtbm)
 BuildRequires:  pkgconfig(libxml-2.0)
@@ -153,6 +154,7 @@ BuildRequires:  pkgconfig(vorbis) >= 1.0
 BuildRequires:  pkgconfig(vorbisenc) >= 1.0
 BuildRequires:  pkgconfig(zlib)
 %if "%{tizen_profile_name}" != "tv"
+BuildRequires:  pkgconfig(gobject-introspection-1.0) >= 1.31.1
 BuildRequires:  update-desktop-files
 %endif
 %if %{with wayland}
@@ -182,6 +184,7 @@ anything media-related, from real-time sound processing to playing
 videos. Its plug-in-based architecture means that new data types or
 processing capabilities can be added simply by installing new plug-ins.
 
+%if "%{tizen_profile_name}" != "tv"
 %package -n gst-plugins-base-extension-adder
 Summary:        libgstadder.so for gst-plugins-base
 Requires:       gst-plugins-base = %{version}-%{release}
@@ -190,6 +193,7 @@ Provides:       gst-plugins-base-profile_mobile = %{version}-%{release}
 %description -n gst-plugins-base-extension-adder
 Libgstadder.so for gst-plugin-base. Supplicant for gst-plugin-base.
 This is for Tizen mobile profile.
+%endif
 
 %package -n gst-plugins-base-devel
 Summary:        Include files and Libraries
@@ -218,10 +222,7 @@ BuildRequires:  orc >= 0.4.16
 BuildRequires:  python
 BuildRequires:  xsltproc
 BuildRequires:  pkgconfig(bzip2)
-BuildRequires:  pkgconfig(cairo)
-BuildRequires:  pkgconfig(cairo-gobject)
 BuildRequires:  pkgconfig(gio-2.0)
-BuildRequires:  pkgconfig(libpng) >= 1.2
 BuildRequires:  pkgconfig(libpulse) >= 1.0
 BuildRequires:  pkgconfig(libsoup-2.4)
 BuildRequires:  pkgconfig(libtbm)
@@ -230,6 +231,9 @@ BuildRequires:  pkgconfig(vconf)
 BuildRequires:  pkgconfig(vpx)
 BuildRequires:  pkgconfig(zlib)
 %if "%{tizen_profile_name}" != "tv"
+BuildRequires:  pkgconfig(cairo)
+BuildRequires:  pkgconfig(cairo-gobject)
+BuildRequires:  pkgconfig(libpng) >= 1.2
 BuildRequires:  pkgconfig(libv4l2)
 %endif
 %if %{with x}
@@ -277,7 +281,6 @@ Group:          Multimedia/Framework
 BuildRequires:  python
 BuildRequires:  xsltproc
 BuildRequires:  pkgconfig(gio-2.0) >= 2.25.0
-BuildRequires:  pkgconfig(gobject-introspection-1.0) >= 1.31.1
 BuildRequires:  pkgconfig(libcurl) >= 7.21.0
 BuildRequires:  pkgconfig(libexif) >= 0.6.16
 BuildRequires:  pkgconfig(libsrtp2) >= 2.1.0
@@ -358,6 +361,7 @@ BuildRequires:  pkgconfig(opencore-amrnb)
 ## Package info of Omx Plugin
 #######################################################
 
+%if "%{tizen_profile_name}" != "tv"
 %ifarch %{arm} aarch64
 
 %if "%{plugin}" == "all"
@@ -380,9 +384,9 @@ BuildRequires:  pkgconfig(brcmegl)
 gst-openmax is a GStreamer plug-in that allows communication with OpenMAX IL components.
 Multiple OpenMAX IL implementations can be used.
 
-%endif
-
+%endif # plugin
 %endif # arch
+%endif # profile
 
 #######################################################
 ## Package info of libav Plugin
@@ -451,6 +455,8 @@ Requires:       gst-rtsp-server = %{version}-%{release}
 ## Package info of editing-services Plugin
 #######################################################
 
+%if "%{tizen_profile_name}" != "tv"
+
 %if "%{plugin}" == "all"
 %package -n gst-editing-services
 Summary:        GStreamer Editing Service Plug-Ins
@@ -477,7 +483,9 @@ Requires:       gst-editing-services = %{version}-%{release}
 This package contains libraries and header files for
 developing applications that use %{name}
 
-%endif
+%endif # plugin
+
+%endif # profile
 
 #######################################################
 ## Prep
@@ -490,10 +498,12 @@ cp %{SOURCE1001} ./gst-plugins-base.manifest
 cp %{SOURCE1001} ./gst-plugins-good.manifest
 cp %{SOURCE1001} ./gst-plugins-bad.manifest
 cp %{SOURCE1001} ./gst-plugins-ugly.manifest
-cp %{SOURCE1001} ./gst-omx.manifest
 cp %{SOURCE1001} ./gst-libav.manifest
 cp %{SOURCE1001} ./gst-rtsp-server.manifest
+%if "%{tizen_profile_name}" != "tv"
+cp %{SOURCE1001} ./gst-omx.manifest
 cp %{SOURCE1001} ./gst-editing-services.manifest
+%endif
 
 #######################################################
 ## Build
@@ -510,24 +520,37 @@ export CFLAGS="%{optflags} \
   -fno-strict-aliasing\
   -fstack-protector-strong\
   -Wl,-z,relro\
+%if "%{tizen_profile_name}" == "tv"
+  -Wno-declaration-after-statement\
+%endif
   -D_FORTIFY_SOURCE=2"
 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"
+  %if "%{tizen_profile_name}" == "tv"
+    -D ges=disabled \
+    -D omx=disabled \
+  %endif # profile
+  %ifarch x86_64 %{ix86}
+    -D omx=disabled \
+  %endif # arch
+%endif # plugin
 %if "%{plugin}" == "all" || "%{plugin}" == "core"
   -D %{_core_opt}check=enabled \
   -D %{_core_opt}coretracers=enabled \
   -D %{_core_opt}tools=enabled \
-  -D %{_core_opt}introspection=enabled \
   -D %{_core_opt}extra-checks=enabled \
   -D %{_core_opt}ptp-helper-permissions=none \
-%endif
+  %if "%{tizen_profile_name}" == "tv"
+    -D %{_core_opt}tv-profile=true \
+    -D %{_core_opt}introspection=disabled \
+  %else
+    -D %{_core_opt}introspection=enabled \
+  %endif # profile
+%endif # plugin
 %if "%{plugin}" == "all" || "%{plugin}" == "base"
-  -D %{_base_opt}adder=enabled \
   -D %{_base_opt}app=enabled \
   -D %{_base_opt}audioconvert=enabled \
   -D %{_base_opt}audiomixer=enabled \
@@ -535,7 +558,6 @@ meson --auto-features=disabled --prefix=/usr --libdir=%{_libdir} --datadir=%{_da
   -D %{_base_opt}audioresample=enabled \
   -D %{_base_opt}audiotestsrc=enabled \
   -D %{_base_opt}compositor=enabled \
-  -D %{_base_opt}encoding=enabled \
   -D %{_base_opt}gio=enabled \
   -D %{_base_opt}gio-typefinder=enabled \
   -D %{_base_opt}overlaycomposition=enabled \
@@ -555,15 +577,17 @@ meson --auto-features=disabled --prefix=/usr --libdir=%{_libdir} --datadir=%{_da
   -D %{_base_opt}opus=enabled \
   -D %{_base_opt}theora=enabled \
   -D %{_base_opt}vorbis=enabled \
-  -D %{_base_opt}introspection=enabled \
   -D %{_base_opt}tbm=true \
   %if "%{tizen_profile_name}" == "tv"
     -D %{_base_opt}tv-profile=true \
   %else
+    -D %{_base_opt}adder=enabled \
+    -D %{_base_opt}encoding=enabled \
+    -D %{_base_opt}introspection=enabled \
     %if 0%{?enable_gl:1}
       -D %{_base_opt}gl=enabled \
     %endif # gl
-  %endif # tv
+  %endif # profile
 %endif # base plugin
 %if "%{plugin}" == "all" || "%{plugin}" == "good"
   %if 0%{?ENABLE_AALIB}
@@ -576,40 +600,45 @@ meson --auto-features=disabled --prefix=/usr --libdir=%{_libdir} --datadir=%{_da
   -D %{_good_opt}avi=enabled \
   -D %{_good_opt}debugutils=enabled \
   -D %{_good_opt}deinterlace=enabled \
-  -D %{_good_opt}effectv=enabled \
-  -D %{_good_opt}flv=enabled \
   -D %{_good_opt}icydemux=enabled \
   -D %{_good_opt}id3demux=enabled \
-  -D %{_good_opt}imagefreeze=enabled \
   -D %{_good_opt}interleave=enabled \
   -D %{_good_opt}isomp4=enabled \
   -D %{_good_opt}law=enabled \
-  -D %{_good_opt}matroska=enabled \
-  -D %{_good_opt}multifile=enabled \
   -D %{_good_opt}replaygain=enabled \
   -D %{_good_opt}rtp=enabled \
   -D %{_good_opt}rtpmanager=enabled \
   -D %{_good_opt}rtsp=enabled \
-  -D %{_good_opt}smpte=enabled \
   -D %{_good_opt}udp=enabled \
-  -D %{_good_opt}videobox=enabled \
   -D %{_good_opt}videocrop=enabled \
   -D %{_good_opt}videofilter=enabled \
-  -D %{_good_opt}videomixer=enabled \
   -D %{_good_opt}wavenc=enabled \
   -D %{_good_opt}wavparse=enabled \
-  -D %{_good_opt}v4l2=enabled \
-  -D %{_good_opt}cairo=enabled \
   -D %{_good_opt}jpeg=enabled \
-  -D %{_good_opt}png=enabled \
   -D %{_good_opt}pulse=enabled \
   -D %{_good_opt}soup=enabled \
   -D %{_good_opt}vpx=enabled \
   -D %{_good_opt}tbm=true \
-  -D %{_good_opt}v4l2-probe=true \
-  %if "%{tizen_profile_name}" != "tv"
+  %if "%{tizen_profile_name}" == "tv"
+    -D %{_good_opt}tv-profile=true \
+    %ifnarch %{arm} aarch64
+      -D %{_good_opt}v4l2=enabled \
+    %endif
+  %else
+    -D %{_good_opt}cairo=enabled \
+    -D %{_good_opt}effectv=enabled \
+    -D %{_good_opt}flv=enabled \
+    -D %{_good_opt}imagefreeze=enabled \
+    -D %{_good_opt}matroska=enabled \
+    -D %{_good_opt}multifile=enabled \
+    -D %{_good_opt}png=enabled \
+    -D %{_good_opt}smpte=enabled \
+    -D %{_good_opt}v4l2=enabled \
     -D %{_good_opt}v4l2-libv4l2=enabled \
-  %endif # tv
+    -D %{_good_opt}v4l2-probe=true \
+    -D %{_good_opt}videobox=enabled \
+    -D %{_good_opt}videomixer=enabled \
+  %endif # profile
 %endif # plugin
 %if "%{plugin}" == "all" || "%{plugin}" == "bad"
   -D %{_bad_opt}gst_play_tests=false\
@@ -617,12 +646,10 @@ meson --auto-features=disabled --prefix=/usr --libdir=%{_libdir} --datadir=%{_da
   -D %{_bad_opt}audiobuffersplit=enabled \
   -D %{_bad_opt}audiomixmatrix=enabled \
   -D %{_bad_opt}audiolatency=enabled \
-  -D %{_bad_opt}coloreffects=enabled \
   -D %{_bad_opt}debugutils=enabled \
-  -D %{_bad_opt}gaudieffects=enabled \
-  -D %{_bad_opt}gdp=enabled \
   -D %{_bad_opt}midi=enabled \
   -D %{_bad_opt}mpegtsmux=enabled \
+  -D %{_bad_opt}mpegtsdemux=enabled \
   -D %{_bad_opt}netsim=enabled \
   -D %{_bad_opt}proxy=enabled \
   -D %{_bad_opt}sdp=enabled \
@@ -647,19 +674,21 @@ meson --auto-features=disabled --prefix=/usr --libdir=%{_libdir} --datadir=%{_da
     -D %{_bad_opt}tv-profile=true \
   %else
     -D %{_bad_opt}autoconvert=enabled \
+    -D %{_bad_opt}coloreffects=enabled \
+    -D %{_bad_opt}gaudieffects=enabled \
+    -D %{_bad_opt}gdp=enabled \
     -D %{_bad_opt}id3tag=enabled \
     -D %{_bad_opt}camerabin2=enabled \
     -D %{_bad_opt}jpegformat=enabled \
     -D %{_bad_opt}dash=enabled \
     -D %{_bad_opt}hls=enabled \
     -D %{_bad_opt}mpegdemux=enabled \
-    -D %{_bad_opt}mpegtsdemux=enabled \
     -D %{_bad_opt}rtp=enabled \
     -D %{_bad_opt}smoothstreaming=enabled \
     %if 0%{?enable_gl:1}
       -D %{_bad_opt}gl=enabled \
     %endif # gl
-  %endif # tv
+  %endif # profile
 %endif # plugin
 %if "%{plugin}" == "all" || "%{plugin}" == "ugly"
   -D %{_ugly_opt}amrwbdec=enabled \
@@ -668,38 +697,40 @@ meson --auto-features=disabled --prefix=/usr --libdir=%{_libdir} --datadir=%{_da
   %else
   -D %{_ugly_opt}asfdemux=enabled \
   -D %{_ugly_opt}amrnb=enabled \
-  %endif # tv
+  %endif # profile
 %endif # plugin
-%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
-      %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 \
-  %endif # tv
+  %endif # profile
 %endif # plugin
 %if "%{plugin}" == "all" || "%{plugin}" == "rs"
   -D %{_rs_opt}rtspclientsink=enabled \
   -D %{_rs_opt}introspection=disabled \
 %endif
-%if "%{plugin}" == "all" || "%{plugin}" == "es"
-  -D %{_es_opt}introspection=disabled \
-  -D %{_es_opt}tools=enabled \
-  -D %{_es_opt}xptv=enabled \
-  -D %{_es_opt}python=enabled \
-%endif
+%if "%{tizen_profile_name}" != "tv"
+  %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
+        %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}" == "es"
+    -D %{_es_opt}introspection=disabled \
+    -D %{_es_opt}tools=enabled \
+    -D %{_es_opt}xptv=enabled \
+    -D %{_es_opt}python=enabled \
+  %endif # plugin
+%endif # profile
   build
 
 ninja -C build all %{?_smp_mflags}
@@ -753,11 +784,13 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/libgstnet-%{gst_branch}.so.*
 %{_libdir}/libgstcheck-%{gst_branch}.so.*
 %{_libdir}/libgstreamer-%{gst_branch}.so.*
+%if "%{tizen_profile_name}" != "tv"
 %{_lib_girepository}/Gst-%{gst_branch}.typelib
 %{_lib_girepository}/GstBase-%{gst_branch}.typelib
 %{_lib_girepository}/GstController-%{gst_branch}.typelib
 %{_lib_girepository}/GstNet-%{gst_branch}.typelib
 %{_lib_girepository}/GstCheck-%{gst_branch}.typelib
+%endif
 %{_datadir}/gdb/auto-load/usr/%{_lib}/libgstreamer-%{gst_branch}*-gdb.py
 %{_datadir}/gstreamer-%{gst_branch}/gdb/glib_gobject_helper.py
 %{_datadir}/gstreamer-%{gst_branch}/gdb/gst_gdb.py
@@ -791,11 +824,13 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/pkgconfig/gstreamer-controller-%{gst_branch}.pc
 %{_libdir}/pkgconfig/gstreamer-net-%{gst_branch}.pc
 %{_libdir}/pkgconfig/gstreamer-check-%{gst_branch}.pc
+%if "%{tizen_profile_name}" != "tv"
 %{_datadir}/gir-%{gst_branch}/Gst-%{gst_branch}.gir
 %{_datadir}/gir-%{gst_branch}/GstBase-%{gst_branch}.gir
 %{_datadir}/gir-%{gst_branch}/GstController-%{gst_branch}.gir
 %{_datadir}/gir-%{gst_branch}/GstNet-%{gst_branch}.gir
 %{_datadir}/gir-%{gst_branch}/GstCheck-%{gst_branch}.gir
+%endif
 
 %changelog
 
@@ -832,7 +867,6 @@ rm -rf $RPM_BUILD_ROOT
 %{_lib_gstreamer_dir}/libgstpbtypes.so
 %{_lib_gstreamer_dir}/libgstrawparse.so
 %{_lib_gstreamer_dir}/libgstopus.so
-%{_lib_gstreamer_dir}/libgstencoding.so
 %{_lib_gstreamer_dir}/libgstaudiomixer.so
 %{_lib_gstreamer_dir}/libgstcompositor.so
 %if %{with x}
@@ -850,6 +884,8 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/libgstsdp-%{gst_branch}.so.*
 %{_libdir}/libgsttag-%{gst_branch}.so.*
 %{_libdir}/libgstvideo-%{gst_branch}.so.*
+%if "%{tizen_profile_name}" != "tv"
+%{_lib_gstreamer_dir}/libgstencoding.so
 %{_lib_girepository}/GstAllocators-%{gst_branch}.typelib
 %{_lib_girepository}/GstApp-%{gst_branch}.typelib
 %{_lib_girepository}/GstAudio-%{gst_branch}.typelib
@@ -859,13 +895,16 @@ rm -rf $RPM_BUILD_ROOT
 %{_lib_girepository}/GstSdp-%{gst_branch}.typelib
 %{_lib_girepository}/GstTag-%{gst_branch}.typelib
 %{_lib_girepository}/GstVideo-%{gst_branch}.typelib
+%endif
 %dir %{_datadir}/gst-plugins-base/
 %dir %{_datadir}/gst-plugins-base/%{gst_branch}/
 %{_datadir}/gst-plugins-base/%{gst_branch}/license-translations.dict
 
+%if "%{tizen_profile_name}" != "tv"
 %files -n gst-plugins-base-extension-adder
 %{_lib_gstreamer_dir}/libgstadder.so
 %license subprojects/gst-plugins-base/COPYING
+%endif # profile
 
 %files -n gst-plugins-base-devel
 %manifest gst-plugins-base.manifest
@@ -881,7 +920,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_includedir}/gstreamer-%{gst_branch}/gst/sdp/*
 %{_includedir}/gstreamer-%{gst_branch}/gst/tag/*
 %{_includedir}/gstreamer-%{gst_branch}/gst/video/*
-%if "%{plugin}" == "all"
+%if "%{plugin}" == "all" && "%{tizen_profile_name}" != "tv"
 %exclude %{_includedir}/gstreamer-%{gst_branch}/gst/audio/audio-bad-prelude.h
 %exclude %{_includedir}/gstreamer-%{gst_branch}/gst/audio/gstnonstreamaudiodecoder.h
 %exclude %{_includedir}/gstreamer-%{gst_branch}/gst/audio/gstplanaraudioadapter.h
@@ -909,6 +948,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/pkgconfig/gstreamer-sdp-%{gst_branch}.pc
 %{_libdir}/pkgconfig/gstreamer-tag-%{gst_branch}.pc
 %{_libdir}/pkgconfig/gstreamer-video-%{gst_branch}.pc
+%if "%{tizen_profile_name}" != "tv"
 %{_datadir}/gir-%{gst_branch}/GstAllocators-%{gst_branch}.gir
 %{_datadir}/gir-%{gst_branch}/GstApp-%{gst_branch}.gir
 %{_datadir}/gir-%{gst_branch}/GstAudio-%{gst_branch}.gir
@@ -918,8 +958,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/gir-%{gst_branch}/GstSdp-%{gst_branch}.gir
 %{_datadir}/gir-%{gst_branch}/GstTag-%{gst_branch}.gir
 %{_datadir}/gir-%{gst_branch}/GstVideo-%{gst_branch}.gir
+%endif # profile
 
-%endif
+%endif # plugin
 
 ###################### gst-plugins-good ######################
 
@@ -937,41 +978,45 @@ rm -rf $RPM_BUILD_ROOT
 %{_lib_gstreamer_dir}/libgstavi.so
 %{_lib_gstreamer_dir}/libgstdebug.so
 %{_lib_gstreamer_dir}/libgstdeinterlace.so
-%{_lib_gstreamer_dir}/libgsteffectv.so
 %{_lib_gstreamer_dir}/libgsticydemux.so
 %{_lib_gstreamer_dir}/libgstid3demux.so
 %{_lib_gstreamer_dir}/libgstinterleave.so
 %{_lib_gstreamer_dir}/libgstisomp4.so
 %{_lib_gstreamer_dir}/libgstjpeg.so
-%{_lib_gstreamer_dir}/libgstmatroska.so
 %{_lib_gstreamer_dir}/libgstmulaw.so
-%{_lib_gstreamer_dir}/libgstmultifile.so
 %{_lib_gstreamer_dir}/libgstnavigationtest.so
 %{_lib_gstreamer_dir}/libgstpulseaudio.so
 %{_lib_gstreamer_dir}/libgstreplaygain.so
 %{_lib_gstreamer_dir}/libgstrtp.so
 %{_lib_gstreamer_dir}/libgstrtpmanager.so
 %{_lib_gstreamer_dir}/libgstrtsp.so
-%{_lib_gstreamer_dir}/libgstsmpte.so
 %{_lib_gstreamer_dir}/libgstudp.so
-%{_lib_gstreamer_dir}/libgstvideo4linux2.so
 %{_lib_gstreamer_dir}/libgstvideocrop.so
 %{_lib_gstreamer_dir}/libgstvideofilter.so
 %{_lib_gstreamer_dir}/libgstwavenc.so
 %{_lib_gstreamer_dir}/libgstwavparse.so
 %if %{with x}
 %{_lib_gstreamer_dir}/libgstximagesrc.so
-%endif
-%{_lib_gstreamer_dir}/libgstcairo.so
+%endif # x
 %{_lib_gstreamer_dir}/libgstsoup.so
 %{_lib_gstreamer_dir}/libgstvpx.so
-%{_lib_gstreamer_dir}/libgstimagefreeze.so
 %if "%{tizen_profile_name}" != "tv"
+%{_lib_gstreamer_dir}/libgstcairo.so
+%{_lib_gstreamer_dir}/libgsteffectv.so
 %{_lib_gstreamer_dir}/libgstflv.so
+%{_lib_gstreamer_dir}/libgstimagefreeze.so
+%{_lib_gstreamer_dir}/libgstmatroska.so
+%{_lib_gstreamer_dir}/libgstmultifile.so
+%{_lib_gstreamer_dir}/libgstsmpte.so
+%{_lib_gstreamer_dir}/libgstvideo4linux2.so
 %{_lib_gstreamer_dir}/libgstvideobox.so
 %{_lib_gstreamer_dir}/libgstvideomixer.so
+%else
+%ifnarch %{arm} aarch64
+%{_lib_gstreamer_dir}/libgstvideo4linux2.so
+%endif # arch
+%endif # profile
 %{_datadir}/gstreamer-%{gst_branch}/presets/GstQTMux.prs
-%endif
 %{_datadir}/gstreamer-%{gst_branch}/presets/GstVP8Enc.prs
 
 %files -n gst-plugins-good-extra
@@ -981,8 +1026,10 @@ rm -rf $RPM_BUILD_ROOT
 %if 0%{?ENABLE_AALIB}
 %{_lib_gstreamer_dir}/libgstaasink.so
 %endif
+%if "%{tizen_profile_name}" != "tv"
 %{_lib_gstreamer_dir}/libgstpng.so
 %{_lib_gstreamer_dir}/libgstimagefreeze.so
+%endif
 
 %endif
 
@@ -995,38 +1042,41 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(-, root, root)
 %license subprojects/gst-plugins-bad/COPYING
 %if "%{tizen_profile_name}" != "tv"
+%{_lib_gstreamer_dir}/libgstgaudieffects.so
 %{_lib_gstreamer_dir}/libgstautoconvert.so
 %{_lib_gstreamer_dir}/libgstcamerabin.so
+%{_lib_gstreamer_dir}/libgstcoloreffects.so
+%{_lib_gstreamer_dir}/libgstdash.so
+%{_lib_gstreamer_dir}/libgstgdp.so
+%{_lib_gstreamer_dir}/libgsthls.so
 %{_lib_gstreamer_dir}/libgstid3tag.so
 %{_lib_gstreamer_dir}/libgstjpegformat.so
 %{_lib_gstreamer_dir}/libgstmpegpsdemux.so
 %{_lib_gstreamer_dir}/libgstsmoothstreaming.so
-%{_lib_gstreamer_dir}/libgstdash.so
 %if 0%{?enable_gl:1}
 %{_lib_gstreamer_dir}/libgstopengl.so
+%{_libdir}/libgstgl-%{gst_branch}.so.0*
 %endif
-%{_lib_gstreamer_dir}/libgstsoundtouch.so
+%{_libdir}/libgstisoff-%{gst_branch}.so.0*
 %{_libdir}/libgstadaptivedemux-%{gst_branch}.so.0*
+%{_libdir}/libgstbadaudio-%{gst_branch}.so.0*
 %{_libdir}/libgstbasecamerabinsrc-%{gst_branch}.so.0*
 %{_libdir}/libgstinsertbin-%{gst_branch}.so.0*
+%{_libdir}/libgstplay-%{gst_branch}.so.0*
+%{_libdir}/libgstplayer-%{gst_branch}.so.0*
 %{_libdir}/libgstphotography-%{gst_branch}.so.0*
 %{_libdir}/libgsturidownloader-%{gst_branch}.so.0*
-%if 0%{?enable_gl:1}
-%{_libdir}/libgstgl-%{gst_branch}.so.0*
-%endif
-%{_libdir}/libgstisoff-%{gst_branch}.so.0*
-%endif
+%endif # profile
+%{_lib_gstreamer_dir}/libgstsoundtouch.so
 %{_lib_gstreamer_dir}/libgstaes.so
-%{_lib_gstreamer_dir}/libgstgdp.so
 %{_lib_gstreamer_dir}/libgstdebugutilsbad.so
-%{_lib_gstreamer_dir}/libgstmpegtsdemux.so
 %{_lib_gstreamer_dir}/libgstmpegtsmux.so
+%{_lib_gstreamer_dir}/libgstmpegtsdemux.so
 %{_lib_gstreamer_dir}/libgstsdpelem.so
 %{_lib_gstreamer_dir}/libgstshm.so
 %{_lib_gstreamer_dir}/libgstvideoparsersbad.so
 %{_lib_gstreamer_dir}/libgstmidi.so
 %{_lib_gstreamer_dir}/libgstopenal.so
-%{_lib_gstreamer_dir}/libgsthls.so
 %{_lib_gstreamer_dir}/libgstnetsim.so
 %{_lib_gstreamer_dir}/libgsttimecode.so
 %{_lib_gstreamer_dir}/libgstvideoframe_audiolevel.so
@@ -1038,21 +1088,18 @@ rm -rf $RPM_BUILD_ROOT
 %{_lib_gstreamer_dir}/libgstnice.so
 %{_lib_gstreamer_dir}/libgstwebrtc.so
 %{_lib_gstreamer_dir}/libgstdtls.so
+%if "%{tizen_profile_name}" != "tv"
 %{_lib_gstreamer_dir}/libgstrtpmanagerbad.so
+%endif
 %{_lib_gstreamer_dir}/libgstsctp.so
 %{_lib_gstreamer_dir}/libgstsrtp.so
 %{_lib_gstreamer_dir}/libgstopusparse.so
-%{_lib_gstreamer_dir}/libgstgaudieffects.so
-%{_lib_gstreamer_dir}/libgstcoloreffects.so
 %if %{with wayland}
 %{_lib_gstreamer_dir}/libgstwaylandsink.so
 %endif
-%{_libdir}/libgstbadaudio-%{gst_branch}.so.0*
 %{_libdir}/libgstcodecs-%{gst_branch}.so.0*
 %{_libdir}/libgstcodecparsers-%{gst_branch}.so.0*
 %{_libdir}/libgstmpegts-%{gst_branch}.so.0*
-%{_libdir}/libgstplay-%{gst_branch}.so.0*
-%{_libdir}/libgstplayer-%{gst_branch}.so.0*
 %{_libdir}/libgstsctp-%{gst_branch}.so.0*
 %{_libdir}/libgsttranscoder-%{gst_branch}.so.0*
 %{_libdir}/libgstwebrtc-%{gst_branch}.so.0*
@@ -1060,63 +1107,67 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/libgstwayland-%{gst_branch}.so.0*
 %endif
 %exclude %{_bindir}/gst-transcoder-%{gst_branch}
+%exclude %{_libdir}/debug/.build-id/*
 %exclude %{_libdir}/debug/*
 
 %files -n gst-plugins-bad-devel
 %manifest gst-plugins-bad.manifest
 %defattr(-, root, root)
+%if "%{tizen_profile_name}" != "tv"
 %{_includedir}/gstreamer-%{gst_branch}/gst/audio/audio-bad-prelude.h
 %{_includedir}/gstreamer-%{gst_branch}/gst/audio/gstnonstreamaudiodecoder.h
 %{_includedir}/gstreamer-%{gst_branch}/gst/audio/gstplanaraudioadapter.h
 %{_includedir}/gstreamer-%{gst_branch}/gst/basecamerabinsrc/*
-%{_includedir}/gstreamer-%{gst_branch}/gst/codecparsers/*
 %{_includedir}/gstreamer-%{gst_branch}/gst/insertbin/*
 %{_includedir}/gstreamer-%{gst_branch}/gst/interfaces/*
 %{_includedir}/gstreamer-%{gst_branch}/gst/isoff/*
-%{_includedir}/gstreamer-%{gst_branch}/gst/mpegts/*
 %{_includedir}/gstreamer-%{gst_branch}/gst/play/*
 %{_includedir}/gstreamer-%{gst_branch}/gst/player/*
+%{_includedir}/gstreamer-%{gst_branch}/gst/uridownloader/*
+%endif
+%{_includedir}/gstreamer-%{gst_branch}/gst/codecparsers/*
+%{_includedir}/gstreamer-%{gst_branch}/gst/mpegts/*
 %{_includedir}/gstreamer-%{gst_branch}/gst/sctp/*
 %{_includedir}/gstreamer-%{gst_branch}/gst/transcoder/*
-%{_includedir}/gstreamer-%{gst_branch}/gst/uridownloader/*
 %if %{with wayland}
 %{_includedir}/gstreamer-%{gst_branch}/gst/wayland/*
 %endif
 %{_includedir}/gstreamer-%{gst_branch}/gst/webrtc/*
 %if "%{tizen_profile_name}" != "tv"
-%if 0%{?enable_gl:1}
-%{_lib_gstreamer_dir}/include/gst/gl/*
-%endif
-%endif
 %{_libdir}/libgstadaptivedemux*.so
 %{_libdir}/libgstbadaudio*.so
 %{_libdir}/libgstbasecamerabinsrc*.so
-%{_libdir}/libgstcodecparsers*.so
-%{_libdir}/libgstcodecs*.so
 %{_libdir}/libgstinsertbin*.so
 %{_libdir}/libgstisoff*.so
-%{_libdir}/libgstmpegts*.so
 %{_libdir}/libgstphotography*.so
 %{_libdir}/libgstplay*.so
+%{_libdir}/libgsturidownloader*.so
+%if 0%{?enable_gl:1}
+%{_lib_gstreamer_dir}/include/gst/gl/*
+%endif # gl
+%endif # profile
+
+%{_libdir}/libgstcodecparsers*.so
+%{_libdir}/libgstcodecs*.so
+%{_libdir}/libgstmpegts*.so
 %{_libdir}/libgstsctp*.so
 %{_libdir}/libgsttranscoder*.so
-%{_libdir}/libgsturidownloader*.so
 %if %{with wayland}
 %{_libdir}/libgstwayland*.so
 %endif
 %{_libdir}/libgstwebrtc*.so
-%{_libdir}/pkgconfig/gstreamer-bad-audio-%{gst_branch}.pc
 %{_libdir}/pkgconfig/gstreamer-codecparsers-%{gst_branch}.pc
 %if "%{tizen_profile_name}" != "tv"
-%if 0%{?enable_gl:1}
-%{_libdir}/pkgconfig/gstreamer-gl-*.pc
-%endif
-%endif
+%{_libdir}/pkgconfig/gstreamer-bad-audio-%{gst_branch}.pc
 %{_libdir}/pkgconfig/gstreamer-insertbin-%{gst_branch}.pc
-%{_libdir}/pkgconfig/gstreamer-mpegts-%{gst_branch}.pc
 %{_libdir}/pkgconfig/gstreamer-photography-%{gst_branch}.pc
 %{_libdir}/pkgconfig/gstreamer-play-%{gst_branch}.pc
 %{_libdir}/pkgconfig/gstreamer-player-%{gst_branch}.pc
+%if 0%{?enable_gl:1}
+%{_libdir}/pkgconfig/gstreamer-gl-*.pc
+%endif # gl
+%endif # profile
+%{_libdir}/pkgconfig/gstreamer-mpegts-%{gst_branch}.pc
 %{_libdir}/pkgconfig/gstreamer-plugins-bad-%{gst_branch}.pc
 %{_libdir}/pkgconfig/gstreamer-sctp-%{gst_branch}.pc
 %{_libdir}/pkgconfig/gstreamer-transcoder-%{gst_branch}.pc
@@ -1139,25 +1190,10 @@ rm -rf $RPM_BUILD_ROOT
 %{_lib_gstreamer_dir}/libgstasf.so
 %{_lib_gstreamer_dir}/libgstamrnb.so
 %exclude %{_datadir}/gstreamer-%{gst_branch}/presets/GstAmrnbEnc.prs
-%endif
+%endif # profile
 %{_lib_gstreamer_dir}/libgstamrwbdec.so
 
-%endif
-
-########################## gst-omx ###########################
-%ifarch %{arm} aarch64
-
-%if "%{plugin}" == "all" || "%{plugin}" == "omx"
-
-%files -n gst-omx
-%manifest gst-omx.manifest
-%defattr(-,root,root,-)
-%license subprojects/gst-omx/COPYING
-%{_lib_gstreamer_dir}/libgstomx.so
-
-%endif
-
-%endif # arch
+%endif # plugin
 
 ######################## gst-libav ###########################
 
@@ -1191,6 +1227,23 @@ rm -rf $RPM_BUILD_ROOT
 
 %endif
 
+%if "%{tizen_profile_name}" != "tv"
+
+########################## gst-omx ###########################
+%ifarch %{arm} aarch64
+
+%if "%{plugin}" == "all" || "%{plugin}" == "omx"
+
+%files -n gst-omx
+%manifest gst-omx.manifest
+%defattr(-,root,root,-)
+%license subprojects/gst-omx/COPYING
+%{_lib_gstreamer_dir}/libgstomx.so
+
+%endif
+
+%endif # arch
+
 ###################### gst-editing-services #######################
 
 %if "%{plugin}" == "all" || "%{plugin}" == "es"
@@ -1211,4 +1264,6 @@ rm -rf $RPM_BUILD_ROOT
 %{_includedir}/gstreamer-%{gst_branch}/ges/*
 %{_libdir}/pkgconfig/gst-editing-services-%{gst_branch}.pc
 
-%endif
+%endif # plugin
+
+%endif # profile
\ No newline at end of file