[gstreamer-plugins-good/f16] add extras subpackage with jack source/sink (#714481)

Nils Philippsen nphilipp at fedoraproject.org
Mon Jun 11 11:59:02 UTC 2012


commit ab999e75387ec1e94faf58c91a456e99231c8583
Author: Nils Philippsen <nils at redhat.com>
Date:   Mon Jun 11 13:44:54 2012 +0200

    add extras subpackage with jack source/sink (#714481)

 gstreamer-plugins-good.spec |   44 +++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 44 insertions(+), 0 deletions(-)
---
diff --git a/gstreamer-plugins-good.spec b/gstreamer-plugins-good.spec
index 65234b9..0ea9683 100644
--- a/gstreamer-plugins-good.spec
+++ b/gstreamer-plugins-good.spec
@@ -4,6 +4,13 @@
 %define         _gst            0.10.33
 %define         _gstpb          %{_gst}
 
+# Turn of extras package on RHEL.
+%if ! 0%{?rhel}
+%bcond_without extras
+%else
+%bcond_with extras
+%endif
+
 Name:           %{gstreamer}-plugins-good
 Version:        0.10.30
 Release:        5%{?dist}
@@ -69,6 +76,11 @@ BuildRequires:  libraw1394-devel
 BuildRequires:  gtk-doc
 BuildRequires:  python-devel PyXML
 
+# extras
+%if %{with extras}
+BuildRequires:  jack-audio-connection-kit-devel
+%endif
+
 Provides: gstreamer-plugins-pulse = 0.9.8-1
 Obsoletes: gstreamer-plugins-pulse < 0.9.8
 
@@ -109,6 +121,23 @@ good quality and under the LGPL license.
 
 This package contains documentation for the provided plugins.
 
+%if %{with extras}
+%package extras
+Summary:        Extra GStreamer plug-ins with good code and licensing
+Group:          Applications/Multimedia
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+
+%description extras
+GStreamer is a streaming media framework, based on graphs of filters which
+operate on media data.
+
+GStreamer Good Plug-ins is a collection of well-supported plug-ins of
+good quality and under the LGPL license.
+
+This package (gstreamer-plugins-good-extras) contains extra "good" plugins
+which are not used very much and require additional libraries to be installed.
+%endif
+
 %prep
 %setup -q -n gst-plugins-good-%{version}
 %patch0 -p1
@@ -130,6 +159,11 @@ This package contains documentation for the provided plugins.
   --disable-aalib \
   --disable-esd \
   --disable-libcaca \
+%if %{with extras}
+  --enable-jack \
+%else
+  --disable-jack \
+%endif
   --with-default-visualizer=autoaudiosink
 
 make %{?_smp_mflags}
@@ -238,6 +272,13 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
 # gtk-doc documentation
 %doc %{_datadir}/gtk-doc/html/gst-plugins-good-plugins-%{majorminor}
 
+%if %{with extras}
+%files extras
+%defattr(-, root, root)
+# Plugins with external dependencies
+%{_libdir}/gstreamer-%{majorminor}/libgstjack.so
+%endif
+
 %pre
 if [ "$1" -gt 1 ]; then
   export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
@@ -255,6 +296,9 @@ export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
 gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/gstreamer-%{majorminor}.schemas > /dev/null || :
 
 %changelog
+* Mon Jun 11 2012 Nils Philippsen <nils at redhat.com>
+- add extras subpackage with jack source/sink (#714481)
+
 * Sun Nov 27 2011 Brian Pepple <bpepple at fedoraproject.org> - 0.10.30-5
 - Backport patch to correct flacdec sample number rounding. (#722667)
 - Drop clean section. No longer needed.


More information about the scm-commits mailing list