add packaging files
authorYan Yin <yan.yin@intel.com>
Wed, 13 Nov 2013 02:57:22 +0000 (10:57 +0800)
committerYan Yin <yan.yin@intel.com>
Wed, 13 Nov 2013 03:09:54 +0000 (11:09 +0800)
Change-Id: I46767b582f9c07d651621af74694859e204f48b3

.gbs.conf [new file with mode: 0644]
packaging/common.tar.bz2 [new file with mode: 0644]
packaging/gitmodules.sh [new file with mode: 0755]
packaging/gst-omx.manifest [new file with mode: 0644]
packaging/gst-omx.spec [new file with mode: 0644]

diff --git a/.gbs.conf b/.gbs.conf
new file mode 100644 (file)
index 0000000..fa9fdc5
--- /dev/null
+++ b/.gbs.conf
@@ -0,0 +1,3 @@
+[general]
+upstream_branch = upstream
+upstream_tag = ${upstreamversion}
diff --git a/packaging/common.tar.bz2 b/packaging/common.tar.bz2
new file mode 100644 (file)
index 0000000..a18ecc8
Binary files /dev/null and b/packaging/common.tar.bz2 differ
diff --git a/packaging/gitmodules.sh b/packaging/gitmodules.sh
new file mode 100755 (executable)
index 0000000..1de5a67
--- /dev/null
@@ -0,0 +1,25 @@
+#! /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
+
diff --git a/packaging/gst-omx.manifest b/packaging/gst-omx.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/gst-omx.spec b/packaging/gst-omx.spec
new file mode 100644 (file)
index 0000000..2d498e7
--- /dev/null
@@ -0,0 +1,37 @@
+Name:           gst-omx
+Summary:        GStreamer plug-in that allows communication with OpenMAX IL components
+Version:        1.0.0
+Release:        1
+License:        LGPL-2.1+
+Group:          Multimedia/Framework
+Source0:        %{name}-%{version}.tar.gz
+Source100:      common.tar.bz2
+Source1001:     gst-omx.manifest
+BuildRequires:  which
+BuildRequires:  pkgconfig(gstreamer-1.0)
+BuildRequires:  pkgconfig(gstreamer-plugins-base-1.0)
+
+%description
+gst-openmax is a GStreamer plug-in that allows communication with OpenMAX IL components.
+Multiple OpenMAX IL implementations can be used.
+
+%prep
+%setup -q
+%setup -q -T -D -a 100
+cp %{SOURCE1001} .
+
+%build
+./autogen.sh --noconfigure
+%configure --disable-static --prefix=/usr
+
+make %{?jobs:-j%jobs}
+
+
+%install
+rm -rf %{buildroot}
+%make_install
+
+%files
+%manifest gst-omx.manifest
+%{_libdir}/gstreamer-1.0/libgstomx.so
+