packaging: Initial packaging
authorYan Yin <yan.yin@intel.com>
Wed, 9 Oct 2013 09:26:30 +0000 (17:26 +0800)
committerPhilippe Coval <philippe.coval@open.eurogiciel.org>
Tue, 18 Nov 2014 14:12:48 +0000 (15:12 +0100)
Change-Id: I96295c45bead2345d39e95b2e0afe241e3f08d9f

.gbs.conf [new file with mode: 0644]
.gitignore
packaging/common.tar.bz2 [new file with mode: 0644]
packaging/gitmodules.sh [new file with mode: 0755]
packaging/gst-plugins-ugly.changes [new file with mode: 0644]
packaging/gst-plugins-ugly.manifest [new file with mode: 0644]
packaging/gst-plugins-ugly.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}
index dc6511f..fa4705f 100644 (file)
@@ -8,7 +8,6 @@ config.guess
 config.sub
 config.rpath
 configure
-gst-plugins-ugly.spec
 libtool
 stamp-h
 stamp-h.in
diff --git a/packaging/common.tar.bz2 b/packaging/common.tar.bz2
new file mode 100644 (file)
index 0000000..15e8fed
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..71a66cd
--- /dev/null
@@ -0,0 +1,24 @@
+#! /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-plugins-ugly.changes b/packaging/gst-plugins-ugly.changes
new file mode 100644 (file)
index 0000000..2dd138c
--- /dev/null
@@ -0,0 +1,2 @@
+* Wed Jun 19 2013 Anas Nashif <anas.nashif@intel.com> 1.0.7@4ed4891
+- add packaging
diff --git a/packaging/gst-plugins-ugly.manifest b/packaging/gst-plugins-ugly.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-plugins-ugly.spec b/packaging/gst-plugins-ugly.spec
new file mode 100644 (file)
index 0000000..7ca0f7f
--- /dev/null
@@ -0,0 +1,75 @@
+Name:       gst-plugins-ugly
+Summary:    GStreamer plugins from the "ugly" set
+Version:    1.2.0
+Release:    0
+Group:      Multimedia/Audio
+License:    LGPL-2.0+
+Source0:    %{name}-%{version}.tar.gz
+Source100:      common.tar.bz2
+Source1001:    gst-plugins-ugly.manifest
+BuildRequires:  gettext-tools
+BuildRequires:  which
+BuildRequires:  pkgconfig(gstreamer-plugins-base-1.0)
+BuildRequires:  pkgconfig(gstreamer-1.0)
+BuildRequires:  pkgconfig(glib-2.0)
+BuildRequires:  pkgconfig(opencore-amrnb)
+BuildRequires:  pkgconfig(opencore-amrwb)
+
+%description
+ GStreamer is a streaming media framework, based on graphs of filters
+ which operate on media data.  Applications using this library can do
+ anything from real-time sound processing to playing videos, and just
+ about anything else media-related.  Its plugin-based architecture means
+ that new data types or processing capabilities can be added simply by
+ installing new plug-ins.
+ .
+ This packages contains plugins from the "ugly" set, a set of
+ good-quality plug-ins that might pose distribution problems.
+
+
+
+%prep
+%setup -q
+%setup -q -T -D -a 100
+cp %{SOURCE1001} .
+
+%build
+export V=1
+NOCONFIGURE=1 ./autogen.sh
+%configure \
+ --disable-static\
+ --disable-nls\
+ --with-html-dir=/tmp/dump\
+ --disable-examples\
+ --disable-dvdlpcmdec\
+ --disable-dvdsub\
+ --disable-iec958\
+ --disable-mpegstream\
+ --disable-synaesthesia\
+ --disable-a52dec\
+ --disable-cdio\
+ --disable-dvdread\
+ --disable-dvdnav\
+ --disable-mad\
+ --disable-mpeg2dec\
+ --disable-sidplay\
+ --disable-twolame\
+ --disable-x264
+
+make %{?jobs:-j%jobs}
+
+%install
+%make_install
+
+%files
+%manifest %{name}.manifest
+%defattr(-,root,root,-)
+%license COPYING
+# check why this one is not being built - Anas
+#%{_libdir}/gstreamer-1.0/libgstmpegaudioparse.so
+%{_libdir}/gstreamer-1.0/libgstasf.so
+%{_libdir}/gstreamer-1.0/libgstxingmux.so
+%{_libdir}/gstreamer-1.0/libgstamrnb.so
+%{_libdir}/gstreamer-1.0/libgstamrwbdec.so
+%{_libdir}/gstreamer-1.0/libgstrmdemux.so
+%exclude %{_datadir}/gstreamer-1.0/presets/GstAmrnbEnc.prs