From: Yan Yin Date: Wed, 9 Oct 2013 09:26:30 +0000 (+0800) Subject: add packaging files X-Git-Tag: submit/gst/20131025.043135^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Fdevel%2Fgst;p=platform%2Fupstream%2Fgst-plugins-ugly.git add packaging files Change-Id: I96295c45bead2345d39e95b2e0afe241e3f08d9f --- diff --git a/.gbs.conf b/.gbs.conf new file mode 100644 index 00000000..fa9fdc59 --- /dev/null +++ b/.gbs.conf @@ -0,0 +1,3 @@ +[general] +upstream_branch = upstream +upstream_tag = ${upstreamversion} diff --git a/.gitignore b/.gitignore index b2fe9f03..0d48932e 100644 --- a/.gitignore +++ b/.gitignore @@ -8,7 +8,6 @@ config.guess config.sub config.rpath configure -gst-plugins-ugly.spec libtool stamp-h stamp-h.in @@ -43,4 +42,4 @@ Build *.ipch *.sdf *.opensdf -*.DS_Store \ No newline at end of file +*.DS_Store diff --git a/packaging/common.tar.bz2 b/packaging/common.tar.bz2 new file mode 100644 index 00000000..15e8fedf 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 index 00000000..1de5a672 --- /dev/null +++ b/packaging/gitmodules.sh @@ -0,0 +1,25 @@ +#! /bin/sh +# @author: Philippe Coval +# @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< 1.0.7@4ed4891 +- add packaging + diff --git a/packaging/gst-plugins-ugly.manifest b/packaging/gst-plugins-ugly.manifest new file mode 100644 index 00000000..017d22d3 --- /dev/null +++ b/packaging/gst-plugins-ugly.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/gst-plugins-ugly.spec b/packaging/gst-plugins-ugly.spec new file mode 100644 index 00000000..0cb3b28d --- /dev/null +++ b/packaging/gst-plugins-ugly.spec @@ -0,0 +1,76 @@ +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 +