File gstreamer-plugins-bad.spec of Package gstreamer-plugins-bad.3787

#
# spec file for package gstreamer-plugins-bad
#
# Copyright (c) 2016 SUSE LINUX 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/
#


%bcond_with divx4linux
%bcond_with LV2

# Disabled for now in upstream tarball, not ported
%bcond_with     gstvdp

Name:           gstreamer-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:        1.8.3
Release:        0
# FIXME: re-enable opencv BuildRequires once bnc#748666 is fixed (we don't want to depend on libxine!)
# FIXME: missing BuildRequires on libtiger (http://code.google.com/p/libtiger/)
%define gst_branch 1.0
Summary:        GStreamer Streaming-Media Framework Plug-Ins
License:        GPL-2.0+ and LGPL-2.1+
Group:          Productivity/Multimedia/Other
Url:            http://gstreamer.freedesktop.org/
%if 0%{?BUILD_ORIG}
Source:         http://gstreamer.freedesktop.org/src/gst-plugins-bad/%{_name}-%{version}.tar.xz
%else
Source:         %{_name}-%{version}-patched.tar.xz
# If the pre_checkin.sh patch source script fails due to a change in source tarball contents, you
# need to unpack the sources (this should already have happened) and examine the new plugin source
# for blacklisted content and if it's clean, edit the script and add to the allowed list in the script
%endif
Source1:        %{name}-patch-source.sh
Source2:        gstreamer-plugins-bad.appdata.xml
Source99:       baselibs.conf
# PATCH-FIX-UPSTREAM gstreamer-revert-bogus-automake-version.patch bgo# zaitor@opensuse.org --
Patch1:         gstreamer-revert-bogus-automake-version.patch
# PATCH-FIX-UPSTREAM gstreamer-h264-size.patch bsc#1013659 mgorse@suse.com -- h264parse: Ensure codec_data has the required size when reading number of SPS
Patch2:         gstreamer-h264-size.patch
# PATCH-FIX-UPSTREAM gstreamer-mptssection-add-checks.patch bsc#1013678 mgorse@suse.com -- add more section size checks.
Patch3:         gstreamer-mptssection-add-checks.patch
# PATCH-FIX-UPSTREAM gstreamer-mptssection-fix-pat-parsing.patch bsc#1013680 mgorse@suse.com -- mptssection: fix pat parsing.
Patch4:         gstreamer-mptssection-fix-pat-parsing.patch
# PATCH-FIX-UPSTREAM gstreamer-plugins-bad-vmncdec-sanity-check.patch bnc#1010829 aplazas@suse.com -- CVE-2016-9445 CVE-2016-9446
Patch5:         gstreamer-plugins-bad-vmncdec-sanity-check.patch
# Not ported yet
#BuildRequires:  SDL-devel
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  glib2-devel >= 2.40.0
# needed for patch1
BuildRequires:  gnome-common
BuildRequires:  gstreamer-devel >= 1.8.0
BuildRequires:  gstreamer-plugins-base-devel >= 1.8.0
BuildRequires:  gtk-doc
BuildRequires:  ladspa-devel
%if 0%{?is_opensuse}
BuildRequires:  libbs2b-devel
%endif
BuildRequires:  libgme-devel
BuildRequires:  libgsm-devel
BuildRequires:  libjasper-devel
BuildRequires:  libmpcdec-devel
BuildRequires:  orc >= 0.4.11
BuildRequires:  python-base
BuildRequires:  translation-update-upstream
%ifarch %ix86 ppc x86_64
BuildRequires:  valgrind-devel
%endif
BuildRequires:  pkgconfig(bluez)
BuildRequires:  pkgconfig(bzip2)
BuildRequires:  pkgconfig(cairo)
# Not yet in openSUSE
#BuildRequires:  pkgconfig(daala)
BuildRequires:  pkgconfig(dirac) >= 0.10
BuildRequires:  pkgconfig(dvdnav) >= 4.1.2
BuildRequires:  pkgconfig(dvdread) >= 4.1.2
# Not yet in openSUSE
#BuildRequires:  pkgconfig(flite)
%if 0%{?suse_version} != 1315
BuildRequires:  pkgconfig(fluidsynth)
%endif
BuildRequires:  pkgconfig(gio-2.0) >= 2.25.0
BuildRequires:  pkgconfig(glesv2)
BuildRequires:  pkgconfig(gtk+-3.0) >= 2.91.3
BuildRequires:  pkgconfig(gtk+-x11-3.0) >= 2.91.3
BuildRequires:  pkgconfig(gudev-1.0)
BuildRequires:  pkgconfig(kate) >= 0.1.7
BuildRequires:  pkgconfig(libass) >= 0.10.2
%if 0%{?suse_version} != 1315
BuildRequires:  pkgconfig(libchromaprint)
%endif
BuildRequires:  pkgconfig(libcrypto)
BuildRequires:  pkgconfig(libcurl) >= 7.35.0
# Plugin not ported yet
#BuildRequires:  pkgconfig(libdc1394-2) >= 2.0.0
BuildRequires:  pkgconfig(libexif) >= 0.6.16
# Not yet in openSUSE
#BuildRequires:  pkgconfig(libmimic) >= 1.0
BuildRequires:  pkgconfig(libmms) >= 0.4
BuildRequires:  pkgconfig(libmodplug)
BuildRequires:  pkgconfig(libofa) >= 0.9.3
# SLE12 doesn't ship libopenjpeg
%if 0%{?suse_version} != 1315
BuildRequires:  pkgconfig(libopenjpeg1)
%endif
BuildRequires:  pkgconfig(libpng) >= 1.2
BuildRequires:  pkgconfig(librsvg-2.0) >= 2.14
BuildRequires:  pkgconfig(libtimidity)
BuildRequires:  pkgconfig(libusb-1.0)
BuildRequires:  pkgconfig(libwebp)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(lrdf)
BuildRequires:  pkgconfig(mjpegtools)
BuildRequires:  pkgconfig(neon)
BuildRequires:  pkgconfig(nettle)
%if 0%{?suse_version} != 1315
BuildRequires:  pkgconfig(openal)
%endif
# Disabled because of bnc#748666
#BuildRequires:  pkgconfig(opencv)
BuildRequires:  pkgconfig(OpenEXR)
BuildRequires:  pkgconfig(libssh2) >= 1.4.3
BuildRequires:  pkgconfig(openssl) >= 0.9.5
BuildRequires:  pkgconfig(opus) >= 0.9.4
BuildRequires:  pkgconfig(sbc)
BuildRequires:  pkgconfig(schroedinger-1.0) >= 1.0.10
BuildRequires:  pkgconfig(sndfile) >= 1.0.16
BuildRequires:  pkgconfig(soundtouch)
BuildRequires:  pkgconfig(spandsp) >= 0.0.6
# Not yet in openSUSE
#BuildRequires:  pkgconfig(tiger) >= 0.3.2
BuildRequires:  pkgconfig(vdpau)
%if 0%{?is_opensuse}
BuildRequires:  pkgconfig(wayland-client) >= 1.0.0
BuildRequires:  pkgconfig(wayland-cursor) >= 1.0
%if 0%{?suse_version} >= 1320
BuildRequires:  pkgconfig(wayland-egl) >= 9.0
BuildRequires:  pkgconfig(wayland-scanner) >= 1.4.0
%endif
%endif
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xcb) >= 1.10
# Not available in SLE
%if 0%{?suse_version} >= 1320 || 0%{?is_opensuse}
BuildRequires:  pkgconfig(zbar) >= 0.9
%endif
BuildRequires:  pkgconfig(zvbi-0.2)
# FIXME: daala: Not in openSUSE
# FIXME: flite: Not in openSUSE
# FIXME: kate: can be enhanced with libtiger.
# FIXME: mimic: Requires libmimic.
# FIXME: nassink: Not in openSUSE ( provided by libaudio-devel, but plugin is not ported yet)
# 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
# NOTE: spc: Requires OpenSPC: SPC music files dumped by ZSNES and SNES9X. libgme already provides better support for such files in an arch-independent way
%if 0%{?BUILD_ORIG}
# FIXME: Enable more modules.
BuildRequires:  faac-devel
BuildRequires:  faad2-devel
# Not ported yet
#BuildRequires:  libaudio-devel
BuildRequires:  libdca-devel
# Not ported yet
#BuildRequires:  libxvidcore-devel
BuildRequires:  pkgconfig(librtmp)
BuildRequires:  pkgconfig(vo-aacenc) >= 0.1.0
BuildRequires:  pkgconfig(vo-amrwbenc) >= 0.1.0
BuildRequires:  pkgconfig(x265)
%if %{with LV2}
# Not ported yet
#BuildRequires:  pkgconfig(slv2) >= 0.6.6
%endif
%ifarch %ix86
# binary only so make conditional
%if %{with divx4linux}
BuildRequires:  divx4linux-devel
%endif
%endif
%endif
%if 0%{?suse_version} >= 1140
Requires(post): glib2-tools
Requires(postun): glib2-tools
%endif
%define gstreamer_plugins_bad_req %(xzgrep --text "^GST.*_REQ" %{S:0} | sort -u | sed 's/GST_REQ=/gstreamer >= /;s/GSTPB_REQ=/gstreamer-plugins-base >= /' | tr '\\n' ' ')
Requires:       %gstreamer_plugins_bad_req
Recommends:     %{name}-lang
Enhances:       gstreamer
# Generic name, never used in SuSE:
Provides:       gst-plugins-bad = %{version}
%if 0%{?BUILD_ORIG}
%if 0%{?BUILD_ORIG_ADDON}
Provides:       patched_subset
%else
Provides:       %{name}-orig-addon = %{version}
Obsoletes:      %{name}-orig-addon
%endif
%else
Provides:       patched_subset
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%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.

