add packaging directory for initial build 19/133819/2
authorsangho park <sangho.g.park@samsung.com>
Tue, 13 Jun 2017 10:05:20 +0000 (19:05 +0900)
committersangho park <sangho.g.park@samsung.com>
Tue, 13 Jun 2017 22:54:20 +0000 (07:54 +0900)
Change-Id: I83c0a5168c8e806b679d667dc2153d827d1ba020

gst-libs/gst/gl/glprototypes/gstgl_compat.h
gst-libs/gst/gl/gstglapi.h
gst-libs/gst/gl/gstgldisplay.c
gst-plugins-bad.manifest [new file with mode: 0644]
packaging/common.tar.gz [new file with mode: 0644]
packaging/gst-plugins-bad.spec [new file with mode: 0644]

index 31b1e005d1899632a502817ab41f9a3471ca1b72..ad1b49e7b89c914af6c1828e70022893e5eb3cd8 100644 (file)
@@ -30,6 +30,7 @@ typedef gpointer GLeglImageOES;
 #if !GST_GL_HAVE_GLCHAR
 typedef gchar GLchar;
 #endif
+#ifndef TIZEN_FEATURE_UPSTREAM
 #if !GST_GL_HAVE_GLSIZEIPTR
 typedef ptrdiff_t GLsizeiptr;
 #endif
@@ -39,6 +40,7 @@ typedef ptrdiff_t GLintptr;
 #if !GST_GL_HAVE_GLSYNC
 typedef gpointer GLsync;
 #endif
+#endif
 #if !GST_GL_HAVE_GLUINT64
 typedef guint64 GLuint64;
 #endif
index 3088920020edf825a34eb9ee321656299c8a64e4..4cebab43ba3e5a2f36f73bee7c608b7e23214066 100644 (file)
@@ -39,6 +39,7 @@
 #  include <OpenGLES/ES2/gl.h>
 #  include <OpenGLES/ES2/glext.h>
 # else
+#ifndef TIZEN_FEATURE_UPSTREAM
 #  if GST_GL_HAVE_GLES3
 #   include <GLES3/gl3.h>
 #   include <GLES3/gl3ext.h>
 #   include <GLES2/gl2.h>
 #   include <GLES2/gl2ext.h>
 #  endif
+#else
+#   include <GLES2/gl2.h>
+#   include <GLES2/gl2ext.h>
+#endif
 # endif
 # if !GST_GL_HAVE_OPENGL
 #  include <gst/gl/glprototypes/gstgl_gles2compat.h>
index 6e451b2a5fca287984c81497e26e71e9e27baf3e..2f8645fc19e845bbbbd0e9df26366b32146f053e 100644 (file)
@@ -162,7 +162,9 @@ gst_gl_display_finalize (GObject * object)
     g_free (l->data);
   }
 
+#ifndef TIZEN_FEATURE_UPSTREAM
   g_list_free (display->windows);
+#endif
   g_list_free (display->priv->contexts);
 
   G_OBJECT_CLASS (gst_gl_display_parent_class)->finalize (object);
