]>
Commit | Line | Data |
---|---|---|
aa83f0f0 | 1 | # |
beeb03a5 | 2 | # Conditional build: |
69d246de | 3 | %bcond_without vdpau # build FFmpeg without VDPAU support |
11339cee | 4 | %bcond_with system_ffmpeg # system FFmpeg (note: upstream does not accept bugs with system ffmpeg) |
aa83f0f0 | 5 | |
beeb03a5 KK |
6 | %define gstname gst-ffmpeg |
7 | %define gst_major_ver 0.10 | |
0fc8a120 | 8 | %define gst_req_ver 0.10.31 |
aa83f0f0 | 9 | |
e122906a | 10 | %include /usr/lib/rpm/macros.gstreamer |
327b82dc | 11 | Summary: GStreamer Streaming-media framework plug-in using FFmpeg |
0ea370ca | 12 | Summary(pl.UTF-8): Wtyczka do środowiska obróbki strumieni GStreamer używająca FFmpeg |
26347b91 | 13 | Name: gstreamer0.10-ffmpeg |
a82f9c3d | 14 | Version: 0.10.13 |
26347b91 | 15 | Release: 1 |
aa83f0f0 ER |
16 | # the ffmpeg plugin is LGPL, the postproc plugin is GPL |
17 | License: GPL v2+ and LGPL v2+ | |
327b82dc | 18 | Group: Libraries |
82f786a6 | 19 | Source0: http://gstreamer.freedesktop.org/src/gst-ffmpeg/%{gstname}-%{version}.tar.bz2 |
a82f9c3d | 20 | # Source0-md5: 7f5beacaf1312db2db30a026b36888c4 |
4744a193 | 21 | Patch0: gst-ffmpeg-format_string.patch |
1f0d3f67 | 22 | URL: http://gstreamer.net/ |
69d246de JB |
23 | BuildRequires: autoconf >= 2.60 |
24 | BuildRequires: automake >= 1:1.10 | |
a82f9c3d | 25 | BuildRequires: bzip2-devel |
26347b91 | 26 | BuildRequires: gstreamer0.10-devel >= %{gst_req_ver} |
69d246de | 27 | BuildRequires: gtk-doc >= 1.3 |
26347b91 | 28 | BuildRequires: gstreamer0.10-plugins-base-devel >= %{gst_req_ver} |
d0f5f175 | 29 | BuildRequires: libtool |
0fc8a120 | 30 | BuildRequires: orc-devel >= 0.4.6 |
d0f5f175 | 31 | BuildRequires: pkgconfig |
69d246de | 32 | BuildRequires: python >= 2.1 |
ab58c07c | 33 | BuildRequires: rpmbuild(macros) >= 1.470 |
69d246de | 34 | %if %{with system_ffmpeg} |
a82f9c3d | 35 | # libavformat,libavcodec,libavutil,libpostproc,libswscale needed |
0fc8a120 | 36 | BuildRequires: ffmpeg-devel >= 0.7 |
69d246de | 37 | %else |
69d246de | 38 | # TODO: fill the rest of ffmpeg dependencies used here |
beeb03a5 | 39 | %if %{with vdpau} |
69d246de | 40 | BuildRequires: libvdpau-devel |
beeb03a5 KK |
41 | BuildRequires: xorg-lib-libXvMC-devel |
42 | %endif | |
69d246de | 43 | %endif |
26347b91 | 44 | Requires: gstreamer0.10-plugins-base >= %{gst_req_ver} |
0fc8a120 | 45 | Requires: orc >= 0.4.6 |
26347b91 | 46 | Obsoletes: gstreamer-ffmpeg < 0.11 |
327b82dc | 47 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
48 | ||
327b82dc | 49 | %description |
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. | |
56 | ||
57 | This plugin contains the FFmpeg codecs, containing codecs for most | |
58 | popular multimedia formats. | |
59 | ||
cb1d80bc JR |
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. | |
327b82dc | 67 | |
9f3e6335 JB |
68 | Wtyczka ta zawiera kodeki FFmpeg, potrafiące zdekodować |
69 | najpopularniejsze formaty multimedialne. | |
327b82dc | 70 | |
71 | %prep | |
72 | %setup -q -n %{gstname}-%{version} | |
4744a193 | 73 | %patch0 -p1 |
327b82dc | 74 | |
75 | %build | |
d0f5f175 JB |
76 | %{__libtoolize} |
77 | %{__aclocal} -I common/m4 | |
78 | %{__autoconf} | |
79 | %{__autoheader} | |
80 | %{__automake} | |
b82dc507 | 81 | |
18ac9458 | 82 | %configure \ |
8e7e6723 | 83 | CPPFLAGS="%{rpmcppflags}" \ |
aa83f0f0 | 84 | %{?with_system_ffmpeg:--with-system-ffmpeg} \ |
beeb03a5 | 85 | %{?with_vdpau:--with-ffmpeg-extra-configure="--enable-vdpau"} \ |
69d246de | 86 | --disable-silent-rules \ |
8e7e6723 | 87 | --disable-static |
327b82dc | 88 | %{__make} |
89 | ||
90 | %install | |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
93 | %{__make} install \ | |
94 | DESTDIR=$RPM_BUILD_ROOT | |
cb08cab0 | 95 | |
69d246de | 96 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gstreamer-%{gst_major_ver}/*.la |
327b82dc | 97 | |
98 | %clean | |
99 | rm -rf $RPM_BUILD_ROOT | |
100 | ||
327b82dc | 101 | %files |
102 | %defattr(644,root,root,755) | |
d0f5f175 | 103 | %doc AUTHORS ChangeLog NEWS README TODO |
b1163340 | 104 | %attr(755,root,root) %{_libdir}/gstreamer-%{gst_major_ver}/libgstffmpeg.so |
5d8470ef | 105 | %attr(755,root,root) %{_libdir}/gstreamer-%{gst_major_ver}/libgstffmpegscale.so |
18ac9458 | 106 | %attr(755,root,root) %{_libdir}/gstreamer-%{gst_major_ver}/libgstpostproc.so |