%if 0%{?BUILD_ORIG}
%if 0%{?BUILD_ORIG_ADDON}

%package orig-addon
Summary:        GStreamer Streaming-Media Framework Plug-Ins
Group:          Productivity/Multimedia/Other
Requires:       %{name} >= %{version}
Supplements:    %{name}
# Generic name, never used in SuSE:
Provides:       gst-plugins-bad:%{_libdir}/gstreamer-%{gst_branch}/libgstxvid.so = %{version}

%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.

%endif
%endif

%package -n libgstadaptivedemux-1_0-0
Summary:        GStreamer Streaming-Media Framework Plug-Ins
Group:          System/Libraries

%description -n libgstadaptivedemux-1_0-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.

%package -n libgstbadaudio-1_0-0
Summary:        GStreamer Streaming-Media Framework Plug-Ins
Group:          System/Libraries

%description -n libgstbadaudio-1_0-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.

%package -n libgstbasecamerabinsrc-1_0-0
Summary:        GStreamer Streaming-Media Framework Plug-Ins
Group:          System/Libraries

%description -n libgstbasecamerabinsrc-1_0-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.

%package -n libgstbadbase-1_0-0
Summary:        GStreamer Streaming-Media Framework Plug-Ins
Group:          System/Libraries

%description -n libgstbadbase-1_0-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.

