3 %bcond_without vdpau # build libav without VDPAU support
4 %bcond_with system_libav # system libav (note: upstream does not accept bugs with system libav)
6 %define gstname gst-libav
7 %define gst_major_ver 1.0
8 %define gst_req_ver 1.2.0
11 %include /usr/lib/rpm/macros.gstreamer
12 Summary: GStreamer Streaming-media framework plug-in using libav
13 Summary(pl.UTF-8): Wtyczka do środowiska obróbki strumieni GStreamer używająca libav
17 License: LGPL v2+ (gst part), GPL v2+ (some libav parts)
19 Source0: http://gstreamer.freedesktop.org/src/gst-libav/%{gstname}-%{version}.tar.xz
20 # Source0-md5: 4c300da1cf14b4e167d65cd5d8de1ef1
21 URL: http://gstreamer.net/
22 BuildRequires: autoconf >= 2.62
23 BuildRequires: automake >= 1:1.11
24 BuildRequires: bzip2-devel
25 BuildRequires: gstreamer-devel >= %{gst_req_ver}
26 BuildRequires: gstreamer-plugins-base-devel >= %{gst_req_ver}
27 BuildRequires: gtk-doc >= 1.12
28 BuildRequires: libtool
29 BuildRequires: orc-devel >= 0.4.16
30 BuildRequires: pkgconfig
31 BuildRequires: python >= 2.1
32 BuildRequires: rpmbuild(macros) >= 1.470
33 %if %{with system_libav}
34 # libavformat,libavcodec,libavutil,libswscale needed
35 BuildRequires: libav-devel >= %{libav_ver}
38 BuildRequires: SDL-devel
39 BuildRequires: zlib-devel
40 %ifarch %{ix86} %{x8664}
44 BuildRequires: libvdpau-devel
45 BuildRequires: xorg-lib-libXvMC-devel
48 BuildRequires: tar >= 1:1.22
50 Requires: gstreamer-plugins-base >= %{gst_req_ver}
51 %{?with_system_libav:Requires: libav >= %{libav_ver}}
52 Requires: orc >= 0.4.16
53 Obsoletes: gstreamer-ffmpeg
54 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
57 GStreamer is a streaming-media framework, based on graphs of filters
58 which operate on media data. Applications using this library can do
59 anything from real-time sound processing to playing videos, and just
60 about anything else media-related. Its plugin-based architecture means
61 that new data types or processing capabilities can be added simply by
62 installing new plug-ins.
64 This plugin contains the libav codecs, containing codecs for most
65 popular multimedia formats.
67 %description -l pl.UTF-8
68 GStreamer to środowisko obróbki danych strumieniowych, bazujące na
69 grafie filtrów operujących na danych medialnych. Aplikacje używające
70 tej biblioteki mogą robić wszystko od przetwarzania dźwięku w czasie
71 rzeczywistym, do odtwarzania filmów i czegokolwiek innego związanego z
72 mediami. Architektura bazująca na wtyczkach pozwala na łatwe dodawanie
73 nowych typów danych lub możliwości obróbki.
75 Wtyczka ta zawiera kodeki libav, potrafiące zdekodować
76 najpopularniejsze formaty multimedialne.
79 %setup -q -n %{gstname}-%{version}
83 %{__aclocal} -I m4 -I common/m4
89 CPPFLAGS="%{rpmcppflags}" \
90 %{?with_system_libav:--with-system-libav} \
91 %{?with_vdpau:--with-libav-extra-configure="--enable-vdpau"} \
92 --disable-silent-rules \
94 # V=1 is for libav (--disable-silent-rules affects only main gst-libav sources)
99 rm -rf $RPM_BUILD_ROOT
102 DESTDIR=$RPM_BUILD_ROOT
104 %{__rm} $RPM_BUILD_ROOT%{_libdir}/gstreamer-%{gst_major_ver}/*.la
107 rm -rf $RPM_BUILD_ROOT
110 %defattr(644,root,root,755)
111 %doc AUTHORS ChangeLog NEWS README TODO
112 %attr(755,root,root) %{_libdir}/gstreamer-%{gst_major_ver}/libgstlibav.so
113 # disabled in (upstream) 1.2.0 until someone fixes it
114 #%attr(755,root,root) %{_libdir}/gstreamer-%{gst_major_ver}/libgstavscale.so