[gstreamer-plugins-good] add extras subpackage with jack source/sink (#714481)
Nils Philippsen
nphilipp at fedoraproject.org
Mon Jun 11 11:52:14 UTC 2012
commit 258aab4f7355c5665ced1c8ebf45da0545e79c6c
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 | 43 +++++++++++++++++++++++++++++++++++++++++++
1 files changed, 43 insertions(+), 0 deletions(-)
---
diff --git a/gstreamer-plugins-good.spec b/gstreamer-plugins-good.spec
index d18af44..ea928e7 100644
--- a/gstreamer-plugins-good.spec
+++ b/gstreamer-plugins-good.spec
@@ -4,6 +4,13 @@
%define _gst 0.10.36
%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.31
Release: 3%{?dist}
@@ -67,6 +74,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
@@ -107,6 +119,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}
%patch1 -p1
@@ -126,7 +155,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}
@@ -235,6 +268,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`
@@ -252,6 +292,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)
+
* Fri Jun 10 2012 Hans de Goede <hdegoede at redhat.com> - 0.10.31-3
- v4l2: Don't probe UVC devices for being interlaced, this saves seconds when
starting a pipeline with a v4l2 element (rhbz#797188, gnome#677722)
More information about the scm-commits
mailing list