%package -n libgstbadvideo-1_0-0
Summary:        GStreamer Streaming-Media Framework Plug-Ins
Group:          System/Libraries

%description -n libgstbadvideo-1_0-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.

%package -n libgstphotography-1_0-0
Summary:        GStreamer Streaming-Media Framework Plug-Ins
Group:          System/Libraries

%description -n libgstphotography-1_0-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.

%package -n libgstplayer-1_0-0
Summary:        GStreamer Streaming-Media Framework Plug-Ins
Group:          System/Libraries

%description -n libgstplayer-1_0-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.

%package -n libgstvdp-1_0-0
Summary:        GStreamer Streaming-Media Framework Plug-Ins
Group:          System/Libraries

%description -n libgstvdp-1_0-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.

%if 0%{?is_opensuse}
%package -n libgstwayland-1_0-0
Summary:        GStreamer Streaming-Media Framework Plug-Ins - Wayland backend
Group:          System/Libraries

%description -n libgstwayland-1_0-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.
%endif

%package -n libgstcodecparsers-1_0-0
Summary:        GStreamer Streaming-Media Framework Plug-Ins
Group:          System/Libraries

%description -n libgstcodecparsers-1_0-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.

%package -n libgstgl-1_0-0
Summary:        GStreamer Streaming-Media Framework Plug-Ins
Group:          System/Libraries

%description -n libgstgl-1_0-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.

%package -n libgstinsertbin-1_0-0
Summary:        GStreamer Streaming-Media Framework Plug-Ins
Group:          System/Libraries

%description -n libgstinsertbin-1_0-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.

%package -n libgstmpegts-1_0-0
Summary:        GStreamer Streaming-Media Framework Plug-Ins
Group:          System/Libraries

%description -n libgstmpegts-1_0-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.

%package -n libgsturidownloader-1_0-0
Summary:        GStreamer Streaming-Media Framework Plug-Ins
Group:          System/Libraries

%description -n libgsturidownloader-1_0-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.

%package -n libgstvdpau
Summary:        GStreamer Streaming-Media Framework Plug-Ins
Group:          System/Libraries

%description -n libgstvdpau
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.

