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