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