/[packages]/cauldron/mesa/current/SPECS/mesa.spec
ViewVC logotype

Annotation of /cauldron/mesa/current/SPECS/mesa.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1430817 - (hide annotations) (download)
Wed Aug 21 12:24:44 2019 UTC (13 hours, 34 minutes ago) by tmb
File size: 22445 byte(s)
SILENT: add note about staying in sync with Mageia 7
1 pterjan 5340 # (cg) Cheater...
2     %define Werror_cflags %nil
3    
4     # (aco) Needed for the dri drivers
5     %define _disable_ld_no_undefined 1
6    
7 ghibo 1066639 # https://cgit.freedesktop.org/mesa/mesa/commit/?h=13.0&id=3bb0415ab96f74183f7aa58c1a543448653ccb3e
8 tmb 400079 %define git 0
9 tmb 1397702 %define git_branch 19.1
10 mikala 112356
11 ghibo 1066639 %define opengl_ver 4.5
12 blino 289598
13 tmb 922766 # define version, RC & release
14 tmb 1430817 ###
15     ### NOTE! This one stays in sync with Mageia 7 for now, so dont upgrade to 19.2-RC*
16     ###
17 tmb 1428079 %define main_version 19.1.4
18 tmb 1399848 #define relc 1
19 tmb 1429310 %define rel 4
20 pterjan 5340
21 tv 1140191 %define release %mkrel %{?relc:0.rc%{relc}.}%{rel}
22 pterjan 5340
23     %if %{git}
24 ghibo 1066639 %if %{?relc:1}%{!?relc:0}
25 tv 799294 %define release %mkrel 1~rc%{relc}.1.git%{git}.%{rel}
26 pterjan 5340 %else
27 ghibo 1066639 %define release 1.git%{git}.%{rel}
28 pterjan 5340 %endif
29     %endif
30    
31     %define makedepend %{_bindir}/gccmakedep
32    
33 tv 1379341 %define clname mesaopencl
34 tv 812143 %define d3dname d3d
35 pterjan 5340 %define eglname mesaegl
36     %define glname mesagl
37     %define glwname mesaglw
38 tv 88442 %define glesv1name mesaglesv1
39     %define glesv2name mesaglesv2
40 mikala 112356 %define glapiname glapi
41 blino 215979 %define gbmname gbm
42 tv 634669 %define xaname xatracker
43 akien 1340049 %define vulkanname mesavulkan
44 tv 88442
45 tv 1379341 %define clmajor 1
46 tv 812143 %define d3dmajor 1
47 pterjan 5340 %define eglmajor 1
48     %define glmajor 1
49     %define glwmajor 1
50 tv 88442 %define glesv1major 1
51     %define glesv2major 2
52 mikala 112356 %define glapimajor 0
53 blino 215979 %define gbmmajor 1
54     %define waylandeglmajor 1
55 blino 289617 %define osmesamajor 8
56 tv 634669 %define xamajor 2
57 tv 88442
58 tv 1379341 %define libclname %mklibname %{clname} %{clmajor}
59 tv 812143 %define libd3dname %mklibname %{d3dname} %{d3dmajor}
60 pterjan 5340 %define libeglname %mklibname %{eglname} %{eglmajor}
61     %define libglname %mklibname %{glname} %{glmajor}
62     %define libglwname %mklibname %{glwname} %{glwmajor}
63 tv 88442 %define libglesv1name %mklibname %{glesv1name}_ %{glesv1major}
64     %define libglesv2name %mklibname %{glesv2name}_ %{glesv2major}
65 mikala 112356 %define libglapiname %mklibname %{glapiname} %{glapimajor}
66 blino 215979 %define libgbmname %mklibname %{gbmname} %{gbmmajor}
67     %define libwaylandeglname %mklibname %{waylandeglname} %{waylandeglmajor}
68 anssi 278008 %define libosmesaname %mklibname osmesa %{osmesamajor}
69 tv 634669 %define libxaname %mklibname %{xaname} %{xamajor}
70 pterjan 5340
71     %define dridrivers %mklibname dri-drivers
72    
73 akien 1340049 %define vulkandrivers %mklibname %{vulkanname}-drivers
74     %define vulkandevel %mklibname %{vulkanname} -d
75    
76 tv 1379341 %define libcldevel %mklibname mesaopencl -d
77 akien 1339667 %define khrdevel %mklibname mesakhr -d
78 anssi 278008 %define osmesadevel %mklibname osmesa -d
79    
80 pterjan 5340 # Architecture-independent Virtual provides:
81 tv 812143 %define libd3dname_virt lib%{d3dname}
82 pterjan 5340 %define libeglname_virt lib%{eglname}
83     %define libglname_virt lib%{glname}
84     %define libglwname_virt lib%{glwname}
85 tv 88442 %define libglesv1name_virt lib%{glesv1name}
86     %define libglesv2name_virt lib%{glesv2name}
87 mikala 112356 %define libglapiname_virt lib%{glapiname}
88 blino 215979 %define libgbmname_virt lib%{gbmname}
89     %define libwaylandeglname_virt lib%{waylandeglname}
90 tv 634669 %define libxaname_virt lib%{xaname}
91 pterjan 5340
92     %define mesasrcdir %{_prefix}/src/Mesa/
93    
94 tmb 1415499 %define with_valgrind 1
95    
96 tv 1217642 %define with_vaapi 1
97 tv 1217640
98 tv 1379341 %global with_hardware 1
99     %global with_vdpau 1
100     %global with_vaapi 1
101 tv 1379342 %global with_nine 1
102 tv 1379341 %global with_omx 1
103     %global with_opencl 1
104     %global base_drivers nouveau,r100,r200
105    
106 akien 1041911 %ifarch %{ix86} x86_64
107 tv 1379341 %global platform_drivers ,i915,i965
108 tmb 1398091 %global with_iris 1
109 tv 1379341 %global with_vmware 1
110     %global with_xa 1
111     %global vulkan_drivers intel,amd
112 akien 1340049 %else
113 tv 1379341 %global vulkan_drivers amd
114 akien 1041911 %endif
115    
116 neoclust 1216966 %ifarch %{arm} aarch64
117 tv 1379341 %global with_etnaviv 1
118     %global with_freedreno 1
119     %global with_kmsro 1
120     %global with_tegra 1
121     %global with_vc4 1
122     %global with_xa 1
123 neoclust 1216966 %endif
124    
125 tmb 1379742 %ifnarch %{arm}
126 tv 1379341 %global with_radeonsi 1
127 tv 1379344 %endif
128 pterjan 5340
129 tv 1379341 %global dri_drivers %{?base_drivers}%{?platform_drivers}
130    
131 ovitters 645737 Name: mesa
132 tmb 1039883 Version: %{main_version}
133 pterjan 5340 Release: %{release}
134 blino 289598 Summary: OpenGL %{opengl_ver} compatible 3D graphics library
135 pterjan 5340 Group: System/Libraries
136    
137 tmb 1095010 # temp force new gcc
138 tmb 1429140 BuildRequires: gcc >= 9.2.0-1
139 tmb 1095010
140 mikala 127466 BuildRequires: pkgconfig(xfixes) >= 4.0.3
141 tv 585816 BuildRequires: pkgconfig(xshmfence)
142 mikala 127466 BuildRequires: pkgconfig(xt) >= 1.0.5
143     BuildRequires: pkgconfig(xmu) >= 1.0.3
144     BuildRequires: pkgconfig(x11) >= 1.3.3
145     BuildRequires: pkgconfig(xdamage) >= 1.1.1
146 tmb 1379742 BuildRequires: pkgconfig(expat) >= 2.0.1
147 pterjan 5340 BuildRequires: gccmakedep
148     BuildRequires: x11-proto-devel >= 7.3
149 tmb 1211143 BuildRequires: pkgconfig(libdrm) >= 2.4.91
150 tv 585825 BuildRequires: pkgconfig(xcb-dri3)
151 blino 659717 BuildRequires: pkgconfig(xcb-present) >= 1.11
152 mikala 127466 BuildRequires: pkgconfig(xext) >= 1.1.1
153     BuildRequires: pkgconfig(xxf86vm) >= 1.1.0
154     BuildRequires: pkgconfig(xi) >= 1.3
155 tv 1253321 BuildRequires: pkgconfig(xrandr)
156 tv 1379341 %if 0%{?with_omx}
157     BuildRequires: pkgconfig(libomxil-bellagio)
158     %endif
159     %if 0%{?with_opencl}
160     BuildRequires: clang-devel
161     BuildRequires: pkgconfig(libclc)
162     %endif
163 mikala 127466 BuildRequires: pkgconfig(talloc)
164 tv 1224299 BuildRequires: python2-libxml2
165     BuildRequires: python2-mako
166 tv 1213070 BuildRequires: python3-libxml2
167     BuildRequires: python3-mako
168 tmb 35532 BuildRequires: makedepend
169 tmb 1379742 BuildRequires: bison
170     BuildRequires: flex
171 tv 1379341 BuildRequires: meson
172 tmb 1379742 BuildRequires: pkgconfig(libelf)
173 tv 1389757 BuildRequires: llvm-devel >= 8.0
174 tmb 1379742 BuildRequires: pkgconfig(libudev)
175 tmb 1415499 %if 0%{?with_valgrind}
176     BuildRequires: pkgconfig(valgrind)
177     %endif
178 tv 1217640 %if 0%{?with_vaapi}
179 tv 812142 BuildRequires: pkgconfig(libva)
180 tv 1217640 %endif
181 blino 270761 BuildRequires: pkgconfig(vdpau)
182 tv 1214970 BuildRequires: pkgconfig(wayland-client)
183     BuildRequires: pkgconfig(wayland-server)
184     BuildRequires: pkgconfig(wayland-protocols)
185 tmb 1041913 BuildRequires: libgcrypt-devel
186 ovitters 1145130 BuildRequires: pkgconfig(wayland-protocols) >= 1.8
187 akien 1389663 BuildRequires: lm_sensors-devel
188 pterjan 5340
189 tmb 1379741 URL: https://www.mesa3d.org
190 pterjan 5340 %if %{git}
191 ghibo 1066639 #Source0: %{name}-%{git}.tar.bz2
192     # (blino) snapshot of 13.0 branch
193     Source0: %{name}-%{git_branch}-%{git}.tar.xz
194 pterjan 5340 %else
195 tmb 1107908 Source0: https://mesa.freedesktop.org/archive/mesa-%{main_version}%{?relc:-rc%{relc}}.tar.xz
196 pterjan 5340 %endif
197     Source3: make-git-snapshot.sh
198    
199 tmb 1397174 # mesa staging/19.1 branch from 1
200 tmb 1428079 Patch001: 0001-docs-add-sha256-checksums-for-19.1.4.patch
201 tmb 1428776 Patch002: 0002-i965-clear-clear_value-better-precision.patch
202     Patch003: 0003-cherry-ignore-panfrost-Make-ctx-job-useful.patch
203     Patch004: 0004-anv-Emit-a-dummy-MEDIA_VFE_STATE-before-switching-fr.patch
204     Patch005: 0005-radv-Do-non-uniform-lowering-before-bool-lowering.patch
205     Patch006: 0006-ac-nir-Use-correct-cast-for-readfirstlane-and-ptrs.patch
206     Patch007: 0007-radeonsi-disable-SDMA-image-copies-on-dGPUs-to-fix-c.patch
207     Patch008: 0008-meson-Test-for-program_invocation_name.patch
208     Patch009: 0009-util-fix-mem-leak-of-program-path.patch
209     Patch010: 0010-gallium-dump-add-missing-query-type-to-short-list.patch
210     Patch011: 0011-gallium-dump-add-missing-query-type-to-short-list.patch
211     Patch012: 0012-radv-Avoid-binning-RAVEN-hangs.patch
212     Patch013: 0013-radv-Avoid-VEGA-RAVEN-scissor-bug-in-binning.patch
213     Patch014: 0014-i965-Emit-a-dummy-MEDIA_VFE_STATE-before-switching-f.patch
214     Patch015: 0015-anv-remove-unused-Linux-specific-include.patch
215     Patch016: 0016-intel-perf-use-MAJOR_IN_SYSMACROS-MAJOR_IN_MKDEV.patch
216 pterjan 5340
217 tmb 1396290 # mesa master branch from 200
218 tmb 1429310 # 1 percent speedup
219     Patch200: 0200-iris-Increase-BATCH_SZ-to-64kB.patch
220     # 3-20 percent speedup
221     Patch201: 0201-i965-gen9-Optimize-slice-and-subslice-load-balancing.patch
222 tmb 411326
223 tmb 1396290 # mesa pending fixes from 300
224    
225 tv 88440 #------------------------------------------------------------------------------
226    
227     # package mesa
228 pterjan 5340 License: MIT
229     Requires: %{libglname} = %{version}-%{release}
230 akien 1389662 Recommends: %{vulkandrivers} = %{version}-%{release}
231 pterjan 5340 Provides: hackMesa = %{version}
232     Obsoletes: hackMesa <= %{version}
233     Provides: Mesa = %{version}
234     Obsoletes: Mesa < %{version}
235    
236     %package -n %{libglname}
237     Summary: Files for Mesa (GL and GLX libs)
238     Group: System/Libraries
239     Provides: %{libglname_virt} = %{version}-%{release}
240     Requires: %{dridrivers} >= %{version}-%{release}
241    
242     %package -n %{dridrivers}
243     Summary: Mesa DRI drivers
244     Group: System/Libraries
245 blino 274132 # do not require exact release to avoid conflicts when having
246     # x86_64 dri drivers from tainted and i586 dri drivers from core
247     Requires: mesa = %{version}
248 pterjan 5340
249 tv 1379341 %if 0%{?with_omx}
250     %package omx-drivers
251     Summary: Mesa-based OMX drivers
252     %endif
253    
254 tv 812143 %package -n %{libd3dname}
255     Summary: Mesa Direct3D9 state tracker
256     Group: System/Libraries
257     Provides: %{libd3dname_virt} = %{version}-%{release}
258    
259     %package -n %{libd3dname}-devel
260     Summary: Development files for Mesa Direct3D9 state tracker
261     Group: Development/C
262     Requires: %{libd3dname} = %{version}-%{release}
263     Provides: lib%{d3dname}-devel
264     Provides: %{d3dname}-devel
265     Provides: libd3d-devel
266    
267 pterjan 5340 %package -n %{libglname}-devel
268     Summary: Development files for Mesa (OpenGL compatible 3D lib)
269     Group: Development/C
270 tv 88237 Requires: %{libglname} = %{version}-%{release}
271 akien 1339667 Requires: %{khrdevel} = %{version}-%{release}
272 pterjan 5340 Provides: lib%{glname}-devel = %{version}-%{release}
273     Provides: %{glname}-devel = %{version}-%{release}
274     Provides: GL-devel
275     Provides: libMesaGL-devel = %{version}-%{release}
276     Provides: MesaGL-devel = %{version}-%{release}
277 tv 88438 Provides: libgl-devel
278 pterjan 5340
279 tv 88433 %package -n %{libeglname}
280     Summary: Files for Mesa (EGL libs)
281     Group: System/Libraries
282     Provides: %{libeglname_virt} = %{version}-%{release}
283    
284     %package -n %{libeglname}-devel
285     Summary: Development files for Mesa (EGL libs)
286     Group: Development/C
287 tv 88439 Requires: %{libeglname} = %{version}-%{release}
288 akien 1339667 Requires: %{khrdevel} = %{version}-%{release}
289 tv 88433 Provides: EGL-devel
290 tv 88438 Provides: lib%{eglname}-devel
291     Provides: %{eglname}-devel
292     Provides: libegl-devel
293 tv 88433
294 akien 1339667 %package -n %{khrdevel}
295     Summary: Mesa Khronos development headers
296     Group: Development/C
297     Provides: mesakhr-devel = %{version}-%{release}
298    
299 anssi 278008 %package -n %{libosmesaname}
300     Summary: Mesa offscreen rendering library
301     Group: System/Libraries
302    
303     %package -n %{osmesadevel}
304     Summary: Development files for libosmesa
305     Group: Development/C
306     Requires: %{libosmesaname} = %{version}-%{release}
307     Provides: osmesa-devel = %{version}-%{release}
308    
309 mikala 112356 %package -n %{libglapiname}
310     Summary: Files for mesa (glapi libs)
311     Group: System/Libraries
312     Provides: %{libglapiname_virt} = %{version}-%{release}
313 tv 88442
314 mikala 112356 %package -n %{libglapiname}-devel
315     Summary: Development files for glapi libs
316     Group: Development/C
317     Requires: %{libglapiname_virt} = %{version}-%{release}
318     Provides: lib%{glapiname}-devel
319     Provides: %{libglapiname}-devel
320    
321 tv 1379341 %if 0%{?with_opencl}
322     %package -n %libclname
323     Summary: Mesa OpenCL runtime library
324     #Requires: libclc%{?_isa}
325     #Requires: %{name}-libgbm%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
326    
327     %package -n %libcldevel
328     Summary: Mesa OpenCL development package
329     Requires: %libclname%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
330     %endif
331    
332    
333 tv 88442 %package -n %{libglesv1name}
334     Summary: Files for Mesa (glesv1 libs)
335     Group: System/Libraries
336     Provides: %{libglesv1name_virt} = %{version}-%{release}
337    
338     %package -n %{libglesv1name}-devel
339     Summary: Development files for glesv1 libs
340     Group: Development/C
341     Requires: %{libglesv1name} = %{version}-%{release}
342 akien 1339667 Requires: %{khrdevel} = %{version}-%{release}
343 tv 88442 Provides: lib%{glesv1name}-devel
344     Provides: %{glesv1name}-devel
345     Provides: libglesv1-devel
346    
347     %package -n %{libglesv2name}
348     Summary: Files for Mesa (glesv2 libs)
349     Group: System/Libraries
350     Provides: %{libglesv2name_virt} = %{version}-%{release}
351    
352     %package -n %{libglesv2name}-devel
353     Summary: Development files for glesv2 libs
354     Group: Development/C
355     Requires: %{libglesv2name} = %{version}-%{release}
356 akien 1339667 Requires: %{khrdevel} = %{version}-%{release}
357 tv 88442 Provides: lib%{glesv2name}-devel
358     Provides: %{glesv2name}-devel
359     Provides: libglesv2-devel
360    
361 blino 215979 %package -n %{libgbmname}
362     Summary: Files for Mesa (gbm libs)
363     Group: System/Libraries
364     Provides: %{libgbmname_virt} = %{version}-%{release}
365    
366     %package -n %{libgbmname}-devel
367     Summary: Development files for Mesa (gbm libs)
368     Group: Development/C
369     Requires: %{libgbmname} = %{version}-%{release}
370     Provides: lib%{gbmname}-devel
371     Provides: %{gbmname}-devel
372    
373 tv 301233 %package -n %{_lib}vdpau-driver-nouveau
374 blino 270761 Summary: VDPAU plugin for nouveau driver
375 blino 300616 Group: System/Libraries
376 tv 302568 # temporary:
377     %rename vdpau-driver-nouveau
378 blino 270761
379 tv 799259 %package -n %{_lib}vdpau-driver-r300
380     Summary: VDPAU plugin for r300 driver
381     Group: System/Libraries
382     # temporary:
383     %rename vdpau-driver-r300
384    
385 tv 301233 %package -n %{_lib}vdpau-driver-r600
386 blino 270761 Summary: VDPAU plugin for r600 driver
387 blino 300616 Group: System/Libraries
388 tv 302568 # temporary:
389     %rename vdpau-driver-r600
390 blino 270761
391 tv 301233 %package -n %{_lib}vdpau-driver-radeonsi
392 blino 289282 Summary: VDPAU plugin for radeonsi driver
393     Group: System/Libraries
394 tv 302568 # temporary:
395     %rename vdpau-driver-radeonsi
396 blino 289282
397 tv 634669 %package -n %{libxaname}
398     Summary: Files for Mesa XA state tracker
399     Group: System/Libraries
400     Provides: %{libxaname_virt} = %{version}-%{release}
401    
402     %package -n %{libxaname}-devel
403     Summary: Development files for XA libs
404     Group: Development/C
405     Requires: %{libxaname_virt} = %{version}-%{release}
406     Provides: lib%{xaname}-devel
407     Provides: %{libxaname}-devel
408    
409 akien 1340049 %package -n %{vulkandrivers}
410     Summary: Mesa Vulkan driver for Intel and Radeon GPUs
411 akien 1041911 Group: System/Libraries
412 akien 1340049 %ifarch %{ix86} x86_64
413     Obsoletes: %{_lib}vulkan_intel < 18.3.0-4
414     Provides: %{_lib}vulkan_intel = %{version}-%{release}
415     %endif
416     Obsoletes: %{_lib}vulkan_radeon < 18.3.0-4
417     Provides: %{_lib}vulkan_radeon = %{version}-%{release}
418 akien 1041911
419 akien 1340049 %package -n %{vulkandevel}
420     Summary: Mesa's Vulkan development files for Intel and Radeon drivers
421 akien 1041911 Group: Development/C
422 akien 1340049 Requires: %{vulkandrivers} = %{version}-%{release}
423     Obsoletes: %{_lib}vulkan-devel < 0:18.3.0-4
424     Provides: %{vulkanname}-devel = %{version}-%{release}
425 akien 1041911
426 pterjan 5340 %package common-devel
427     Summary: Meta package for mesa devel
428     Group: Development/C
429 tv 88247 Provides: Mesa-common-devel = %{version}-%{release}
430 pterjan 5340 Provides: hackMesa-common-devel = %{version}
431 tv 88247 Obsoletes: Mesa-common-devel < %{version}
432 pterjan 5340 Obsoletes: hackMesa-common-devel < %{version}
433     Requires: %{libglname}-devel = %{version}
434 blino 289355 Requires: mesaglu-devel
435 tv 135156 Requires: freeglut-devel
436 tv 88442 Requires: %{libeglname}-devel = %{version}
437     Requires: %{libglesv1name}-devel = %{version}
438     Requires: %{libglesv2name}-devel = %{version}
439 pterjan 5340
440 tv 88440 #------------------------------------------------------------------------------
441 pterjan 5340
442     %description
443 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
444 pterjan 5340
445     %description common-devel
446     Mesa common metapackage devel
447    
448     %description -n %{libeglname}
449 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
450 pterjan 5340 EGL parts.
451    
452     %description -n %{libeglname}-devel
453 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
454 pterjan 5340 EGL development parts.
455    
456     %description -n %{libglname}
457 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
458 pterjan 5340 GL and GLX parts.
459    
460     %description -n %{dridrivers}
461 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
462 pterjan 5340 DRI drivers.
463    
464 tv 1379341 %if 0%{?with_omx}
465     %description omx-drivers
466     Mesa-based OMX drivers
467     %endif
468    
469 pterjan 5340 %description -n %{libglname}-devel
470 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
471 pterjan 5340
472     This package contains the headers needed to compile Mesa programs.
473    
474 tv 88442 %description -n %{libglesv1name}
475     OpenGL ES is a low-level, lightweight API for advanced embedded graphics using
476     well-defined subset profiles of OpenGL.
477    
478     This package provides the OpenGL ES library version 1.
479    
480 akien 1339667 %description -n %{khrdevel}
481     Mesa Khronos development headers.
482    
483 anssi 278008 %description -n %{libosmesaname}
484     Mesa offscreen rendering libraries for rendering OpenGL into
485     application-allocated blocks of memory.
486    
487     %description -n %{osmesadevel}
488     This package contains the headers needed to compile programs against
489     the Mesa offscreen rendering library.
490    
491 mikala 112356 %description -n %{libglapiname}
492     This packages provides the glapi shared library used by gallium.
493    
494     %description -n %{libglapiname}-devel
495     This package contains the headers needed to compile programes against glapi shared library.
496    
497 tv 1379341 %if 0%{?with_opencl}
498     %description -n %libclname
499     Mesa OpenCL runtime library
500    
501     %description -n %libcldevel
502     Mesa OpenCL development package
503     %endif
504    
505 tv 88442 %description -n %{libglesv1name}-devel
506     This package contains the headers needed to compile OpenGL ES 1 programs.
507    
508 tv 812143 %description -n %{libd3dname}
509     Mesa Direct3D9 state tracker.
510    
511     %description -n %{libd3dname}-devel
512     Mesa Direct3D9 state tracker development package.
513    
514 tv 88442 %description -n %{libglesv2name}
515     OpenGL ES is a low-level, lightweight API for advanced embedded graphics using
516     well-defined subset profiles of OpenGL.
517    
518     This package provides the OpenGL ES library version 2.
519    
520     %description -n %{libglesv2name}-devel
521     This package contains the headers needed to compile OpenGL ES 2 programs.
522    
523 blino 215979 %description -n %{libgbmname}
524 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
525 blino 215979 GBM (Graphics Buffer Manager) parts.
526    
527     %description -n %{libgbmname}-devel
528 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
529 blino 215979 GBM (Graphics Buffer Manager) development parts.
530    
531 tv 634669 %description -n %{libxaname}
532     This packages provides the xa shared library used by gallium.
533    
534     %description -n %{libxaname}-devel
535     This package contains the headers needed to compile programes against xa shared library.
536    
537 tv 301233 %description -n %{_lib}vdpau-driver-nouveau
538 blino 270761 This packages provides a VPDAU plugin to enable video acceleration
539     with the nouveau driver.
540    
541 tv 799259 %description -n %{_lib}vdpau-driver-r300
542     This packages provides a VPDAU plugin to enable video acceleration
543     with the r300 driver.
544    
545 tv 301233 %description -n %{_lib}vdpau-driver-r600
546 blino 270761 This packages provides a VPDAU plugin to enable video acceleration
547     with the r600 driver.
548    
549 tv 301233 %description -n %{_lib}vdpau-driver-radeonsi
550 blino 289282 This packages provides a VPDAU plugin to enable video acceleration
551     with the radeonsi driver.
552    
553 akien 1340049 %description -n %{vulkandrivers}
554     This package contains the Vulkan parts for Mesa's Intel and Radeon drivers.
555 akien 1041911
556 akien 1340049 %description -n %{vulkandevel}
557 akien 1041911 This package contains the development files for Mesa's Vulkan implementation.
558    
559 tv 88440 #------------------------------------------------------------------------------
560    
561 pterjan 5340 %prep
562 akien 1099119 %autosetup -n %{name}-%{version}%{?relc:-rc%{relc}} -p1
563 pterjan 5340
564     %build
565 tv 1379341 %meson -Dcpp_std=gnu++11 \
566     -Dplatforms=x11,wayland,drm,surfaceless \
567     -Ddri3=true \
568     -Ddri-drivers=%{?dri_drivers} \
569     %if 0%{?with_hardware}
570 tmb 1398091 -Dgallium-drivers=swrast,virgl,r300,nouveau%{?with_iris:,iris}%{?with_vmware:,svga}%{?with_radeonsi:,radeonsi,r600}%{?with_freedreno:,freedreno}%{?with_etnaviv:,etnaviv}%{?with_tegra:,tegra}%{?with_vc4:,vc4}%{?with_kmsro:,kmsro} \
571 tv 1379341 %else
572     -Dgallium-drivers=swrast,virgl \
573     %endif
574     -Dgallium-vdpau=%{?with_vdpau:true}%{!?with_vdpau:false} \
575     -Dgallium-xvmc=false \
576     -Dgallium-omx=%{?with_omx:bellagio}%{!?with_omx:disabled} \
577     -Dgallium-va=%{?with_vaapi:true}%{!?with_vaapi:false} \
578     -Dgallium-xa=%{?with_xa:true}%{!?with_xa:false} \
579     -Dgallium-nine=%{?with_nine:true}%{!?with_nine:false} \
580     -Dgallium-opencl=%{?with_opencl:icd}%{!?with_opencl:disabled} \
581     -Dvulkan-drivers=%{?vulkan_drivers} \
582     -Dshared-glapi=true \
583     -Dgles1=true \
584     -Dgles2=true \
585     -Dopengl=true \
586     -Dgbm=true \
587     -Dglx=dri \
588     -Degl=true \
589     -Dasm=%{?with_asm:true}%{!?with_asm:false} \
590     -Dllvm=true \
591     -Dshared-llvm=true \
592     -Dvalgrind=%{?with_valgrind:true}%{!?with_valgrind:false} \
593     -Dbuild-tests=false \
594 tv 1379343 -Dselinux=false \
595 tv 1379341 -Dosmesa=gallium \
596 akien 1389663 -Dgallium-extra-hud=true \
597     -Dlmsensors=true \
598 tv 1379341 %{nil}
599     %meson_build
600 cjw 336175
601 pterjan 5340 %install
602 tv 1379341 %meson_install
603 pterjan 5340
604 blino 216556 # FIXME: strip will likely break the hardlink
605 pterjan 5340 # (blino) hardlink libGL files in %{_libdir}/mesa
606     # to prevent proprietary driver installers from removing them
607     mkdir -p $RPM_BUILD_ROOT%{_libdir}/mesa
608     pushd $RPM_BUILD_ROOT%{_libdir}/mesa
609     for l in ../libGL.so.*; do cp -a $l .; done
610     popd
611    
612     %ifarch %{x86_64}
613     mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/dri
614     %endif
615    
616 tv 1051623 # libvdpau opens the versioned name, don't bother including the unversioned
617     rm -f %{buildroot}%{_libdir}/vdpau/*.so
618 blino 270761
619 tv 1051625 # strip out useless headers
620     rm -f %{buildroot}%{_includedir}/GL/w*.h
621    
622 tv 1051622 # remove .la files
623 tv 881746 find %{buildroot} -name '*.la' -delete
624 blino 271144
625 akien 1340092 %ifnarch %{ix86} x86_64
626     # To have something to package for mesavulkan-devel on arm/aarch64 for now
627     mkdir %{buildroot}%{_includedir}/vulkan
628     %endif
629    
630 tv 88440 #------------------------------------------------------------------------------
631    
632 pterjan 5340 %files
633 tv 1328786 /usr/share/drirc.d/
634 pterjan 5340
635     %files -n %{dridrivers}
636     %dir %{_libdir}/dri
637     %{_libdir}/dri/*_dri.so
638 tv 812142 %{_libdir}/dri/*_drv*.so
639 tv 1379341 %if 0%{?with_hardware}
640     %dir %{_libdir}/gallium-pipe
641     %{_libdir}/gallium-pipe/*.so
642     %endif
643 pterjan 5340
644 tv 1379341 %if 0%{?with_omx}
645     %files omx-drivers
646     %{_libdir}/bellagio/libomx_mesa.so
647     %endif
648    
649     %if 0%{?with_opencl}
650     %files -n %libclname
651     %{_libdir}/libMesaOpenCL.so.*
652     %{_sysconfdir}/OpenCL/vendors/mesa.icd
653    
654     %files -n %libcldevel
655     %{_libdir}/libMesaOpenCL.so
656     %endif
657    
658 tv 88433 %files -n %{libglname}
659     %{_libdir}/libGL.so.*
660     %dir %{_libdir}/mesa
661 ovitters 877635 %{_libdir}/mesa/libGL.so.%{glmajor}{,.*}
662 tv 88433
663     %files -n %{libeglname}
664 ovitters 877635 %{_libdir}/libEGL.so.%{eglmajor}{,.*}
665 tv 88433
666 anssi 278008 %files -n %{libosmesaname}
667 ovitters 877635 %{_libdir}/libOSMesa.so.%{osmesamajor}{,.*}
668 anssi 278008
669 mikala 112356 %files -n %{libglapiname}
670 ovitters 877635 %{_libdir}/libglapi.so.%{glapimajor}{,.*}
671 mikala 112356
672 tv 88442 %files -n %{libglesv1name}
673 ovitters 877635 %{_libdir}/libGLESv1_CM.so.%{glesv1major}{,.*}
674 tv 88442
675 tv 812143 %files -n %{libd3dname}
676     %{_libdir}/d3d/*.so.*
677    
678 tv 88442 %files -n %{libglesv2name}
679 ovitters 877635 %{_libdir}/libGLESv2.so.%{glesv2major}{,.*}
680 tv 88442
681 blino 215979 %files -n %{libgbmname}
682     %{_libdir}/libgbm.so.%{gbmmajor}
683 ovitters 878590 %{_libdir}/libgbm.so.%{gbmmajor}.*
684 tv 88445
685 tv 634669 %files -n %{libxaname}
686 ovitters 877635 %{_libdir}/libxatracker.so.%{xamajor}{,.*}
687 blino 215979
688 pterjan 5340 %files -n %{libglname}-devel
689 anssi 278008 %dir %{_includedir}/GL
690 pterjan 5340 %{_includedir}/GL/gl.h
691 tv 1051618 %{_includedir}/GL/gl_mangle.h
692 pterjan 5340 %{_includedir}/GL/glext.h
693     %{_includedir}/GL/glx.h
694 tv 1051618 %{_includedir}/GL/glx_mangle.h
695 pterjan 5340 %{_includedir}/GL/glxext.h
696 tv 1051618 %{_includedir}/GL/glcorearb.h
697     %dir %{_includedir}/GL/internal
698     %{_includedir}/GL/internal/dri_interface.h
699     %{_libdir}/pkgconfig/dri.pc
700 pterjan 5340 %{_libdir}/libGL.so
701 tv 88436 %{_libdir}/pkgconfig/gl.pc
702 pterjan 5340
703     %files common-devel
704 tv 1051614
705 tv 88433 %files -n %{libeglname}-devel
706 tv 88442 %{_includedir}/EGL
707 tv 88433 %{_libdir}/libEGL.so
708 tv 88436 %{_libdir}/pkgconfig/egl.pc
709 pterjan 5340
710 akien 1339667 %files -n %{khrdevel}
711     %{_includedir}/KHR
712    
713 anssi 278008 %files -n %{osmesadevel}
714     %dir %{_includedir}/GL
715     %{_includedir}/GL/osmesa.h
716     %{_libdir}/libOSMesa.so
717     %{_libdir}/pkgconfig/osmesa.pc
718    
719 mikala 112356 %files -n %{libglapiname}-devel
720     %{_libdir}/libglapi.so
721 pterjan 5340
722 tv 88442 %files -n %{libglesv1name}-devel
723     %{_includedir}/GLES
724     %{_libdir}/libGLESv1_CM.so
725     %{_libdir}/pkgconfig/glesv1_cm.pc
726 tv 88433
727 tv 88442 %files -n %{libglesv2name}-devel
728     %{_includedir}/GLES2
729 cjw 336175 %{_includedir}/GLES3
730 tv 88442 %{_libdir}/libGLESv2.so
731     %{_libdir}/pkgconfig/glesv2.pc
732 tv 88445
733 tv 812143 %files -n %{libd3dname}-devel
734     %{_includedir}/d3dadapter
735     %{_libdir}/d3d/*.so
736     %{_libdir}/pkgconfig/d3d.pc
737    
738 blino 215979 %files -n %{libgbmname}-devel
739 tv 1051618 %{_libdir}/libgbm.so
740 blino 215979 %{_includedir}/gbm.h
741     %{_libdir}/pkgconfig/gbm.pc
742    
743 tv 634669 %files -n %{libxaname}-devel
744     %{_libdir}/libxatracker.so
745     %{_includedir}/xa_tracker.h
746     %{_includedir}/xa_composite.h
747     %{_includedir}/xa_context.h
748     %{_libdir}/pkgconfig/xatracker.pc
749    
750 tv 301233 %files -n %{_lib}vdpau-driver-nouveau
751 blino 270761 %{_libdir}/vdpau/libvdpau_nouveau.so.*
752    
753 tv 799259 %files -n %{_lib}vdpau-driver-r300
754     %{_libdir}/vdpau/libvdpau_r300.so.*
755    
756 pterjan 1385846 %if 0%{?with_radeonsi}
757 tv 301233 %files -n %{_lib}vdpau-driver-r600
758 blino 270761 %{_libdir}/vdpau/libvdpau_r600.so.*
759    
760 tv 301233 %files -n %{_lib}vdpau-driver-radeonsi
761 blino 289282 %{_libdir}/vdpau/libvdpau_radeonsi.so.*
762 pterjan 1385846 %endif
763 akien 1041911
764 akien 1340049 %files -n %{vulkandrivers}
765 akien 1041911 %dir %{_datadir}/vulkan
766     %dir %{_datadir}/vulkan/icd.d
767 akien 1340049 %ifarch %{ix86} x86_64
768 ghibo 1065537 %{_datadir}/vulkan/icd.d/intel_icd*.json
769 akien 1041911 %{_libdir}/libvulkan_intel.so
770 akien 1340049 %endif
771 akien 1099595 %{_datadir}/vulkan/icd.d/radeon_icd*.json
772     %{_libdir}/libvulkan_radeon.so
773    
774 akien 1340049 %files -n %{vulkandevel}
775     %dir %{_includedir}/vulkan
776 akien 1340092 %ifarch %{ix86} x86_64
777 akien 1340049 %{_includedir}/vulkan/vulkan_intel.h
778 akien 1340092 %endif

  ViewVC Help
Powered by ViewVC 1.1.26