packaging: Initial packaging on 1.2.0 for Tizen
authorYan Yin <yan.yin@intel.com>
Wed, 9 Oct 2013 08:28:58 +0000 (16:28 +0800)
committerPhilippe Coval <philippe.coval@open.eurogiciel.org>
Tue, 18 Nov 2014 14:00:25 +0000 (15:00 +0100)
Change-Id: I946e19384f8a63b9618cdf2d675b1d63995c5369

.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-bad.changes [new file with mode: 0644]
packaging/gst-plugins-bad.manifest [new file with mode: 0644]
packaging/gst-plugins-bad.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 5870b56..4d81ba7 100644 (file)
@@ -8,7 +8,6 @@ config.guess
 config.sub
 config.rpath
 configure
-gst-plugins-bad.spec
 gstreamer-libs-uninstalled*.pc
 gstreamer-libs*.pc
 gstreamer-play-uninstalled*.pc
diff --git a/packaging/common.tar.bz2 b/packaging/common.tar.bz2
new file mode 100644 (file)
index 0000000..8e99192
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-bad.changes b/packaging/gst-plugins-bad.changes
new file mode 100644 (file)
index 0000000..6a012de
--- /dev/null
@@ -0,0 +1,8 @@
+* Tue Jun 18 2013 Anas Nashif <anas.nashif@intel.com> 1.0.7@0b1d2ae
+- Update to 1.0.7
+
+* Wed Jan 23 2013 Anas Nashif <anas.nashif@intel.com> upstream/1.0.5@d7d49f2
+- update to 1.0.5
+
+* Sat Dec 15 2012 Anas Nashif <anas.nashif@intel.com> upstream/1.0.2@ac677cd
+- initial packaging
diff --git a/packaging/gst-plugins-bad.manifest b/packaging/gst-plugins-bad.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-bad.spec b/packaging/gst-plugins-bad.spec
new file mode 100644 (file)
index 0000000..773e8f3
--- /dev/null
@@ -0,0 +1,313 @@
+Name:           gst-plugins-bad
+Version:        1.2.0
+Release:        0
+%define gst_branch 1.0
+Summary:        GStreamer Streaming-Media Framework Plug-Ins
+License:        GPL-2.0+ and LGPL-2.1+
+Group:          Multimedia/Audio
+Url:            http://gstreamer.freedesktop.org/
+Source:         http://gstreamer.freedesktop.org/src/gst-plugins-bad/%{name}-%{version}.tar.xz
+Source100:      common.tar.bz2
+Source1001:    gst-plugins-bad.manifest
+BuildRequires:  gettext-tools
+BuildRequires:  SDL-devel
+BuildRequires:  autoconf
+BuildRequires:  gcc-c++
+BuildRequires:  glib2-devel >= 2.31.14
+BuildRequires:  gstreamer-devel >= 1.0.0
+BuildRequires:  gst-plugins-base-devel >= 1.0.0
+BuildRequires:  pkgconfig(orc-0.4) >= 0.4.11
+BuildRequires:  python
+BuildRequires:  xsltproc
+BuildRequires:  pkgconfig(cairo)
+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(libpng) >= 1.2
+BuildRequires:  pkgconfig(openssl) >= 0.9.5
+BuildRequires:  pkgconfig(sndfile) >= 1.0.16
+BuildRequires:  pkgconfig(x11)
+Requires(post): glib2-tools
+Requires(postun): glib2-tools
+Requires:       gstreamer >= 1.0.2
+Enhances:       gstreamer
+
+%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 -n libgstbasecamerabinsrc
+Summary:        GStreamer Streaming-Media Framework Plug-Ins
+
+%description -n libgstbasecamerabinsrc
+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 -n libgstphotography
+Summary:        GStreamer Streaming-Media Framework Plug-Ins
+
+%description -n libgstphotography
+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 -n libgstvdp
+Summary:        GStreamer Streaming-Media Framework Plug-Ins
+
+%description -n libgstvdp
+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 -n libgstcodecparsers
+Summary:        GStreamer Streaming-Media Framework Plug-Ins
+
+%description -n libgstcodecparsers
+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 -n libgstegl
+Summary:        GStreamer Streaming-Media Framework Plug-Ins
+
+%description -n libgstegl
+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 -n libgstinsertbin
+Summary:        GStreamer Streaming-Media Framework Plug-Ins
+
+%description -n libgstinsertbin
+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 -n libgstmpegts
+Summary:        GStreamer Streaming-Media Framework Plug-Ins
+
+%description -n libgstmpegts
+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 -n libgsturidownloader
+Summary:        GStreamer Streaming-Media Framework Plug-Ins
+
+%description -n libgsturidownloader
+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:       gstreamer-devel
+Requires:       libgstbasecamerabinsrc = %{version}
+Requires:       libgstcodecparsers = %{version}
+Requires:       libgstphotography = %{version}
+Requires:       libgstegl = %{version}
+Requires:       libgstinsertbin = %{version}
+Requires:       libgstmpegts = %{version}
+Requires:       libgsturidownloader = %{version}
+
+%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
+cp %{SOURCE1001} .
+
+%build
+export V=1
+NOCONFIGURE=1 ./autogen.sh
+%configure\
+    --disable-static\
+    --disable-examples\
+    --enable-experimental\
+    --disable-gtk-doc
+%__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
+%glib2_gsettings_schema_post
+
+%postun
+%glib2_gsettings_schema_postun
+
+%post -n libgstbasecamerabinsrc -p /sbin/ldconfig
+
+%post -n libgstphotography -p /sbin/ldconfig
+
+%post -n libgstcodecparsers -p /sbin/ldconfig
+
+%post -n libgstvdp -p /sbin/ldconfig
+
+%post -n libgstegl -p /sbin/ldconfig
+
+%post -n libgstinsertbin -p /sbin/ldconfig
+
+%post -n libgstmpegts -p /sbin/ldconfig
+
+%post -n libgsturidownloader -p /sbin/ldconfig
+
+%postun -n libgstbasecamerabinsrc -p /sbin/ldconfig
+
+%postun -n libgstphotography -p /sbin/ldconfig
+
+%postun -n libgstcodecparsers -p /sbin/ldconfig
+
+%postun -n libgstvdp -p /sbin/ldconfig
+
+%postun -n libgstegl -p /sbin/ldconfig
+
+%postun -n libgstinsertbin -p /sbin/ldconfig
+
+%postun -n libgstmpegts -p /sbin/ldconfig
+
+%postun -n libgsturidownloader -p /sbin/ldconfig
+
+%files
+%manifest %{name}.manifest
+%defattr(-, root, root)
+%license COPYING COPYING.LIB
+%{_libdir}/gstreamer-%{gst_branch}/libgstadpcmdec.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstadpcmenc.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstasfmux.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstaudiovisualizers.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstautoconvert.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstbayer.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstcamerabin2.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstcoloreffects.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstcurl.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstdataurisrc.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstdebugutilsbad.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstdvb.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstdvbsuboverlay.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstfestival.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstgaudieffects.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstgdp.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstgeometrictransform.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstid3tag.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstinter.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstinterlace.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstjpegformat.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstliveadder.so
+
+%{_libdir}/gstreamer-%{gst_branch}/libgstmpegpsdemux.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstmpegtsdemux.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstmpegtsmux.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstpcapparse.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstpnm.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstrawparse.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstremovesilence.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstsdpelem.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstsegmentclip.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstshm.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstsmooth.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstspeed.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstvideoparsersbad.so
+%{_libdir}/gstreamer-%{gst_branch}/libgsty4mdec.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstdvdspu.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstfieldanalysis.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstfrei0r.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstsiren.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstsubenc.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstmpegpsmux.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstdecklink.so
+%{_libdir}/gstreamer-%{gst_branch}/libgsteglglessink.so
+
+%{_libdir}/gstreamer-%{gst_branch}/libgstaccurip.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstaiff.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstaudiofxbad.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstfbdevsink.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstfreeverb.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstivtc.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstmfc.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstmidi.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstmxf.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstrfbsrc.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstvideofiltersbad.so
+%{_libdir}/gstreamer-%{gst_branch}/libgstyadif.so
+
+
+%files -n libgstphotography
+%manifest %{name}.manifest
+%defattr(-, root, root)
+%{_libdir}/libgstphotography-%{gst_branch}.so.0*
+
+%files -n libgstbasecamerabinsrc
+%manifest %{name}.manifest
+%defattr(-, root, root)
+%{_libdir}/libgstbasecamerabinsrc-%{gst_branch}.so.0*
+
+%files -n libgstcodecparsers
+%manifest %{name}.manifest
+%defattr(-, root, root)
+%{_libdir}/libgstcodecparsers-%{gst_branch}.so.0*
+
+%files -n libgstegl
+%manifest %{name}.manifest
+%defattr(-, root, root)
+%{_libdir}/libgstegl-%{gst_branch}.so.0*
+
+%files -n libgstinsertbin
+%manifest %{name}.manifest
+%defattr(-, root, root)
+%{_libdir}/libgstinsertbin-%{gst_branch}.so.0*
+
+%files -n libgstmpegts
+%manifest %{name}.manifest
+%defattr(-, root, root)
+%{_libdir}/libgstmpegts-%{gst_branch}.so.0*
+
+%files -n libgsturidownloader
+%manifest %{name}.manifest
+%defattr(-, root, root)
+%{_libdir}/libgsturidownloader-%{gst_branch}.so.0*
+
+%files devel
+%manifest %{name}.manifest
+%defattr(-, root, root)
+%{_includedir}/gstreamer-%{gst_branch}
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/gstreamer-codecparsers-%{gst_branch}.pc
+%{_libdir}/pkgconfig/gstreamer-plugins-bad-%{gst_branch}.pc
+%{_libdir}/pkgconfig/gstreamer-egl-%{gst_branch}.pc
+%{_libdir}/pkgconfig/gstreamer-insertbin-%{gst_branch}.pc