[packages/gstreamer0.10] - new, based on 0.10 version of gstreamer package
kiesiu
kiesiu at pld-linux.org
Tue Sep 25 22:36:25 CEST 2012
commit 8d0510858a3d8f778458616a574f79adb7cc579e
Author: Łukasz Kieś <kiesiu at pld-linux.org>
Date: Tue Sep 25 22:34:16 2012 +0200
- new, based on 0.10 version of gstreamer package
gstreamer-eps.patch | 37 ++++
gstreamer-inspect-rpm-format.patch | 385 +++++++++++++++++++++++++++++++++++++
gstreamer-rpmdeps.sh | 30 +++
gstreamer-without_ps_pdf.patch | 20 ++
gstreamer0.10.spec | 224 +++++++++++++++++++++
5 files changed, 696 insertions(+)
---
diff --git a/gstreamer0.10.spec b/gstreamer0.10.spec
new file mode 100644
index 0000000..db272e3
--- /dev/null
+++ b/gstreamer0.10.spec
@@ -0,0 +1,224 @@
+Summary: GStreamer Streaming-media framework runtime
+Summary(pl.UTF-8): GStreamer - biblioteki środowiska do obróbki strumieni
+Name: gstreamer0
+Version: 0.10.36
+Release: 4
+License: LGPL v2+
+Group: Libraries
+Source0: http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-%{version}.tar.xz
+# Source0-md5: 15389c73e091b1dda915279c388b9cb2
+Source1: gstreamer-rpmdeps.sh
+Patch0: gstreamer-without_ps_pdf.patch
+Patch1: gstreamer-eps.patch
+Patch2: gstreamer-inspect-rpm-format.patch
+URL: http://gstreamer.net/
+BuildRequires: autoconf >= 2.60
+BuildRequires: automake >= 1:1.11
+BuildRequires: bison >= 1.875
+BuildRequires: docbook-dtd30-sgml
+BuildRequires: docbook-dtd412-xml
+BuildRequires: docbook-utils >= 0.6.10
+BuildRequires: flex >= 2.5.31
+BuildRequires: gettext-devel >= 0.17
+BuildRequires: glib2-devel >= 1:2.24
+BuildRequires: glibc-misc
+BuildRequires: gnome-doc-tools
+BuildRequires: gobject-introspection-devel >= 0.6.8
+BuildRequires: gtk-doc >= 1.6
+BuildRequires: libtool >= 1.4
+BuildRequires: libxml2-devel >= 1:2.6.26
+BuildRequires: nasm
+BuildRequires: perl-base
+BuildRequires: pkgconfig >= 1:0.9.0
+BuildRequires: python >= 2.1
+BuildRequires: tar >= 1:1.22
+BuildRequires: transfig
+BuildRequires: xmlto
+BuildRequires: xz
+Requires: glib2 >= 1:2.24
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define vmajor %(echo %{version} | cut -d. -f1,2)
+%define _gstlibdir %{_libdir}/gstreamer-%{vmajor}
+%define _gstincludedir %{_includedir}/gstreamer-%{vmajor}
+
+%define rpmlibdir /usr/lib/rpm
+
+%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 plugins.
+
+%description -l pl.UTF-8
+GStreamer to środowisko obróbki danych strumieniowych, bazujące na
+grafie filtrów operujących na danych medialnych. Aplikacje używające
+tej biblioteki mogą robić wszystko od przetwarzania dźwięku w czasie
+rzeczywistym, do odtwarzania filmów i czegokolwiek innego związanego z
+mediami. Architektura bazująca na wtyczkach pozwala na łatwe dodawanie
+nowych typów danych lub możliwości obróbki.
+
+%package devel
+Summary: Include files for GStreamer streaming-media framework
+Summary(pl.UTF-8): Pliki nagłówkowe do środowiska obróbki strumieni GStreamer
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: glib2-devel >= 1:2.24
+Requires: libxml2-devel >= 1:2.6.26
+Obsoletes: gstreamer-plugins-bad-devel < 0.10.10
+
+%description devel
+This package contains the includes files necessary to develop
+applications and plugins for GStreamer.
+
+%description devel -l pl.UTF-8
+Ten pakiet zawiera pliki nagłówkowe potrzebne do rozwijania aplikacji
+i wtyczek do GStreamera.
+
+%package static
+Summary: GStreamer static libraries
+Summary(pl.UTF-8): Biblioteki statyczne GStreamer
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static versions of GStreamer libraries.
+
+%description static -l pl.UTF-8
+Statyczne wersje bibliotek GStreamer.
+
+%package apidocs
+Summary: GStreamer API documentation
+Summary(pl.UTF-8): Dokumentacja API Gstreamera
+Group: Documentation
+Requires: gtk-doc-common
+
+%description apidocs
+GStreamer API documentation.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API Gstreamera.
+
+%prep
+%setup -q -n gstreamer-%{version}
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+
+%build
+# po/Makefile.in.in is modified
+#{__gettextize}
+%{__libtoolize}
+%{__aclocal} -I common/m4 -I m4 -I .
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+ --disable-examples \
+ --disable-pspdf \
+ --disable-silent-rules \
+ --disable-tests \
+ --enable-docbook \
+ --enable-gtk-doc \
+ --with-html-dir=%{_gtkdocdir}
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_docdir}/gstreamer-devel-%{version},%{rpmlibdir}}
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+install %{SOURCE1} $RPM_BUILD_ROOT%{rpmlibdir}/gstreamerdeps.sh
+
+mv $RPM_BUILD_ROOT%{_docdir}/gstreamer-{%{vmajor},%{version}}
+mv $RPM_BUILD_ROOT%{_docdir}/gstreamer-%{version}/{manual,pwg} \
+ $RPM_BUILD_ROOT%{_docdir}/gstreamer-devel-%{version}
+
+%find_lang gstreamer --all-name --with-gnome
+
+# no *.la for modules - shut up check files
+%{__rm} $RPM_BUILD_ROOT%{_gstlibdir}/lib*.la
+# *.la for libs kept - no .private dependencies in *.pc
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files -f gstreamer.lang
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog NEWS README TODO
+%attr(755,root,root) %{_bindir}/gst-*
+%attr(755,root,root) %{_libdir}/libgstbase-0.10.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libgstbase-0.10.so.0
+%attr(755,root,root) %{_libdir}/libgstcheck-0.10.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libgstcheck-0.10.so.0
+%attr(755,root,root) %{_libdir}/libgstcontroller-0.10.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libgstcontroller-0.10.so.0
+%attr(755,root,root) %{_libdir}/libgstdataprotocol-0.10.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libgstdataprotocol-0.10.so.0
+%attr(755,root,root) %{_libdir}/libgstnet-0.10.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libgstnet-0.10.so.0
+%attr(755,root,root) %{_libdir}/libgstreamer-0.10.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libgstreamer-0.10.so.0
+%dir %{_gstlibdir}
+%attr(755,root,root) %{_gstlibdir}/gst-plugin-scanner
+%attr(755,root,root) %{_gstlibdir}/libgstcoreelements.so
+%attr(755,root,root) %{_gstlibdir}/libgstcoreindexers.so
+%{_mandir}/man1/gst-*.1*
+%{_libdir}/girepository-1.0/Gst-0.10.typelib
+%{_libdir}/girepository-1.0/GstBase-0.10.typelib
+%{_libdir}/girepository-1.0/GstCheck-0.10.typelib
+%{_libdir}/girepository-1.0/GstController-0.10.typelib
+%{_libdir}/girepository-1.0/GstNet-0.10.typelib
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libgstbase-0.10.so
+%attr(755,root,root) %{_libdir}/libgstcheck-0.10.so
+%attr(755,root,root) %{_libdir}/libgstcontroller-0.10.so
+%attr(755,root,root) %{_libdir}/libgstdataprotocol-0.10.so
+%attr(755,root,root) %{_libdir}/libgstnet-0.10.so
+%attr(755,root,root) %{_libdir}/libgstreamer-0.10.so
+%{_libdir}/libgstbase-0.10.la
+%{_libdir}/libgstcheck-0.10.la
+%{_libdir}/libgstcontroller-0.10.la
+%{_libdir}/libgstdataprotocol-0.10.la
+%{_libdir}/libgstnet-0.10.la
+%{_libdir}/libgstreamer-0.10.la
+%{_docdir}/gstreamer-devel-%{version}
+%{_gstincludedir}
+%{_pkgconfigdir}/gstreamer-0.10.pc
+%{_pkgconfigdir}/gstreamer-base-0.10.pc
+%{_pkgconfigdir}/gstreamer-check-0.10.pc
+%{_pkgconfigdir}/gstreamer-controller-0.10.pc
+%{_pkgconfigdir}/gstreamer-dataprotocol-0.10.pc
+%{_pkgconfigdir}/gstreamer-net-0.10.pc
+%{_aclocaldir}/gst-element-check-0.10.m4
+%attr(755,root,root) %{rpmlibdir}/gstreamerdeps.sh
+%{_datadir}/gir-1.0/Gst-0.10.gir
+%{_datadir}/gir-1.0/GstBase-0.10.gir
+%{_datadir}/gir-1.0/GstCheck-0.10.gir
+%{_datadir}/gir-1.0/GstController-0.10.gir
+%{_datadir}/gir-1.0/GstNet-0.10.gir
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libgstbase-0.10.a
+%{_libdir}/libgstcheck-0.10.a
+%{_libdir}/libgstcontroller-0.10.a
+%{_libdir}/libgstdataprotocol-0.10.a
+%{_libdir}/libgstnet-0.10.a
+%{_libdir}/libgstreamer-0.10.a
+
+%files apidocs
+%defattr(644,root,root,755)
+%{_gtkdocdir}/gstreamer-0.10
+%{_gtkdocdir}/gstreamer-libs-0.10
+%{_gtkdocdir}/gstreamer-plugins-0.10
diff --git a/gstreamer-eps.patch b/gstreamer-eps.patch
new file mode 100644
index 0000000..000e171
--- /dev/null
+++ b/gstreamer-eps.patch
@@ -0,0 +1,37 @@
+--- gstreamer-0.10.1/docs/image-eps.orig 2003-10-08 16:34:06.000000000 +0200
++++ gstreamer-0.10.1/docs/image-eps 2006-01-14 13:35:25.683403250 +0100
+@@ -1,2 +1,2 @@
+-<!ENTITY image "ps">
++<!ENTITY image "eps">
+ <!ENTITY IMAGE "EPS">
+--- gstreamer-0.10.1/docs/manuals.mak.orig 2005-05-02 13:47:15.000000000 +0200
++++ gstreamer-0.10.1/docs/manuals.mak 2006-01-14 13:37:01.545394250 +0100
+@@ -11,8 +11,8 @@
+
+ # PNG's can be source or built from .fig
+ PNG = $(strip $(PNG_SRC) $(FIG_SRC:.fig=.png))
+-# EPS .ps files can be built from .png or .fig
+-EPS = $(strip $(FIG_SRC:.fig=.ps) $(PNG_SRC:.png=.ps))
++# EPS .eps files can be built from .png or .fig
++EPS = $(strip $(FIG_SRC:.fig=.eps) $(PNG_SRC:.png=.eps))
+ # PDF .pdf files can be built from .png or .fig
+ PDF = $(strip $(FIG_SRC:.fig=.pdf) $(PNG_SRC:.png=.pdf))
+
+@@ -140,7 +140,7 @@
+ @fig2dev -Lpng $< $@
+
+ # make ps(EPS) from fig
+-$(BUILDIMAGESDIR)/%.ps: %.fig
++$(BUILDIMAGESDIR)/%.eps: %.fig
+ @echo "Generating $@ from $<"
+ @mkdir -p $(BUILDIMAGESDIR)
+ @fig2dev -Leps $< $@
+@@ -158,7 +158,7 @@
+ @cat $< | pngtopnm | pnmtops -noturn 2> /dev/null | epstopdf --filter --outfile $@ 2> /dev/null
+
+ # make ps(EPS) from png
+-$(BUILDIMAGESDIR)/%.ps: %.png
++$(BUILDIMAGESDIR)/%.eps: %.png
+ @echo "Generating $@ from $<"
+ @mkdir -p $(BUILDIMAGESDIR)
+ @cat $< | pngtopnm | pnmtops -noturn > $@ 2> /dev/null
diff --git a/gstreamer-inspect-rpm-format.patch b/gstreamer-inspect-rpm-format.patch
new file mode 100644
index 0000000..caf6e28
--- /dev/null
+++ b/gstreamer-inspect-rpm-format.patch
@@ -0,0 +1,385 @@
+From e4a4294f53d25bc3b5699cace74de4f49062a2ee Mon Sep 17 00:00:00 2001
+From: Bastien Nocera <hadess at hadess.net>
+Date: Wed, 11 Nov 2009 13:53:46 +0000
+Subject: [PATCH] Add RPM provides output to gst-inspect
+
+---
+ tools/gst-inspect.c | 275 ++++++++++++++++++++++++++++++++++++++++++++++++---
+ 1 files changed, 260 insertions(+), 15 deletions(-)
+
+diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c
+index c86285e..80b2456 100644
+--- a/tools/gst-inspect.c
++++ b/tools/gst-inspect.c
+@@ -1408,9 +1408,225 @@ print_element_info (GstElementFactory * factory, gboolean print_names)
+ return 0;
+ }
+
++static void
++print_gst_structure_append_field (GList * strings, const char *field)
++{
++ GList *s;
++
++ //g_message ("adding '%s' to the string", field);
++
++ for (s = strings; s != NULL; s = s->next) {
++ g_string_append (s->data, field);
++ }
++}
++
++static void
++print_gst_structure_append_field_index (GList * strings, const char *field,
++ guint num_items, guint offset)
++{
++ GList *s;
++ guint i;
++
++ //g_message ("adding '%s' to the string (num: %d offset: %d)", field, num_items, offset);
++
++ for (s = strings, i = 0; s != NULL; s = s->next, i++) {
++ if (i == offset) {
++ //g_message ("adding '%s' at '%d'", field, i);
++ g_string_append (s->data, field);
++ }
++ if (i == num_items)
++ i = 0;
++ }
++
++}
++
++static GList *
++print_gst_structure_dup_fields (GList * strings, guint num_items)
++{
++ guint new_items, i;
++
++ if (num_items == 1)
++ return strings;
++
++ //g_message ("creating %d new items", num_items);
++
++ new_items = g_list_length (strings) * (num_items - 1);
++ for (i = 0; i < new_items; i++) {
++ GString *s, *first;
++
++ first = strings->data;
++ s = g_string_new_len (first->str, first->len);
++ strings = g_list_prepend (strings, s);
++ }
++
++ return strings;
++}
++
++enum
++{
++ FIELD_VERSION = 0,
++ FIELD_LAYER,
++ FIELD_VARIANT,
++ FIELD_SYSTEMSTREAM
++};
++
++static int
++field_get_type (const char *field_name)
++{
++ if (strstr (field_name, "version") != NULL)
++ return FIELD_VERSION;
++ if (strcmp (field_name, "layer") == 0)
++ return FIELD_LAYER;
++ if (strcmp (field_name, "systemstream") == 0)
++ return FIELD_SYSTEMSTREAM;
++ if (strcmp (field_name, "variant") == 0)
++ return FIELD_VARIANT;
++
++ return -1;
++}
++
++static gint
++fields_type_compare (const char *a, const char *b)
++{
++ gint a_type, b_type;
++
++ a_type = field_get_type (a);
++ b_type = field_get_type (b);
++ if (a_type < b_type)
++ return -1;
++ if (b_type < a_type)
++ return 1;
++ return 0;
++}
+
+ static void
+-print_plugin_automatic_install_info_codecs (GstElementFactory * factory)
++print_gst_structure_for_rpm (const char *type_name, GstStructure * s)
++{
++ guint i, num_fields;
++ const char *name;
++ GList *fields, *l, *strings;
++ GString *string;
++
++ name = gst_structure_get_name (s);
++ strings = NULL;
++ num_fields = gst_structure_n_fields (s);
++ fields = NULL;
++
++ for (i = 0; i < num_fields; i++) {
++ const char *field_name;
++
++ field_name = gst_structure_nth_field_name (s, i);
++ if (field_get_type (field_name) < 0) {
++ //g_message ("ignoring field named %s", field_name);
++ continue;
++ }
++
++ fields =
++ g_list_insert_sorted (fields, g_strdup (field_name),
++ (GCompareFunc) fields_type_compare);
++ }
++
++ /* Example:
++ * gstreamer0.10(decoder-video/mpeg)(mpegversion=1)()(64bit) */
++ string = g_string_new ("gstreamer0.10");
++ g_string_append_c (string, '(');
++ g_string_append (string, type_name);
++ g_string_append_c (string, '-');
++ g_string_append (string, name);
++ g_string_append_c (string, ')');
++
++ strings = g_list_append (strings, string);
++
++ for (l = fields; l != NULL; l = l->next) {
++ char *field_name;
++ GType type;
++
++ field_name = l->data;
++
++ type = gst_structure_get_field_type (s, field_name);
++ //g_message ("field is: %s, type: %s", field_name, g_type_name (type));
++
++ if (type == G_TYPE_INT) {
++ char *field;
++ int value;
++
++ gst_structure_get_int (s, field_name, &value);
++ field = g_strdup_printf ("(%s=%d)", field_name, value);
++ print_gst_structure_append_field (strings, field);
++ g_free (field);
++ } else if (type == G_TYPE_BOOLEAN) {
++ char *field;
++ int value;
++
++ gst_structure_get_boolean (s, field_name, &value);
++ field = g_strdup_printf ("(%s=%s)", field_name, value ? "true" : "false");
++ print_gst_structure_append_field (strings, field);
++ g_free (field);
++ } else if (type == GST_TYPE_INT_RANGE) {
++ const GValue *value;
++ int min, max;
++
++ value = gst_structure_get_value (s, field_name);
++ min = gst_value_get_int_range_min (value);
++ max = gst_value_get_int_range_max (value);
++
++ strings = print_gst_structure_dup_fields (strings, max - min + 1);
++
++ for (i = min; i <= max; i++) {
++ char *field;
++
++ field = g_strdup_printf ("(%s=%d)", field_name, i);
++ print_gst_structure_append_field_index (strings, field, max - min + 1,
++ i - min);
++ g_free (field);
++ }
++ } else if (type == GST_TYPE_LIST) {
++ const GValue *value;
++ int num_items;
++
++ value = gst_structure_get_value (s, field_name);
++ num_items = gst_value_list_get_size (value);
++
++ strings = print_gst_structure_dup_fields (strings, num_items);
++
++ for (i = 0; i < num_items; i++) {
++ char *field;
++ const GValue *item_value;
++
++ item_value = gst_value_list_get_value (value, i);
++ field = g_strdup_printf ("(%s=%d)", field_name,
++ g_value_get_int (item_value));
++ print_gst_structure_append_field_index (strings, field, num_items, i);
++ g_free (field);
++ }
++ } else if (type == G_TYPE_STRING) {
++ char *field;
++ const char *value;
++
++ value = gst_structure_get_string (s, field_name);
++ field = g_strdup_printf ("(%s=%s)", field_name, value);
++ print_gst_structure_append_field (strings, field);
++ g_free (field);
++ } else {
++ g_warning ("unhandled type! %s", g_type_name (type));
++ }
++
++ g_free (field_name);
++ }
++
++ g_list_free (fields);
++
++ for (l = strings; l != NULL; l = l->next) {
++ string = l->data;
++ g_print ("%s\n", string->str);
++ g_string_free (string, TRUE);
++ }
++ g_list_free (strings);
++}
++
++static void
++print_plugin_automatic_install_info_codecs (GstElementFactory * factory,
++ gboolean rpm_format)
+ {
+ GstPadDirection direction;
+ const gchar *type_name;
+@@ -1435,6 +1651,12 @@ print_plugin_automatic_install_info_codecs (GstElementFactory * factory)
+ return;
+ }
+
++ if (rpm_format) {
++ /* Ignore NONE ranked plugins */
++ if (GST_PLUGIN_FEATURE (factory)->rank == GST_RANK_NONE)
++ return;
++ }
++
+ /* decoder/demuxer sink pads should always be static and there should only
+ * be one, the same applies to encoders/muxers and source pads */
+ static_templates = gst_element_factory_get_static_pad_templates (factory);
+@@ -1471,15 +1693,20 @@ print_plugin_automatic_install_info_codecs (GstElementFactory * factory)
+ gst_structure_remove_field (s, "rate");
+ gst_structure_remove_field (s, "depth");
+ gst_structure_remove_field (s, "clock-rate");
+- s_str = gst_structure_to_string (s);
+- g_print ("%s-%s\n", type_name, s_str);
+- g_free (s_str);
++ if (!rpm_format) {
++ s_str = gst_structure_to_string (s);
++ g_print ("%s-%s\n", type_name, s_str);
++ g_free (s_str);
++ } else {
++ print_gst_structure_for_rpm (type_name, s);
++ }
+ }
+ gst_caps_unref (caps);
+ }
+
+ static void
+-print_plugin_automatic_install_info_protocols (GstElementFactory * factory)
++print_plugin_automatic_install_info_protocols (GstElementFactory * factory,
++ gboolean rpm_format)
+ {
+ gchar **protocols, **p;
+
+@@ -1488,11 +1715,17 @@ print_plugin_automatic_install_info_protocols (GstElementFactory * factory)
+ switch (gst_element_factory_get_uri_type (factory)) {
+ case GST_URI_SINK:
+ for (p = protocols; *p != NULL; ++p)
+- g_print ("urisink-%s\n", *p);
++ if (!rpm_format)
++ g_print ("urisink-%s\n", *p);
++ else
++ g_print ("gstreamer0.10(urisink-%s)\n", *p);
+ break;
+ case GST_URI_SRC:
+ for (p = protocols; *p != NULL; ++p)
+- g_print ("urisource-%s\n", *p);
++ if (!rpm_format)
++ g_print ("urisource-%s\n", *p);
++ else
++ g_print ("gstreamer0.10(urisource-%s)\n", *p);
+ break;
+ default:
+ break;
+@@ -1502,7 +1735,7 @@ print_plugin_automatic_install_info_protocols (GstElementFactory * factory)
+ }
+
+ static void
+-print_plugin_automatic_install_info (GstPlugin * plugin)
++print_plugin_automatic_install_info (GstPlugin * plugin, gboolean rpm_format)
+ {
+ const gchar *plugin_name;
+ GList *features, *l;
+@@ -1522,11 +1755,15 @@ print_plugin_automatic_install_info (GstPlugin * plugin)
+ if (g_str_equal (plugin_name, feature->plugin_name)) {
+ GstElementFactory *factory;
+
+- g_print ("element-%s\n", gst_plugin_feature_get_name (feature));
++ if (!rpm_format)
++ g_print ("element-%s\n", gst_plugin_feature_get_name (feature));
++ else
++ g_print ("gstreamer0.10(element-%s)\n",
++ gst_plugin_feature_get_name (feature));
+
+ factory = GST_ELEMENT_FACTORY (feature);
+- print_plugin_automatic_install_info_protocols (factory);
+- print_plugin_automatic_install_info_codecs (factory);
++ print_plugin_automatic_install_info_protocols (factory, rpm_format);
++ print_plugin_automatic_install_info_codecs (factory, rpm_format);
+ }
+ }
+
+@@ -1546,7 +1783,7 @@ print_all_plugin_automatic_install_info (void)
+ plugin = (GstPlugin *) (plugins->data);
+ plugins = g_list_next (plugins);
+
+- print_plugin_automatic_install_info (plugin);
++ print_plugin_automatic_install_info (plugin, FALSE);
+ }
+ gst_plugin_list_free (orig_plugins);
+ }
+@@ -1558,6 +1795,7 @@ main (int argc, char *argv[])
+ gboolean do_print_blacklist = FALSE;
+ gboolean plugin_name = FALSE;
+ gboolean print_aii = FALSE;
++ gboolean print_aii_rpm = FALSE;
+ gboolean uri_handlers = FALSE;
+ #ifndef GST_DISABLE_OPTION_PARSING
+ GOptionEntry options[] = {
+@@ -1570,6 +1808,9 @@ main (int argc, char *argv[])
+ "or all plugins provide.\n "
+ "Useful in connection with external automatic plugin "
+ "installation mechanisms"), NULL},
++ {"rpm", '\0', 0, G_OPTION_ARG_NONE, &print_aii_rpm,
++ N_("Print the machine-parsable list of features of a plugin in RPM "
++ "Provides compatible-format"), NULL},
+ {"plugin", '\0', 0, G_OPTION_ARG_NONE, &plugin_name,
+ N_("List the plugin contents"), NULL},
+ {"uri-handlers", 'u', 0, G_OPTION_ARG_NONE, &uri_handlers,
+@@ -1658,7 +1899,7 @@ main (int argc, char *argv[])
+ /* if there is such a plugin, print out info */
+ if (plugin) {
+ if (print_aii) {
+- print_plugin_automatic_install_info (plugin);
++ print_plugin_automatic_install_info (plugin, print_aii_rpm);
+ } else {
+ print_plugin_info (plugin);
+ print_plugin_features (plugin);
+@@ -1671,13 +1912,17 @@ main (int argc, char *argv[])
+
+ if (plugin) {
+ if (print_aii) {
+- print_plugin_automatic_install_info (plugin);
++ print_plugin_automatic_install_info (plugin, print_aii_rpm);
+ } else {
+ print_plugin_info (plugin);
+ print_plugin_features (plugin);
+ }
+ } else {
+- g_print (_("Could not load plugin file: %s\n"), error->message);
++ if (!print_aii_rpm)
++ g_print (_("Could not load plugin file: %s\n"), error->message);
++ else
++ g_printerr (_("Could not load plugin file: %s\n"),
++ error->message);
+ g_error_free (error);
+ return -1;
+ }
+--
+1.7.4.1
+
diff --git a/gstreamer-rpmdeps.sh b/gstreamer-rpmdeps.sh
new file mode 100644
index 0000000..93d8d41
--- /dev/null
+++ b/gstreamer-rpmdeps.sh
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+gstinspect="/usr/bin/gst-inspect"
+
+if [ ! -x $gstinspect ]; then
+ cat > /dev/null
+ exit 0
+fi
+
+case $1 in
+-P|--provides)
+ while read filename; do
+ case "$filename" in
+ *.so)
+ $gstinspect --print-plugin-auto-install-info --rpm "$filename" 2> /dev/null | while read line; do
+ echo -n "$line"
+
+ if file $filename 2> /dev/null | grep "ELF 64-bit" >/dev/null ; then
+ echo -n "()(64bit)"
+ fi
+
+ echo
+ done
+ ;;
+ esac
+ done
+ ;;
+esac
+
+exit 0
diff --git a/gstreamer-without_ps_pdf.patch b/gstreamer-without_ps_pdf.patch
new file mode 100644
index 0000000..8ba08e3
--- /dev/null
+++ b/gstreamer-without_ps_pdf.patch
@@ -0,0 +1,20 @@
+--- gstreamer-0.10.1/common/m4/gst-doc.m4.orig 2005-11-27 15:19:38.000000000 +0100
++++ gstreamer-0.10.1/common/m4/gst-doc.m4 2006-01-14 13:55:40.223307250 +0100
+@@ -8,6 +8,9 @@
+ AC_HELP_STRING([--enable-docbook],
+ [use docbook to build documentation [default=no]]),,
+ enable_docbook=no)
++ AC_ARG_ENABLE(pspdf,
++ AC_HELP_STRING([--disable-pspdf],
++ [disable building of documentation in PS and PDF formats]),,enable_pspdf=yes)
+
+ have_docbook=no
+
+@@ -100,6 +103,7 @@
+ dnl check if we can generate PS
+ if test "x$HAVE_DOCBOOK2PS" = "xyes" && \
+ test "x$enable_docbook" = "xyes" && \
++ test "x$enable_pspdf" = "xyes" && \
+ test "x$HAVE_XMLLINT" = "xyes" && \
+ test "x$HAVE_JADETEX" = "xyes" && \
+ test "x$HAVE_FIG2DEV_EPS" = "xyes" && \
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gstreamer0.10.git/commitdiff/8d0510858a3d8f778458616a574f79adb7cc579e
More information about the pld-cvs-commit
mailing list