diff --git a/gst-plugins-bad.manifest b/gst-plugins-bad.manifest
new file mode 100644 (file)
index 0000000..97e8c31
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+       <request>
+               <domain name="_"/>
+       </request>
+</manifest>
diff --git a/packaging/common.tar.gz b/packaging/common.tar.gz
new file mode 100644 (file)
index 0000000..fd4248a
Binary files /dev/null and b/packaging/common.tar.gz differ
diff --git a/packaging/gst-plugins-bad.spec b/packaging/gst-plugins-bad.spec
new file mode 100644 (file)
index 0000000..9ffa4f0
--- /dev/null
@@ -0,0 +1,254 @@
+%bcond_with wayland
+#%bcond_with x
+%define gst_branch 1.0
+
+Name:           gst-plugins-bad
+Version:        1.10.4
+Release:        14
+Summary:        GStreamer Streaming-Media Framework Plug-Ins
+License:        LGPL-2.0+
+Group:          Multimedia/Framework
+Url:            http://gstreamer.freedesktop.org/
+Source:         http://gstreamer.freedesktop.org/src/gst-plugins-bad/%{name}-%{version}.tar.xz
+Source100:      common.tar.gz
+BuildRequires:  gettext-tools
+BuildRequires:  autoconf
+BuildRequires:  gcc-c++
+BuildRequires:  pkgconfig(glib-2.0) >= 2.31.14
+BuildRequires:  pkgconfig(gstreamer-1.0) >= 1.10.0
+BuildRequires:  pkgconfig(gstreamer-plugins-base-1.0) >= 1.10.0
+BuildRequires:  pkgconfig(orc-0.4) >= 0.4.11
+BuildRequires:  python
+BuildRequires:  xsltproc
+BuildRequires:  pkgconfig(libusb-1.0)
+BuildRequires:  pkgconfig(gio-2.0) >= 2.25.0
+BuildRequires:  pkgconfig(libcrypto)
+BuildRequires:  pkgconfig(libcurl) >= 7.21.0
+BuildRequires:  pkgconfig(libexif) >= 0.6.16
+BuildRequires:  pkgconfig(openssl) >= 0.9.5
+BuildRequires:  pkgconfig(sndfile) >= 1.0.16
+BuildRequires:  pkgconfig(libdrm)
+BuildRequires:  pkgconfig(libtbm)
+BuildRequires: pkgconfig(mm-common)
+BuildRequires:  pkgconfig(nettle)
+%if %{with wayland}
+BuildRequires:  pkgconfig(gles20)
+BuildRequires:  pkgconfig(wayland-egl) >= 9.0
+BuildRequires:  pkgconfig(wayland-client) >= 1.0.0
+BuildRequires:  pkgconfig(wayland-cursor) >= 1.0.0
+BuildRequires:  pkgconfig(wayland-tbm-client)
+BuildRequires:  pkgconfig(tizen-extension-client)
+BuildRequires:  pkgconfig(libxml-2.0)
+%endif
+%if %{with x}
+BuildRequires:  pkgconfig(x11)
+%endif
+Requires:       gstreamer >= 1.10.0
+
+%description
+GStreamer is a streaming media framework based on graphs of filters
+that operate on media data. Applications using this library can do
+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.
+
+
+%package devel
+Summary:        GStreamer Streaming-Media Framework Plug-Ins
+Requires: %{name} = %{version}-%{release}
+Requires: gst-plugins-base-devel
+
+%description devel
+GStreamer is a streaming media framework based on graphs of filters
+that operate on media data. Applications using this library can do
+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.
+
+
+%prep
+%setup -q -n %{name}-%{version}
+%setup -q -T -D -a 100
+
+%build
+export V=1
+NOCONFIGURE=1 ./autogen.sh
+export CFLAGS+=" -Wall -g -fPIC\
+  -DTIZEN_FEATURE_WLSINK_ENHANCEMENT\
+  -DTIZEN_FEATURE_AVOID_PAD_SWITCHING\
+  -DTIZEN_FEATURE_ADAPTIVE_MODIFICATION\
+  -DTIZEN_FEATURE_TSDEMUX_MODIFICATION\
+  -DTIZEN_FEATURE_UPSTREAM"
+
+%configure\
+       --disable-static\
+       --disable-examples\
+       --enable-experimental\
+%if "%{TIZEN_PRODUCT_TV}" == "1"
+       --enable-tv\
+       --disable-autoconvert\
+       --disable-camerabin2\
+       --disable-dash\
+       --disable-hls\
+       --disable-id3tag\
+       --disable-jpegformat\
+       --disable-mpegdemux\
+       --disable-smoothstreaming\
+       --disable-coloreffects\
+       --disable-rtp\
+       --disable-gl\
+%endif
+       --disable-accurip\
+       --disable-adpcmdec\
+       --disable-audiofxbad\
+       --disable-decklink\
+       --disable-dvb\
+       --disable-fieldanalysis\
+       --disable-gdp\
+       --disable-ivtc\
+       --disable-liveadder\
+       --disable-rawparse\
+       --disable-videofilters\
+       --disable-yadif\
+       --disable-curl\
+       --disable-dtls\
+       --disable-fbdev\
+       --disable-uvch264\
+       --disable-vcd\
+       --disable-y4m\
+       --disable-adpcmenc\
+       --disable-aiff\
+       --disable-asfmux\
+       --disable-audiomixer\
+       --disable-compositor\
+       --disable-audiovisualizers\
+       --disable-bayer\
+       --disable-cdxaparse\
+       --disable-dataurisrc\
+       --disable-dccp\
+       --disable-dvbsuboverlay\
+       --disable-dvdspu\
+       --disable-faceoverlay\
+       --disable-festival\
+       --disable-freeverb\
+       --disable-frei0r\
+       --disable-gaudieffects\
+       --disable-geometrictransform\
+       --disable-hdvparse\
+       --disable-inter\
+       --disable-interlace\
+       --disable-ivfparse\
+       --disable-jp2kdecimator\
+       --disable-librfb\
+       --disable-mve\
+       --disable-mxf\
+       --disable-nuvdemux\
+       --disable-onvif\
+       --disable-pcapparse\
+       --disable-pnm\
+       --disable-removesilence\
+       --disable-sdi\
+       --disable-segmentclip\
+       --disable-siren\
+       --disable-smooth\
+       --disable-speed\
+       --disable-subenc\
+       --disable-stereo\
+       --disable-tta\
+       --disable-videomeasure\
+       --disable-videosignal\
+       --disable-vmnc\
+       --disable-opengl\
+       --enable-egl=yes\
+       --enable-wayland=yes\
+       --enable-gles2=yes\
+       --disable-glx\
+       --disable-sndfile\
+       --disable-gtk-doc\
+       --disable-warnings-as-errors\
+       --disable-mpegpsmux
+%__make %{?_smp_mflags} V=1
+
+%install
+%make_install
+%find_lang %{name}-%{gst_branch}
+mv %{name}-%{gst_branch}.lang %{name}.lang
+
+%lang_package
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%manifest %{name}.manifest
+%defattr(-, root, root)
+%license COPYING.LIB
+%if "%{TIZEN_PRODUCT_TV}" != "1"
+%{_libdir}/gstreamer-%{gst_branch}/libgstautoconvert.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstcamerabin2.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstcoloreffects.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstid3tag.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstjpegformat.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstmpegpsdemux.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstsmoothstreaming.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstdashdemux.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstopengl.so
+
+%{_libdir}/libgstinsertbin-%{gst_branch}.so.0*
+%{_libdir}/libgstphotography-%{gst_branch}.so.0*
+%{_libdir}/libgstbasecamerabinsrc-%{gst_branch}.so.0*
+%{_libdir}/libgstbadbase-%{gst_branch}.so.0*
+%{_libdir}/libgstbadvideo-%{gst_branch}.so.0*
+%{_libdir}/libgsturidownloader-%{gst_branch}.so.0*
+%{_libdir}/libgstadaptivedemux-1.0.so.0
+%{_libdir}/libgstgl-1.0.so.0
+%endif
+%{_libdir}/gstreamer-%{gst_branch}/libgstdebugutilsbad.so
+
+%{_libdir}/gstreamer-%{gst_branch}/libgstmpegtsdemux.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstmpegtsmux.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstsdpelem.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstshm.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstvideoparsersbad.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstmidi.so
+
+%{_libdir}/libgstcodecparsers-%{gst_branch}.so.0*
+%{_libdir}/libgstmpegts-%{gst_branch}.so.0*
+%{_libdir}/gstreamer-1.0/libgsthls.so
+%{_libdir}/gstreamer-1.0/libgstkmssink.so
+%{_libdir}/gstreamer-1.0/libgstnetsim.so
+%{_libdir}/gstreamer-1.0/libgsttimecode.so
+%{_libdir}/gstreamer-1.0/libgstvideoframe_audiolevel.so
+%{_libdir}/libgstadaptivedemux-1.0.so.0.1004.0
+%{_libdir}/libgstbadaudio-1.0.so.0
+%{_libdir}/libgstbadaudio-1.0.so.0.1004.0
+%{_libdir}/libgstgl-1.0.so.0.1004.0
+%{_libdir}/libgstplayer-1.0.so.0
+%{_libdir}/libgstplayer-1.0.so.0.1004.0
+
+%files devel
+%manifest %{name}.manifest
+%defattr(-, root, root)
+%{_includedir}/gstreamer-%{gst_branch}
+%if "%{TIZEN_PRODUCT_TV}" != "1"
+%{_libdir}/gstreamer-%{gst_branch}/include/gst/gl/gstglconfig.h
+%endif
+%{_libdir}/debug/*
+%{_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
+%{_libdir}/pkgconfig/gstreamer-gl-1.0.pc
+%{_libdir}/pkgconfig/gstreamer-bad-audio-1.0.pc
+%{_libdir}/pkgconfig/gstreamer-bad-base-1.0.pc
+%{_libdir}/pkgconfig/gstreamer-bad-video-1.0.pc
+%{_libdir}/pkgconfig/gstreamer-player-1.0.pc
+