%package devel
Summary:        GStreamer Streaming-Media Framework Plug-Ins
Group:          Development/Libraries/C and C++
Requires:       gstreamer-devel
Requires:       libgstadaptivedemux-1_0-0 = %{version}
Requires:       libgstbadbase-1_0-0 = %{version}
Requires:       libgstbadvideo-1_0-0 = %{version}
Requires:       libgstbasecamerabinsrc-1_0-0 = %{version}
Requires:       libgstcodecparsers-1_0-0 = %{version}
Requires:       libgstgl-1_0-0 = %{version}
Requires:       libgstinsertbin-1_0-0 = %{version}
Requires:       libgstmpegts-1_0-0 = %{version}
Requires:       libgstphotography-1_0-0 = %{version}
Requires:       libgsturidownloader-1_0-0 = %{version}
%if %{with gstvdp}
Requires:       libgstvdp-1_0-0 = %{version}
%endif

%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.

%package doc
Summary:        GStreamer Streaming-Media Framework Plug-Ins
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{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.

%lang_package
%prep
%setup -q -n %{_name}-%{version}
# t-u-u is broken....
#translation-update-upstream po gst-plugins-bad-%%{gst_branch}
%patch1 -p1 -R
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1

%build
NOCONFIGURE=1 ./autogen.sh
%configure\
    --disable-static\
    --disable-examples\
    --enable-gtk-doc \
    --with-gtk=3.0 \
%if 0%{?is_opensuse}
    --enable-wayland
%else
    --disable-wayland
%endif
%__make %{?_smp_mflags}

%install
%makeinstall
if [ -f %{buildroot}%{_datadir}/appdata/gstreamer-plugins-bad.appdata.xml ]; then
  echo "Please remove the added gstreamer-plugins-bad.appdata.xml file from the sources - the tarball installs it"
  false
else
  mkdir -p %{buildroot}%{_datadir}/appdata
  cp %{S:2} %{buildroot}%{_datadir}/appdata/
fi
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
%find_lang %{_name}-%{gst_branch}
%fdupes %{buildroot}%{_datadir}/gtk-doc/html/*/*.png

%post
%glib2_gsettings_schema_post

%postun
%glib2_gsettings_schema_postun

%post -n libgstadaptivedemux-1_0-0 -p /sbin/ldconfig

%post -n libgstbadaudio-1_0-0 -p /sbin/ldconfig

%post -n libgstbadbase-1_0-0 -p /sbin/ldconfig

%post -n libgstbadvideo-1_0-0 -p /sbin/ldconfig

%post -n libgstbasecamerabinsrc-1_0-0 -p /sbin/ldconfig

%post -n libgstcodecparsers-1_0-0 -p /sbin/ldconfig

%post -n libgstgl-1_0-0 -p /sbin/ldconfig

%post -n libgstinsertbin-1_0-0 -p /sbin/ldconfig

%post -n libgstmpegts-1_0-0 -p /sbin/ldconfig

%post -n libgstphotography-1_0-0 -p /sbin/ldconfig

%post -n libgstplayer-1_0-0 -p /sbin/ldconfig

%post -n libgsturidownloader-1_0-0 -p /sbin/ldconfig

%post -n libgstvdp-1_0-0 -p /sbin/ldconfig

%if 0%{?is_opensuse}
%post -n libgstwayland-1_0-0 -p /sbin/ldconfig
%endif

%postun -n libgstadaptivedemux-1_0-0 -p /sbin/ldconfig

%postun -n libgstbadaudio-1_0-0 -p /sbin/ldconfig

%postun -n libgstbadbase-1_0-0 -p /sbin/ldconfig

%postun -n libgstbadvideo-1_0-0 -p /sbin/ldconfig

%postun -n libgstbasecamerabinsrc-1_0-0 -p /sbin/ldconfig

%postun -n libgstgl-1_0-0 -p /sbin/ldconfig

%postun -n libgstmpegts-1_0-0 -p /sbin/ldconfig

%postun -n libgstphotography-1_0-0 -p /sbin/ldconfig

%postun -n libgstplayer-1_0-0 -p /sbin/ldconfig

%postun -n libgstcodecparsers-1_0-0 -p /sbin/ldconfig

%postun -n libgstinsertbin-1_0-0 -p /sbin/ldconfig

%postun -n libgsturidownloader-1_0-0 -p /sbin/ldconfig

%postun -n libgstvdp-1_0-0 -p /sbin/ldconfig

%if 0%{?is_opensuse}
%postun -n libgstwayland-1_0-0 -p /sbin/ldconfig
%endif

%files
#    File not found: /usr/lib64/gstreamer-0.10/libgstmetadata.so
#    File not found: /usr/lib64/gstreamer-0.10/libgstselector.so
#    File not found: /usr/lib64/gstreamer-0.10/libgstvalve.so
%defattr(-, root, root)
%doc AUTHORS COPYING COPYING.LIB NEWS README RELEASE REQUIREMENTS
%dir %{_datadir}/gstreamer-%{gst_branch}/presets/
%{_datadir}/gstreamer-%{gst_branch}/presets/GstFreeverb.prs
%dir %{_datadir}/appdata/
%{_datadir}/appdata/gstreamer-plugins-bad.appdata.xml
%{_libdir}/gstreamer-%{gst_branch}/libgstaccurip.so
%{_libdir}/gstreamer-%{gst_branch}/libgstadpcmdec.so
%{_libdir}/gstreamer-%{gst_branch}/libgstadpcmenc.so
%{_libdir}/gstreamer-%{gst_branch}/libgstaiff.so
#%%{_libdir}/gstreamer-%%{gst_branch}/libgstapexsink.so
%{_libdir}/gstreamer-%{gst_branch}/libgstasfmux.so
%{_libdir}/gstreamer-%{gst_branch}/libgstassrender.so
%{_libdir}/gstreamer-%{gst_branch}/libgstaudiofxbad.so
%{_libdir}/gstreamer-%{gst_branch}/libgstaudiomixer.so
%{_libdir}/gstreamer-%{gst_branch}/libgstaudiovisualizers.so
%{_libdir}/gstreamer-%{gst_branch}/libgstautoconvert.so
%{_libdir}/gstreamer-%{gst_branch}/libgstbayer.so
%{_libdir}/gstreamer-%{gst_branch}/libgstbluez.so
%if 0%{?is_opensuse}
%{_libdir}/gstreamer-%{gst_branch}/libgstbs2b.so
%endif
%{_libdir}/gstreamer-%{gst_branch}/libgstbz2.so
%{_libdir}/gstreamer-%{gst_branch}/libgstcamerabin2.so
#%%{_libdir}/gstreamer-%%{gst_branch}/libgstcdaudio.so
#%%{_libdir}/gstreamer-%%{gst_branch}/libgstcdxaparse.so
%if 0%{?suse_version} != 1315
%{_libdir}/gstreamer-%{gst_branch}/libgstchromaprint.so
%endif
#%%{_libdir}/gstreamer-%%{gst_branch}/libgstcog.so
%{_libdir}/gstreamer-%{gst_branch}/libgstcoloreffects.so
#%%{_libdir}/gstreamer-%%{gst_branch}/libgstcolorspace.so
%{_libdir}/gstreamer-%{gst_branch}/libgstcompositor.so
%if 0%{?suse_version} >= 1315
%{_libdir}/gstreamer-%{gst_branch}/libgstcurl.so
%endif
%{_libdir}/gstreamer-%{gst_branch}/libgstdashdemux.so
%{_libdir}/gstreamer-%{gst_branch}/libgstdataurisrc.so
#%%{_libdir}/gstreamer-%%{gst_branch}/libgstdc1394.so
#%%{_libdir}/gstreamer-%%{gst_branch}/libgstdccp.so
%{_libdir}/gstreamer-%{gst_branch}/libgstdebugutilsbad.so
%{_libdir}/gstreamer-%{gst_branch}/libgstdecklink.so
#%%{_libdir}/gstreamer-%%{gst_branch}/libgstdfbvideosink.so
#%%{_libdir}/gstreamer-%%{gst_branch}/libgstdirac.so
%{_libdir}/gstreamer-%{gst_branch}/libgstdtls.so
%{_libdir}/gstreamer-%{gst_branch}/libgstdvb.so
%{_libdir}/gstreamer-%{gst_branch}/libgstdvbsuboverlay.so
%{_libdir}/gstreamer-%{gst_branch}/libgstfbdevsink.so
%{_libdir}/gstreamer-%{gst_branch}/libgstfestival.so
%if 0%{?suse_version} != 1315
%{_libdir}/gstreamer-%{gst_branch}/libgstfluidsynthmidi.so
%endif
%{_libdir}/gstreamer-%{gst_branch}/libgstfieldanalysis.so
#%%{_libdir}/gstreamer-%%{gst_branch}/libgstfragmented.so
%{_libdir}/gstreamer-%{gst_branch}/libgstfreeverb.so
%{_libdir}/gstreamer-%{gst_branch}/libgstfrei0r.so
%{_libdir}/gstreamer-%{gst_branch}/libgstgaudieffects.so
%{_libdir}/gstreamer-%{gst_branch}/libgstgdp.so
%{_libdir}/gstreamer-%{gst_branch}/libgstgeometrictransform.so
%{_libdir}/gstreamer-%{gst_branch}/libgstgme.so
%{_libdir}/gstreamer-%{gst_branch}/libgstgsm.so
%{_libdir}/gstreamer-%{gst_branch}/libgstgtksink.so
#%%{_libdir}/gstreamer-%%{gst_branch}/libgsth264parse.so
#%%{_libdir}/gstreamer-%%{gst_branch}/libgsthdvparse.so
%{_libdir}/gstreamer-%{gst_branch}/libgsthls.so
%{_libdir}/gstreamer-%{gst_branch}/libgstid3tag.so
#%%{_libdir}/gstreamer-%%{gst_branch}/libgstinvtelecine.so
%{_libdir}/gstreamer-%{gst_branch}/libgstinter.so
%{_libdir}/gstreamer-%{gst_branch}/libgstinterlace.so
%{_libdir}/gstreamer-%{gst_branch}/libgstivfparse.so
%{_libdir}/gstreamer-%{gst_branch}/libgstivtc.so
#%%{_libdir}/gstreamer-%%{gst_branch}/libgstjp2k.so
%{_libdir}/gstreamer-%{gst_branch}/libgstjp2kdecimator.so
%{_libdir}/gstreamer-%{gst_branch}/libgstjpegformat.so
%{_libdir}/gstreamer-%{gst_branch}/libgstkate.so
%{_libdir}/gstreamer-%{gst_branch}/libgstladspa.so
#%%{_libdir}/gstreamer-%%{gst_branch}/libgstlegacyresample.so
#%%{_libdir}/gstreamer-%%{gst_branch}/libgstlinsys.so
#%%{_libdir}/gstreamer-%%{gst_branch}/libgstliveadder.so
%{_libdir}/gstreamer-%{gst_branch}/libgstmidi.so
%{_libdir}/gstreamer-%{gst_branch}/libgstmms.so
%{_libdir}/gstreamer-%{gst_branch}/libgstmodplug.so
#%%{_libdir}/gstreamer-%%{gst_branch}/libgstmpeg4videoparse.so
%{_libdir}/gstreamer-%{gst_branch}/libgstmpegpsdemux.so
%{_libdir}/gstreamer-%{gst_branch}/libgstmpegpsmux.so
%{_libdir}/gstreamer-%{gst_branch}/libgstmpegtsdemux.so
%{_libdir}/gstreamer-%{gst_branch}/libgstmpegtsmux.so
#%%{_libdir}/gstreamer-%%{gst_branch}/libgstmpegvideoparse.so
%{_libdir}/gstreamer-%{gst_branch}/libgstmplex.so
#%%{_libdir}/gstreamer-%%{gst_branch}/libgstmusepack.so
#%%{_libdir}/gstreamer-%%{gst_branch}/libgstmve.so
%{_libdir}/gstreamer-%{gst_branch}/libgstmxf.so
%{_libdir}/gstreamer-%{gst_branch}/libgstnetsim.so
%if 0%{?suse_version} != 1315
%{_libdir}/gstreamer-%{gst_branch}/libgstopenal.so
%endif
%{_libdir}/gstreamer-%{gst_branch}/libgstopenexr.so
%{_libdir}/gstreamer-%{gst_branch}/libgstopengl.so
%if 0%{?suse_version} != 1315
%{_libdir}/gstreamer-%{gst_branch}/libgstopenjpeg.so
%endif
%{_libdir}/gstreamer-%{gst_branch}/libgstopusparse.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}/libgstpatchdetect.so
%{_libdir}/gstreamer-%{gst_branch}/libgstpcapparse.so
%{_libdir}/gstreamer-%{gst_branch}/libgstpnm.so
%{_libdir}/gstreamer-%{gst_branch}/libgstrawparse.so
%{_libdir}/gstreamer-%{gst_branch}/libgstremovesilence.so
%{_libdir}/gstreamer-%{gst_branch}/libgstrfbsrc.so
%{_libdir}/gstreamer-%{gst_branch}/libgstrsvg.so
#%%{_libdir}/gstreamer-%%{gst_branch}/libgstrtpbad.so
%{_libdir}/gstreamer-%{gst_branch}/libgstrtponvif.so
%{_libdir}/gstreamer-%{gst_branch}/libgstsbc.so
%{_libdir}/gstreamer-%{gst_branch}/libgstschro.so
#%%{_libdir}/gstreamer-%%{gst_branch}/libgstsdi.so
#%%{_libdir}/gstreamer-%%{gst_branch}/libgstsdl.so
%{_libdir}/gstreamer-%{gst_branch}/libgstsdpelem.so
%{_libdir}/gstreamer-%{gst_branch}/libgstsegmentclip.so
%{_libdir}/gstreamer-%{gst_branch}/libgstshm.so
%{_libdir}/gstreamer-%{gst_branch}/libgstsmooth.so
%{_libdir}/gstreamer-%{gst_branch}/libgstsmoothstreaming.so
%{_libdir}/gstreamer-%{gst_branch}/libgstsndfile.so
%{_libdir}/gstreamer-%{gst_branch}/libgstsoundtouch.so
%{_libdir}/gstreamer-%{gst_branch}/libgstspandsp.so
%{_libdir}/gstreamer-%{gst_branch}/libgstspeed.so
%{_libdir}/gstreamer-%{gst_branch}/libgststereo.so
%{_libdir}/gstreamer-%{gst_branch}/libgstsubenc.so
%{_libdir}/gstreamer-%{gst_branch}/libgstteletextdec.so
#%%{_libdir}/gstreamer-%%{gst_branch}/libgsttimidity.so
#%%{_libdir}/gstreamer-%%{gst_branch}/libgsttrm.so
#%%{_libdir}/gstreamer-%%{gst_branch}/libgsttta.so
%{_libdir}/gstreamer-%{gst_branch}/libgstvcdsrc.so
%{_libdir}/gstreamer-%{gst_branch}/libgstvideofiltersbad.so
%{_libdir}/gstreamer-%{gst_branch}/libgstvideoframe_audiolevel.so
#%%{_libdir}/gstreamer-%%{gst_branch}/libgstvideomaxrate.so
#%%{_libdir}/gstreamer-%%{gst_branch}/libgstvideomeasure.so
%{_libdir}/gstreamer-%{gst_branch}/libgstvideoparsersbad.so
%{_libdir}/gstreamer-%{gst_branch}/libgstvideosignal.so
%{_libdir}/gstreamer-%{gst_branch}/libgstvmnc.so
%if 0%{?suse_version} >= 1320 || 0%{?is_opensuse}
%{_libdir}/gstreamer-%{gst_branch}/libgstwaylandsink.so
%endif
%{_libdir}/gstreamer-%{gst_branch}/libgsty4mdec.so
%{_libdir}/gstreamer-%{gst_branch}/libgstyadif.so
%{_libdir}/gstreamer-%{gst_branch}/libgstresindvd.so
%{_libdir}/gstreamer-%{gst_branch}/libgstuvch264.so
%{_libdir}/gstreamer-%{gst_branch}/libgstwebp.so
%if 0%{?suse_version} >= 1320 || 0%{?is_opensuse}
%{_libdir}/gstreamer-%{gst_branch}/libgstzbar.so
%endif
%if 0%{?BUILD_ORIG}
%if 0%{?BUILD_ORIG_ADDON}

%files orig-addon
%defattr(-, root, root)
%endif
%ifarch %ix86
%if %{with divx4linux}
%{_libdir}/gstreamer-%{gst_branch}/libgstdivxdec.so
%{_libdir}/gstreamer-%{gst_branch}/libgstdivxenc.so
%endif
%endif
%{_datadir}/gstreamer-%{gst_branch}/presets/GstVoAmrwbEnc.prs
%if 0%{?suse_version} == 1310
%{_libdir}/gstreamer-%{gst_branch}/libgstcurl.so
%endif
%{_libdir}/gstreamer-%{gst_branch}/libgstvoamrwbenc.so
%{_libdir}/gstreamer-%{gst_branch}/libgstvoaacenc.so
%{_libdir}/gstreamer-%{gst_branch}/libgstdtsdec.so
%{_libdir}/gstreamer-%{gst_branch}/libgstdvdspu.so
%{_libdir}/gstreamer-%{gst_branch}/libgstfaac.so
%{_libdir}/gstreamer-%{gst_branch}/libgstfaad.so
%{_libdir}/gstreamer-%{gst_branch}/libgstmpeg2enc.so
# Not ported yet
#%%{_libdir}/gstreamer-%%{gst_branch}/libgstnassink.so
%{_libdir}/gstreamer-%{gst_branch}/libgstrtmp.so
%{_libdir}/gstreamer-%{gst_branch}/libgstsiren.so
# Not ported yet
#%%{_libdir}/gstreamer-%%{gst_branch}/libgstxvid.so
%{_libdir}/gstreamer-%{gst_branch}/libgstx265.so
%if %{with LV2}
# Not ported yet
#%%{_libdir}/gstreamer-%%{gst_branch}/libgstlv2.so
%endif
%endif

%files -n libgstadaptivedemux-1_0-0
%defattr(-, root, root)
%{_libdir}/libgstadaptivedemux-%{gst_branch}.so.0*

%files -n libgstbadaudio-1_0-0
%defattr(-, root, root)
%{_libdir}/libgstbadaudio-%{gst_branch}.so.0*

%files -n libgstbadbase-1_0-0
%defattr(-, root, root)
%{_libdir}/libgstbadbase-%{gst_branch}.so.0*

%files -n libgstbadvideo-1_0-0
%defattr(-, root, root)
%{_libdir}/libgstbadvideo-%{gst_branch}.so.0*

%files -n libgstphotography-1_0-0
%defattr(-, root, root)
%{_libdir}/libgstphotography-%{gst_branch}.so.0*

%files -n libgstplayer-1_0-0
%defattr(-, root, root)
%{_libdir}/libgstplayer-%{gst_branch}.so.0*

%files -n libgstgl-1_0-0
%defattr(-, root, root)
%{_libdir}/libgstgl-%{gst_branch}.so.0*

%files -n libgstbasecamerabinsrc-1_0-0
%defattr(-, root, root)
%{_libdir}/libgstbasecamerabinsrc-%{gst_branch}.so.0*

%files -n libgstcodecparsers-1_0-0
%defattr(-, root, root)
%{_libdir}/libgstcodecparsers-%{gst_branch}.so.0*

%files -n libgstinsertbin-1_0-0
%defattr(-, root, root)
%{_libdir}/libgstinsertbin-%{gst_branch}.so.0*

%files -n libgstmpegts-1_0-0
%defattr(-, root, root)
%{_libdir}/libgstmpegts-%{gst_branch}.so.0*

%files -n libgsturidownloader-1_0-0
%defattr(-, root, root)
%{_libdir}/libgsturidownloader-%{gst_branch}.so.0*

%files -n libgstvdpau
%defattr(-, root, root)
%{_libdir}/gstreamer-%{gst_branch}/libgstvdpau.so

%if %{with gstvdp}
%files -n libgstvdp-1_0-0
%defattr(-, root, root)
%{_libdir}/libgstvdp-%{gst_branch}.so.0*
%endif

%if 0%{?suse_version} >= 1320 || 0%{?is_opensuse}
%files -n libgstwayland-1_0-0
%defattr(-,root,root)
%{_libdir}/libgstwayland-1.0.so.*
%endif

%files devel
%defattr(-, root, root)
%{_includedir}/gstreamer-%{gst_branch}
%dir %{_libdir}/gstreamer-%{gst_branch}/include/gst/gl
%{_libdir}/gstreamer-%{gst_branch}/include/gst/gl/gstglconfig.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/gstreamer-bad-audio-1.0.pc
%{_libdir}/pkgconfig/gstreamer-bad-base-1.0.pc
%{_libdir}/pkgconfig/gstreamer-bad-video-1.0.pc
%{_libdir}/pkgconfig/gstreamer-codecparsers-%{gst_branch}.pc
%{_libdir}/pkgconfig/gstreamer-gl-%{gst_branch}.pc
%{_libdir}/pkgconfig/gstreamer-insertbin-%{gst_branch}.pc
%{_libdir}/pkgconfig/gstreamer-mpegts-1.0.pc
%{_libdir}/pkgconfig/gstreamer-player-1.0.pc
%{_libdir}/pkgconfig/gstreamer-plugins-bad-%{gst_branch}.pc

%files lang -f %{_name}-%{gst_branch}.lang

%files doc
%defattr(-, root, root)
%{_datadir}/gtk-doc/html/gst-plugins-bad-plugins-%{gst_branch}/
%{_datadir}/gtk-doc/html/gst-plugins-bad-libs-%{gst_branch}/

%changelog