]> git.pld-linux.org Git - packages/gstreamer-libav.git/blame - gstreamer-libav.spec
- updated to 1.2.2
[packages/gstreamer-libav.git] / gstreamer-libav.spec
CommitLineData
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)
5
6%define gstname gst-libav
7%define gst_major_ver 1.0
894a4536 8%define gst_req_ver 1.2.0
befa2b95 9%define libav_ver 9.10
9a2cc8d0
AM
10
11%include /usr/lib/rpm/macros.gstreamer
12Summary: GStreamer Streaming-media framework plug-in using libav
13Summary(pl.UTF-8): Wtyczka do środowiska obróbki strumieni GStreamer używająca libav
14Name: gstreamer-libav
befa2b95 15Version: 1.2.2
9a2cc8d0 16Release: 1
19033c7c 17License: LGPL v2+ (gst part), GPL v2+ (some libav parts)
9a2cc8d0
AM
18Group: Libraries
19Source0: http://gstreamer.freedesktop.org/src/gst-libav/%{gstname}-%{version}.tar.xz
befa2b95 20# Source0-md5: 86540dee14d31daf976eb2713f2294f3
9a2cc8d0 21URL: http://gstreamer.net/
19033c7c
JB
22BuildRequires: autoconf >= 2.62
23BuildRequires: automake >= 1:1.11
9a2cc8d0
AM
24BuildRequires: bzip2-devel
25BuildRequires: gstreamer-devel >= %{gst_req_ver}
26BuildRequires: gstreamer-plugins-base-devel >= %{gst_req_ver}
19033c7c 27BuildRequires: gtk-doc >= 1.12
9a2cc8d0 28BuildRequires: libtool
19033c7c 29BuildRequires: orc-devel >= 0.4.16
9a2cc8d0
AM
30BuildRequires: pkgconfig
31BuildRequires: python >= 2.1
32BuildRequires: rpmbuild(macros) >= 1.470
33%if %{with system_libav}
19033c7c 34# libavformat,libavcodec,libavutil,libswscale needed
894a4536 35BuildRequires: libav-devel >= %{libav_ver}
9a2cc8d0 36%else
19033c7c
JB
37# libav dependencies
38BuildRequires: SDL-devel
39BuildRequires: zlib-devel
40%ifarch %{ix86} %{x8664}
41BuildRequires: yasm
42%endif
9a2cc8d0
AM
43%if %{with vdpau}
44BuildRequires: libvdpau-devel
45BuildRequires: xorg-lib-libXvMC-devel
46%endif
47%endif
19033c7c
JB
48BuildRequires: tar >= 1:1.22
49BuildRequires: xz
9a2cc8d0 50Requires: gstreamer-plugins-base >= %{gst_req_ver}
894a4536 51%{?with_system_libav:Requires: libav >= %{libav_ver}}
19033c7c 52Requires: orc >= 0.4.16
978acf86 53Obsoletes: gstreamer-ffmpeg
9a2cc8d0
AM
54BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
55
56%description
57GStreamer is a streaming-media framework, based on graphs of filters
58which operate on media data. Applications using this library can do
59anything from real-time sound processing to playing videos, and just
60about anything else media-related. Its plugin-based architecture means
61that new data types or processing capabilities can be added simply by
62installing new plug-ins.
63
64This plugin contains the libav codecs, containing codecs for most
65popular multimedia formats.
66
67%description -l pl.UTF-8
68GStreamer to środowisko obróbki danych strumieniowych, bazujące na
69grafie filtrów operujących na danych medialnych. Aplikacje używające
70tej biblioteki mogą robić wszystko od przetwarzania dźwięku w czasie
71rzeczywistym, do odtwarzania filmów i czegokolwiek innego związanego z
72mediami. Architektura bazująca na wtyczkach pozwala na łatwe dodawanie
73nowych typów danych lub możliwości obróbki.
74
75Wtyczka ta zawiera kodeki libav, potrafiące zdekodować
76najpopularniejsze formaty multimedialne.
77
78%prep
79%setup -q -n %{gstname}-%{version}
80
81%build
82%{__libtoolize}
83%{__aclocal} -I m4 -I common/m4
84%{__autoconf}
85%{__autoheader}
86%{__automake}
87
88%configure \
89 CPPFLAGS="%{rpmcppflags}" \
90 %{?with_system_libav:--with-system-libav} \
91 %{?with_vdpau:--with-libav-extra-configure="--enable-vdpau"} \
92 --disable-silent-rules \
93 --disable-static
19033c7c
JB
94# V=1 is for libav (--disable-silent-rules affects only main gst-libav sources)
95%{__make} \
96 V=1
9a2cc8d0
AM
97
98%install
99rm -rf $RPM_BUILD_ROOT
100
101%{__make} install \
102 DESTDIR=$RPM_BUILD_ROOT
103
104%{__rm} $RPM_BUILD_ROOT%{_libdir}/gstreamer-%{gst_major_ver}/*.la
105
106%clean
107rm -rf $RPM_BUILD_ROOT
108
109%files
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
894a4536
JB
113# disabled in (upstream) 1.2.0 until someone fixes it
114#%attr(755,root,root) %{_libdir}/gstreamer-%{gst_major_ver}/libgstavscale.so
This page took 0.101403 seconds and 4 git commands to generate.