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