1 |
# (cg) Cheater... |
2 |
%define Werror_cflags %nil |
3 |
|
4 |
# (aco) Needed for the dri drivers |
5 |
%define _disable_ld_no_undefined 1 |
6 |
|
7 |
# https://cgit.freedesktop.org/mesa/mesa/commit/?h=13.0&id=3bb0415ab96f74183f7aa58c1a543448653ccb3e |
8 |
%define git 0 |
9 |
%define git_branch 18.0 |
10 |
|
11 |
%define opengl_ver 4.5 |
12 |
|
13 |
# define version, RC & release |
14 |
%define main_version 19.0.0 |
15 |
#define relc 1 |
16 |
%define rel 2 |
17 |
|
18 |
%define release %mkrel %{?relc:0.rc%{relc}.}%{rel} |
19 |
|
20 |
%if %{git} |
21 |
%if %{?relc:1}%{!?relc:0} |
22 |
%define release %mkrel 1~rc%{relc}.1.git%{git}.%{rel} |
23 |
%else |
24 |
%define release 1.git%{git}.%{rel} |
25 |
%endif |
26 |
%endif |
27 |
|
28 |
%define makedepend %{_bindir}/gccmakedep |
29 |
|
30 |
%define d3dname d3d |
31 |
%define eglname mesaegl |
32 |
%define glname mesagl |
33 |
%define glwname mesaglw |
34 |
%define glesv1name mesaglesv1 |
35 |
%define glesv2name mesaglesv2 |
36 |
%define glapiname glapi |
37 |
%define gbmname gbm |
38 |
%define waylandeglname wayland-egl |
39 |
%define xaname xatracker |
40 |
%define vulkanname mesavulkan |
41 |
|
42 |
%define d3dmajor 1 |
43 |
%define eglmajor 1 |
44 |
%define glmajor 1 |
45 |
%define glwmajor 1 |
46 |
%define glesv1major 1 |
47 |
%define glesv2major 2 |
48 |
%define glapimajor 0 |
49 |
%define gbmmajor 1 |
50 |
%define waylandeglmajor 1 |
51 |
%define osmesamajor 8 |
52 |
%define xamajor 2 |
53 |
|
54 |
%define libd3dname %mklibname %{d3dname} %{d3dmajor} |
55 |
%define libeglname %mklibname %{eglname} %{eglmajor} |
56 |
%define libglname %mklibname %{glname} %{glmajor} |
57 |
%define libglwname %mklibname %{glwname} %{glwmajor} |
58 |
%define libglesv1name %mklibname %{glesv1name}_ %{glesv1major} |
59 |
%define libglesv2name %mklibname %{glesv2name}_ %{glesv2major} |
60 |
%define libglapiname %mklibname %{glapiname} %{glapimajor} |
61 |
%define libgbmname %mklibname %{gbmname} %{gbmmajor} |
62 |
%define libwaylandeglname %mklibname %{waylandeglname} %{waylandeglmajor} |
63 |
%define libosmesaname %mklibname osmesa %{osmesamajor} |
64 |
%define libxaname %mklibname %{xaname} %{xamajor} |
65 |
|
66 |
%define dridrivers %mklibname dri-drivers |
67 |
|
68 |
%define vulkandrivers %mklibname %{vulkanname}-drivers |
69 |
%define vulkandevel %mklibname %{vulkanname} -d |
70 |
|
71 |
%define khrdevel %mklibname mesakhr -d |
72 |
%define osmesadevel %mklibname osmesa -d |
73 |
|
74 |
# Architecture-independent Virtual provides: |
75 |
%define libd3dname_virt lib%{d3dname} |
76 |
%define libeglname_virt lib%{eglname} |
77 |
%define libglname_virt lib%{glname} |
78 |
%define libglwname_virt lib%{glwname} |
79 |
%define libglesv1name_virt lib%{glesv1name} |
80 |
%define libglesv2name_virt lib%{glesv2name} |
81 |
%define libglapiname_virt lib%{glapiname} |
82 |
%define libgbmname_virt lib%{gbmname} |
83 |
%define libwaylandeglname_virt lib%{waylandeglname} |
84 |
%define libxaname_virt lib%{xaname} |
85 |
|
86 |
%define mesasrcdir %{_prefix}/src/Mesa/ |
87 |
|
88 |
%define with_vaapi 1 |
89 |
|
90 |
%ifarch %{ix86} x86_64 |
91 |
%define vulkan_drivers --with-vulkan-drivers=intel,radeon |
92 |
%else |
93 |
%define vulkan_drivers --with-vulkan-drivers=radeon |
94 |
%endif |
95 |
|
96 |
|
97 |
%ifarch %{arm} aarch64 |
98 |
%define with_etnaviv 1 |
99 |
%define with_freedreno 1 |
100 |
%define with_vc4 1 |
101 |
%endif |
102 |
|
103 |
%define base_drivers swrast,nouveau,radeon,r200 |
104 |
%ifarch %{ix86} x86_64 |
105 |
%define platform_drivers ,i915,i965 |
106 |
%define gallium_platform_drivers ,svga |
107 |
%endif |
108 |
|
109 |
%define with_wayland_egl 0 |
110 |
|
111 |
%define dri_drivers --with-dri-drivers=%{?base_drivers}%{?platform_drivers} |
112 |
|
113 |
Name: mesa |
114 |
Version: %{main_version} |
115 |
Release: %{release} |
116 |
Summary: OpenGL %{opengl_ver} compatible 3D graphics library |
117 |
Group: System/Libraries |
118 |
|
119 |
# temp force new gcc |
120 |
BuildRequires: gcc >= 5.4.0-2 |
121 |
|
122 |
BuildRequires: pkgconfig(xfixes) >= 4.0.3 |
123 |
BuildRequires: pkgconfig(xshmfence) |
124 |
BuildRequires: pkgconfig(xt) >= 1.0.5 |
125 |
BuildRequires: pkgconfig(xmu) >= 1.0.3 |
126 |
BuildRequires: pkgconfig(x11) >= 1.3.3 |
127 |
BuildRequires: pkgconfig(xdamage) >= 1.1.1 |
128 |
BuildRequires: pkgconfig(expat) >= 2.0.1 |
129 |
BuildRequires: gccmakedep |
130 |
BuildRequires: x11-proto-devel >= 7.3 |
131 |
BuildRequires: pkgconfig(libdrm) >= 2.4.91 |
132 |
BuildRequires: pkgconfig(xcb-dri3) |
133 |
BuildRequires: pkgconfig(xcb-present) >= 1.11 |
134 |
BuildRequires: pkgconfig(xext) >= 1.1.1 |
135 |
BuildRequires: pkgconfig(xxf86vm) >= 1.1.0 |
136 |
BuildRequires: pkgconfig(xi) >= 1.3 |
137 |
BuildRequires: pkgconfig(xrandr) |
138 |
BuildRequires: pkgconfig(talloc) |
139 |
BuildRequires: python2-libxml2 |
140 |
BuildRequires: python2-mako |
141 |
BuildRequires: python3-libxml2 |
142 |
BuildRequires: python3-mako |
143 |
BuildRequires: makedepend |
144 |
BuildRequires: bison |
145 |
BuildRequires: flex |
146 |
BuildRequires: pkgconfig(libelf) |
147 |
BuildRequires: llvm-devel >= 3.9.1-5 |
148 |
BuildRequires: pkgconfig(libudev) |
149 |
%if 0%{?with_vaapi} |
150 |
BuildRequires: pkgconfig(libva) |
151 |
%endif |
152 |
BuildRequires: pkgconfig(vdpau) |
153 |
BuildRequires: pkgconfig(wayland-client) |
154 |
BuildRequires: pkgconfig(wayland-server) |
155 |
BuildRequires: pkgconfig(wayland-protocols) |
156 |
BuildRequires: libgcrypt-devel |
157 |
BuildRequires: pkgconfig(wayland-protocols) >= 1.8 |
158 |
|
159 |
URL: http://www.mesa3d.org |
160 |
%if %{git} |
161 |
#Source0: %{name}-%{git}.tar.bz2 |
162 |
# (blino) snapshot of 13.0 branch |
163 |
Source0: %{name}-%{git_branch}-%{git}.tar.xz |
164 |
%else |
165 |
Source0: https://mesa.freedesktop.org/archive/mesa-%{main_version}%{?relc:-rc%{relc}}.tar.xz |
166 |
%endif |
167 |
Source3: make-git-snapshot.sh |
168 |
|
169 |
Patch000: fix-linking.patch |
170 |
|
171 |
# mesa staging/19.0 branch from 1 |
172 |
Patch001: 0001-docs-Add-SHA256-sums-for-19.0.0.patch |
173 |
Patch002: 0002-radv-set-the-maximum-number-of-IBs-per-submit-to-192.patch |
174 |
Patch003: 0003-v3d-Fix-leak-of-the-renderonly-struct-on-screen-dest.patch |
175 |
Patch004: 0004-intel-fs-Fix-opt_peephole_csel-to-not-throw-away-sat.patch |
176 |
Patch005: 0005-glsl-lower_vector_derefs-Don-t-use-a-temporary-for-T.patch |
177 |
Patch006: 0006-glsl-list-Add-a-list-variant-of-insert_after.patch |
178 |
Patch007: 0007-egl-dri-Avoid-out-of-bounds-array-access.patch |
179 |
Patch008: 0008-anv-pass-Flag-the-need-for-a-RT-flush-for-resolve-at.patch |
180 |
Patch009: 0009-i965-Disable-ARB_fragment_shader_interlock-for-platf.patch |
181 |
Patch010: 0010-radv-always-initialize-HTILE-when-the-src-layout-is-.patch |
182 |
Patch011: 0011-d3d-meson-do-not-prefix-user-provided-d3d-drivers-pa.patch |
183 |
|
184 |
# mesa master branch from 201 |
185 |
|
186 |
#------------------------------------------------------------------------------ |
187 |
|
188 |
# package mesa |
189 |
License: MIT |
190 |
Requires: %{libglname} = %{version}-%{release} |
191 |
Provides: hackMesa = %{version} |
192 |
Obsoletes: hackMesa <= %{version} |
193 |
Provides: Mesa = %{version} |
194 |
Obsoletes: Mesa < %{version} |
195 |
|
196 |
%package -n %{libglname} |
197 |
Summary: Files for Mesa (GL and GLX libs) |
198 |
Group: System/Libraries |
199 |
Provides: %{libglname_virt} = %{version}-%{release} |
200 |
Requires: %{dridrivers} >= %{version}-%{release} |
201 |
|
202 |
# (anssi) Forces the upgrade of x11-server-common to happen before |
203 |
# alternatives removal, which allows x11-server-common to grab the symlink. |
204 |
Conflicts: x11-server-common < 1.3.0.0-17 |
205 |
|
206 |
%package -n %{dridrivers} |
207 |
Summary: Mesa DRI drivers |
208 |
Group: System/Libraries |
209 |
# do not require exact release to avoid conflicts when having |
210 |
# x86_64 dri drivers from tainted and i586 dri drivers from core |
211 |
Requires: mesa = %{version} |
212 |
Conflicts: %{_lib}MesaGL1 < 7.7-5 |
213 |
Obsoletes: %{_lib}dri-drivers-experimental < 7.11.2-4 |
214 |
Provides: %{_lib}dri-drivers-experimental = %{version}-%{release} |
215 |
|
216 |
%package -n %{libd3dname} |
217 |
Summary: Mesa Direct3D9 state tracker |
218 |
Group: System/Libraries |
219 |
Provides: %{libd3dname_virt} = %{version}-%{release} |
220 |
|
221 |
%package -n %{libd3dname}-devel |
222 |
Summary: Development files for Mesa Direct3D9 state tracker |
223 |
Group: Development/C |
224 |
Requires: %{libd3dname} = %{version}-%{release} |
225 |
Provides: lib%{d3dname}-devel |
226 |
Provides: %{d3dname}-devel |
227 |
Provides: libd3d-devel |
228 |
|
229 |
%package -n %{libglname}-devel |
230 |
Summary: Development files for Mesa (OpenGL compatible 3D lib) |
231 |
Group: Development/C |
232 |
Requires: %{libglname} = %{version}-%{release} |
233 |
Requires: %{khrdevel} = %{version}-%{release} |
234 |
Provides: lib%{glname}-devel = %{version}-%{release} |
235 |
Provides: %{glname}-devel = %{version}-%{release} |
236 |
Provides: GL-devel |
237 |
Provides: libMesaGL-devel = %{version}-%{release} |
238 |
Provides: MesaGL-devel = %{version}-%{release} |
239 |
Provides: libgl-devel |
240 |
|
241 |
%package -n %{libeglname} |
242 |
Summary: Files for Mesa (EGL libs) |
243 |
Group: System/Libraries |
244 |
Provides: %{libeglname_virt} = %{version}-%{release} |
245 |
|
246 |
%package -n %{libeglname}-devel |
247 |
Summary: Development files for Mesa (EGL libs) |
248 |
Group: Development/C |
249 |
Requires: %{libeglname} = %{version}-%{release} |
250 |
Requires: %{khrdevel} = %{version}-%{release} |
251 |
Provides: EGL-devel |
252 |
Provides: lib%{eglname}-devel |
253 |
Provides: %{eglname}-devel |
254 |
Provides: libegl-devel |
255 |
|
256 |
%package -n %{khrdevel} |
257 |
Summary: Mesa Khronos development headers |
258 |
Group: Development/C |
259 |
Provides: mesakhr-devel = %{version}-%{release} |
260 |
|
261 |
%package -n %{libosmesaname} |
262 |
Summary: Mesa offscreen rendering library |
263 |
Group: System/Libraries |
264 |
|
265 |
%package -n %{osmesadevel} |
266 |
Summary: Development files for libosmesa |
267 |
Group: Development/C |
268 |
Requires: %{libosmesaname} = %{version}-%{release} |
269 |
Provides: osmesa-devel = %{version}-%{release} |
270 |
Conflicts: MesaGL-devel < 8.1.0-0.git20120727.3 |
271 |
|
272 |
%package -n %{libglapiname} |
273 |
Summary: Files for mesa (glapi libs) |
274 |
Group: System/Libraries |
275 |
Provides: %{libglapiname_virt} = %{version}-%{release} |
276 |
|
277 |
%package -n %{libglapiname}-devel |
278 |
Summary: Development files for glapi libs |
279 |
Group: Development/C |
280 |
Requires: %{libglapiname_virt} = %{version}-%{release} |
281 |
Provides: lib%{glapiname}-devel |
282 |
Provides: %{libglapiname}-devel |
283 |
|
284 |
%package -n %{libglesv1name} |
285 |
Summary: Files for Mesa (glesv1 libs) |
286 |
Group: System/Libraries |
287 |
Provides: %{libglesv1name_virt} = %{version}-%{release} |
288 |
|
289 |
%package -n %{libglesv1name}-devel |
290 |
Summary: Development files for glesv1 libs |
291 |
Group: Development/C |
292 |
Requires: %{libglesv1name} = %{version}-%{release} |
293 |
Requires: %{khrdevel} = %{version}-%{release} |
294 |
Provides: lib%{glesv1name}-devel |
295 |
Provides: %{glesv1name}-devel |
296 |
Provides: libglesv1-devel |
297 |
|
298 |
%package -n %{libglesv2name} |
299 |
Summary: Files for Mesa (glesv2 libs) |
300 |
Group: System/Libraries |
301 |
Provides: %{libglesv2name_virt} = %{version}-%{release} |
302 |
|
303 |
%package -n %{libglesv2name}-devel |
304 |
Summary: Development files for glesv2 libs |
305 |
Group: Development/C |
306 |
Requires: %{libglesv2name} = %{version}-%{release} |
307 |
Requires: %{khrdevel} = %{version}-%{release} |
308 |
Provides: lib%{glesv2name}-devel |
309 |
Provides: %{glesv2name}-devel |
310 |
Provides: libglesv2-devel |
311 |
|
312 |
%package -n %{libgbmname} |
313 |
Summary: Files for Mesa (gbm libs) |
314 |
Group: System/Libraries |
315 |
Provides: %{libgbmname_virt} = %{version}-%{release} |
316 |
|
317 |
%package -n %{libgbmname}-devel |
318 |
Summary: Development files for Mesa (gbm libs) |
319 |
Group: Development/C |
320 |
Requires: %{libgbmname} = %{version}-%{release} |
321 |
Provides: lib%{gbmname}-devel |
322 |
Provides: %{gbmname}-devel |
323 |
|
324 |
%if %{?with_wayland_egl} |
325 |
%package -n %{libwaylandeglname} |
326 |
Summary: Files for Mesa (Wayland EGL libs) |
327 |
Group: System/Libraries |
328 |
Provides: %{libwaylandeglname_virt} = %{version}-%{release} |
329 |
|
330 |
%package -n %{libwaylandeglname}-devel |
331 |
Summary: Development files for Mesa (Wayland EGL libs) |
332 |
Group: Development/C |
333 |
Requires: %{libwaylandeglname} = %{version}-%{release} |
334 |
Provides: lib%{waylandeglname}-devel |
335 |
Provides: %{waylandeglname}-devel |
336 |
%endif |
337 |
|
338 |
%package -n %{_lib}vdpau-driver-nouveau |
339 |
Summary: VDPAU plugin for nouveau driver |
340 |
Group: System/Libraries |
341 |
# temporary: |
342 |
%rename vdpau-driver-nouveau |
343 |
|
344 |
%package -n %{_lib}vdpau-driver-r300 |
345 |
Summary: VDPAU plugin for r300 driver |
346 |
Group: System/Libraries |
347 |
# temporary: |
348 |
%rename vdpau-driver-r300 |
349 |
|
350 |
%package -n %{_lib}vdpau-driver-r600 |
351 |
Summary: VDPAU plugin for r600 driver |
352 |
Group: System/Libraries |
353 |
# temporary: |
354 |
%rename vdpau-driver-r600 |
355 |
|
356 |
%package -n %{_lib}vdpau-driver-radeonsi |
357 |
Summary: VDPAU plugin for radeonsi driver |
358 |
Group: System/Libraries |
359 |
# temporary: |
360 |
%rename vdpau-driver-radeonsi |
361 |
|
362 |
%package -n %{libxaname} |
363 |
Summary: Files for Mesa XA state tracker |
364 |
Group: System/Libraries |
365 |
Provides: %{libxaname_virt} = %{version}-%{release} |
366 |
|
367 |
%package -n %{libxaname}-devel |
368 |
Summary: Development files for XA libs |
369 |
Group: Development/C |
370 |
Requires: %{libxaname_virt} = %{version}-%{release} |
371 |
Provides: lib%{xaname}-devel |
372 |
Provides: %{libxaname}-devel |
373 |
|
374 |
%package -n %{vulkandrivers} |
375 |
Summary: Mesa Vulkan driver for Intel and Radeon GPUs |
376 |
Group: System/Libraries |
377 |
%ifarch %{ix86} x86_64 |
378 |
Obsoletes: %{_lib}vulkan_intel < 18.3.0-4 |
379 |
Provides: %{_lib}vulkan_intel = %{version}-%{release} |
380 |
%endif |
381 |
Obsoletes: %{_lib}vulkan_radeon < 18.3.0-4 |
382 |
Provides: %{_lib}vulkan_radeon = %{version}-%{release} |
383 |
|
384 |
%package -n %{vulkandevel} |
385 |
Summary: Mesa's Vulkan development files for Intel and Radeon drivers |
386 |
Group: Development/C |
387 |
Requires: %{vulkandrivers} = %{version}-%{release} |
388 |
Obsoletes: %{_lib}vulkan-devel < 0:18.3.0-4 |
389 |
Provides: %{vulkanname}-devel = %{version}-%{release} |
390 |
|
391 |
%package common-devel |
392 |
Summary: Meta package for mesa devel |
393 |
Group: Development/C |
394 |
Provides: Mesa-common-devel = %{version}-%{release} |
395 |
Provides: hackMesa-common-devel = %{version} |
396 |
Obsoletes: Mesa-common-devel < %{version} |
397 |
Obsoletes: hackMesa-common-devel < %{version} |
398 |
Requires: %{libglname}-devel = %{version} |
399 |
Requires: mesaglu-devel |
400 |
Requires: freeglut-devel |
401 |
Requires: %{libeglname}-devel = %{version} |
402 |
Requires: %{libglesv1name}-devel = %{version} |
403 |
Requires: %{libglesv2name}-devel = %{version} |
404 |
|
405 |
#------------------------------------------------------------------------------ |
406 |
|
407 |
%description |
408 |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
409 |
|
410 |
%description common-devel |
411 |
Mesa common metapackage devel |
412 |
|
413 |
%description -n %{libeglname} |
414 |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
415 |
EGL parts. |
416 |
|
417 |
%description -n %{libeglname}-devel |
418 |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
419 |
EGL development parts. |
420 |
|
421 |
%description -n %{libglname} |
422 |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
423 |
GL and GLX parts. |
424 |
|
425 |
%description -n %{dridrivers} |
426 |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
427 |
DRI drivers. |
428 |
|
429 |
%description -n %{libglname}-devel |
430 |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
431 |
|
432 |
This package contains the headers needed to compile Mesa programs. |
433 |
|
434 |
%description -n %{libglesv1name} |
435 |
OpenGL ES is a low-level, lightweight API for advanced embedded graphics using |
436 |
well-defined subset profiles of OpenGL. |
437 |
|
438 |
This package provides the OpenGL ES library version 1. |
439 |
|
440 |
%description -n %{khrdevel} |
441 |
Mesa Khronos development headers. |
442 |
|
443 |
%description -n %{libosmesaname} |
444 |
Mesa offscreen rendering libraries for rendering OpenGL into |
445 |
application-allocated blocks of memory. |
446 |
|
447 |
%description -n %{osmesadevel} |
448 |
This package contains the headers needed to compile programs against |
449 |
the Mesa offscreen rendering library. |
450 |
|
451 |
%description -n %{libglapiname} |
452 |
This packages provides the glapi shared library used by gallium. |
453 |
|
454 |
%description -n %{libglapiname}-devel |
455 |
This package contains the headers needed to compile programes against glapi shared library. |
456 |
|
457 |
%description -n %{libglesv1name}-devel |
458 |
This package contains the headers needed to compile OpenGL ES 1 programs. |
459 |
|
460 |
%description -n %{libd3dname} |
461 |
Mesa Direct3D9 state tracker. |
462 |
|
463 |
%description -n %{libd3dname}-devel |
464 |
Mesa Direct3D9 state tracker development package. |
465 |
|
466 |
%description -n %{libglesv2name} |
467 |
OpenGL ES is a low-level, lightweight API for advanced embedded graphics using |
468 |
well-defined subset profiles of OpenGL. |
469 |
|
470 |
This package provides the OpenGL ES library version 2. |
471 |
|
472 |
%description -n %{libglesv2name}-devel |
473 |
This package contains the headers needed to compile OpenGL ES 2 programs. |
474 |
|
475 |
%description -n %{libgbmname} |
476 |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
477 |
GBM (Graphics Buffer Manager) parts. |
478 |
|
479 |
%description -n %{libgbmname}-devel |
480 |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
481 |
GBM (Graphics Buffer Manager) development parts. |
482 |
|
483 |
%if %{?with_wayland_egl} |
484 |
%description -n %{libwaylandeglname} |
485 |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
486 |
Wayland EGL platform parts. |
487 |
|
488 |
%description -n %{libwaylandeglname}-devel |
489 |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
490 |
Wayland EGL platform development parts. |
491 |
%endif |
492 |
|
493 |
%description -n %{libxaname} |
494 |
This packages provides the xa shared library used by gallium. |
495 |
|
496 |
%description -n %{libxaname}-devel |
497 |
This package contains the headers needed to compile programes against xa shared library. |
498 |
|
499 |
%description -n %{_lib}vdpau-driver-nouveau |
500 |
This packages provides a VPDAU plugin to enable video acceleration |
501 |
with the nouveau driver. |
502 |
|
503 |
%description -n %{_lib}vdpau-driver-r300 |
504 |
This packages provides a VPDAU plugin to enable video acceleration |
505 |
with the r300 driver. |
506 |
|
507 |
%description -n %{_lib}vdpau-driver-r600 |
508 |
This packages provides a VPDAU plugin to enable video acceleration |
509 |
with the r600 driver. |
510 |
|
511 |
%description -n %{_lib}vdpau-driver-radeonsi |
512 |
This packages provides a VPDAU plugin to enable video acceleration |
513 |
with the radeonsi driver. |
514 |
|
515 |
%description -n %{vulkandrivers} |
516 |
This package contains the Vulkan parts for Mesa's Intel and Radeon drivers. |
517 |
|
518 |
%description -n %{vulkandevel} |
519 |
This package contains the development files for Mesa's Vulkan implementation. |
520 |
|
521 |
#------------------------------------------------------------------------------ |
522 |
|
523 |
%prep |
524 |
%autosetup -n %{name}-%{version}%{?relc:-rc%{relc}} -p1 |
525 |
|
526 |
%build |
527 |
# (re)generate auto* generated files using our autotools and libtoolize |
528 |
autoreconf -vfi |
529 |
|
530 |
# for bin/test-driver: |
531 |
automake --add-missing |
532 |
|
533 |
%configure2_5x \ |
534 |
--enable-gallium-osmesa \ |
535 |
--with-dri-driverdir=%{_libdir}/dri \ |
536 |
--enable-egl \ |
537 |
--enable-gles1 \ |
538 |
--enable-gles2 \ |
539 |
--disable-xvmc \ |
540 |
--enable-vdpau \ |
541 |
%{?with_vaapi:--enable-va} \ |
542 |
--with-platforms=x11,drm,surfaceless,wayland \ |
543 |
--enable-shared-glapi \ |
544 |
--enable-gbm \ |
545 |
--enable-glx \ |
546 |
--enable-glx-tls \ |
547 |
--enable-texture-float=yes \ |
548 |
--enable-llvm \ |
549 |
--enable-dri \ |
550 |
--enable-xa \ |
551 |
--enable-nine \ |
552 |
--enable-autotools \ |
553 |
--with-gallium-drivers=r300,r600,radeonsi,nouveau,swrast,%{?with_freedreno:freedreno,}%{?with_etnaviv:etnaviv,}%{?with_vc4:vc4,}virgl%{?gallium_platform_drivers} \ |
554 |
%{?vulkan_drivers} \ |
555 |
%{?dri_drivers} |
556 |
# end of configure options |
557 |
|
558 |
|
559 |
%make |
560 |
|
561 |
%install |
562 |
%make_install |
563 |
|
564 |
# FIXME: strip will likely break the hardlink |
565 |
# (blino) hardlink libGL files in %{_libdir}/mesa |
566 |
# to prevent proprietary driver installers from removing them |
567 |
mkdir -p $RPM_BUILD_ROOT%{_libdir}/mesa |
568 |
pushd $RPM_BUILD_ROOT%{_libdir}/mesa |
569 |
for l in ../libGL.so.*; do cp -a $l .; done |
570 |
popd |
571 |
|
572 |
%ifarch %{x86_64} |
573 |
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/dri |
574 |
%endif |
575 |
|
576 |
# libvdpau opens the versioned name, don't bother including the unversioned |
577 |
rm -f %{buildroot}%{_libdir}/vdpau/*.so |
578 |
|
579 |
# strip out useless headers |
580 |
rm -f %{buildroot}%{_includedir}/GL/w*.h |
581 |
|
582 |
# remove .la files |
583 |
find %{buildroot} -name '*.la' -delete |
584 |
|
585 |
# remove libwayland-egl on F28+ where it's built as part of wayland source package |
586 |
%if !%{?with_wayland_egl} |
587 |
rm -f %{buildroot}%{_libdir}/libwayland-egl.so* |
588 |
rm -f %{buildroot}%{_libdir}/pkgconfig/wayland-egl.pc |
589 |
%endif |
590 |
|
591 |
%ifnarch %{ix86} x86_64 |
592 |
# To have something to package for mesavulkan-devel on arm/aarch64 for now |
593 |
mkdir %{buildroot}%{_includedir}/vulkan |
594 |
%endif |
595 |
|
596 |
#------------------------------------------------------------------------------ |
597 |
|
598 |
%files |
599 |
/usr/share/drirc.d/ |
600 |
|
601 |
%files -n %{dridrivers} |
602 |
%dir %{_libdir}/dri |
603 |
%{_libdir}/dri/*_dri.so |
604 |
%{_libdir}/dri/*_drv*.so |
605 |
|
606 |
%files -n %{libglname} |
607 |
%{_libdir}/libGL.so.* |
608 |
%dir %{_libdir}/mesa |
609 |
%{_libdir}/mesa/libGL.so.%{glmajor}{,.*} |
610 |
|
611 |
%files -n %{libeglname} |
612 |
%{_libdir}/libEGL.so.%{eglmajor}{,.*} |
613 |
|
614 |
%files -n %{libosmesaname} |
615 |
%{_libdir}/libOSMesa.so.%{osmesamajor}{,.*} |
616 |
|
617 |
%files -n %{libglapiname} |
618 |
%{_libdir}/libglapi.so.%{glapimajor}{,.*} |
619 |
|
620 |
%files -n %{libglesv1name} |
621 |
%{_libdir}/libGLESv1_CM.so.%{glesv1major}{,.*} |
622 |
|
623 |
%files -n %{libd3dname} |
624 |
%{_libdir}/d3d/*.so.* |
625 |
|
626 |
%files -n %{libglesv2name} |
627 |
%{_libdir}/libGLESv2.so.%{glesv2major}{,.*} |
628 |
|
629 |
%files -n %{libgbmname} |
630 |
%{_libdir}/libgbm.so.%{gbmmajor} |
631 |
%{_libdir}/libgbm.so.%{gbmmajor}.* |
632 |
|
633 |
%if %{?with_wayland_egl} |
634 |
%files -n %{libwaylandeglname} |
635 |
%{_libdir}/libwayland-egl.so.%{waylandeglmajor} |
636 |
%{_libdir}/libwayland-egl.so.%{waylandeglmajor}.* |
637 |
%endif |
638 |
|
639 |
%files -n %{libxaname} |
640 |
%{_libdir}/libxatracker.so.%{xamajor}{,.*} |
641 |
|
642 |
%files -n %{libglname}-devel |
643 |
%dir %{_includedir}/GL |
644 |
%{_includedir}/GL/gl.h |
645 |
%{_includedir}/GL/gl_mangle.h |
646 |
%{_includedir}/GL/glext.h |
647 |
%{_includedir}/GL/glx.h |
648 |
%{_includedir}/GL/glx_mangle.h |
649 |
%{_includedir}/GL/glxext.h |
650 |
%{_includedir}/GL/glcorearb.h |
651 |
%dir %{_includedir}/GL/internal |
652 |
%{_includedir}/GL/internal/dri_interface.h |
653 |
%{_libdir}/pkgconfig/dri.pc |
654 |
%{_libdir}/libGL.so |
655 |
%{_libdir}/pkgconfig/gl.pc |
656 |
|
657 |
%files common-devel |
658 |
|
659 |
%files -n %{libeglname}-devel |
660 |
%{_includedir}/EGL |
661 |
%{_libdir}/libEGL.so |
662 |
%{_libdir}/pkgconfig/egl.pc |
663 |
|
664 |
%files -n %{khrdevel} |
665 |
%{_includedir}/KHR |
666 |
|
667 |
%files -n %{osmesadevel} |
668 |
%dir %{_includedir}/GL |
669 |
%{_includedir}/GL/osmesa.h |
670 |
%{_libdir}/libOSMesa.so |
671 |
%{_libdir}/pkgconfig/osmesa.pc |
672 |
|
673 |
%files -n %{libglapiname}-devel |
674 |
%{_libdir}/libglapi.so |
675 |
|
676 |
%files -n %{libglesv1name}-devel |
677 |
%{_includedir}/GLES |
678 |
%{_libdir}/libGLESv1_CM.so |
679 |
%{_libdir}/pkgconfig/glesv1_cm.pc |
680 |
|
681 |
%files -n %{libglesv2name}-devel |
682 |
%{_includedir}/GLES2 |
683 |
%{_includedir}/GLES3 |
684 |
%{_libdir}/libGLESv2.so |
685 |
%{_libdir}/pkgconfig/glesv2.pc |
686 |
|
687 |
%files -n %{libd3dname}-devel |
688 |
%{_includedir}/d3dadapter |
689 |
%{_libdir}/d3d/*.so |
690 |
%{_libdir}/pkgconfig/d3d.pc |
691 |
|
692 |
%files -n %{libgbmname}-devel |
693 |
%{_libdir}/libgbm.so |
694 |
%{_includedir}/gbm.h |
695 |
%{_libdir}/pkgconfig/gbm.pc |
696 |
|
697 |
%if %{?with_wayland_egl} |
698 |
%files -n %{libwaylandeglname}-devel |
699 |
%{_libdir}/libwayland-egl.so |
700 |
%{_libdir}/pkgconfig/wayland-egl.pc |
701 |
%endif |
702 |
|
703 |
%files -n %{libxaname}-devel |
704 |
%{_libdir}/libxatracker.so |
705 |
%{_includedir}/xa_tracker.h |
706 |
%{_includedir}/xa_composite.h |
707 |
%{_includedir}/xa_context.h |
708 |
%{_libdir}/pkgconfig/xatracker.pc |
709 |
|
710 |
%files -n %{_lib}vdpau-driver-nouveau |
711 |
%{_libdir}/vdpau/libvdpau_nouveau.so.* |
712 |
|
713 |
%files -n %{_lib}vdpau-driver-r300 |
714 |
%{_libdir}/vdpau/libvdpau_r300.so.* |
715 |
|
716 |
%files -n %{_lib}vdpau-driver-r600 |
717 |
%{_libdir}/vdpau/libvdpau_r600.so.* |
718 |
|
719 |
%files -n %{_lib}vdpau-driver-radeonsi |
720 |
%{_libdir}/vdpau/libvdpau_radeonsi.so.* |
721 |
|
722 |
%files -n %{vulkandrivers} |
723 |
%dir %{_datadir}/vulkan |
724 |
%dir %{_datadir}/vulkan/icd.d |
725 |
%ifarch %{ix86} x86_64 |
726 |
%{_datadir}/vulkan/icd.d/intel_icd*.json |
727 |
%{_libdir}/libvulkan_intel.so |
728 |
%endif |
729 |
%{_datadir}/vulkan/icd.d/radeon_icd*.json |
730 |
%{_libdir}/libvulkan_radeon.so |
731 |
|
732 |
%files -n %{vulkandevel} |
733 |
%dir %{_includedir}/vulkan |
734 |
%ifarch %{ix86} x86_64 |
735 |
%{_includedir}/vulkan/vulkan_intel.h |
736 |
%endif |