/[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 1379153 - (hide annotations) (download)
Wed Mar 20 09:55:12 2019 UTC (8 months, 3 weeks ago) by tmb
File size: 22276 byte(s)
add fixes from staging/19.0 branch
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 1379153 %define git_branch 19.0
10 mikala 112356
11 ghibo 1066639 %define opengl_ver 4.5
12 blino 289598
13 tmb 922766 # define version, RC & release
14 tv 1362043 %define main_version 19.0.0
15 tmb 1375854 #define relc 1
16 tmb 1379153 %define rel 3
17 pterjan 5340
18 tv 1140191 %define release %mkrel %{?relc:0.rc%{relc}.}%{rel}
19 pterjan 5340
20     %if %{git}
21 ghibo 1066639 %if %{?relc:1}%{!?relc:0}
22 tv 799294 %define release %mkrel 1~rc%{relc}.1.git%{git}.%{rel}
23 pterjan 5340 %else
24 ghibo 1066639 %define release 1.git%{git}.%{rel}
25 pterjan 5340 %endif
26     %endif
27    
28     %define makedepend %{_bindir}/gccmakedep
29    
30 tv 812143 %define d3dname d3d
31 pterjan 5340 %define eglname mesaegl
32     %define glname mesagl
33     %define glwname mesaglw
34 tv 88442 %define glesv1name mesaglesv1
35     %define glesv2name mesaglesv2
36 mikala 112356 %define glapiname glapi
37 blino 215979 %define gbmname gbm
38     %define waylandeglname wayland-egl
39 tv 634669 %define xaname xatracker
40 akien 1340049 %define vulkanname mesavulkan
41 tv 88442
42 tv 812143 %define d3dmajor 1
43 pterjan 5340 %define eglmajor 1
44     %define glmajor 1
45     %define glwmajor 1
46 tv 88442 %define glesv1major 1
47     %define glesv2major 2
48 mikala 112356 %define glapimajor 0
49 blino 215979 %define gbmmajor 1
50     %define waylandeglmajor 1
51 blino 289617 %define osmesamajor 8
52 tv 634669 %define xamajor 2
53 tv 88442
54 tv 812143 %define libd3dname %mklibname %{d3dname} %{d3dmajor}
55 pterjan 5340 %define libeglname %mklibname %{eglname} %{eglmajor}
56     %define libglname %mklibname %{glname} %{glmajor}
57     %define libglwname %mklibname %{glwname} %{glwmajor}
58 tv 88442 %define libglesv1name %mklibname %{glesv1name}_ %{glesv1major}
59     %define libglesv2name %mklibname %{glesv2name}_ %{glesv2major}
60 mikala 112356 %define libglapiname %mklibname %{glapiname} %{glapimajor}
61 blino 215979 %define libgbmname %mklibname %{gbmname} %{gbmmajor}
62     %define libwaylandeglname %mklibname %{waylandeglname} %{waylandeglmajor}
63 anssi 278008 %define libosmesaname %mklibname osmesa %{osmesamajor}
64 tv 634669 %define libxaname %mklibname %{xaname} %{xamajor}
65 pterjan 5340
66     %define dridrivers %mklibname dri-drivers
67    
68 akien 1340049 %define vulkandrivers %mklibname %{vulkanname}-drivers
69     %define vulkandevel %mklibname %{vulkanname} -d
70    
71 akien 1339667 %define khrdevel %mklibname mesakhr -d
72 anssi 278008 %define osmesadevel %mklibname osmesa -d
73    
74 pterjan 5340 # Architecture-independent Virtual provides:
75 tv 812143 %define libd3dname_virt lib%{d3dname}
76 pterjan 5340 %define libeglname_virt lib%{eglname}
77     %define libglname_virt lib%{glname}
78     %define libglwname_virt lib%{glwname}
79 tv 88442 %define libglesv1name_virt lib%{glesv1name}
80     %define libglesv2name_virt lib%{glesv2name}
81 mikala 112356 %define libglapiname_virt lib%{glapiname}
82 blino 215979 %define libgbmname_virt lib%{gbmname}
83     %define libwaylandeglname_virt lib%{waylandeglname}
84 tv 634669 %define libxaname_virt lib%{xaname}
85 pterjan 5340
86     %define mesasrcdir %{_prefix}/src/Mesa/
87    
88 tv 1217642 %define with_vaapi 1
89 tv 1217640
90 akien 1041911 %ifarch %{ix86} x86_64
91 akien 1340049 %define vulkan_drivers --with-vulkan-drivers=intel,radeon
92     %else
93     %define vulkan_drivers --with-vulkan-drivers=radeon
94 akien 1041911 %endif
95    
96 neoclust 1216966
97     %ifarch %{arm} aarch64
98     %define with_etnaviv 1
99     %define with_freedreno 1
100     %define with_vc4 1
101     %endif
102    
103 tv 1051613 %define base_drivers swrast,nouveau,radeon,r200
104     %ifarch %{ix86} x86_64
105     %define platform_drivers ,i915,i965
106 cjw 1174481 %define gallium_platform_drivers ,svga
107 tv 1051613 %endif
108 tv 1219406
109     %define with_wayland_egl 0
110    
111 tv 1051613 %define dri_drivers --with-dri-drivers=%{?base_drivers}%{?platform_drivers}
112 pterjan 5340
113 ovitters 645737 Name: mesa
114 tmb 1039883 Version: %{main_version}
115 pterjan 5340 Release: %{release}
116 blino 289598 Summary: OpenGL %{opengl_ver} compatible 3D graphics library
117 pterjan 5340 Group: System/Libraries
118    
119 tmb 1095010 # temp force new gcc
120     BuildRequires: gcc >= 5.4.0-2
121    
122 mikala 127466 BuildRequires: pkgconfig(xfixes) >= 4.0.3
123 tv 585816 BuildRequires: pkgconfig(xshmfence)
124 mikala 127466 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 ovitters 1145130 BuildRequires: pkgconfig(expat) >= 2.0.1
129 pterjan 5340 BuildRequires: gccmakedep
130     BuildRequires: x11-proto-devel >= 7.3
131 tmb 1211143 BuildRequires: pkgconfig(libdrm) >= 2.4.91
132 tv 585825 BuildRequires: pkgconfig(xcb-dri3)
133 blino 659717 BuildRequires: pkgconfig(xcb-present) >= 1.11
134 mikala 127466 BuildRequires: pkgconfig(xext) >= 1.1.1
135     BuildRequires: pkgconfig(xxf86vm) >= 1.1.0
136     BuildRequires: pkgconfig(xi) >= 1.3
137 tv 1253321 BuildRequires: pkgconfig(xrandr)
138 mikala 127466 BuildRequires: pkgconfig(talloc)
139 tv 1224299 BuildRequires: python2-libxml2
140     BuildRequires: python2-mako
141 tv 1213070 BuildRequires: python3-libxml2
142     BuildRequires: python3-mako
143 tmb 35532 BuildRequires: makedepend
144 tmb 920659 BuildRequires: bison
145 ovitters 645737 BuildRequires: flex
146 ovitters 1145130 BuildRequires: pkgconfig(libelf)
147 tmb 1095010 BuildRequires: llvm-devel >= 3.9.1-5
148 mikala 127466 BuildRequires: pkgconfig(libudev)
149 tv 1217640 %if 0%{?with_vaapi}
150 tv 812142 BuildRequires: pkgconfig(libva)
151 tv 1217640 %endif
152 blino 270761 BuildRequires: pkgconfig(vdpau)
153 tv 1214970 BuildRequires: pkgconfig(wayland-client)
154     BuildRequires: pkgconfig(wayland-server)
155     BuildRequires: pkgconfig(wayland-protocols)
156 tmb 1041913 BuildRequires: libgcrypt-devel
157 ovitters 1145130 BuildRequires: pkgconfig(wayland-protocols) >= 1.8
158 pterjan 5340
159     URL: http://www.mesa3d.org
160     %if %{git}
161 ghibo 1066639 #Source0: %{name}-%{git}.tar.bz2
162     # (blino) snapshot of 13.0 branch
163     Source0: %{name}-%{git_branch}-%{git}.tar.xz
164 pterjan 5340 %else
165 tmb 1107908 Source0: https://mesa.freedesktop.org/archive/mesa-%{main_version}%{?relc:-rc%{relc}}.tar.xz
166 pterjan 5340 %endif
167     Source3: make-git-snapshot.sh
168    
169 tmb 1333397 Patch000: fix-linking.patch
170 tv 1329069
171 tmb 1377591 # 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 tmb 1379153 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 pterjan 5340
195 tmb 1355920 # mesa master branch from 201
196 tmb 411326
197 tv 88440 #------------------------------------------------------------------------------
198    
199     # package mesa
200 pterjan 5340 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 blino 274132 # 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 pterjan 5340 Conflicts: %{_lib}MesaGL1 < 7.7-5
224 anssi 181478 Obsoletes: %{_lib}dri-drivers-experimental < 7.11.2-4
225     Provides: %{_lib}dri-drivers-experimental = %{version}-%{release}
226 pterjan 5340
227 tv 812143 %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 pterjan 5340 %package -n %{libglname}-devel
241     Summary: Development files for Mesa (OpenGL compatible 3D lib)
242     Group: Development/C
243 tv 88237 Requires: %{libglname} = %{version}-%{release}
244 akien 1339667 Requires: %{khrdevel} = %{version}-%{release}
245 pterjan 5340 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 tv 88438 Provides: libgl-devel
251 pterjan 5340
252 tv 88433 %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 tv 88439 Requires: %{libeglname} = %{version}-%{release}
261 akien 1339667 Requires: %{khrdevel} = %{version}-%{release}
262 tv 88433 Provides: EGL-devel
263 tv 88438 Provides: lib%{eglname}-devel
264     Provides: %{eglname}-devel
265     Provides: libegl-devel
266 tv 88433
267 akien 1339667 %package -n %{khrdevel}
268     Summary: Mesa Khronos development headers
269     Group: Development/C
270     Provides: mesakhr-devel = %{version}-%{release}
271    
272 anssi 278008 %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 mikala 112356 %package -n %{libglapiname}
284     Summary: Files for mesa (glapi libs)
285     Group: System/Libraries
286     Provides: %{libglapiname_virt} = %{version}-%{release}
287 tv 88442
288 mikala 112356 %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 tv 88442 %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 akien 1339667 Requires: %{khrdevel} = %{version}-%{release}
305 tv 88442 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 akien 1339667 Requires: %{khrdevel} = %{version}-%{release}
319 tv 88442 Provides: lib%{glesv2name}-devel
320     Provides: %{glesv2name}-devel
321     Provides: libglesv2-devel
322    
323 blino 215979 %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 tv 1219406 %if %{?with_wayland_egl}
336 blino 215979 %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 tv 1214970 %endif
348 blino 215979
349 tv 301233 %package -n %{_lib}vdpau-driver-nouveau
350 blino 270761 Summary: VDPAU plugin for nouveau driver
351 blino 300616 Group: System/Libraries
352 tv 302568 # temporary:
353     %rename vdpau-driver-nouveau
354 blino 270761
355 tv 799259 %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 tv 301233 %package -n %{_lib}vdpau-driver-r600
362 blino 270761 Summary: VDPAU plugin for r600 driver
363 blino 300616 Group: System/Libraries
364 tv 302568 # temporary:
365     %rename vdpau-driver-r600
366 blino 270761
367 tv 301233 %package -n %{_lib}vdpau-driver-radeonsi
368 blino 289282 Summary: VDPAU plugin for radeonsi driver
369     Group: System/Libraries
370 tv 302568 # temporary:
371     %rename vdpau-driver-radeonsi
372 blino 289282
373 tv 634669 %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 akien 1340049 %package -n %{vulkandrivers}
386     Summary: Mesa Vulkan driver for Intel and Radeon GPUs
387 akien 1041911 Group: System/Libraries
388 akien 1340049 %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 akien 1041911
395 akien 1340049 %package -n %{vulkandevel}
396     Summary: Mesa's Vulkan development files for Intel and Radeon drivers
397 akien 1041911 Group: Development/C
398 akien 1340049 Requires: %{vulkandrivers} = %{version}-%{release}
399     Obsoletes: %{_lib}vulkan-devel < 0:18.3.0-4
400     Provides: %{vulkanname}-devel = %{version}-%{release}
401 akien 1041911
402 pterjan 5340 %package common-devel
403     Summary: Meta package for mesa devel
404     Group: Development/C
405 tv 88247 Provides: Mesa-common-devel = %{version}-%{release}
406 pterjan 5340 Provides: hackMesa-common-devel = %{version}
407 tv 88247 Obsoletes: Mesa-common-devel < %{version}
408 pterjan 5340 Obsoletes: hackMesa-common-devel < %{version}
409     Requires: %{libglname}-devel = %{version}
410 blino 289355 Requires: mesaglu-devel
411 tv 135156 Requires: freeglut-devel
412 tv 88442 Requires: %{libeglname}-devel = %{version}
413     Requires: %{libglesv1name}-devel = %{version}
414     Requires: %{libglesv2name}-devel = %{version}
415 pterjan 5340
416 tv 88440 #------------------------------------------------------------------------------
417 pterjan 5340
418     %description
419 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
420 pterjan 5340
421     %description common-devel
422     Mesa common metapackage devel
423    
424     %description -n %{libeglname}
425 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
426 pterjan 5340 EGL parts.
427    
428     %description -n %{libeglname}-devel
429 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
430 pterjan 5340 EGL development parts.
431    
432     %description -n %{libglname}
433 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
434 pterjan 5340 GL and GLX parts.
435    
436     %description -n %{dridrivers}
437 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
438 pterjan 5340 DRI drivers.
439    
440     %description -n %{libglname}-devel
441 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
442 pterjan 5340
443     This package contains the headers needed to compile Mesa programs.
444    
445 tv 88442 %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 akien 1339667 %description -n %{khrdevel}
452     Mesa Khronos development headers.
453    
454 anssi 278008 %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 mikala 112356 %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 tv 88442 %description -n %{libglesv1name}-devel
469     This package contains the headers needed to compile OpenGL ES 1 programs.
470    
471 tv 812143 %description -n %{libd3dname}
472     Mesa Direct3D9 state tracker.
473    
474     %description -n %{libd3dname}-devel
475     Mesa Direct3D9 state tracker development package.
476    
477 tv 88442 %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 blino 215979 %description -n %{libgbmname}
487 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
488 blino 215979 GBM (Graphics Buffer Manager) parts.
489    
490     %description -n %{libgbmname}-devel
491 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
492 blino 215979 GBM (Graphics Buffer Manager) development parts.
493    
494 tv 1219406 %if %{?with_wayland_egl}
495 blino 215979 %description -n %{libwaylandeglname}
496 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
497 blino 215979 Wayland EGL platform parts.
498    
499     %description -n %{libwaylandeglname}-devel
500 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
501 blino 215979 Wayland EGL platform development parts.
502 tv 1214970 %endif
503 blino 215979
504 tv 634669 %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 tv 301233 %description -n %{_lib}vdpau-driver-nouveau
511 blino 270761 This packages provides a VPDAU plugin to enable video acceleration
512     with the nouveau driver.
513    
514 tv 799259 %description -n %{_lib}vdpau-driver-r300
515     This packages provides a VPDAU plugin to enable video acceleration
516     with the r300 driver.
517    
518 tv 301233 %description -n %{_lib}vdpau-driver-r600
519 blino 270761 This packages provides a VPDAU plugin to enable video acceleration
520     with the r600 driver.
521    
522 tv 301233 %description -n %{_lib}vdpau-driver-radeonsi
523 blino 289282 This packages provides a VPDAU plugin to enable video acceleration
524     with the radeonsi driver.
525    
526 akien 1340049 %description -n %{vulkandrivers}
527     This package contains the Vulkan parts for Mesa's Intel and Radeon drivers.
528 akien 1041911
529 akien 1340049 %description -n %{vulkandevel}
530 akien 1041911 This package contains the development files for Mesa's Vulkan implementation.
531    
532 tv 88440 #------------------------------------------------------------------------------
533    
534 pterjan 5340 %prep
535 akien 1099119 %autosetup -n %{name}-%{version}%{?relc:-rc%{relc}} -p1
536 pterjan 5340
537     %build
538 cjw 336175 # (re)generate auto* generated files using our autotools and libtoolize
539     autoreconf -vfi
540    
541 tv 551068 # for bin/test-driver:
542     automake --add-missing
543    
544 tv 1051650 %configure2_5x \
545 tv 1051646 --enable-gallium-osmesa \
546 tv 1051650 --with-dri-driverdir=%{_libdir}/dri \
547 pterjan 5340 --enable-egl \
548 tv 88442 --enable-gles1 \
549     --enable-gles2 \
550 blino 270761 --disable-xvmc \
551     --enable-vdpau \
552 tv 1217640 %{?with_vaapi:--enable-va} \
553 tv 1219406 --with-platforms=x11,drm,surfaceless,wayland \
554 tv 1051650 --enable-shared-glapi \
555     --enable-gbm \
556     --enable-glx \
557     --enable-glx-tls \
558     --enable-texture-float=yes \
559 tv 1140192 --enable-llvm \
560 tv 1051650 --enable-dri \
561 tv 634669 --enable-xa \
562 blino 897332 --enable-nine \
563 tv 1362044 --enable-autotools \
564 tv 1362088 --with-gallium-drivers=r300,r600,radeonsi,nouveau,swrast,%{?with_freedreno:freedreno,}%{?with_etnaviv:etnaviv,}%{?with_vc4:vc4,}virgl%{?gallium_platform_drivers} \
565 akien 1340049 %{?vulkan_drivers} \
566 tv 1051613 %{?dri_drivers}
567 blino 270723 # end of configure options
568 pterjan 5340
569 anssi 332631
570 anssi 165988 %make
571 pterjan 5340
572     %install
573 tv 1051611 %make_install
574 pterjan 5340
575 blino 216556 # FIXME: strip will likely break the hardlink
576 pterjan 5340 # (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 tv 1051623 # libvdpau opens the versioned name, don't bother including the unversioned
588     rm -f %{buildroot}%{_libdir}/vdpau/*.so
589 blino 270761
590 tv 1051625 # strip out useless headers
591     rm -f %{buildroot}%{_includedir}/GL/w*.h
592    
593 tv 1051622 # remove .la files
594 tv 881746 find %{buildroot} -name '*.la' -delete
595 blino 271144
596 tv 1219406 # 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 akien 1340092 %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 tv 88440 #------------------------------------------------------------------------------
608    
609 pterjan 5340 %files
610 tv 1328786 /usr/share/drirc.d/
611 pterjan 5340
612     %files -n %{dridrivers}
613     %dir %{_libdir}/dri
614     %{_libdir}/dri/*_dri.so
615 tv 812142 %{_libdir}/dri/*_drv*.so
616 pterjan 5340
617 tv 88433 %files -n %{libglname}
618     %{_libdir}/libGL.so.*
619     %dir %{_libdir}/mesa
620 ovitters 877635 %{_libdir}/mesa/libGL.so.%{glmajor}{,.*}
621 tv 88433
622     %files -n %{libeglname}
623 ovitters 877635 %{_libdir}/libEGL.so.%{eglmajor}{,.*}
624 tv 88433
625 anssi 278008 %files -n %{libosmesaname}
626 ovitters 877635 %{_libdir}/libOSMesa.so.%{osmesamajor}{,.*}
627 anssi 278008
628 mikala 112356 %files -n %{libglapiname}
629 ovitters 877635 %{_libdir}/libglapi.so.%{glapimajor}{,.*}
630 mikala 112356
631 tv 88442 %files -n %{libglesv1name}
632 ovitters 877635 %{_libdir}/libGLESv1_CM.so.%{glesv1major}{,.*}
633 tv 88442
634 tv 812143 %files -n %{libd3dname}
635     %{_libdir}/d3d/*.so.*
636    
637 tv 88442 %files -n %{libglesv2name}
638 ovitters 877635 %{_libdir}/libGLESv2.so.%{glesv2major}{,.*}
639 tv 88442
640 blino 215979 %files -n %{libgbmname}
641     %{_libdir}/libgbm.so.%{gbmmajor}
642 ovitters 878590 %{_libdir}/libgbm.so.%{gbmmajor}.*
643 tv 88445
644 tv 1219406 %if %{?with_wayland_egl}
645 blino 215979 %files -n %{libwaylandeglname}
646     %{_libdir}/libwayland-egl.so.%{waylandeglmajor}
647 ovitters 878590 %{_libdir}/libwayland-egl.so.%{waylandeglmajor}.*
648 tv 1214970 %endif
649 blino 215979
650 tv 634669 %files -n %{libxaname}
651 ovitters 877635 %{_libdir}/libxatracker.so.%{xamajor}{,.*}
652 blino 215979
653 pterjan 5340 %files -n %{libglname}-devel
654 anssi 278008 %dir %{_includedir}/GL
655 pterjan 5340 %{_includedir}/GL/gl.h
656 tv 1051618 %{_includedir}/GL/gl_mangle.h
657 pterjan 5340 %{_includedir}/GL/glext.h
658     %{_includedir}/GL/glx.h
659 tv 1051618 %{_includedir}/GL/glx_mangle.h
660 pterjan 5340 %{_includedir}/GL/glxext.h
661 tv 1051618 %{_includedir}/GL/glcorearb.h
662     %dir %{_includedir}/GL/internal
663     %{_includedir}/GL/internal/dri_interface.h
664     %{_libdir}/pkgconfig/dri.pc
665 pterjan 5340 %{_libdir}/libGL.so
666 tv 88436 %{_libdir}/pkgconfig/gl.pc
667 pterjan 5340
668     %files common-devel
669 tv 1051614
670 tv 88433 %files -n %{libeglname}-devel
671 tv 88442 %{_includedir}/EGL
672 tv 88433 %{_libdir}/libEGL.so
673 tv 88436 %{_libdir}/pkgconfig/egl.pc
674 pterjan 5340
675 akien 1339667 %files -n %{khrdevel}
676     %{_includedir}/KHR
677    
678 anssi 278008 %files -n %{osmesadevel}
679     %dir %{_includedir}/GL
680     %{_includedir}/GL/osmesa.h
681     %{_libdir}/libOSMesa.so
682     %{_libdir}/pkgconfig/osmesa.pc
683    
684 mikala 112356 %files -n %{libglapiname}-devel
685     %{_libdir}/libglapi.so
686 pterjan 5340
687 tv 88442 %files -n %{libglesv1name}-devel
688     %{_includedir}/GLES
689     %{_libdir}/libGLESv1_CM.so
690     %{_libdir}/pkgconfig/glesv1_cm.pc
691 tv 88433
692 tv 88442 %files -n %{libglesv2name}-devel
693     %{_includedir}/GLES2
694 cjw 336175 %{_includedir}/GLES3
695 tv 88442 %{_libdir}/libGLESv2.so
696     %{_libdir}/pkgconfig/glesv2.pc
697 tv 88445
698 tv 812143 %files -n %{libd3dname}-devel
699     %{_includedir}/d3dadapter
700     %{_libdir}/d3d/*.so
701     %{_libdir}/pkgconfig/d3d.pc
702    
703 blino 215979 %files -n %{libgbmname}-devel
704 tv 1051618 %{_libdir}/libgbm.so
705 blino 215979 %{_includedir}/gbm.h
706     %{_libdir}/pkgconfig/gbm.pc
707    
708 tv 1219406 %if %{?with_wayland_egl}
709 blino 215979 %files -n %{libwaylandeglname}-devel
710     %{_libdir}/libwayland-egl.so
711     %{_libdir}/pkgconfig/wayland-egl.pc
712 tv 1214970 %endif
713 blino 270761
714 tv 634669 %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 tv 301233 %files -n %{_lib}vdpau-driver-nouveau
722 blino 270761 %{_libdir}/vdpau/libvdpau_nouveau.so.*
723    
724 tv 799259 %files -n %{_lib}vdpau-driver-r300
725     %{_libdir}/vdpau/libvdpau_r300.so.*
726    
727 tv 301233 %files -n %{_lib}vdpau-driver-r600
728 blino 270761 %{_libdir}/vdpau/libvdpau_r600.so.*
729    
730 tv 301233 %files -n %{_lib}vdpau-driver-radeonsi
731 blino 289282 %{_libdir}/vdpau/libvdpau_radeonsi.so.*
732 akien 1041911
733 akien 1340049 %files -n %{vulkandrivers}
734 akien 1041911 %dir %{_datadir}/vulkan
735     %dir %{_datadir}/vulkan/icd.d
736 akien 1340049 %ifarch %{ix86} x86_64
737 ghibo 1065537 %{_datadir}/vulkan/icd.d/intel_icd*.json
738 akien 1041911 %{_libdir}/libvulkan_intel.so
739 akien 1340049 %endif
740 akien 1099595 %{_datadir}/vulkan/icd.d/radeon_icd*.json
741     %{_libdir}/libvulkan_radeon.so
742    
743 akien 1340049 %files -n %{vulkandevel}
744     %dir %{_includedir}/vulkan
745 akien 1340092 %ifarch %{ix86} x86_64
746 akien 1340049 %{_includedir}/vulkan/vulkan_intel.h
747 akien 1340092 %endif

  ViewVC Help
Powered by ViewVC 1.1.26