]>
Commit | Line | Data |
---|---|---|
f9adce0f JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static libraries | |
4 | # | |
11dd6f5e JB |
5 | Summary: GStreamer plugin to support Video Acceleration API |
6 | Summary(pl.UTF-8): Wtyczka GStreamera obsługująca Video Acceleration API | |
7 | Name: gstreamer-vaapi | |
db5f0d5d | 8 | Version: 0.5.4 |
ee342302 | 9 | Release: 1 |
11dd6f5e JB |
10 | License: LGPL v2.1+ |
11 | Group: Libraries | |
12 | Source0: http://www.freedesktop.org/software/vaapi/releases/gstreamer-vaapi/%{name}-%{version}.tar.bz2 | |
db5f0d5d | 13 | # Source0-md5: 099e1bc4950f3ce68bdf2947943e04a4 |
11dd6f5e JB |
14 | URL: http://www.freedesktop.org/wiki/Software/vaapi/ |
15 | BuildRequires: Mesa-libGL-devel | |
ee342302 | 16 | BuildRequires: autoconf >= 2.66 |
11dd6f5e JB |
17 | BuildRequires: automake >= 1:1.11 |
18 | BuildRequires: glib2-devel >= 1:2.28.0 | |
ee342302 JB |
19 | BuildRequires: gstreamer-devel >= 1.0.0 |
20 | BuildRequires: gstreamer-plugins-bad-devel >= 1.0.0 | |
21 | BuildRequires: gstreamer-plugins-base-devel >= 1.0.0 | |
11dd6f5e JB |
22 | BuildRequires: gtk-doc >= 1.12 |
23 | BuildRequires: libdrm-devel | |
24 | BuildRequires: libtool >= 2:2.2 | |
25 | BuildRequires: libva-drm-devel >= 1.1.0 | |
26 | BuildRequires: libva-glx-devel >= 1.0.9 | |
27 | BuildRequires: libva-wayland-devel >= 1.1.0 | |
28 | BuildRequires: libva-x11-devel >= 1.0.3 | |
29 | BuildRequires: pkgconfig | |
30 | # libva API versions | |
31 | BuildRequires: pkgconfig(libva) >= 0.30.4 | |
32 | BuildRequires: pkgconfig(libva-drm) >= 0.33.0 | |
33 | BuildRequires: pkgconfig(libva-glx) >= 0.32.0 | |
34 | BuildRequires: pkgconfig(libva-wayland) >= 0.33.0 | |
35 | BuildRequires: pkgconfig(libva-x11) >= 0.31.0 | |
36 | BuildRequires: udev-devel | |
37 | BuildRequires: wayland-devel >= 1.0.0 | |
38 | BuildRequires: xorg-lib-libX11-devel | |
39 | BuildRequires: xorg-lib-libXrandr-devel | |
40 | Requires: glib2 >= 1:2.28.0 | |
ee342302 JB |
41 | Requires: gstreamer >= 1.0.0 |
42 | Requires: gstreamer-plugins-bad >= 1.0.0 | |
43 | Requires: gstreamer-plugins-base >= 1.0.0 | |
11dd6f5e JB |
44 | Requires: libva >= 1.1.0 |
45 | Requires: wayland >= 1.0.0 | |
46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
47 | ||
48 | %description | |
49 | gstreamer-vaapi consists in a collection of VA-API based plugins for | |
50 | GStreamer and helper libraries. | |
51 | ||
52 | %description -l pl.UTF-8 | |
53 | gstreamer-vaapi zawiera zestaw opartych ma VA-API wtyczek dla | |
54 | GStreamera i bibliotek pomocniczych. | |
55 | ||
56 | %package devel | |
57 | Summary: Header files for GStreamer VA-API libraries | |
58 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek VA-API GStreamera | |
59 | Group: Development/Libraries | |
60 | Requires: %{name} = %{version}-%{release} | |
ee342302 JB |
61 | Requires: gstreamer-devel >= 1.0.0 |
62 | Requires: gstreamer-plugins-base-devel >= 1.0.0 | |
11dd6f5e JB |
63 | Requires: libva-drm-devel >= 1.1.0 |
64 | Requires: libva-glx-devel >= 1.0.9 | |
65 | Requires: libva-wayland-devel >= 1.1.0 | |
66 | Requires: libva-x11-devel >= 1.0.3 | |
67 | ||
68 | %description devel | |
69 | Header files for GStreamer VA-API helper libraries. | |
70 | ||
71 | %description devel -l pl.UTF-8 | |
72 | Pliki nagłówkowe bibliotek pomocniczych VA-API GStreamera. | |
73 | ||
f9adce0f JB |
74 | %package static |
75 | Summary: Static GStreamer VA-API libraries | |
76 | Summary(pl.UTF-8): Statyczne biblioteki VA-API GStreamera | |
77 | Group: Development/Libraries | |
78 | Requires: %{name}-devel = %{version}-%{release} | |
79 | ||
80 | %description static | |
81 | Static GStreamer VA-API libraries. | |
82 | ||
83 | %description static -l pl.UTF-8 | |
84 | Statyczne biblioteki VA-API GStreamera. | |
85 | ||
11dd6f5e JB |
86 | %prep |
87 | %setup -q | |
88 | ||
89 | %build | |
90 | %{__libtoolize} | |
91 | %{__aclocal} | |
92 | %{__autoconf} | |
93 | %{__autoheader} | |
94 | %{__automake} | |
95 | %configure \ | |
f9adce0f JB |
96 | --disable-silent-rules \ |
97 | %{!?with_static_libs:--disable-static} | |
11dd6f5e JB |
98 | |
99 | %{__make} | |
100 | ||
101 | %install | |
102 | rm -rf $RPM_BUILD_ROOT | |
103 | ||
104 | %{__make} install \ | |
105 | DESTDIR=$RPM_BUILD_ROOT | |
106 | ||
107 | # gstreamer module | |
ee342302 | 108 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gstreamer-1.0/libgst*.la |
f9adce0f JB |
109 | # obsoleted by pkg-config |
110 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
11dd6f5e JB |
111 | |
112 | %clean | |
113 | rm -rf $RPM_BUILD_ROOT | |
114 | ||
115 | %post -p /sbin/ldconfig | |
116 | %postun -p /sbin/ldconfig | |
117 | ||
118 | %files | |
119 | %defattr(644,root,root,755) | |
120 | %doc AUTHORS NEWS README | |
ee342302 | 121 | %attr(755,root,root) %{_libdir}/libgstvaapi-1.0.so.*.*.* |
db5f0d5d | 122 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-1.0.so.1 |
ee342302 | 123 | %attr(755,root,root) %{_libdir}/libgstvaapi-drm-1.0.so.*.*.* |
db5f0d5d | 124 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-drm-1.0.so.1 |
ee342302 | 125 | %attr(755,root,root) %{_libdir}/libgstvaapi-glx-1.0.so.*.*.* |
db5f0d5d | 126 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-glx-1.0.so.1 |
ee342302 | 127 | %attr(755,root,root) %{_libdir}/libgstvaapi-wayland-1.0.so.*.*.* |
db5f0d5d | 128 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-wayland-1.0.so.1 |
ee342302 | 129 | %attr(755,root,root) %{_libdir}/libgstvaapi-x11-1.0.so.*.*.* |
db5f0d5d | 130 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-x11-1.0.so.1 |
ee342302 | 131 | %attr(755,root,root) %{_libdir}/gstreamer-1.0/libgstvaapi.so |
11dd6f5e JB |
132 | |
133 | %files devel | |
134 | %defattr(644,root,root,755) | |
ee342302 JB |
135 | %attr(755,root,root) %{_libdir}/libgstvaapi-1.0.so |
136 | %attr(755,root,root) %{_libdir}/libgstvaapi-drm-1.0.so | |
137 | %attr(755,root,root) %{_libdir}/libgstvaapi-glx-1.0.so | |
138 | %attr(755,root,root) %{_libdir}/libgstvaapi-wayland-1.0.so | |
139 | %attr(755,root,root) %{_libdir}/libgstvaapi-x11-1.0.so | |
140 | %{_includedir}/gstreamer-1.0/gst/vaapi | |
141 | %{_pkgconfigdir}/gstreamer-vaapi-1.0.pc | |
142 | %{_pkgconfigdir}/gstreamer-vaapi-drm-1.0.pc | |
143 | %{_pkgconfigdir}/gstreamer-vaapi-glx-1.0.pc | |
144 | %{_pkgconfigdir}/gstreamer-vaapi-wayland-1.0.pc | |
145 | %{_pkgconfigdir}/gstreamer-vaapi-x11-1.0.pc | |
f9adce0f JB |
146 | |
147 | %if %{with static_libs} | |
148 | %files static | |
149 | %defattr(644,root,root,755) | |
ee342302 JB |
150 | %{_libdir}/libgstvaapi-1.0.a |
151 | %{_libdir}/libgstvaapi-drm-1.0.a | |
152 | %{_libdir}/libgstvaapi-glx-1.0.a | |
153 | %{_libdir}/libgstvaapi-wayland-1.0.a | |
154 | %{_libdir}/libgstvaapi-x11-1.0.a | |
f9adce0f | 155 | %endif |