-# TODO: libchromaprint, libmpg123 >= 1.13
#
# Conditional build:
+%bcond_without amr # amrwbenc output plugin
%bcond_with cdaudio # cdaudio input plugin [not ported to 1.0]
-%bcond_without amr # don't build amrwbenc plugin
+%bcond_without chromaprint # chromaprint plugin
%bcond_with dc1394 # dc1394 input plugin [not ported to 1.0]
%bcond_with dirac # Dirac codec plugin [not ported to 1.0]
%bcond_with directfb # DirectFB videosink plugin [not ported to 1.0]
-%bcond_without dts # don't build DTS plugin
-%bcond_without faad # don't build faad plugin
-%bcond_without gsm # don't build gsm plugin
+%bcond_without dts # DTS plugin
+%bcond_without faad # faad plugin
+%bcond_without gles # EGL GLESv2 videosink plugin
+%bcond_without gsm # gsm plugin
%bcond_with jasper # JasPer plugin [not ported to 1.0]
%bcond_with kate # Kate text streams plugin [not ported to 1.0]
%bcond_with ladspa # LADSPA plugin [not ported to 1.0]
%bcond_with lv2 # LV2 plugin [not ported to 1.0]
-%bcond_without mjpegtools # don't build mpeg2enc plugin
-%bcond_without mms # don't build mms plugin
-%bcond_with musepack # don't build musepack plugin [not ported to 1.0]
+%bcond_without mjpegtools # mpeg2enc plugin
+%bcond_without mms # mms plugin
+%bcond_without mpg123 # MPG123-based MP3 plugin
+%bcond_with musepack # musepack plugin [not ported to 1.0]
%bcond_with musicbrainz # musicbrainz plugin [not ported to 1.0]
%bcond_with mythtv # mythtv plugin [not ported to 1.0]
%bcond_with nas # NAS audiosink plugin [not ported to 1.0]
-%bcond_with neon # neonhttpsrc plugin [not ported to 1.0]
-%bcond_with ofa # OFA plugin [not ported to 1.0]
-%bcond_with openal # OpenAL audiosink plugin [not ported to 1.0]
-%bcond_without opencv # don't build OpenCV plugin
+%bcond_without neon # neonhttpsrc plugin
+%bcond_without ofa # OFA plugin
+%bcond_without openal # OpenAL audiosink plugin
+%bcond_without opencv # OpenCV plugin
%bcond_with rsvg # RSVG plugin [not ported to 1.0]
%bcond_with sdl # SDL audio/videosink plugin [not ported to 1.0]
%bcond_with sndfile # sndfile plugin [not ported to 1.0]
%bcond_with swfdec # swfdec plugin [not ready for swfdec >= 0.4]
-%bcond_without spc # don't build spc plugin
+%bcond_without spc # spc plugin
%bcond_with timidity # timidity plugin [not ported to 1.0]
%bcond_with uvch264 # uvch264 plugin [not ported to 1.0]
-%bcond_without wavpack # don't build wavpack plugin
+%bcond_without wavpack # wavpack plugin
%bcond_without wayland # Wayland videosink plugin
%bcond_with wildmidi # wildmidi plugin [not ported to 1.0]
%bcond_with xvid # XviD plugin [not ported to 1.0]
Summary: Bad GStreamer Streaming-media framework plugins
Summary(pl.UTF-8): Złe wtyczki do środowiska obróbki strumieni GStreamer
Name: gstreamer-plugins-bad
-Version: 1.0.0
+Version: 1.0.9
Release: 2
License: LGPL v2+
Group: Libraries
Source0: http://gstreamer.freedesktop.org/src/gst-plugins-bad/%{gstname}-%{version}.tar.xz
-# Source0-md5: f2d2c432917fb639a510bb3ce85c5329
+# Source0-md5: 569e5122fd7bfd7bd861a537f0a28c60
Patch0: %{name}-libdts.patch
Patch1: %{name}-timidity.patch
Patch2: %{name}-nas.patch
Patch3: %{name}-opencv.patch
+Patch4: %{name}-doc.patch
URL: http://gstreamer.freedesktop.org/
BuildRequires: autoconf >= 2.62
BuildRequires: automake >= 1:1.11
BuildRequires: docbook-dtd412-xml
BuildRequires: gettext-devel >= 0.17
-BuildRequires: glib2-devel >= 1:2.32
+BuildRequires: glib2-devel >= 1:2.32.0
BuildRequires: gstreamer-devel >= %{gst_req_ver}
BuildRequires: gstreamer-plugins-base-devel >= %{gstpb_req_ver}
BuildRequires: gtk+3-devel >= 3.0.0
##
## plugins
##
+%{?with_gles:BuildRequires: Mesa-libEGL-devel}
+# GLESv2
+%{?with_gles:BuildRequires: Mesa-libGLES-devel}
%{?with_directfb:BuildRequires: DirectFB-devel >= 1:0.9.24}
-%{?with_openal:BuildRequires: OpenAL-devel >= 1.13.0}
+%{?with_openal:BuildRequires: OpenAL-devel >= 1.14}
%{?with_sdl:BuildRequires: SDL-devel}
BuildRequires: alsa-lib-devel >= 0.9.1
BuildRequires: bzip2-devel
BuildRequires: faac-devel
%{?with_faad:BuildRequires: faad2-devel >= 2.0-2}
BuildRequires: flite-devel
+BuildRequires: fluidsynth-devel >= 1.0
BuildRequires: game-music-emu-devel >= 0.5.5
# when becomes available...
#BuildRequires: game-music-emu-devel >= 0.5.6
%{?with_ladspa:BuildRequires: ladspa-devel >= 1.12}
BuildRequires: libass-devel >= 0.9.4
%{?with_cdaudio:BuildRequires: libcdaudio-devel}
+%{?with_chromaprint:BuildRequires: libchromaprint-devel}
%{?with_dc1394:BuildRequires: libdc1394-devel >= 2.0.0}
%{?with_dts:BuildRequires: libdts-devel}
BuildRequires: libdvdnav-devel >= 4.1.2
BuildRequires: liblrdf-devel
BuildRequires: libmimic-devel >= 1.0
%{?with_mms:BuildRequires: libmms-devel >= 0.4}
+%{?with_mpg123:BuildRequires: libmpg123-devel >= 1.14}
BuildRequires: libmodplug-devel
%{?with_musepack:BuildRequires: libmpcdec-devel >= 1.2}
%{?with_musicbrainz:BuildRequires: libmusicbrainz-devel >= 2.1.0}
BuildRequires: opencv-devel >= 1:2.2.0
BuildRequires: opencv-devel < 1:2.5.0
%endif
+BuildRequires: openjpeg-devel >= 1
BuildRequires: openssl-devel >= 0.9.5
BuildRequires: opus-devel >= 0.9.4
BuildRequires: schroedinger-devel >= 1.0.10
BuildRequires: vo-aacenc-devel >= 0.1.0
%{?with_amr:BuildRequires: vo-amrwbenc-devel >= 0.1.0}
# wayland-client
-%{?with_wayland:BuildRequires: wayland-devel >= 0.95.0}
+%{?with_wayland:BuildRequires: wayland-devel >= 1.0.0}
%{?with_wildmidi:BuildRequires: wildmidi-devel}
BuildRequires: xorg-lib-libX11-devel
%{?with_xvid:BuildRequires: xvid-devel >= 1.3.0}
BuildRequires: zbar-devel >= 0.9
%{?with_zvbi:BuildRequires: zvbi-devel >= 0.2}
-Requires: glib2 >= 1:2.32
+Requires: glib2 >= 1:2.32.0
Requires: gstreamer >= %{gst_req_ver}
Requires: gstreamer-plugins-base >= %{gstpb_req_ver}
Requires: orc >= 0.4.16
%description -n gstreamer-celt -l pl.UTF-8
Wtyczka GStreamera kodująca i dekodująca dźwięk w formacie Celt.
+%package -n gstreamer-chromaprint
+Summary: GStreamer Chromaprint audio fingerprinting plugin
+Summary(pl.UTF-8): Wtyczka Chromaprint do odcisków identyfikacyjnych dźwięku dla GStreamera
+Group: Libraries
+Requires: gstreamer >= %{gst_req_ver}
+
+%description -n gstreamer-chromaprint
+GStreamer Chromaprint audio fingerprinting plugin.
+
+%description -n gstreamer-chromaprint -l pl.UTF-8
+Wtyczka GStreamera wykonująca odciski identyfikacyjne dźwięku przy
+użyciu biblioteki Chromaprint.
+
%package -n gstreamer-curl
Summary: GStreamer cURL network sink plugin
Summary(pl.UTF-8): Wtyczka wyjścia sieciowego cURL dla GStreamera
%description -n gstreamer-flite -l pl.UTF-8
Wtyczka do GStreamera obsługująca Flite.
+%package -n gstreamer-fluidsynth
+Summary: GStreamer FluidSynth MIDI plugin
+Summary(pl.UTF-8): Wtyczka FluidSynth MIDI do GStreamera
+Group: Libraries
+# for generic gstmidi plugin
+Requires: %{name} = %{version}-%{release}
+Requires: fluidsynth >= 1.0
+
+%description -n gstreamer-fluidsynth
+GStreamer FluidSynth MIDI plugin.
+
+%description -n gstreamer-fluidsynth -l pl.UTF-8
+Wtyczka FluidSynth MIDI do GStreamera.
+
%package -n gstreamer-gme
Summary: GStreamer GME Audio Decoder plugin
Summary(pl.UTF-8): Wtyczka dekodująca GME do GStreamera
Summary: GStreamer GSettings plugin
Summary(pl.UTF-8): Wtyczka GSettings do GStreamera
Group: Libraries
-Requires: glib2 >= 1:2.32
+Requires: glib2 >= 1:2.32.0
Requires: gstreamer >= %{gst_req_ver}
%description -n gstreamer-gsettings
%description -n gstreamer-mms -l pl.UTF-8
Wtyczka mms do GStreamera.
+%package -n gstreamer-mpg123
+Summary: GStreamer mpg123 plugin
+Summary(pl.UTF-8): Wtyczka mpg123 do GStreamera
+Group: Libraries
+Requires: gstreamer-plugins-base >= %{gstpb_req_ver}
+Requires: libmpg123 >= 1.14
+
+%description -n gstreamer-mpg123
+GStreamer mpg123 plugin for MP3 playback.
+
+%description -n gstreamer-mpg123 -l pl.UTF-8
+Wtyczka mpg123 do GStreamera, odtwarzająca MP3.
+
%package -n gstreamer-musepack
Summary: GStreamer musepack plugin
Summary(pl.UTF-8): Wtyczka musepack do GStreamera
Summary: GStreamer OpenAL audio input/output plugin
Summary(pl.UTF-8): Wtyczka wejścia/wyjścia dźwięku OpenAL do GStreamera
Group: Libraries
+Requires: OpenAL >= 1.14
Requires: gstreamer >= %{gst_req_ver}
Requires: gstreamer-plugins-base >= %{gstpb_req_ver}
Provides: gstreamer-audiosink = %{version}
cverode, cvequalizehist, cvdilate, textwrite, templatematch,
pyramidsegment.
+%package -n gstreamer-openjpeg
+Summary: GStreamer OpenJPEG plugin
+Summary(pl.UTF-8): Wtyczka OpenJPEG do GStreamera
+Group: Libraries
+Requires: gstreamer >= %{gst_req_ver}
+Requires: gstreamer-plugins-base >= %{gstpb_req_ver}
+
+%description -n gstreamer-openjpeg
+GStreamer OpenJPEG plugin - OpenJPEG-based JPEG2000 decoder/encoder.
+
+%description -n gstreamer-openjpeg -l pl.UTF-8
+Wtyczka OpenJPEG do GStreamera - koder/dekoder JPEG2000 oparty na
+bibliotece OpenJPEG.
+
%package -n gstreamer-opus
Summary: GStreamer OPUS audio decoder/encoder plugin
Summary(pl.UTF-8): Wtyczka kodera/dekodera dźwięku OPUS do GStreamera
%description -n gstreamer-videosink-directfb -l pl.UTF-8
Wtyczka wyjścia obrazu DirectFB do GStreamera.
+%package -n gstreamer-videosink-egl-gles
+Summary: GStreamer EGL GLES output plugin
+Summary(pl.UTF-8): Wtyczka wyjścia obrazu EGL GLES do GStreamera
+Group: Libraries
+Requires: gstreamer-plugins-base >= %{gstpb_req_ver}
+Provides: gstreamer-videosink = %{version}
+
+%description -n gstreamer-videosink-egl-gles
+GStreamer EGL GLES output plugin.
+
+%description -n gstreamer-videosink-egl-gles -l pl.UTF-8
+Wtyczka wyjścia obrazu EGL GLES do GStreamera.
+
%package -n gstreamer-videosink-sdl
Summary: GStreamer plugin for outputing to SDL
Summary(pl.UTF-8): Wtyczka wyjścia SDL do GStreamera
Summary(pl.UTF-8): Wtyczka wyjścia Wayland do GStreamera
Group: Libraries
Requires: gstreamer-plugins-base >= %{gstpb_req_ver}
+Requires: wayland >= 1.0.0
Provides: gstreamer-videosink = %{version}
%description -n gstreamer-videosink-wayland
%patch1 -p1
%patch2 -p1
%patch3 -p1
+%patch4 -p1
%build
%{__libtoolize}
%{!?with_cdaudio:--disable-cdaudio} \
%{!?with_dirac:--disable-dirac} \
%{!?with_dts:--disable-dts} \
+ %{!?with_gles:--disable-eglgles} \
%{!?with_faad:--disable-faad} \
%{!?with_gsm:--disable-gsm} \
%{!?with_ladspa:--disable-ladspa} \
%attr(755,root,root) %{gstlibdir}/libgstcamerabin2.so
%attr(755,root,root) %{gstlibdir}/libgstcoloreffects.so
%attr(755,root,root) %{gstlibdir}/libgstdataurisrc.so
+%attr(755,root,root) %{gstlibdir}/libgstdecklink.so
%attr(755,root,root) %{gstlibdir}/libgstdtmf.so
%attr(755,root,root) %{gstlibdir}/libgstdebugutilsbad.so
%attr(755,root,root) %{gstlibdir}/libgstdvb.so
%attr(755,root,root) %{gstlibdir}/libgstdvbsuboverlay.so
%attr(755,root,root) %{gstlibdir}/libgstdvdspu.so
%attr(755,root,root) %{gstlibdir}/libgstfestival.so
+%attr(755,root,root) %{gstlibdir}/libgstfieldanalysis.so
%attr(755,root,root) %{gstlibdir}/libgstfragmented.so
+%attr(755,root,root) %{gstlibdir}/libgstfrei0r.so
%attr(755,root,root) %{gstlibdir}/libgstgaudieffects.so
%attr(755,root,root) %{gstlibdir}/libgstgeometrictransform.so
%attr(755,root,root) %{gstlibdir}/libgstgdp.so
%attr(755,root,root) %{gstlibdir}/libgstinter.so
%attr(755,root,root) %{gstlibdir}/libgstjpegformat.so
%attr(755,root,root) %{gstlibdir}/libgstliveadder.so
+%attr(755,root,root) %{gstlibdir}/libgstmidi.so
%attr(755,root,root) %{gstlibdir}/libgstmodplug.so
%attr(755,root,root) %{gstlibdir}/libgstmpegpsdemux.so
+%attr(755,root,root) %{gstlibdir}/libgstmpegpsmux.so
%attr(755,root,root) %{gstlibdir}/libgstmpegtsdemux.so
%attr(755,root,root) %{gstlibdir}/libgstmpegtsmux.so
%attr(755,root,root) %{gstlibdir}/libgstpcapparse.so
%attr(755,root,root) %{gstlibdir}/libgstshm.so
%attr(755,root,root) %{gstlibdir}/libgstsiren.so
%attr(755,root,root) %{gstlibdir}/libgstsmooth.so
+%attr(755,root,root) %{gstlibdir}/libgstsubenc.so
%if %{with vdpau}
%attr(755,root,root) %{gstlibdir}/libgstvdpau.so
%endif
#%attr(755,root,root) %{gstlibdir}/libgstcdxaparse.so
#%attr(755,root,root) %{gstlibdir}/libgstcog.so
#%attr(755,root,root) %{gstlibdir}/libgstdccp.so
-#%attr(755,root,root) %{gstlibdir}/libgstdecklink.so
#%attr(755,root,root) %{gstlibdir}/libgstfaceoverlay.so
#%attr(755,root,root) %{gstlibdir}/libgstfbdevsink.so
-#%attr(755,root,root) %{gstlibdir}/libgstfieldanalysis.so
#%attr(755,root,root) %{gstlibdir}/libgstfreeverb.so
-#%attr(755,root,root) %{gstlibdir}/libgstfrei0r.so
#%attr(755,root,root) %{gstlibdir}/libgsthdvparse.so
#%attr(755,root,root) %{gstlibdir}/libgstivfparse.so
%if %{with jasper}
%ifarch %{ix86} %{x8664}
#%attr(755,root,root) %{gstlibdir}/libgstreal.so
%endif
-#%attr(755,root,root) %{gstlibdir}/libgstrfbsrc.so
+%attr(755,root,root) %{gstlibdir}/libgstrfbsrc.so
%if %{with rsvg}
%attr(755,root,root) %{gstlibdir}/libgstrsvg.so
%endif
#%attr(755,root,root) %{gstlibdir}/libgstsdi.so
#%attr(755,root,root) %{gstlibdir}/libgststereo.so
-#%attr(755,root,root) %{gstlibdir}/libgstsubenc.so
#%attr(755,root,root) %{gstlibdir}/libgsttta.so
#%attr(755,root,root) %{gstlibdir}/libgstvcdsrc.so
#%attr(755,root,root) %{gstlibdir}/libgstvideofiltersbad.so
%defattr(644,root,root,755)
%attr(755,root,root) %{gstlibdir}/libgstcelt.so
+%if %{with chromaprint}
+%files -n gstreamer-chromaprint
+%defattr(644,root,root,755)
+%attr(755,root,root) %{gstlibdir}/libgstchromaprint.so
+%endif
+
%files -n gstreamer-curl
%defattr(644,root,root,755)
%attr(755,root,root) %{gstlibdir}/libgstcurl.so
%defattr(644,root,root,755)
%attr(755,root,root) %{gstlibdir}/libgstflite.so
+%files -n gstreamer-fluidsynth
+%defattr(644,root,root,755)
+%attr(755,root,root) %{gstlibdir}/libgstfluidsynthmidi.so
+
%files -n gstreamer-gme
%defattr(644,root,root,755)
%attr(755,root,root) %{gstlibdir}/libgstgme.so
%attr(755,root,root) %{gstlibdir}/libgstmms.so
%endif
+%if %{with mpg123}
+%files -n gstreamer-mpg123
+%defattr(644,root,root,755)
+%attr(755,root,root) %{gstlibdir}/libgstmpg123.so
+%endif
+
%if %{with musepack}
%files -n gstreamer-musepack
%defattr(644,root,root,755)
%attr(755,root,root) %{gstlibdir}/libgstopencv.so
%endif
+%files -n gstreamer-openjpeg
+%defattr(644,root,root,755)
+%attr(755,root,root) %{gstlibdir}/libgstopenjpeg.so
+
%files -n gstreamer-opus
%defattr(644,root,root,755)
%attr(755,root,root) %{gstlibdir}/libgstopus.so
%attr(755,root,root) %{gstlibdir}/libgstdfbvideosink.so
%endif
+%if %{with gles}
+%files -n gstreamer-videosink-egl-gles
+%defattr(644,root,root,755)
+%attr(755,root,root) %{gstlibdir}/libgsteglglessink.so
+%endif
+
%if %{with sdl}
%files -n gstreamer-videosink-sdl
%defattr(644,root,root,755)