add packaging directory for initial build 22/133722/4
authorsangho park <sangho.g.park@samsung.com>
Tue, 13 Jun 2017 07:42:41 +0000 (16:42 +0900)
committersangho park <sangho.g.park@samsung.com>
Tue, 13 Jun 2017 11:29:18 +0000 (20:29 +0900)
Change-Id: I9413e789b42eb8f5017354161bb83fb2ffdb9c28

gstreamer.manifest [new file with mode: 0644]
packaging/common.tar.gz [new file with mode: 0644]
packaging/gstreamer.spec [new file with mode: 0644]

diff --git a/gstreamer.manifest b/gstreamer.manifest
new file mode 100644 (file)
index 0000000..97e8c31
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+       <request>
+               <domain name="_"/>
+       </request>
+</manifest>
diff --git a/packaging/common.tar.gz b/packaging/common.tar.gz
new file mode 100644 (file)
index 0000000..fd4248a
Binary files /dev/null and b/packaging/common.tar.gz differ
diff --git a/packaging/gstreamer.spec b/packaging/gstreamer.spec
new file mode 100644 (file)
index 0000000..f83efe6
--- /dev/null
@@ -0,0 +1,147 @@
+%define gst_branch 1.0
+
+Name:           gstreamer
+Version:        1.10.4
+Release:        9
+Summary:        Streaming-Media Framework Runtime
+License:        LGPL-2.0+
+Group:          Multimedia/Framework
+Url:            http://gstreamer.freedesktop.org/
+Source0:        http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-%{version}.tar.xz
+Source100:      common.tar.gz
+BuildRequires:  bison
+BuildRequires:  gettext-tools
+BuildRequires:  check-devel
+BuildRequires:  fdupes
+BuildRequires:  flex
+BuildRequires:  pkgconfig(glib-2.0) >= 2.32.0
+BuildRequires:  libtool
+BuildRequires:  pkgconfig(libxml-2.0)
+BuildRequires:  pkgconfig(gobject-introspection-1.0) >= 1.31.1
+BuildRequires:  pkgconfig(dlog)
+
+%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 plug-in-based architecture
+means that new data types or processing capabilities can be added by
+installing new plug-ins.
+
+%package utils
+Summary:        Streaming-Media Framework Runtime
+Group:          Multimedia/Framework
+Provides:       gstreamer:%{_bindir}/gst-launch-%{gst_branch} = %{version}
+# Symbol for unversioned wrappers:
+Provides:       gstreamer-utils_versioned = %{version}
+
+%description utils
+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 plug-in-based architecture
+means that new data types or processing capabilities can be added by
+installing new plug-ins.
+
+%package devel
+Summary:        Include Files and Libraries mandatory for Development
+Group:          Development/Libraries
+# gstreamer-utils is required for the gstreamer-provides rpm magic.
+Requires:       gstreamer-utils = %{version}
+Requires:       %{name} = %{version}
+
+%description devel
+This package contains all necessary include files and libraries needed
+to develop applications that require these.
+
+%lang_package
+
+%prep
+%setup -q -n gstreamer-%{version}
+%setup -q -T -D -a 100
+
+%build
+# FIXME: GTKDOC_CFLAGS, GST_OBJ_CFLAGS:
+# Silently ignored compilation of uninstalled gtk-doc scanners without RPM_OPT_FLAGS.
+export V=1
+NOCONFIGURE=1 ./autogen.sh
+export CFLAGS="%{optflags} \
+       -DTIZEN_FEATURE_QUEUE2_MODIFICATION\
+       -DTIZEN_FEATURE_FILESINK_MODIFICATION\
+       -DTIZEN_FEATURE_MQ_MODIFICATION\
+       -DTIZEN_FEATURE_BASEPARSE_MODIFICATION\
+       -DTIZEN_FEATURE_QUEUE_MODIFICATION\
+%if "%{TIZEN_PRODUCT_TV}" == "1"
+       -DTIZEN_PROFILE_TV\
+       -DRVU_LIVESTREAMING_OPTIMIZATION\
+       -DTIZEN_FEATURE_TRUSTZONE\
+%endif
+       -DTIZEN_FEATURE_RTSPSRC_MODIFICATION\
+       -fno-strict-aliasing"
+
+%configure\
+%if %{with introspection}
+        --enable-introspection\
+%endif
+        --disable-static\
+        --disable-docbook\
+        --disable-gtk-doc\
+        --enable-dlog\
+%if "%{TIZEN_PRODUCT_TV}" == "1"
+        --enable-tv-profile\
+%endif
+        --disable-examples\
+        --disable-tests
+make %{?_smp_mflags}
+
+%install
+%make_install
+mkdir -p %{buildroot}%{_datadir}/gstreamer-%{gst_branch}/presets
+mkdir -p %{buildroot}%{_docdir}/%{name}
+%find_lang %{name}-%{gst_branch}
+mv %{name}-%{gst_branch}.lang %{name}.lang
+rm -rf %{buildroot}%{_datadir}/gtk-doc
+rm -rf %{buildroot}%{_docdir}/%{name}/manual
+rm -rf %{buildroot}%{_docdir}/%{name}/pwg
+rm -rf %{buildroot}%{_libdir}/girepository-1.0/*.typelib
+mkdir -p %{buildroot}%{_datadir}/gstreamer-%{gst_branch}/presets
+%fdupes %{buildroot}
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%manifest %{name}.manifest
+%defattr(-, root, root)
+%license COPYING
+
+%dir %{_datadir}/gstreamer-%{gst_branch}
+%dir %{_datadir}/gstreamer-%{gst_branch}/presets
+%dir %{_libdir}/gstreamer-%{gst_branch}
+%{_libdir}/gstreamer-%{gst_branch}/*.so
+%dir %{_libexecdir}/gstreamer-%{gst_branch}
+%{_includedir}/gstreamer-%{gst_branch}/gst/gstconfig.h
+%{_libexecdir}/gstreamer-%{gst_branch}/gst-plugin-scanner
+%{_libexecdir}/gstreamer-%{gst_branch}/gst-ptp-helper
+%{_libdir}/*.so.*
+%{_datadir}/bash-completion/*
+
+%files utils
+%manifest %{name}.manifest
+%defattr(-, root, root)
+%license COPYING
+%{_bindir}/*-%{gst_branch}
+%doc %{_mandir}/man?/*-%{gst_branch}.*
+
+%files devel
+%manifest %{name}.manifest
+%defattr(-, root, root)
+%{_datadir}/aclocal/*.m4
+%{_includedir}/*
+%{_libdir}/*.so
+%{_libdir}/debug/*
+%{_libdir}/pkgconfig/*.pc
+%{_datadir}/gir-1.0/*.gir
+
+%changelog