From a53452af529330dca7a4260451b8cfe9b5ddf0c0 Mon Sep 17 00:00:00 2001 From: Hyunil Date: Wed, 11 Sep 2019 16:53:48 +0900 Subject: [PATCH] Remove gles20 dependency for headless Change-Id: I6e40914194de856c5078d19e7e93d396f0639ba6 Signed-off-by: Hyunil --- packaging/gst-plugins-bad.spec | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/packaging/gst-plugins-bad.spec b/packaging/gst-plugins-bad.spec index 5eaf821..21a3fbb 100644 --- a/packaging/gst-plugins-bad.spec +++ b/packaging/gst-plugins-bad.spec @@ -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 -- 2.7.4