Remove gles20 dependency for headless 83/213783/4 accepted/tizen_5.5_unified_mobile_hotfix tizen_5.5_mobile_hotfix tizen_5.5_tv accepted/tizen/5.5/unified/20191031.005245 accepted/tizen/5.5/unified/mobile/hotfix/20201027.062158 accepted/tizen/unified/20190917.034127 accepted/tizen/unified/20190918.010331 submit/tizen/20190917.001550 submit/tizen/20190917.100430 submit/tizen_5.5/20191031.000006 submit/tizen_5.5_mobile_hotfix/20201026.185106 tizen_5.5.m2_release
authorHyunil <hyunil46.park@samsung.com>
Wed, 11 Sep 2019 07:53:48 +0000 (16:53 +0900)
committerHyunil <hyunil46.park@samsung.com>
Mon, 16 Sep 2019 09:43:19 +0000 (18:43 +0900)
Change-Id: I6e40914194de856c5078d19e7e93d396f0639ba6
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
packaging/gst-plugins-bad.spec

index 5eaf821..21a3fbb 100644 (file)
@@ -29,8 +29,10 @@ BuildRequires:  pkgconfig(sndfile) >= 1.0.16
 BuildRequires:  pkgconfig(openal)
 BuildRequires:  pkgconfig(soundtouch) > 1.4
 %if %{with wayland}
+%if 0%{?enable_gl:1}
 BuildRequires:  pkgconfig(gles20)
 BuildRequires:  pkgconfig(wayland-egl) >= 9.0
+%endif
 BuildRequires:  pkgconfig(wayland-client) >= 1.0.0
 BuildRequires:  pkgconfig(wayland-cursor) >= 1.0.0
 BuildRequires:  pkgconfig(libxml-2.0)
@@ -157,9 +159,11 @@ export CFLAGS+=" -Wall -g -fPIC\
        --disable-videosignal\
        --disable-vmnc\
        --disable-opengl\
+%if 0%{?enable_gl:1}
        --enable-egl=yes\
-       --enable-wayland=yes\
        --enable-gles2=yes\
+%endif
+       --enable-wayland=yes\
        --disable-glx\
        --enable-openal=yes\
        --disable-sndfile\
@@ -198,9 +202,10 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/gstreamer-%{gst_branch}/libgstmpegpsdemux.so
 %{_libdir}/gstreamer-%{gst_branch}/libgstsmoothstreaming.so
 %{_libdir}/gstreamer-%{gst_branch}/libgstdashdemux.so
+%if 0%{?enable_gl:1}
 %{_libdir}/gstreamer-%{gst_branch}/libgstopengl.so
+%endif
 %{_libdir}/gstreamer-%{gst_branch}/libgstsoundtouch.so
-
 %{_libdir}/libgstinsertbin-%{gst_branch}.so.0*
 %{_libdir}/libgstphotography-%{gst_branch}.so.0*
 %{_libdir}/libgstbasecamerabinsrc-%{gst_branch}.so.0*
@@ -208,7 +213,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/libgstbadvideo-%{gst_branch}.so.0*
 %{_libdir}/libgsturidownloader-%{gst_branch}.so.0*
 %{_libdir}/libgstadaptivedemux-%{gst_branch}.so.0*
+%if 0%{?enable_gl:1}
 %{_libdir}/libgstgl-%{gst_branch}.so.0*
+%endif
 %{_libdir}/libgstisoff-%{gst_branch}.so.0*
 %endif
 %{_libdir}/gstreamer-%{gst_branch}/libgstdebugutilsbad.so
@@ -237,14 +244,18 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(-, root, root)
 %{_includedir}/gstreamer-%{gst_branch}
 %if "%{tizen_profile_name}" != "tv"
+%if 0%{?enable_gl:1}
 %{_libdir}/gstreamer-%{gst_branch}/include/gst/gl/gstglconfig.h
 %endif
+%endif
 %{_libdir}/*.so
 %{_libdir}/pkgconfig/gstreamer-codecparsers-%{gst_branch}.pc
 %{_libdir}/pkgconfig/gstreamer-plugins-bad-%{gst_branch}.pc
 %{_libdir}/pkgconfig/gstreamer-insertbin-%{gst_branch}.pc
 %{_libdir}/pkgconfig/gstreamer-mpegts-%{gst_branch}.pc
+%if 0%{?enable_gl:1}
 %{_libdir}/pkgconfig/gstreamer-gl-1.0.pc
+%endif
 %{_libdir}/pkgconfig/gstreamer-bad-allocators-1.0.pc
 %{_libdir}/pkgconfig/gstreamer-bad-audio-1.0.pc
 %{_libdir}/pkgconfig/gstreamer-bad-base-1.0.pc