]>
Commit | Line | Data |
---|---|---|
9a2cc8d0 AM |
1 | # |
2 | # Conditional build: | |
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) | |
dd5c5789 | 5 | %bcond_with system_ffmpeg # system ffmpeg instead of libav (unadvised, only some ffmpeg versions are compatible) |
9a2cc8d0 AM |
6 | |
7 | %define gstname gst-libav | |
8 | %define gst_major_ver 1.0 | |
dd5c5789 JB |
9 | %define gst_req_ver 1.4.0 |
10 | %define gstpb_req_ver 1.4.0 | |
2978fefd | 11 | %define libav_ver 10.5 |
dd5c5789 | 12 | %define ffmpeg_ver 2.2 |
9a2cc8d0 | 13 | |
dd5c5789 JB |
14 | %if %{with system_ffmpeg} |
15 | %define with_system_libav 1 | |
16 | %endif | |
9a2cc8d0 AM |
17 | %include /usr/lib/rpm/macros.gstreamer |
18 | Summary: GStreamer Streaming-media framework plug-in using libav | |
19 | Summary(pl.UTF-8): Wtyczka do środowiska obróbki strumieni GStreamer używająca libav | |
20 | Name: gstreamer-libav | |
1756b2e2 | 21 | Version: 1.4.3 |
9a2cc8d0 | 22 | Release: 1 |
19033c7c | 23 | License: LGPL v2+ (gst part), GPL v2+ (some libav parts) |
9a2cc8d0 AM |
24 | Group: Libraries |
25 | Source0: http://gstreamer.freedesktop.org/src/gst-libav/%{gstname}-%{version}.tar.xz | |
1756b2e2 | 26 | # Source0-md5: 248b6aae752710bbae77af01f74a082d |
9a2cc8d0 | 27 | URL: http://gstreamer.net/ |
19033c7c JB |
28 | BuildRequires: autoconf >= 2.62 |
29 | BuildRequires: automake >= 1:1.11 | |
9a2cc8d0 AM |
30 | BuildRequires: bzip2-devel |
31 | BuildRequires: gstreamer-devel >= %{gst_req_ver} | |
a1ca68bd | 32 | BuildRequires: gstreamer-plugins-base-devel >= %{gstpb_req_ver} |
19033c7c | 33 | BuildRequires: gtk-doc >= 1.12 |
9a2cc8d0 | 34 | BuildRequires: libtool |
19033c7c | 35 | BuildRequires: orc-devel >= 0.4.16 |
9a2cc8d0 AM |
36 | BuildRequires: pkgconfig |
37 | BuildRequires: python >= 2.1 | |
38 | BuildRequires: rpmbuild(macros) >= 1.470 | |
39 | %if %{with system_libav} | |
19033c7c | 40 | # libavformat,libavcodec,libavutil,libswscale needed |
dd5c5789 JB |
41 | %if %{with system_ffmpeg} |
42 | BuildRequires: ffmpeg-devel >= %{ffmpeg_ver} | |
43 | %else | |
894a4536 | 44 | BuildRequires: libav-devel >= %{libav_ver} |
dd5c5789 | 45 | %endif |
9a2cc8d0 | 46 | %else |
19033c7c JB |
47 | # libav dependencies |
48 | BuildRequires: SDL-devel | |
49 | BuildRequires: zlib-devel | |
50 | %ifarch %{ix86} %{x8664} | |
51 | BuildRequires: yasm | |
52 | %endif | |
9a2cc8d0 AM |
53 | %if %{with vdpau} |
54 | BuildRequires: libvdpau-devel | |
55 | BuildRequires: xorg-lib-libXvMC-devel | |
56 | %endif | |
57 | %endif | |
19033c7c JB |
58 | BuildRequires: tar >= 1:1.22 |
59 | BuildRequires: xz | |
a1ca68bd JB |
60 | Requires: gstreamer >= %{gst_req_ver} |
61 | Requires: gstreamer-plugins-base >= %{gstpb_req_ver} | |
dd5c5789 JB |
62 | %if %{with system_libav} |
63 | %if %{with system_ffmpeg} | |
64 | BuildRequires: ffmpeg-libs >= %{ffmpeg_ver} | |
65 | %else | |
66 | BuildRequires: libav >= %{libav_ver} | |
67 | %endif | |
68 | %endif | |
19033c7c | 69 | Requires: orc >= 0.4.16 |
978acf86 | 70 | Obsoletes: gstreamer-ffmpeg |
9a2cc8d0 AM |
71 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
72 | ||
73 | %description | |
74 | GStreamer is a streaming-media framework, based on graphs of filters | |
75 | which operate on media data. Applications using this library can do | |
76 | anything from real-time sound processing to playing videos, and just | |
77 | about anything else media-related. Its plugin-based architecture means | |
78 | that new data types or processing capabilities can be added simply by | |
79 | installing new plug-ins. | |
80 | ||
81 | This plugin contains the libav codecs, containing codecs for most | |
82 | popular multimedia formats. | |
83 | ||
84 | %description -l pl.UTF-8 | |
85 | GStreamer to środowisko obróbki danych strumieniowych, bazujące na | |
86 | grafie filtrów operujących na danych medialnych. Aplikacje używające | |
87 | tej biblioteki mogą robić wszystko od przetwarzania dźwięku w czasie | |
88 | rzeczywistym, do odtwarzania filmów i czegokolwiek innego związanego z | |
89 | mediami. Architektura bazująca na wtyczkach pozwala na łatwe dodawanie | |
90 | nowych typów danych lub możliwości obróbki. | |
91 | ||
92 | Wtyczka ta zawiera kodeki libav, potrafiące zdekodować | |
93 | najpopularniejsze formaty multimedialne. | |
94 | ||
dd5c5789 JB |
95 | %package apidocs |
96 | Summary: API documentation for GStreamer libav plugin | |
97 | Summary(pl.UTF-8): Dokumentacja API do wtyczki GStreamera libav | |
98 | Group: Documentation | |
99 | Requires: gtk-doc-common | |
100 | ||
101 | %description apidocs | |
102 | API documentation for GStreamer libav plugin. | |
103 | ||
104 | %description apidocs -l pl.UTF-8 | |
105 | Dokumentacja API do wtyczki GStreamera libav. | |
106 | ||
9a2cc8d0 AM |
107 | %prep |
108 | %setup -q -n %{gstname}-%{version} | |
109 | ||
110 | %build | |
111 | %{__libtoolize} | |
112 | %{__aclocal} -I m4 -I common/m4 | |
113 | %{__autoconf} | |
114 | %{__autoheader} | |
115 | %{__automake} | |
116 | ||
117 | %configure \ | |
118 | CPPFLAGS="%{rpmcppflags}" \ | |
119 | %{?with_system_libav:--with-system-libav} \ | |
120 | %{?with_vdpau:--with-libav-extra-configure="--enable-vdpau"} \ | |
121 | --disable-silent-rules \ | |
dd5c5789 JB |
122 | --disable-static \ |
123 | --with-html-dir=%{_gtkdocdir} | |
19033c7c JB |
124 | # V=1 is for libav (--disable-silent-rules affects only main gst-libav sources) |
125 | %{__make} \ | |
126 | V=1 | |
9a2cc8d0 AM |
127 | |
128 | %install | |
129 | rm -rf $RPM_BUILD_ROOT | |
130 | ||
131 | %{__make} install \ | |
132 | DESTDIR=$RPM_BUILD_ROOT | |
133 | ||
134 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gstreamer-%{gst_major_ver}/*.la | |
135 | ||
136 | %clean | |
137 | rm -rf $RPM_BUILD_ROOT | |
138 | ||
139 | %files | |
140 | %defattr(644,root,root,755) | |
141 | %doc AUTHORS ChangeLog NEWS README TODO | |
142 | %attr(755,root,root) %{_libdir}/gstreamer-%{gst_major_ver}/libgstlibav.so | |
894a4536 JB |
143 | # disabled in (upstream) 1.2.0 until someone fixes it |
144 | #%attr(755,root,root) %{_libdir}/gstreamer-%{gst_major_ver}/libgstavscale.so | |
dd5c5789 JB |
145 | |
146 | %files apidocs | |
147 | %defattr(644,root,root,755) | |
148 | %{_gtkdocdir}/gst-libav-plugins-1.0 |