File gstreamer-0_10-plugins-bad.spec of Package gstreamer-0_10-plugins-bad
#
# spec file for package gstreamer-0_10-plugins-bad (Version 0.10.13)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: gstreamer-0_10-plugins-bad
# Patched code is built by default.
# Use rpmbuild -D 'BUILD_ORIG 1' to build original code.
# Use rpmbuild -D 'BUILD_ORIG 1' -D 'BUILD_ORIG_ADDON 1' to build patched build plus original as addon.
%define _name gst-plugins-bad
Version: 0.10.13
Release: 1
%define gst_branch 0.10
BuildRequires: DirectFB-devel
BuildRequires: SDL-devel
BuildRequires: check-devel
BuildRequires: dirac-devel gcc-c++
BuildRequires: gstreamer-0_10-plugins-base-devel
BuildRequires: gtk-doc
BuildRequires: gtk2-devel
BuildRequires: jack-devel
BuildRequires: ladspa-devel
BuildRequires: libass-devel
BuildRequires: libcdaudio-devel
BuildRequires: libcelt-devel
BuildRequires: libdc1394-devel
BuildRequires: libdvdnav-devel
BuildRequires: libexempi-devel
BuildRequires: libexif-devel
BuildRequires: libglade2-devel
BuildRequires: libgsm-devel
BuildRequires: libiptcdata-devel
BuildRequires: libjasper-devel
BuildRequires: libmodplug-devel
BuildRequires: libmpcdec-devel
BuildRequires: libmusicbrainz-devel
BuildRequires: libofa-devel
BuildRequires: liboil-devel
BuildRequires: libsndfile-devel
BuildRequires: libtheora-devel
# FIXME: mpeg2enc: It should be built with mjpegtools-devel, but it isn't.
BuildRequires: mjpegtools-devel
BuildRequires: neon-devel
BuildRequires: openssl-devel
BuildRequires: python-devel
BuildRequires: pyxml
BuildRequires: sgml-skel
BuildRequires: soundtouch-devel
# FIXME: assrender: Requires libass, which is not packaged.
# FIXME: mimic: Requires libmimic.
# FIXME: mms: Requires libmms: MMS protocol library
# FIXME: mythtvsrc: Requires gmyth.
# FIXME: nassink: Not in openSUSE
# FIXME: spc: Requires OpenSPC: SPC music files dumped by ZSNES and SNES9X
# FIXME: timidity: Requires timidity library, which is not part of OpenSUSE timidity package.
# FIXME: wildmidi: Requires WildMIDI Open Source Midi Synthesizer
# NOTE: acm: Windows ACM library
# NOTE: ivorbisdec: Integer arithmetic OGG Vorbis decoder. Interesting only for platforms without FPU.
# NOTE: swfdec: Requires obsolete swfdec version.
# NOTE: theoraexpdec: It's intender for experimental OGG Theora decoder
# NOTE: qtwrapper directdrawsink wininet: (Probably) not intended for Linux
%if 0%{?BUILD_ORIG}
BuildRequires: amrwb-devel
BuildRequires: faac-devel
BuildRequires: faad2-devel
BuildRequires: libdca-devel
BuildRequires: libmpeg2-devel
BuildRequires: xvid-devel
%ifarch %ix86
BuildRequires: divx4linux-devel
%endif
# FIXME: Enable more modules.
%if 0%{?BUILD_ORIG_ADDON}
Provides: patched_subset
%else
Provides: %{name}-orig-addon = %{version}
Obsoletes: %{name}-orig-addon
%endif
%else
Provides: patched_subset
%endif
%ifarch %ix86 ppc x86_64
BuildRequires: valgrind-devel
%endif
License: GPL v2 or later ; LGPL v2.1 or later
Group: Productivity/Multimedia/Other
%if 0%{?BUILD_ORIG}
Source: http://gstreamer.freedesktop.org/src/%{_name}/%{_name}-%{version}.tar.bz2
%else
# WARNING: This is not a comment, but the real command to repack souce:
#%(bash %{_sourcedir}/%{name}-patch-source.sh %{_name}-%{version}.tar.bz2)
Source: %{_name}-%{version}-patched.tar.bz2
%endif
Source1: %{name}-patch-source.sh
Patch: gstreamer010-plugins-bad-patched.patch
Patch1: gstreamer010-plugins-bad-libass-0.9.7.patch
Patch2: gstreamer010-plugins-bad-libdca-shared.patch
Patch6: gstreamer010-plugins-bad-real.patch
Url: http://gstreamer.freedesktop.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: GStreamer Streaming-Media Framework Plug-Ins
Enhances: gstreamer-0_10
# Name up to 10.3:
Provides: gstreamer010-plugins-bad = %{version}
Obsoletes: gstreamer010-plugins-bad < %{version}
# Generic name, never used in SuSE:
Provides: gst-plugins-bad = %{version}
%define gstreamer010_plugins_bad_req %(zgrep --text "^GST.*_REQ" %{S:0} | sort -u | sed 's/GST_REQ=/gstreamer-0_10 >= /;s/GSTPB_REQ=/gstreamer-0_10-plugins-base >= /' | tr '\\n' ' ')
Requires: %gstreamer010_plugins_bad_req
Requires: %{name}-lang = %{version}
%description
GStreamer is a streaming media framework based on graphs of filters
that operate on media data. Applications using this library can do
anything media-related,from real-time sound processing to playing
videos. Its plug-in-based architecture means that new data types or
processing capabilities can be added simply by installing new plug-ins.
Authors:
--------
Erik Walthinsen <omega@temple-baptist.com>
Matt Howell <mhowell@users.sourceforge.net>
Brent Bradburn <bbradburn@users.sourceforge.net>
Wim Taymans <wim.taymans@chello.be>
Richard Boulton <richard@tartarus.org>
Zaheer Abbas Merali <zaheerabbas@merali.org>
David I. Lehn <dlehn@users.sourceforge.net>
Chris Emerson <chris@tartarus.org>
Jens Thiele <karme@unforgettable.com>
Thomas Nyberg <thomas@codefactory.se>
Bastien Nocera <hadess@hadess.net>
Christian Fredrik Kalager Schaller <Uraeus@linuxrising.org>
Thomas Vander Stichele <thomas@apestaart.org>
Andy Wingo <wingo@pobox.com>
Cameron Hutchison <camh@xdna.net>
David Schleef <ds@schleef.org>
Benjamin Otte <in7y118@public.uni-hamburg.de>
Ronald Bultje <rbultje@ronald.bitfreak.net>
Julien Moutte <julien@moutte.net>
Jan Schmidt <thaytan@mad.scientist.com>
Arwed v. Merkatz <v.merkatz@gmx.net>
%if 0%{?BUILD_ORIG}
%if 0%{?BUILD_ORIG_ADDON}
%package orig-addon
License: GPL v2 or later ; LGPL v2.1 or later
Summary: GStreamer Streaming-Media Framework Plug-Ins
Group: Productivity/Multimedia/Other
Requires: %{name} >= %{version}
Supplements: %{name}
# Name up to 10.3:
Provides: gstreamer010-plugins-bad-orig-addon = %{version}
Obsoletes: gstreamer010-plugins-bad-orig-addon < %{version}
# Generic name, never used in SuSE:
Provides: gst-plugins-bad:%{_libdir}/gstreamer-%{gst_branch}/libgstxvid.so = %{version}
# For update from == 11.0 (mpeg4videoparse mpegtsparse mpegvideoparse):
Conflicts: gstreamer-0_10-plugins-bad < 0.10.8
%description orig-addon
GStreamer is a streaming media framework based on graphs of filters
that operate on media data. Applications using this library can do
anything media-related,from real-time sound processing to playing
videos. Its plug-in-based architecture means that new data types or
processing capabilities can be added simply by installing new plug-ins.
Authors:
--------
Erik Walthinsen <omega@temple-baptist.com>
Matt Howell <mhowell@users.sourceforge.net>
Brent Bradburn <bbradburn@users.sourceforge.net>
Wim Taymans <wim.taymans@chello.be>
Richard Boulton <richard@tartarus.org>
Zaheer Abbas Merali <zaheerabbas@merali.org>
David I. Lehn <dlehn@users.sourceforge.net>
Chris Emerson <chris@tartarus.org>
Jens Thiele <karme@unforgettable.com>
Thomas Nyberg <thomas@codefactory.se>
Bastien Nocera <hadess@hadess.net>
Christian Fredrik Kalager Schaller <Uraeus@linuxrising.org>
Thomas Vander Stichele <thomas@apestaart.org>
Andy Wingo <wingo@pobox.com>
Cameron Hutchison <camh@xdna.net>
David Schleef <ds@schleef.org>
Benjamin Otte <in7y118@public.uni-hamburg.de>
Ronald Bultje <rbultje@ronald.bitfreak.net>
Julien Moutte <julien@moutte.net>
Jan Schmidt <thaytan@mad.scientist.com>
Arwed v. Merkatz <v.merkatz@gmx.net>
%endif
%endif
%package -n libgstphotography-0_10-0
License: GPL v2 or later ; LGPL v2.1 or later
Summary: GStreamer Streaming-Media Framework Plug-Ins
Group: Productivity/Multimedia/Other
%description -n libgstphotography-0_10-0
GStreamer is a streaming media framework based on graphs of filters
that operate on media data. Applications using this library can do
anything media-related,from real-time sound processing to playing
videos. Its plug-in-based architecture means that new data types or
processing capabilities can be added simply by installing new plug-ins.
Authors:
--------
Erik Walthinsen <omega@temple-baptist.com>
Matt Howell <mhowell@users.sourceforge.net>
Brent Bradburn <bbradburn@users.sourceforge.net>
Wim Taymans <wim.taymans@chello.be>
Richard Boulton <richard@tartarus.org>
Zaheer Abbas Merali <zaheerabbas@merali.org>
David I. Lehn <dlehn@users.sourceforge.net>
Chris Emerson <chris@tartarus.org>
Jens Thiele <karme@unforgettable.com>
Thomas Nyberg <thomas@codefactory.se>
Bastien Nocera <hadess@hadess.net>
Christian Fredrik Kalager Schaller <Uraeus@linuxrising.org>
Thomas Vander Stichele <thomas@apestaart.org>
Andy Wingo <wingo@pobox.com>
Cameron Hutchison <camh@xdna.net>
David Schleef <ds@schleef.org>
Benjamin Otte <in7y118@public.uni-hamburg.de>
Ronald Bultje <rbultje@ronald.bitfreak.net>
Julien Moutte <julien@moutte.net>
Jan Schmidt <thaytan@mad.scientist.com>
Arwed v. Merkatz <v.merkatz@gmx.net>
%package devel
License: GPL v2 or later ; LGPL v2.1 or later
Summary: GStreamer Streaming-Media Framework Plug-Ins
Group: Development/Libraries/C and C++
Requires: libgstphotography-0_10-0 = %{version} gstreamer-0_10-devel
%description devel
GStreamer is a streaming media framework based on graphs of filters
that operate on media data. Applications using this library can do
anything media-related,from real-time sound processing to playing
videos. Its plug-in-based architecture means that new data types or
processing capabilities can be added simply by installing new plug-ins.
Authors:
--------
Erik Walthinsen <omega@temple-baptist.com>
Matt Howell <mhowell@users.sourceforge.net>
Brent Bradburn <bbradburn@users.sourceforge.net>
Wim Taymans <wim.taymans@chello.be>
Richard Boulton <richard@tartarus.org>
Zaheer Abbas Merali <zaheerabbas@merali.org>
David I. Lehn <dlehn@users.sourceforge.net>
Chris Emerson <chris@tartarus.org>
Jens Thiele <karme@unforgettable.com>
Thomas Nyberg <thomas@codefactory.se>
Bastien Nocera <hadess@hadess.net>
Christian Fredrik Kalager Schaller <Uraeus@linuxrising.org>
Thomas Vander Stichele <thomas@apestaart.org>
Andy Wingo <wingo@pobox.com>
Cameron Hutchison <camh@xdna.net>
David Schleef <ds@schleef.org>
Benjamin Otte <in7y118@public.uni-hamburg.de>
Ronald Bultje <rbultje@ronald.bitfreak.net>
Julien Moutte <julien@moutte.net>
Jan Schmidt <thaytan@mad.scientist.com>
Arwed v. Merkatz <v.merkatz@gmx.net>
%package doc
License: GPL v2 or later ; LGPL v2.1 or later
Summary: GStreamer Streaming-Media Framework Plug-Ins
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
# Name up to 10.3:
Provides: gstreamer010-plugins-bad-doc = %{version}
Obsoletes: gstreamer010-plugins-bad-doc < %{version}
%description doc
GStreamer is a streaming media framework based on graphs of filters
that operate on media data. Applications using this library can do
anything media-related,from real-time sound processing to playing
videos. Its plug-in-based architecture means that new data types or
processing capabilities can be added simply by installing new plug-ins.
Authors:
--------
Erik Walthinsen <omega@temple-baptist.com>
Matt Howell <mhowell@users.sourceforge.net>
Brent Bradburn <bbradburn@users.sourceforge.net>
Wim Taymans <wim.taymans@chello.be>
Richard Boulton <richard@tartarus.org>
Zaheer Abbas Merali <zaheerabbas@merali.org>
David I. Lehn <dlehn@users.sourceforge.net>
Chris Emerson <chris@tartarus.org>
Jens Thiele <karme@unforgettable.com>
Thomas Nyberg <thomas@codefactory.se>
Bastien Nocera <hadess@hadess.net>
Christian Fredrik Kalager Schaller <Uraeus@linuxrising.org>
Thomas Vander Stichele <thomas@apestaart.org>
Andy Wingo <wingo@pobox.com>
Cameron Hutchison <camh@xdna.net>
David Schleef <ds@schleef.org>
Benjamin Otte <in7y118@public.uni-hamburg.de>
Ronald Bultje <rbultje@ronald.bitfreak.net>
Julien Moutte <julien@moutte.net>
Jan Schmidt <thaytan@mad.scientist.com>
Arwed v. Merkatz <v.merkatz@gmx.net>
%lang_package
%prep
%setup -q -n %{_name}-%{version}
%if ! 0%{?BUILD_ORIG}
%patch
%endif
%patch1
if ! test -f /usr/%{_lib}/libdts_pic.a ; then
%patch2
fi
%patch6
%build
%if %suse_version >= 1110
NOCONFIGURE=1 ./autogen.sh
%else
autoconf
%endif
%configure\
--disable-static\
--enable-experimental\
--enable-gtk-doc
make %{?jobs:-j%jobs}
%install
%makeinstall
rm $RPM_BUILD_ROOT%{_libdir}/gstreamer-%{gst_branch}/*.*a
%if ! 0%{?BUILD_ORIG}
for MODULE in \
%{_libdir}/gstreamer-%{gst_branch}/libgstaacparse.so \
%{_libdir}/gstreamer-%{gst_branch}/libgstamrparse.so \
%{_libdir}/gstreamer-%{gst_branch}/libgstamrwb.so \
%{_libdir}/gstreamer-%{gst_branch}/libgstdivxdec.so \
%{_libdir}/gstreamer-%{gst_branch}/libgstdivxenc.so \
%{_libdir}/gstreamer-%{gst_branch}/libgstdtsdec.so \
%{_libdir}/gstreamer-%{gst_branch}/libgstfaac.so \
%{_libdir}/gstreamer-%{gst_branch}/libgstfaad.so \
%{_libdir}/gstreamer-%{gst_branch}/libgstmpeg4videoparse.so \
%{_libdir}/gstreamer-%{gst_branch}/libgstmpegdemux.so \
%{_libdir}/gstreamer-%{gst_branch}/libgstmpegtsmux.so \
%{_libdir}/gstreamer-%{gst_branch}/libgstmpegvideoparse.so \
%{_libdir}/gstreamer-%{gst_branch}/libgstmxf.so \
%{_libdir}/gstreamer-%{gst_branch}/libgstxvid.so \
; do
rm -f $RPM_BUILD_ROOT$MODULE
done
%endif
find %{buildroot} -type f -name "*.la" -exec %{__rm} -fv {} +
%find_lang %{_name}-%{gst_branch}
%clean
rm -rf $RPM_BUILD_ROOT
%post -n libgstphotography-0_10-0 -p /sbin/ldconfig
%postun -n libgstphotography-0_10-0 -p /sbin/ldconfig
%files
%defattr(-, root, root)
%doc AUTHORS COPYING COPYING.LIB NEWS README RELEASE REQUIREMENTS
%{_libdir}/gstreamer-%{gst_branch}/libgstadpcmdec.so
%{_libdir}/gstreamer-%{gst_branch}/libgstaiffparse.so
%{_libdir}/gstreamer-%{gst_branch}/libgstalsaspdif.so
%{_libdir}/gstreamer-%{gst_branch}/libgstapexsink.so
%{_libdir}/gstreamer-%{gst_branch}/libgstassrender.so
%{_libdir}/gstreamer-%{gst_branch}/libgstautoconvert.so
%{_libdir}/gstreamer-%{gst_branch}/libgstbayer.so
%{_libdir}/gstreamer-%{gst_branch}/libgstbz2.so
%{_libdir}/gstreamer-%{gst_branch}/libgstcamerabin.so
%{_libdir}/gstreamer-%{gst_branch}/libgstcdaudio.so
%{_libdir}/gstreamer-%{gst_branch}/libgstcdxaparse.so
%{_libdir}/gstreamer-%{gst_branch}/libgstcelt.so
%{_libdir}/gstreamer-%{gst_branch}/libgstdc1394.so
%{_libdir}/gstreamer-%{gst_branch}/libgstdccp.so
%{_libdir}/gstreamer-%{gst_branch}/libgstdebugutilsbad.so
%{_libdir}/gstreamer-%{gst_branch}/libgstdfbvideosink.so
%{_libdir}/gstreamer-%{gst_branch}/libgstdirac.so
%{_libdir}/gstreamer-%{gst_branch}/libgstdtmf.so
%{_libdir}/gstreamer-%{gst_branch}/libgstdvb.so
%{_libdir}/gstreamer-%{gst_branch}/libgstdvdspu.so
%{_libdir}/gstreamer-%{gst_branch}/libgstfbdevsink.so
%{_libdir}/gstreamer-%{gst_branch}/libgstfestival.so
%{_libdir}/gstreamer-%{gst_branch}/libgstfreeze.so
%{_libdir}/gstreamer-%{gst_branch}/libgstgsm.so
%{_libdir}/gstreamer-%{gst_branch}/libgsth264parse.so
%{_libdir}/gstreamer-%{gst_branch}/libgsthdvparse.so
%{_libdir}/gstreamer-%{gst_branch}/libgstid3tag.so
%{_libdir}/gstreamer-%{gst_branch}/libgstjack.so
%{_libdir}/gstreamer-%{gst_branch}/libgstjp2k.so
%{_libdir}/gstreamer-%{gst_branch}/libgstladspa.so
%{_libdir}/gstreamer-%{gst_branch}/libgstlegacyresample.so
%{_libdir}/gstreamer-%{gst_branch}/libgstliveadder.so
%{_libdir}/gstreamer-%{gst_branch}/libgstmetadata.so
%{_libdir}/gstreamer-%{gst_branch}/libgstmodplug.so
%{_libdir}/gstreamer-%{gst_branch}/libgstmplex.so
%{_libdir}/gstreamer-%{gst_branch}/libgstmusepack.so
%{_libdir}/gstreamer-%{gst_branch}/libgstmve.so
%{_libdir}/gstreamer-%{gst_branch}/libgstneonhttpsrc.so
%{_libdir}/gstreamer-%{gst_branch}/libgstnsf.so
%{_libdir}/gstreamer-%{gst_branch}/libgstnuvdemux.so
%{_libdir}/gstreamer-%{gst_branch}/libgstofa.so
%{_libdir}/gstreamer-%{gst_branch}/libgstoss4audio.so
%{_libdir}/gstreamer-%{gst_branch}/libgstpcapparse.so
%{_libdir}/gstreamer-%{gst_branch}/libgstqtmux.so
%{_libdir}/gstreamer-%{gst_branch}/libgstrawparse.so
%{_libdir}/gstreamer-%{gst_branch}/libgstrtpmux.so
%{_libdir}/gstreamer-%{gst_branch}/libresindvd.so
%{_libdir}/gstreamer-%{gst_branch}/libgstscaletempoplugin.so
%{_libdir}/gstreamer-%{gst_branch}/libgstsdpelem.so
%{_libdir}/gstreamer-%{gst_branch}/libgstselector.so
%{_libdir}/gstreamer-%{gst_branch}/libgstsiren.so
%{_libdir}/gstreamer-%{gst_branch}/libgstsndfile.so
%{_libdir}/gstreamer-%{gst_branch}/libgstsoundtouch.so
%{_libdir}/gstreamer-%{gst_branch}/libgststereo.so
%ifarch %ix86 x86_64 ppc
%{_libdir}/gstreamer-%{gst_branch}/libgstreal.so
%endif
%{_libdir}/gstreamer-%{gst_branch}/libgstrfbsrc.so
%{_libdir}/gstreamer-%{gst_branch}/libgstrtpmanager.so
%{_libdir}/gstreamer-%{gst_branch}/libgstsdl.so
%{_libdir}/gstreamer-%{gst_branch}/libgstshapewipe.so
%{_libdir}/gstreamer-%{gst_branch}/libgstspeed.so
%{_libdir}/gstreamer-%{gst_branch}/libgstsubenc.so
%{_libdir}/gstreamer-%{gst_branch}/libgsttrm.so
%{_libdir}/gstreamer-%{gst_branch}/libgsttta.so
%{_libdir}/gstreamer-%{gst_branch}/libgstvalve.so
%{_libdir}/gstreamer-%{gst_branch}/libgstvcdsrc.so
%{_libdir}/gstreamer-%{gst_branch}/libgstvideosignal.so
%{_libdir}/gstreamer-%{gst_branch}/libgstvmnc.so
%{_libdir}/gstreamer-%{gst_branch}/libgstxdgmime.so
%if 0%{?BUILD_ORIG}
%if 0%{?BUILD_ORIG_ADDON}
%files orig-addon
%defattr(-, root, root)
%endif
%{_libdir}/gstreamer-%{gst_branch}/libgstaacparse.so
%{_libdir}/gstreamer-%{gst_branch}/libgstamrparse.so
%{_libdir}/gstreamer-%{gst_branch}/libgstamrwb.so
%ifarch %ix86
%{_libdir}/gstreamer-%{gst_branch}/libgstdivxdec.so
%{_libdir}/gstreamer-%{gst_branch}/libgstdivxenc.so
%endif
%{_libdir}/gstreamer-%{gst_branch}/libgstdtsdec.so
%{_libdir}/gstreamer-%{gst_branch}/libgstfaac.so
%{_libdir}/gstreamer-%{gst_branch}/libgstfaad.so
%{_libdir}/gstreamer-%{gst_branch}/libgstmpeg4videoparse.so
%{_libdir}/gstreamer-%{gst_branch}/libgstmpegdemux.so
%{_libdir}/gstreamer-%{gst_branch}/libgstmpegtsmux.so
%{_libdir}/gstreamer-%{gst_branch}/libgstmpegvideoparse.so
%{_libdir}/gstreamer-%{gst_branch}/libgstmxf.so
%{_libdir}/gstreamer-%{gst_branch}/libgstxvid.so
%endif
# It's unclear whether it's worth creating libgstphotography-0_10-0 and devel
# packages. Let's not do it for now.
%dir %{_includedir}/gstreamer-%{gst_branch}
%dir %{_includedir}/gstreamer-%{gst_branch}/gst
%dir %{_includedir}/gstreamer-%{gst_branch}/gst/interfaces
%files -n libgstphotography-0_10-0
%defattr(-, root, root)
%{_libdir}/libgstphotography-0.10.so.0*
%files devel
%defattr(-, root, root)
%{_includedir}/gstreamer-%{gst_branch}/gst/interfaces/*
%{_libdir}/*.so
%files lang -f %{_name}-%{gst_branch}.lang
%files doc
%defattr(-, root, root)
%{_datadir}/gtk-doc/html/gst-plugins-bad-plugins-%{gst_branch}
%changelog