3 %bcond_without vdpau # build FFmpeg without VDPAU support
4 %bcond_with system_ffmpeg # system FFmpeg (note: upstream does not accept bugs with system ffmpeg)
6 %define gstname gst-ffmpeg
7 %define gst_major_ver 0.10
8 %define gst_req_ver 0.10.31
10 %include /usr/lib/rpm/macros.gstreamer
11 Summary: GStreamer Streaming-media framework plug-in using FFmpeg
12 Summary(pl.UTF-8): Wtyczka do środowiska obróbki strumieni GStreamer używająca FFmpeg
13 Name: gstreamer0.10-ffmpeg
16 # the ffmpeg plugin is LGPL, the postproc plugin is GPL
17 License: GPL v2+ and LGPL v2+
19 Source0: http://gstreamer.freedesktop.org/src/gst-ffmpeg/%{gstname}-%{version}.tar.bz2
20 # Source0-md5: 7f5beacaf1312db2db30a026b36888c4
21 Patch0: gst-ffmpeg-format_string.patch
22 URL: http://gstreamer.net/
23 BuildRequires: autoconf >= 2.60
24 BuildRequires: automake >= 1:1.10
25 BuildRequires: bzip2-devel
26 BuildRequires: gstreamer0.10-devel >= %{gst_req_ver}
27 BuildRequires: gtk-doc >= 1.3
28 BuildRequires: gstreamer0.10-plugins-base-devel >= %{gst_req_ver}
29 BuildRequires: libtool
30 BuildRequires: orc-devel >= 0.4.6
31 BuildRequires: pkgconfig
32 BuildRequires: python >= 2.1
33 BuildRequires: rpmbuild(macros) >= 1.470
34 %if %{with system_ffmpeg}
35 # libavformat,libavcodec,libavutil,libpostproc,libswscale needed
36 BuildRequires: ffmpeg-devel >= 0.7
38 # TODO: fill the rest of ffmpeg dependencies used here
40 BuildRequires: libvdpau-devel
41 BuildRequires: xorg-lib-libXvMC-devel
44 Requires: gstreamer0.10-plugins-base >= %{gst_req_ver}
45 Requires: orc >= 0.4.6
46 Obsoletes: gstreamer-ffmpeg < 0.11
47 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50 GStreamer is a streaming-media framework, based on graphs of filters
51 which operate on media data. Applications using this library can do
52 anything from real-time sound processing to playing videos, and just
53 about anything else media-related. Its plugin-based architecture means
54 that new data types or processing capabilities can be added simply by
55 installing new plug-ins.
57 This plugin contains the FFmpeg codecs, containing codecs for most
58 popular multimedia formats.
60 %description -l pl.UTF-8
61 GStreamer to środowisko obróbki danych strumieniowych, bazujące na
62 grafie filtrów operujących na danych medialnych. Aplikacje używające
63 tej biblioteki mogą robić wszystko od przetwarzania dźwięku w czasie
64 rzeczywistym, do odtwarzania filmów i czegokolwiek innego związanego z
65 mediami. Architektura bazująca na wtyczkach pozwala na łatwe dodawanie
66 nowych typów danych lub możliwości obróbki.
68 Wtyczka ta zawiera kodeki FFmpeg, potrafiące zdekodować
69 najpopularniejsze formaty multimedialne.
72 %setup -q -n %{gstname}-%{version}
77 %{__aclocal} -I common/m4
83 CPPFLAGS="%{rpmcppflags}" \
84 %{?with_system_ffmpeg:--with-system-ffmpeg} \
85 %{?with_vdpau:--with-ffmpeg-extra-configure="--enable-vdpau"} \
86 --disable-silent-rules \
91 rm -rf $RPM_BUILD_ROOT
94 DESTDIR=$RPM_BUILD_ROOT
96 %{__rm} $RPM_BUILD_ROOT%{_libdir}/gstreamer-%{gst_major_ver}/*.la
99 rm -rf $RPM_BUILD_ROOT
102 %defattr(644,root,root,755)
103 %doc AUTHORS ChangeLog NEWS README TODO
104 %attr(755,root,root) %{_libdir}/gstreamer-%{gst_major_ver}/libgstffmpeg.so
105 %attr(755,root,root) %{_libdir}/gstreamer-%{gst_major_ver}/libgstffmpegscale.so
106 %attr(755,root,root) %{_libdir}/gstreamer-%{gst_major_ver}/libgstpostproc.so