]>
Commit | Line | Data |
---|---|---|
f9adce0f JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static libraries | |
fe36652a | 4 | %bcond_with api # GST VA-API libraries API [no longer exported as of 1.6.0] |
f9adce0f | 5 | # |
2813e861 | 6 | %define gstapi 1.6 |
65cc08d1 JB |
7 | %define gst_ver 1.8.0 |
8 | %define gstpb_ver 1.8.0 | |
9 | %define gstpd_ver 1.8.0 | |
11dd6f5e JB |
10 | Summary: GStreamer plugin to support Video Acceleration API |
11 | Summary(pl.UTF-8): Wtyczka GStreamera obsługująca Video Acceleration API | |
12 | Name: gstreamer-vaapi | |
65cc08d1 | 13 | Version: 1.8.1 |
2813e861 | 14 | Release: 1 |
11dd6f5e JB |
15 | License: LGPL v2.1+ |
16 | Group: Libraries | |
fe36652a | 17 | Source0: https://gstreamer.freedesktop.org/src/gstreamer-vaapi/%{name}-%{version}.tar.xz |
65cc08d1 JB |
18 | # Source0-md5: fbd2b307e6c007c44b65694f88bd8f16 |
19 | URL: https://gstreamer.freedesktop.org/ | |
4771ed98 | 20 | BuildRequires: Mesa-libEGL-devel |
11dd6f5e | 21 | BuildRequires: Mesa-libGL-devel |
4771ed98 | 22 | BuildRequires: Mesa-libGLES-devel |
fe36652a JB |
23 | BuildRequires: autoconf >= 2.69 |
24 | BuildRequires: automake >= 1:1.14 | |
4771ed98 | 25 | BuildRequires: glib2-devel >= 1:2.32.0 |
fe36652a JB |
26 | BuildRequires: gstreamer-devel >= %{gst_ver} |
27 | BuildRequires: gstreamer-plugins-bad-devel >= %{gstpd_ver} | |
28 | BuildRequires: gstreamer-plugins-base-devel >= %{gstpb_ver} | |
11dd6f5e JB |
29 | BuildRequires: gtk-doc >= 1.12 |
30 | BuildRequires: libdrm-devel | |
31 | BuildRequires: libtool >= 2:2.2 | |
2813e861 | 32 | BuildRequires: libva-devel >= 1.6.0 |
11dd6f5e | 33 | BuildRequires: libva-drm-devel >= 1.1.0 |
11dd6f5e JB |
34 | BuildRequires: libva-wayland-devel >= 1.1.0 |
35 | BuildRequires: libva-x11-devel >= 1.0.3 | |
36 | BuildRequires: pkgconfig | |
37 | # libva API versions | |
2813e861 | 38 | BuildRequires: pkgconfig(libva) >= 0.38.0 |
11dd6f5e | 39 | BuildRequires: pkgconfig(libva-drm) >= 0.33.0 |
11dd6f5e JB |
40 | BuildRequires: pkgconfig(libva-wayland) >= 0.33.0 |
41 | BuildRequires: pkgconfig(libva-x11) >= 0.31.0 | |
42 | BuildRequires: udev-devel | |
2813e861 | 43 | BuildRequires: wayland-devel >= 1.0.2 |
fe36652a | 44 | BuildRequires: tar >= 1:1.22 |
11dd6f5e JB |
45 | BuildRequires: xorg-lib-libX11-devel |
46 | BuildRequires: xorg-lib-libXrandr-devel | |
07271103 | 47 | BuildRequires: xorg-lib-libXrender-devel |
fe36652a | 48 | BuildRequires: xz |
2813e861 JB |
49 | %ifarch %{ix86} %{x8664} x32 |
50 | BuildRequires: yasm | |
51 | %endif | |
4771ed98 | 52 | Requires: glib2 >= 1:2.32.0 |
fe36652a JB |
53 | Requires: gstreamer >= %{gst_ver} |
54 | Requires: gstreamer-plugins-bad >= %{gstpd_ver} | |
55 | Requires: gstreamer-plugins-base >= %{gstpb_ver} | |
2813e861 | 56 | Requires: libva >= 1.6.0 |
11dd6f5e | 57 | Requires: wayland >= 1.0.0 |
fe36652a JB |
58 | %if %{without api} |
59 | Obsoletes: %{name}-devel < %{version} | |
60 | Obsoletes: %{name}-static < %{version} | |
61 | %endif | |
11dd6f5e JB |
62 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
63 | ||
64 | %description | |
65 | gstreamer-vaapi consists in a collection of VA-API based plugins for | |
66 | GStreamer and helper libraries. | |
67 | ||
68 | %description -l pl.UTF-8 | |
69 | gstreamer-vaapi zawiera zestaw opartych ma VA-API wtyczek dla | |
70 | GStreamera i bibliotek pomocniczych. | |
71 | ||
72 | %package devel | |
73 | Summary: Header files for GStreamer VA-API libraries | |
74 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek VA-API GStreamera | |
75 | Group: Development/Libraries | |
76 | Requires: %{name} = %{version}-%{release} | |
fe36652a JB |
77 | Requires: gstreamer-devel >= %{gst_ver} |
78 | Requires: gstreamer-plugins-base-devel >= %{gstpb_ver} | |
2813e861 | 79 | Requires: libva-devel >= 1.6.0 |
11dd6f5e | 80 | Requires: libva-drm-devel >= 1.1.0 |
11dd6f5e JB |
81 | Requires: libva-wayland-devel >= 1.1.0 |
82 | Requires: libva-x11-devel >= 1.0.3 | |
83 | ||
84 | %description devel | |
85 | Header files for GStreamer VA-API helper libraries. | |
86 | ||
87 | %description devel -l pl.UTF-8 | |
88 | Pliki nagłówkowe bibliotek pomocniczych VA-API GStreamera. | |
89 | ||
f9adce0f JB |
90 | %package static |
91 | Summary: Static GStreamer VA-API libraries | |
92 | Summary(pl.UTF-8): Statyczne biblioteki VA-API GStreamera | |
93 | Group: Development/Libraries | |
94 | Requires: %{name}-devel = %{version}-%{release} | |
95 | ||
96 | %description static | |
97 | Static GStreamer VA-API libraries. | |
98 | ||
99 | %description static -l pl.UTF-8 | |
100 | Statyczne biblioteki VA-API GStreamera. | |
101 | ||
fe36652a JB |
102 | %package apidocs |
103 | Summary: GStreamer VA-API plugins documentation | |
104 | Summary(pl.UTF-8): Dokumentacja do wtyczek GStreamera VA-API | |
105 | Group: Documentation | |
106 | ||
107 | %description apidocs | |
108 | GStreamer VA-API plugins documentation. | |
109 | ||
110 | %description apidocs -l pl.UTF-8 | |
111 | Dokumentacja do wtyczek GStreamera VA-API. | |
112 | ||
11dd6f5e JB |
113 | %prep |
114 | %setup -q | |
115 | ||
116 | %build | |
117 | %{__libtoolize} | |
fe36652a | 118 | %{__aclocal} -I m4 -I common/m4 |
11dd6f5e JB |
119 | %{__autoconf} |
120 | %{__autoheader} | |
121 | %{__automake} | |
122 | %configure \ | |
f9adce0f | 123 | --disable-silent-rules \ |
fe36652a JB |
124 | %{!?with_static_libs:--disable-static} \ |
125 | --with-html-dir=%{_gtkdocdir} | |
11dd6f5e | 126 | |
fe36652a | 127 | %{__make} |
11dd6f5e JB |
128 | |
129 | %install | |
130 | rm -rf $RPM_BUILD_ROOT | |
131 | ||
fe36652a | 132 | %{__make} install \ |
11dd6f5e JB |
133 | DESTDIR=$RPM_BUILD_ROOT |
134 | ||
135 | # gstreamer module | |
ee342302 | 136 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gstreamer-1.0/libgst*.la |
fe36652a | 137 | %if %{with api} |
f9adce0f JB |
138 | # obsoleted by pkg-config |
139 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
fe36652a | 140 | %endif |
11dd6f5e JB |
141 | |
142 | %clean | |
143 | rm -rf $RPM_BUILD_ROOT | |
144 | ||
fe36652a | 145 | %if %{with api} |
11dd6f5e JB |
146 | %post -p /sbin/ldconfig |
147 | %postun -p /sbin/ldconfig | |
fe36652a | 148 | %endif |
11dd6f5e JB |
149 | |
150 | %files | |
151 | %defattr(644,root,root,755) | |
152 | %doc AUTHORS NEWS README | |
fe36652a | 153 | %if %{with api} |
602e2ec8 JB |
154 | %attr(755,root,root) %{_libdir}/libgstcodecparsers_vpx.so.*.*.* |
155 | %attr(755,root,root) %ghost %{_libdir}/libgstcodecparsers_vpx.so.0 | |
f29a028e | 156 | %attr(755,root,root) %{_libdir}/libgstvaapi-%{gstapi}.so.*.*.* |
2813e861 | 157 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-%{gstapi}.so.1 |
f29a028e | 158 | %attr(755,root,root) %{_libdir}/libgstvaapi-drm-%{gstapi}.so.*.*.* |
2813e861 | 159 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-drm-%{gstapi}.so.1 |
4771ed98 | 160 | %attr(755,root,root) %{_libdir}/libgstvaapi-egl-%{gstapi}.so.*.*.* |
2813e861 | 161 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-egl-%{gstapi}.so.1 |
f29a028e | 162 | %attr(755,root,root) %{_libdir}/libgstvaapi-glx-%{gstapi}.so.*.*.* |
2813e861 | 163 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-glx-%{gstapi}.so.1 |
f29a028e | 164 | %attr(755,root,root) %{_libdir}/libgstvaapi-wayland-%{gstapi}.so.*.*.* |
2813e861 | 165 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-wayland-%{gstapi}.so.1 |
f29a028e | 166 | %attr(755,root,root) %{_libdir}/libgstvaapi-x11-%{gstapi}.so.*.*.* |
2813e861 | 167 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-x11-%{gstapi}.so.1 |
fe36652a | 168 | %endif |
ee342302 | 169 | %attr(755,root,root) %{_libdir}/gstreamer-1.0/libgstvaapi.so |
11dd6f5e | 170 | |
fe36652a | 171 | %if %{with api} |
11dd6f5e JB |
172 | %files devel |
173 | %defattr(644,root,root,755) | |
602e2ec8 | 174 | %attr(755,root,root) %{_libdir}/libgstcodecparsers_vpx.so |
f29a028e AF |
175 | %attr(755,root,root) %{_libdir}/libgstvaapi-%{gstapi}.so |
176 | %attr(755,root,root) %{_libdir}/libgstvaapi-drm-%{gstapi}.so | |
4771ed98 | 177 | %attr(755,root,root) %{_libdir}/libgstvaapi-egl-%{gstapi}.so |
f29a028e AF |
178 | %attr(755,root,root) %{_libdir}/libgstvaapi-glx-%{gstapi}.so |
179 | %attr(755,root,root) %{_libdir}/libgstvaapi-wayland-%{gstapi}.so | |
180 | %attr(755,root,root) %{_libdir}/libgstvaapi-x11-%{gstapi}.so | |
602e2ec8 JB |
181 | %{_includedir}/gstreamer-1.0/gst/vaapi |
182 | %{_pkgconfigdir}/gstreamer-vaapi-1.0.pc | |
183 | %{_pkgconfigdir}/gstreamer-vaapi-drm-1.0.pc | |
184 | %{_pkgconfigdir}/gstreamer-vaapi-glx-1.0.pc | |
185 | %{_pkgconfigdir}/gstreamer-vaapi-wayland-1.0.pc | |
186 | %{_pkgconfigdir}/gstreamer-vaapi-x11-1.0.pc | |
f9adce0f JB |
187 | |
188 | %if %{with static_libs} | |
189 | %files static | |
190 | %defattr(644,root,root,755) | |
602e2ec8 | 191 | %{_libdir}/libgstcodecparsers_vpx.a |
f29a028e AF |
192 | %{_libdir}/libgstvaapi-%{gstapi}.a |
193 | %{_libdir}/libgstvaapi-drm-%{gstapi}.a | |
4771ed98 | 194 | %{_libdir}/libgstvaapi-egl-%{gstapi}.a |
f29a028e AF |
195 | %{_libdir}/libgstvaapi-glx-%{gstapi}.a |
196 | %{_libdir}/libgstvaapi-wayland-%{gstapi}.a | |
197 | %{_libdir}/libgstvaapi-x11-%{gstapi}.a | |
f9adce0f | 198 | %endif |
fe36652a JB |
199 | %endif |
200 | ||
201 | %files apidocs | |
202 | %defattr(644,root,root,755) | |
203 | %{_gtkdocdir}/gstreamer-vaapi-plugins-1.0 |