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 19.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 3 |
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 |
Patch012: 0012-mesa-properly-report-the-length-of-truncated-log-mes.patch |
184 |
Patch013: 0013-isl-fix-automake-build-when-sse41-is-not-supported.patch |
185 |
Patch014: 0014-anv-Treat-zero-size-XFB-buffer-as-disabled.patch |
186 |
#Patch015: 0015-cherry-ignore-Add-commit-that-doesn-t-apply.patch |
187 |
Patch016: 0016-nir-builder-Add-a-vector-extract-helper.patch |
188 |
Patch017: 0017-nir-Add-a-new-pass-to-lower-array-dereferences-on-ve.patch |
189 |
Patch018: 0018-radv-Use-correct-image-view-comparison-for-fast-clea.patch |
190 |
Patch019: 0019-glsl-correctly-validate-component-layout-qualifier-f.patch |
191 |
Patch020: 0020-glsl-linker-don-t-fail-non-static-used-inputs-withou.patch |
192 |
Patch021: 0021-glsl-linker-simplify-xfb_offset-vs-xfb_stride-overfl.patch |
193 |
Patch022: 0022-Revert-glsl-relax-input-output-validation-for-SSO-pr.patch |
194 |
|
195 |
# mesa master branch from 201 |
196 |
|
197 |
#------------------------------------------------------------------------------ |
198 |
|
199 |
# package mesa |
200 |
License: MIT |
201 |
Requires: %{libglname} = %{version}-%{release} |
202 |
Provides: hackMesa = %{version} |
203 |
Obsoletes: hackMesa <= %{version} |
204 |
Provides: Mesa = %{version} |
205 |
Obsoletes: Mesa < %{version} |
206 |
|
207 |
%package -n %{libglname} |
208 |
Summary: Files for Mesa (GL and GLX libs) |
209 |
Group: System/Libraries |
210 |
Provides: %{libglname_virt} = %{version}-%{release} |
211 |
Requires: %{dridrivers} >= %{version}-%{release} |
212 |
|
213 |
# (anssi) Forces the upgrade of x11-server-common to happen before |
214 |
# alternatives removal, which allows x11-server-common to grab the symlink. |
215 |
Conflicts: x11-server-common < 1.3.0.0-17 |
216 |
|
217 |
%package -n %{dridrivers} |
218 |
Summary: Mesa DRI drivers |
219 |
Group: System/Libraries |
220 |
# do not require exact release to avoid conflicts when having |
221 |
# x86_64 dri drivers from tainted and i586 dri drivers from core |
222 |
Requires: mesa = %{version} |
223 |
Conflicts: %{_lib}MesaGL1 < 7.7-5 |
224 |
Obsoletes: %{_lib}dri-drivers-experimental < 7.11.2-4 |
225 |
Provides: %{_lib}dri-drivers-experimental = %{version}-%{release} |
226 |
|
227 |
%package -n %{libd3dname} |
228 |
Summary: Mesa Direct3D9 state tracker |
229 |
Group: System/Libraries |
230 |
Provides: %{libd3dname_virt} = %{version}-%{release} |
231 |
|
232 |
%package -n %{libd3dname}-devel |
233 |
Summary: Development files for Mesa Direct3D9 state tracker |
234 |
Group: Development/C |
235 |
Requires: %{libd3dname} = %{version}-%{release} |
236 |
Provides: lib%{d3dname}-devel |
237 |
Provides: %{d3dname}-devel |
238 |
Provides: libd3d-devel |
239 |
|
240 |
%package -n %{libglname}-devel |
241 |
Summary: Development files for Mesa (OpenGL compatible 3D lib) |
242 |
Group: Development/C |
243 |
Requires: %{libglname} = %{version}-%{release} |
244 |
Requires: %{khrdevel} = %{version}-%{release} |
245 |
Provides: lib%{glname}-devel = %{version}-%{release} |
246 |
Provides: %{glname}-devel = %{version}-%{release} |
247 |
Provides: GL-devel |
248 |
Provides: libMesaGL-devel = %{version}-%{release} |
249 |
Provides: MesaGL-devel = %{version}-%{release} |
250 |
Provides: libgl-devel |
251 |
|
252 |
%package -n %{libeglname} |
253 |
Summary: Files for Mesa (EGL libs) |
254 |
Group: System/Libraries |
255 |
Provides: %{libeglname_virt} = %{version}-%{release} |
256 |
|
257 |
%package -n %{libeglname}-devel |
258 |
Summary: Development files for Mesa (EGL libs) |
259 |
Group: Development/C |
260 |
Requires: %{libeglname} = %{version}-%{release} |
261 |
Requires: %{khrdevel} = %{version}-%{release} |
262 |
Provides: EGL-devel |
263 |
Provides: lib%{eglname}-devel |
264 |
Provides: %{eglname}-devel |
265 |
Provides: libegl-devel |
266 |
|
267 |
%package -n %{khrdevel} |
268 |
Summary: Mesa Khronos development headers |
269 |
Group: Development/C |
270 |
Provides: mesakhr-devel = %{version}-%{release} |
271 |
|
272 |
%package -n %{libosmesaname} |
273 |
Summary: Mesa offscreen rendering library |
274 |
Group: System/Libraries |
275 |
|
276 |
%package -n %{osmesadevel} |
277 |
Summary: Development files for libosmesa |
278 |
Group: Development/C |
279 |
Requires: %{libosmesaname} = %{version}-%{release} |
280 |
Provides: osmesa-devel = %{version}-%{release} |
281 |
Conflicts: MesaGL-devel < 8.1.0-0.git20120727.3 |
282 |
|
283 |
%package -n %{libglapiname} |
284 |
Summary: Files for mesa (glapi libs) |
285 |
Group: System/Libraries |
286 |
Provides: %{libglapiname_virt} = %{version}-%{release} |
287 |
|
288 |
%package -n %{libglapiname}-devel |
289 |
Summary: Development files for glapi libs |
290 |
Group: Development/C |
291 |
Requires: %{libglapiname_virt} = %{version}-%{release} |
292 |
Provides: lib%{glapiname}-devel |
293 |
Provides: %{libglapiname}-devel |
294 |
|
295 |
%package -n %{libglesv1name} |
296 |
Summary: Files for Mesa (glesv1 libs) |
297 |
Group: System/Libraries |
298 |
Provides: %{libglesv1name_virt} = %{version}-%{release} |
299 |
|
300 |
%package -n %{libglesv1name}-devel |
301 |
Summary: Development files for glesv1 libs |
302 |
Group: Development/C |
303 |
Requires: %{libglesv1name} = %{version}-%{release} |
304 |
Requires: %{khrdevel} = %{version}-%{release} |
305 |
Provides: lib%{glesv1name}-devel |
306 |
Provides: %{glesv1name}-devel |
307 |
Provides: libglesv1-devel |
308 |
|
309 |
%package -n %{libglesv2name} |
310 |
Summary: Files for Mesa (glesv2 libs) |
311 |
Group: System/Libraries |
312 |
Provides: %{libglesv2name_virt} = %{version}-%{release} |
313 |
|
314 |
%package -n %{libglesv2name}-devel |
315 |
Summary: Development files for glesv2 libs |
316 |
Group: Development/C |
317 |
Requires: %{libglesv2name} = %{version}-%{release} |
318 |
Requires: %{khrdevel} = %{version}-%{release} |
319 |
Provides: lib%{glesv2name}-devel |
320 |
Provides: %{glesv2name}-devel |
321 |
Provides: libglesv2-devel |
322 |
|
323 |
%package -n %{libgbmname} |
324 |
Summary: Files for Mesa (gbm libs) |
325 |
Group: System/Libraries |
326 |
Provides: %{libgbmname_virt} = %{version}-%{release} |
327 |
|
328 |
%package -n %{libgbmname}-devel |
329 |
Summary: Development files for Mesa (gbm libs) |
330 |
Group: Development/C |
331 |
Requires: %{libgbmname} = %{version}-%{release} |
332 |
Provides: lib%{gbmname}-devel |
333 |
Provides: %{gbmname}-devel |
334 |
|
335 |
%if %{?with_wayland_egl} |
336 |
%package -n %{libwaylandeglname} |
337 |
Summary: Files for Mesa (Wayland EGL libs) |
338 |
Group: System/Libraries |
339 |
Provides: %{libwaylandeglname_virt} = %{version}-%{release} |
340 |
|
341 |
%package -n %{libwaylandeglname}-devel |
342 |
Summary: Development files for Mesa (Wayland EGL libs) |
343 |
Group: Development/C |
344 |
Requires: %{libwaylandeglname} = %{version}-%{release} |
345 |
Provides: lib%{waylandeglname}-devel |
346 |
Provides: %{waylandeglname}-devel |
347 |
%endif |
348 |
|
349 |
%package -n %{_lib}vdpau-driver-nouveau |
350 |
Summary: VDPAU plugin for nouveau driver |
351 |
Group: System/Libraries |
352 |
# temporary: |
353 |
%rename vdpau-driver-nouveau |
354 |
|
355 |
%package -n %{_lib}vdpau-driver-r300 |
356 |
Summary: VDPAU plugin for r300 driver |
357 |
Group: System/Libraries |
358 |
# temporary: |
359 |
%rename vdpau-driver-r300 |
360 |
|
361 |
%package -n %{_lib}vdpau-driver-r600 |
362 |
Summary: VDPAU plugin for r600 driver |
363 |
Group: System/Libraries |
364 |
# temporary: |
365 |
%rename vdpau-driver-r600 |
366 |
|
367 |
%package -n %{_lib}vdpau-driver-radeonsi |
368 |
Summary: VDPAU plugin for radeonsi driver |
369 |
Group: System/Libraries |
370 |
# temporary: |
371 |
%rename vdpau-driver-radeonsi |
372 |
|
373 |
%package -n %{libxaname} |
374 |
Summary: Files for Mesa XA state tracker |
375 |
Group: System/Libraries |
376 |
Provides: %{libxaname_virt} = %{version}-%{release} |
377 |
|
378 |
%package -n %{libxaname}-devel |
379 |
Summary: Development files for XA libs |
380 |
Group: Development/C |
381 |
Requires: %{libxaname_virt} = %{version}-%{release} |
382 |
Provides: lib%{xaname}-devel |
383 |
Provides: %{libxaname}-devel |
384 |
|
385 |
%package -n %{vulkandrivers} |
386 |
Summary: Mesa Vulkan driver for Intel and Radeon GPUs |
387 |
Group: System/Libraries |
388 |
%ifarch %{ix86} x86_64 |
389 |
Obsoletes: %{_lib}vulkan_intel < 18.3.0-4 |
390 |
Provides: %{_lib}vulkan_intel = %{version}-%{release} |
391 |
%endif |
392 |
Obsoletes: %{_lib}vulkan_radeon < 18.3.0-4 |
393 |
Provides: %{_lib}vulkan_radeon = %{version}-%{release} |
394 |
|
395 |
%package -n %{vulkandevel} |
396 |
Summary: Mesa's Vulkan development files for Intel and Radeon drivers |
397 |
Group: Development/C |
398 |
Requires: %{vulkandrivers} = %{version}-%{release} |
399 |
Obsoletes: %{_lib}vulkan-devel < 0:18.3.0-4 |
400 |
Provides: %{vulkanname}-devel = %{version}-%{release} |
401 |
|
402 |
%package common-devel |
403 |
Summary: Meta package for mesa devel |
404 |
Group: Development/C |
405 |
Provides: Mesa-common-devel = %{version}-%{release} |
406 |
Provides: hackMesa-common-devel = %{version} |
407 |
Obsoletes: Mesa-common-devel < %{version} |
408 |
Obsoletes: hackMesa-common-devel < %{version} |
409 |
Requires: %{libglname}-devel = %{version} |
410 |
Requires: mesaglu-devel |
411 |
Requires: freeglut-devel |
412 |
Requires: %{libeglname}-devel = %{version} |
413 |
Requires: %{libglesv1name}-devel = %{version} |
414 |
Requires: %{libglesv2name}-devel = %{version} |
415 |
|
416 |
#------------------------------------------------------------------------------ |
417 |
|
418 |
%description |
419 |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
420 |
|
421 |
%description common-devel |
422 |
Mesa common metapackage devel |
423 |
|
424 |
%description -n %{libeglname} |
425 |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
426 |
EGL parts. |
427 |
|
428 |
%description -n %{libeglname}-devel |
429 |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
430 |
EGL development parts. |
431 |
|
432 |
%description -n %{libglname} |
433 |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
434 |
GL and GLX parts. |
435 |
|
436 |
%description -n %{dridrivers} |
437 |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
438 |
DRI drivers. |
439 |
|
440 |
%description -n %{libglname}-devel |
441 |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
442 |
|
443 |
This package contains the headers needed to compile Mesa programs. |
444 |
|
445 |
%description -n %{libglesv1name} |
446 |
OpenGL ES is a low-level, lightweight API for advanced embedded graphics using |
447 |
well-defined subset profiles of OpenGL. |
448 |
|
449 |
This package provides the OpenGL ES library version 1. |
450 |
|
451 |
%description -n %{khrdevel} |
452 |
Mesa Khronos development headers. |
453 |
|
454 |
%description -n %{libosmesaname} |
455 |
Mesa offscreen rendering libraries for rendering OpenGL into |
456 |
application-allocated blocks of memory. |
457 |
|
458 |
%description -n %{osmesadevel} |
459 |
This package contains the headers needed to compile programs against |
460 |
the Mesa offscreen rendering library. |
461 |
|
462 |
%description -n %{libglapiname} |
463 |
This packages provides the glapi shared library used by gallium. |
464 |
|
465 |
%description -n %{libglapiname}-devel |
466 |
This package contains the headers needed to compile programes against glapi shared library. |
467 |
|
468 |
%description -n %{libglesv1name}-devel |
469 |
This package contains the headers needed to compile OpenGL ES 1 programs. |
470 |
|
471 |
%description -n %{libd3dname} |
472 |
Mesa Direct3D9 state tracker. |
473 |
|
474 |
%description -n %{libd3dname}-devel |
475 |
Mesa Direct3D9 state tracker development package. |
476 |
|
477 |
%description -n %{libglesv2name} |
478 |
OpenGL ES is a low-level, lightweight API for advanced embedded graphics using |
479 |
well-defined subset profiles of OpenGL. |
480 |
|
481 |
This package provides the OpenGL ES library version 2. |
482 |
|
483 |
%description -n %{libglesv2name}-devel |
484 |
This package contains the headers needed to compile OpenGL ES 2 programs. |
485 |
|
486 |
%description -n %{libgbmname} |
487 |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
488 |
GBM (Graphics Buffer Manager) parts. |
489 |
|
490 |
%description -n %{libgbmname}-devel |
491 |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
492 |
GBM (Graphics Buffer Manager) development parts. |
493 |
|
494 |
%if %{?with_wayland_egl} |
495 |
%description -n %{libwaylandeglname} |
496 |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
497 |
Wayland EGL platform parts. |
498 |
|
499 |
%description -n %{libwaylandeglname}-devel |
500 |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
501 |
Wayland EGL platform development parts. |
502 |
%endif |
503 |
|
504 |
%description -n %{libxaname} |
505 |
This packages provides the xa shared library used by gallium. |
506 |
|
507 |
%description -n %{libxaname}-devel |
508 |
This package contains the headers needed to compile programes against xa shared library. |
509 |
|
510 |
%description -n %{_lib}vdpau-driver-nouveau |
511 |
This packages provides a VPDAU plugin to enable video acceleration |
512 |
with the nouveau driver. |
513 |
|
514 |
%description -n %{_lib}vdpau-driver-r300 |
515 |
This packages provides a VPDAU plugin to enable video acceleration |
516 |
with the r300 driver. |
517 |
|
518 |
%description -n %{_lib}vdpau-driver-r600 |
519 |
This packages provides a VPDAU plugin to enable video acceleration |
520 |
with the r600 driver. |
521 |
|
522 |
%description -n %{_lib}vdpau-driver-radeonsi |
523 |
This packages provides a VPDAU plugin to enable video acceleration |
524 |
with the radeonsi driver. |
525 |
|
526 |
%description -n %{vulkandrivers} |
527 |
This package contains the Vulkan parts for Mesa's Intel and Radeon drivers. |
528 |
|
529 |
%description -n %{vulkandevel} |
530 |
This package contains the development files for Mesa's Vulkan implementation. |
531 |
|
532 |
#------------------------------------------------------------------------------ |
533 |
|
534 |
%prep |
535 |
%autosetup -n %{name}-%{version}%{?relc:-rc%{relc}} -p1 |
536 |
|
537 |
%build |
538 |
# (re)generate auto* generated files using our autotools and libtoolize |
539 |
autoreconf -vfi |
540 |
|
541 |
# for bin/test-driver: |
542 |
automake --add-missing |
543 |
|
544 |
%configure2_5x \ |
545 |
--enable-gallium-osmesa \ |
546 |
--with-dri-driverdir=%{_libdir}/dri \ |
547 |
--enable-egl \ |
548 |
--enable-gles1 \ |
549 |
--enable-gles2 \ |
550 |
--disable-xvmc \ |
551 |
--enable-vdpau \ |
552 |
%{?with_vaapi:--enable-va} \ |
553 |
--with-platforms=x11,drm,surfaceless,wayland \ |
554 |
--enable-shared-glapi \ |
555 |
--enable-gbm \ |
556 |
--enable-glx \ |
557 |
--enable-glx-tls \ |
558 |
--enable-texture-float=yes \ |
559 |
--enable-llvm \ |
560 |
--enable-dri \ |
561 |
--enable-xa \ |
562 |
--enable-nine \ |
563 |
--enable-autotools \ |
564 |
--with-gallium-drivers=r300,r600,radeonsi,nouveau,swrast,%{?with_freedreno:freedreno,}%{?with_etnaviv:etnaviv,}%{?with_vc4:vc4,}virgl%{?gallium_platform_drivers} \ |
565 |
%{?vulkan_drivers} \ |
566 |
%{?dri_drivers} |
567 |
# end of configure options |
568 |
|
569 |
|
570 |
%make |
571 |
|
572 |
%install |
573 |
%make_install |
574 |
|
575 |
# FIXME: strip will likely break the hardlink |
576 |
# (blino) hardlink libGL files in %{_libdir}/mesa |
577 |
# to prevent proprietary driver installers from removing them |
578 |
mkdir -p $RPM_BUILD_ROOT%{_libdir}/mesa |
579 |
pushd $RPM_BUILD_ROOT%{_libdir}/mesa |
580 |
for l in ../libGL.so.*; do cp -a $l .; done |
581 |
popd |
582 |
|
583 |
%ifarch %{x86_64} |
584 |
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/dri |
585 |
%endif |
586 |
|
587 |
# libvdpau opens the versioned name, don't bother including the unversioned |
588 |
rm -f %{buildroot}%{_libdir}/vdpau/*.so |
589 |
|
590 |
# strip out useless headers |
591 |
rm -f %{buildroot}%{_includedir}/GL/w*.h |
592 |
|
593 |
# remove .la files |
594 |
find %{buildroot} -name '*.la' -delete |
595 |
|
596 |
# remove libwayland-egl on F28+ where it's built as part of wayland source package |
597 |
%if !%{?with_wayland_egl} |
598 |
rm -f %{buildroot}%{_libdir}/libwayland-egl.so* |
599 |
rm -f %{buildroot}%{_libdir}/pkgconfig/wayland-egl.pc |
600 |
%endif |
601 |
|
602 |
%ifnarch %{ix86} x86_64 |
603 |
# To have something to package for mesavulkan-devel on arm/aarch64 for now |
604 |
mkdir %{buildroot}%{_includedir}/vulkan |
605 |
%endif |
606 |
|
607 |
#------------------------------------------------------------------------------ |
608 |
|
609 |
%files |
610 |
/usr/share/drirc.d/ |
611 |
|
612 |
%files -n %{dridrivers} |
613 |
%dir %{_libdir}/dri |
614 |
%{_libdir}/dri/*_dri.so |
615 |
%{_libdir}/dri/*_drv*.so |
616 |
|
617 |
%files -n %{libglname} |
618 |
%{_libdir}/libGL.so.* |
619 |
%dir %{_libdir}/mesa |
620 |
%{_libdir}/mesa/libGL.so.%{glmajor}{,.*} |
621 |
|
622 |
%files -n %{libeglname} |
623 |
%{_libdir}/libEGL.so.%{eglmajor}{,.*} |
624 |
|
625 |
%files -n %{libosmesaname} |
626 |
%{_libdir}/libOSMesa.so.%{osmesamajor}{,.*} |
627 |
|
628 |
%files -n %{libglapiname} |
629 |
%{_libdir}/libglapi.so.%{glapimajor}{,.*} |
630 |
|
631 |
%files -n %{libglesv1name} |
632 |
%{_libdir}/libGLESv1_CM.so.%{glesv1major}{,.*} |
633 |
|
634 |
%files -n %{libd3dname} |
635 |
%{_libdir}/d3d/*.so.* |
636 |
|
637 |
%files -n %{libglesv2name} |
638 |
%{_libdir}/libGLESv2.so.%{glesv2major}{,.*} |
639 |
|
640 |
%files -n %{libgbmname} |
641 |
%{_libdir}/libgbm.so.%{gbmmajor} |
642 |
%{_libdir}/libgbm.so.%{gbmmajor}.* |
643 |
|
644 |
%if %{?with_wayland_egl} |
645 |
%files -n %{libwaylandeglname} |
646 |
%{_libdir}/libwayland-egl.so.%{waylandeglmajor} |
647 |
%{_libdir}/libwayland-egl.so.%{waylandeglmajor}.* |
648 |
%endif |
649 |
|
650 |
%files -n %{libxaname} |
651 |
%{_libdir}/libxatracker.so.%{xamajor}{,.*} |
652 |
|
653 |
%files -n %{libglname}-devel |
654 |
%dir %{_includedir}/GL |
655 |
%{_includedir}/GL/gl.h |
656 |
%{_includedir}/GL/gl_mangle.h |
657 |
%{_includedir}/GL/glext.h |
658 |
%{_includedir}/GL/glx.h |
659 |
%{_includedir}/GL/glx_mangle.h |
660 |
%{_includedir}/GL/glxext.h |
661 |
%{_includedir}/GL/glcorearb.h |
662 |
%dir %{_includedir}/GL/internal |
663 |
%{_includedir}/GL/internal/dri_interface.h |
664 |
%{_libdir}/pkgconfig/dri.pc |
665 |
%{_libdir}/libGL.so |
666 |
%{_libdir}/pkgconfig/gl.pc |
667 |
|
668 |
%files common-devel |
669 |
|
670 |
%files -n %{libeglname}-devel |
671 |
%{_includedir}/EGL |
672 |
%{_libdir}/libEGL.so |
673 |
%{_libdir}/pkgconfig/egl.pc |
674 |
|
675 |
%files -n %{khrdevel} |
676 |
%{_includedir}/KHR |
677 |
|
678 |
%files -n %{osmesadevel} |
679 |
%dir %{_includedir}/GL |
680 |
%{_includedir}/GL/osmesa.h |
681 |
%{_libdir}/libOSMesa.so |
682 |
%{_libdir}/pkgconfig/osmesa.pc |
683 |
|
684 |
%files -n %{libglapiname}-devel |
685 |
%{_libdir}/libglapi.so |
686 |
|
687 |
%files -n %{libglesv1name}-devel |
688 |
%{_includedir}/GLES |
689 |
%{_libdir}/libGLESv1_CM.so |
690 |
%{_libdir}/pkgconfig/glesv1_cm.pc |
691 |
|
692 |
%files -n %{libglesv2name}-devel |
693 |
%{_includedir}/GLES2 |
694 |
%{_includedir}/GLES3 |
695 |
%{_libdir}/libGLESv2.so |
696 |
%{_libdir}/pkgconfig/glesv2.pc |
697 |
|
698 |
%files -n %{libd3dname}-devel |
699 |
%{_includedir}/d3dadapter |
700 |
%{_libdir}/d3d/*.so |
701 |
%{_libdir}/pkgconfig/d3d.pc |
702 |
|
703 |
%files -n %{libgbmname}-devel |
704 |
%{_libdir}/libgbm.so |
705 |
%{_includedir}/gbm.h |
706 |
%{_libdir}/pkgconfig/gbm.pc |
707 |
|
708 |
%if %{?with_wayland_egl} |
709 |
%files -n %{libwaylandeglname}-devel |
710 |
%{_libdir}/libwayland-egl.so |
711 |
%{_libdir}/pkgconfig/wayland-egl.pc |
712 |
%endif |
713 |
|
714 |
%files -n %{libxaname}-devel |
715 |
%{_libdir}/libxatracker.so |
716 |
%{_includedir}/xa_tracker.h |
717 |
%{_includedir}/xa_composite.h |
718 |
%{_includedir}/xa_context.h |
719 |
%{_libdir}/pkgconfig/xatracker.pc |
720 |
|
721 |
%files -n %{_lib}vdpau-driver-nouveau |
722 |
%{_libdir}/vdpau/libvdpau_nouveau.so.* |
723 |
|
724 |
%files -n %{_lib}vdpau-driver-r300 |
725 |
%{_libdir}/vdpau/libvdpau_r300.so.* |
726 |
|
727 |
%files -n %{_lib}vdpau-driver-r600 |
728 |
%{_libdir}/vdpau/libvdpau_r600.so.* |
729 |
|
730 |
%files -n %{_lib}vdpau-driver-radeonsi |
731 |
%{_libdir}/vdpau/libvdpau_radeonsi.so.* |
732 |
|
733 |
%files -n %{vulkandrivers} |
734 |
%dir %{_datadir}/vulkan |
735 |
%dir %{_datadir}/vulkan/icd.d |
736 |
%ifarch %{ix86} x86_64 |
737 |
%{_datadir}/vulkan/icd.d/intel_icd*.json |
738 |
%{_libdir}/libvulkan_intel.so |
739 |
%endif |
740 |
%{_datadir}/vulkan/icd.d/radeon_icd*.json |
741 |
%{_libdir}/libvulkan_radeon.so |
742 |
|
743 |
%files -n %{vulkandevel} |
744 |
%dir %{_includedir}/vulkan |
745 |
%ifarch %{ix86} x86_64 |
746 |
%{_includedir}/vulkan/vulkan_intel.h |
747 |
%endif |