1 |
|
2 |
%define name gstreamer0.10-vaapi |
3 |
%define oname gstreamer-vaapi |
4 |
%define version 0.3.6 |
5 |
%define rel 1 |
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-underlinking.patch |
19 |
Patch1: gstreamer-vaapi-0.2.5-ffmpeg0.8.patch |
20 |
License: GPLv2+ |
21 |
Group: Video |
22 |
BuildRoot: %{_tmppath}/%{name}-root |
23 |
BuildRequires: libgstreamer-devel |
24 |
BuildRequires: libgstreamer-plugins-base-devel |
25 |
BuildRequires: libva-devel |
26 |
BuildRequires: ffmpeg-devel |
27 |
BUildRequires: gtk-doc |
28 |
|
29 |
%description |
30 |
gstreamer-vaapi consists of a collection of VA-API based plugins for |
31 |
GStreamer and helper libraries, allowing the use of VA-API acceleration |
32 |
in applications that GStreamer for video playback. |
33 |
|
34 |
%package -n %{libname} |
35 |
Summary: GStreamer VA-API support libraries |
36 |
License: LGPLv2+ |
37 |
Group: System/Libraries |
38 |
|
39 |
%description -n %{libname} |
40 |
Helper libraries used by gstreamer0.10-vaapi. |
41 |
|
42 |
%package -n %{devname} |
43 |
Summary: Development files for libgstvaapi |
44 |
License: LGPLv2+ |
45 |
Group: System/Libraries |
46 |
|
47 |
%description -n %{devname} |
48 |
Development files for the libgstvaapi helper libraries. |
49 |
|
50 |
%prep |
51 |
%setup -q -n vaapi-gstreamer-vaapi |
52 |
#apply_patchesi |
53 |
|
54 |
%build |
55 |
autoreconf -if |
56 |
%configure2_5x |
57 |
%make |
58 |
|
59 |
%install |
60 |
rm -rf %{buildroot} |
61 |
%makeinstall_std |
62 |
|
63 |
# unneeded files and static libs |
64 |
rm %{buildroot}%{_libdir}/*/*.la |
65 |
rm %{buildroot}%{_libdir}/*.{la,a} |
66 |
|
67 |
%clean |
68 |
rm -rf %{buildroot} |
69 |
|
70 |
%files |
71 |
%defattr(-,root,root) |
72 |
%doc README NEWS AUTHORS |
73 |
%{_libdir}/gstreamer-%{api}/libgstvaapiconvert.so |
74 |
%{_libdir}/gstreamer-%{api}/libgstvaapidecode.so |
75 |
%{_libdir}/gstreamer-%{api}/libgstvaapisink.so |
76 |
|
77 |
%files -n %{libname} |
78 |
%defattr(-,root,root) |
79 |
%{_libdir}/libgstvaapi*-%{api}.so.%{major}* |
80 |
|
81 |
%files -n %{devname} |
82 |
%defattr(-,root,root) |
83 |
%doc README NEWS AUTHORS |
84 |
%{_includedir}/gstreamer-%{api}/gst/vaapi |
85 |
%{_libdir}/libgstvaapi*-%{api}.so |
86 |
%{_libdir}/pkgconfig/gstreamer-vaapi*-%{api}.pc |
87 |
|
88 |
|