1 |
|
2 |
%define name gstreamer0.10-vaapi |
3 |
%define oname gstreamer-vaapi |
4 |
%define version 0.3.6 |
5 |
%define rel 2 |
6 |
|
7 |
%define api 0.10 |
8 |
%define major 0 |
9 |
%define libname %mklibname gstvaapi %api %major |
10 |
%define devname %mklibname -d gstvaapi %api |
11 |
|
12 |
Summary: VA-API support for GStreamer |
13 |
Name: %{name} |
14 |
Version: %{version} |
15 |
Release: %mkrel %rel |
16 |
URL: http://gitorious.org/vaapi/gstreamer-vaapi |
17 |
Source: gstreamer-vaapi-%{version}.tar.gz |
18 |
Patch0: gstreamer-vaapi-0.3.6-ffmpeg0.11.patch |
19 |
Patch1: gstreamer-vaapi-0.3.6-link.patch |
20 |
License: GPLv2+ |
21 |
Group: Video/Utilities |
22 |
BuildRequires: pkgconfig(glib-2.0) |
23 |
BuildRequires: pkgconfig(gstreamer-0.10) >= 0.10.10 |
24 |
BuildRequires: pkgconfig(gstreamer-base-0.10) >= 0.10.10 |
25 |
BuildRequires: pkgconfig(gstreamer-basevideo-0.10) >= 0.10.22 |
26 |
BuildRequires: pkgconfig(gstreamer-interfaces-0.10) >= 0.10.16 |
27 |
BuildRequires: pkgconfig(gstreamer-codecparsers-0.10) >= 0.10.10 |
28 |
BuildRequires: pkgconfig(gstreamer-plugins-base-0.10) >= 0.10.16 |
29 |
BuildRequires: pkgconfig(gstreamer-video-0.10) >= 0.10.10 |
30 |
BuildRequires: pkgconfig(libavcodec) |
31 |
BuildRequires: pkgconfig(libva) |
32 |
BuildRequires: pkgconfig(libva-x11) |
33 |
BuildRequires: pkgconfig(x11) |
34 |
BUildRequires: gtk-doc |
35 |
|
36 |
%description |
37 |
gstreamer-vaapi consists of a collection of VA-API based plugins for |
38 |
GStreamer and helper libraries, allowing the use of VA-API acceleration |
39 |
in applications that GStreamer for video playback. |
40 |
|
41 |
%package -n %{libname} |
42 |
Summary: GStreamer VA-API support libraries |
43 |
License: LGPLv2+ |
44 |
Group: System/Libraries |
45 |
|
46 |
%description -n %{libname} |
47 |
Helper libraries used by gstreamer0.10-vaapi. |
48 |
|
49 |
%package -n %{devname} |
50 |
Summary: Development files for libgstvaapi |
51 |
License: LGPLv2+ |
52 |
Group: System/Libraries |
53 |
|
54 |
%description -n %{devname} |
55 |
Development files for the libgstvaapi helper libraries. |
56 |
|
57 |
%prep |
58 |
%setup -q -n vaapi-gstreamer-vaapi |
59 |
%patch0 -p0 |
60 |
%patch1 -p0 |
61 |
|
62 |
%build |
63 |
NO_CONFIGURE=yes ./autogen.sh |
64 |
%configure2_5x --disable-static |
65 |
%make |
66 |
|
67 |
%install |
68 |
%makeinstall_std |
69 |
|
70 |
# Remove unpackaged files |
71 |
find %{buildroot} -name '*.la' -delete |
72 |
|
73 |
%files |
74 |
%{_libdir}/gstreamer-%{api}/libgstvaapi.so |
75 |
|
76 |
%files -n %{libname} |
77 |
%{_libdir}/libgstvaapi*-%{api}.so.%{major}* |
78 |
|
79 |
%files -n %{devname} |
80 |
%doc README NEWS AUTHORS |
81 |
%{_includedir}/gstreamer-%{api}/gst/vaapi |
82 |
%{_libdir}/libgstvaapi*-%{api}.so |
83 |
%{_libdir}/pkgconfig/gstreamer-vaapi*-%{api}.pc |