--- /dev/null
+#! /bin/sh
+# @author: Philippe Coval <mailto:philippe.coval@eurogiciel.com>
+# @description: manage git submodules with git-build-package-rpm
+
+set -x
+set -e
+
+cat .gitmodules || return 1
+
+
+git submodule status | awk '{ print $2 }' | while read dir ; do
+ name=$(basename "$dir" )
+ echo "name="
+ echo "dir=$dir"
+ git submodule init
+ git submodule update
+
+ tar cjvf "./packaging/${name}.tar.bz2" "${dir}"
+
+ cat<<EOF
+# Please add "SourceN: $name.tar.bz2" and "%setup -q -T -D -a N" to "packaging/*.spec"
+EOF
+
+done
+
--- /dev/null
+* Thu Sep 12 2013 Zhao Halley <halley.zhao@intel.com> 0.2.6@1392323
+ Rebase to upstream 0.5.6 release with hw encoder support
+ Fix TIVI-1478 JPEG issue
+
+* Thu Sep 4 2013 Zhao Halley <halley.zhao@intel.com> submit/tizen/20130807.090602@d6cb0a6
+- wayland: retain additional 3 gst buffer after video rendering
+- destroy wl_buffer by register to wl_buffer_listener
+
+* Thu Aug 15 2013 Zhao Halley <halley.zhao@intel.com> submit/tizen/20130807.090602@d6cb0a6
+- add 'frame-rendered' signal for wayland platform
+- fixes when vappsink renders to simple wayland compositor
+- seems wl_buffer_destroy is not required
+- add foreign wl_display/wl_surface support
+- Fix issue of mem map
+- add gitmodules.sh scipt to help maintain submodule
+
+* Wed Aug 07 2013 Zhao Halley <halley.zhao@intel.com> 0.5.5@3ecb26e
+- sync to recent upstream git repo
+- add codecparsers/videoutils as tar ball
+- update spec for codecparsers/videoutils
+
+* Wed Jul 03 2013 Zhao Halley <halley.zhao@intel.com> 0.5.4@14489ad
+- calculate decoder caps from driver capability
+- set higher rank for vaapidecode
+
--- /dev/null
+%bcond_with x
+
+Name: gstreamer-vaapi
+Version: 0.5.6
+Release: 0
+Summary: VA-API based plugins for GStreamer and helper libraries
+Group: Multimedia/Multimedia Framework
+License: LGPL-2.1+ and GPL-2.0+
+URL: http://gitorious.org/vaapi/gstreamer-vaapi
+Source0: %{name}-%{version}.tar.bz2
+Source1001: gstreamer-vaapi.manifest
+Source2001: codecparsers.tar.bz2
+Source2002: videoutils.tar.bz2
+%if %{with x}
+BuildRequires: pkgconfig(x11)
+%endif
+
+BuildRequires: pkgconfig(libva)
+BuildRequires: pkgconfig(gstreamer-1.0)
+BuildRequires: pkgconfig(gstreamer-basevideo-1.0)
+BuildRequires: pkgconfig(gstreamer-plugins-base-1.0)
+BuildRequires: pkgconfig(libdrm)
+BuildRequires: which
+BuildRequires: git
+ExclusiveArch: %{ix86} x86_64
+
+%description
+Gstreamer-vaapi is a collection of VA-API based plugins for GStreamer
+and helper libraries. vaapidecode is used to decode MPEG-2, MPEG-4,
+H.264, VC-1, WMV3 videos to video/x-vaapi-surface surfaces, depending
+on the underlying HW capabilities. vaapiconvert is used to convert from
+video/x-raw-yuv pixels to video/x-vaapi-surface surfaces. vaapisink is
+used to display video/x-vaapi-surface surfaces to the screen.
+
+%package devel
+Summary: Development files for gstreamer-vaapi
+Group: Development/Libraries
+Requires: %{name} = %{version}
+Requires: pkgconfig
+
+%description devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+%prep
+%setup -q
+%setup -q -T -D -a 2001
+%setup -q -T -D -a 2002
+
+
+%build
+cp %{SOURCE1001} .
+
+%autogen --with-gstreamer-api=1.0 --enable-encoders
+make %{?_smp_mflags}
+
+%install
+%make_install
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%manifest %{name}.manifest
+%license COPYING.LIB
+%{_libdir}/*.so.*
+%{_libdir}/gstreamer-1.0/*.so
+
+%files devel
+%manifest %{name}.manifest
+%license COPYING.LIB
+%dir %{_includedir}/gstreamer-1.0/gst/vaapi
+%{_includedir}/gstreamer-1.0/gst/vaapi/*.h
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/%{name}*.pc