/[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 1339690 - (hide annotations) (download)
Mon Dec 10 10:37:01 2018 UTC (7 months, 1 week ago) by akien
File size: 20726 byte(s)
Bump rel (SILENT)
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 tv 1198003 %define git_branch 18.0
10 mikala 112356
11 ghibo 1066639 %define opengl_ver 4.5
12 blino 289598
13 tmb 922766 # define version, RC & release
14 tv 1328786 %define main_version 18.3.0
15 tmb 1338779 #define relc 1
16 akien 1339690 %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 1041911 %define vulkanname vulkan
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 akien 1041911 %define libvulkanname %mklibname %{vulkanname}
66 pterjan 5340
67     %define dridrivers %mklibname dri-drivers
68    
69 akien 1339667 %define khrdevel %mklibname mesakhr -d
70 anssi 278008 %define osmesadevel %mklibname osmesa -d
71    
72 pterjan 5340 # Architecture-independent Virtual provides:
73 tv 812143 %define libd3dname_virt lib%{d3dname}
74 pterjan 5340 %define libeglname_virt lib%{eglname}
75     %define libglname_virt lib%{glname}
76     %define libglwname_virt lib%{glwname}
77 tv 88442 %define libglesv1name_virt lib%{glesv1name}
78     %define libglesv2name_virt lib%{glesv2name}
79 mikala 112356 %define libglapiname_virt lib%{glapiname}
80 blino 215979 %define libgbmname_virt lib%{gbmname}
81     %define libwaylandeglname_virt lib%{waylandeglname}
82 tv 634669 %define libxaname_virt lib%{xaname}
83 pterjan 5340
84     %define mesasrcdir %{_prefix}/src/Mesa/
85    
86 tv 1217642 %define with_vaapi 1
87 tv 1217640
88 akien 1041911 # (akien) Not adding on arm as it would break the build there
89     %define enable_vulkan 0
90     %ifarch %{ix86} x86_64
91     %define enable_vulkan 1
92     %endif
93    
94 neoclust 1216966
95     %ifarch %{arm} aarch64
96     %define with_etnaviv 1
97     %define with_freedreno 1
98     %define with_vc4 1
99     %endif
100    
101 tv 1051613 %define base_drivers swrast,nouveau,radeon,r200
102     %ifarch %{ix86} x86_64
103     %define platform_drivers ,i915,i965
104 cjw 1174481 %define gallium_platform_drivers ,svga
105 tv 1051613 %endif
106 tv 1219406
107     %define with_wayland_egl 0
108    
109 tv 1051613 %define dri_drivers --with-dri-drivers=%{?base_drivers}%{?platform_drivers}
110 pterjan 5340
111 ovitters 645737 Name: mesa
112 tmb 1039883 Version: %{main_version}
113 pterjan 5340 Release: %{release}
114 blino 289598 Summary: OpenGL %{opengl_ver} compatible 3D graphics library
115 pterjan 5340 Group: System/Libraries
116    
117 tmb 1095010 # temp force new gcc
118     BuildRequires: gcc >= 5.4.0-2
119    
120 mikala 127466 BuildRequires: pkgconfig(xfixes) >= 4.0.3
121 tv 585816 BuildRequires: pkgconfig(xshmfence)
122 mikala 127466 BuildRequires: pkgconfig(xt) >= 1.0.5
123     BuildRequires: pkgconfig(xmu) >= 1.0.3
124     BuildRequires: pkgconfig(x11) >= 1.3.3
125     BuildRequires: pkgconfig(xdamage) >= 1.1.1
126 ovitters 1145130 BuildRequires: pkgconfig(expat) >= 2.0.1
127 pterjan 5340 BuildRequires: gccmakedep
128     BuildRequires: x11-proto-devel >= 7.3
129 tmb 1211143 BuildRequires: pkgconfig(libdrm) >= 2.4.91
130 tv 585825 BuildRequires: pkgconfig(xcb-dri3)
131 blino 659717 BuildRequires: pkgconfig(xcb-present) >= 1.11
132 mikala 127466 BuildRequires: pkgconfig(xext) >= 1.1.1
133     BuildRequires: pkgconfig(xxf86vm) >= 1.1.0
134     BuildRequires: pkgconfig(xi) >= 1.3
135 tv 1253321 BuildRequires: pkgconfig(xrandr)
136 mikala 127466 BuildRequires: pkgconfig(talloc)
137 tv 1224299 BuildRequires: python2-libxml2
138     BuildRequires: python2-mako
139 tv 1213070 BuildRequires: python3-libxml2
140     BuildRequires: python3-mako
141 tmb 35532 BuildRequires: makedepend
142 tmb 920659 BuildRequires: bison
143 ovitters 645737 BuildRequires: flex
144 ovitters 1145130 BuildRequires: pkgconfig(libelf)
145 tmb 1095010 BuildRequires: llvm-devel >= 3.9.1-5
146 mikala 127466 BuildRequires: pkgconfig(libudev)
147 tv 1217640 %if 0%{?with_vaapi}
148 tv 812142 BuildRequires: pkgconfig(libva)
149 tv 1217640 %endif
150 blino 270761 BuildRequires: pkgconfig(vdpau)
151 tv 1214970 BuildRequires: pkgconfig(wayland-client)
152     BuildRequires: pkgconfig(wayland-server)
153     BuildRequires: pkgconfig(wayland-protocols)
154 tmb 1041913 %if %{enable_vulkan}
155     BuildRequires: libgcrypt-devel
156     %endif
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 1333397 # mesa staging/18.3 branch from 1
172 pterjan 5340
173 tmb 1257893 # mesa master branch from 101
174 tmb 1338948 Patch101: mesa-pci_ids-add-new-vega10-pci-ids.patch
175     Patch102: mesa-pci_ids-add-new-vega20-pci-id.patch
176 tmb 411326
177 pterjan 5340
178 tv 88440 #------------------------------------------------------------------------------
179    
180     # package mesa
181 pterjan 5340 License: MIT
182     Requires: %{libglname} = %{version}-%{release}
183     Provides: hackMesa = %{version}
184     Obsoletes: hackMesa <= %{version}
185     Provides: Mesa = %{version}
186     Obsoletes: Mesa < %{version}
187    
188     %package -n %{libglname}
189     Summary: Files for Mesa (GL and GLX libs)
190     Group: System/Libraries
191     Provides: %{libglname_virt} = %{version}-%{release}
192     Requires: %{dridrivers} >= %{version}-%{release}
193    
194     # (anssi) Forces the upgrade of x11-server-common to happen before
195     # alternatives removal, which allows x11-server-common to grab the symlink.
196     Conflicts: x11-server-common < 1.3.0.0-17
197    
198     %package -n %{dridrivers}
199     Summary: Mesa DRI drivers
200     Group: System/Libraries
201 blino 274132 # do not require exact release to avoid conflicts when having
202     # x86_64 dri drivers from tainted and i586 dri drivers from core
203     Requires: mesa = %{version}
204 pterjan 5340 Conflicts: %{_lib}MesaGL1 < 7.7-5
205 anssi 181478 Obsoletes: %{_lib}dri-drivers-experimental < 7.11.2-4
206     Provides: %{_lib}dri-drivers-experimental = %{version}-%{release}
207 pterjan 5340
208 tv 812143 %package -n %{libd3dname}
209     Summary: Mesa Direct3D9 state tracker
210     Group: System/Libraries
211     Provides: %{libd3dname_virt} = %{version}-%{release}
212    
213     %package -n %{libd3dname}-devel
214     Summary: Development files for Mesa Direct3D9 state tracker
215     Group: Development/C
216     Requires: %{libd3dname} = %{version}-%{release}
217     Provides: lib%{d3dname}-devel
218     Provides: %{d3dname}-devel
219     Provides: libd3d-devel
220    
221 pterjan 5340 %package -n %{libglname}-devel
222     Summary: Development files for Mesa (OpenGL compatible 3D lib)
223     Group: Development/C
224 tv 88237 Requires: %{libglname} = %{version}-%{release}
225 akien 1339667 Requires: %{khrdevel} = %{version}-%{release}
226 pterjan 5340 Provides: lib%{glname}-devel = %{version}-%{release}
227     Provides: %{glname}-devel = %{version}-%{release}
228     Provides: GL-devel
229     Provides: libMesaGL-devel = %{version}-%{release}
230     Provides: MesaGL-devel = %{version}-%{release}
231 tv 88438 Provides: libgl-devel
232 pterjan 5340
233 tv 88433 %package -n %{libeglname}
234     Summary: Files for Mesa (EGL libs)
235     Group: System/Libraries
236     Provides: %{libeglname_virt} = %{version}-%{release}
237    
238     %package -n %{libeglname}-devel
239     Summary: Development files for Mesa (EGL libs)
240     Group: Development/C
241 tv 88439 Requires: %{libeglname} = %{version}-%{release}
242 akien 1339667 Requires: %{khrdevel} = %{version}-%{release}
243 tv 88433 Provides: EGL-devel
244 tv 88438 Provides: lib%{eglname}-devel
245     Provides: %{eglname}-devel
246     Provides: libegl-devel
247 tv 88433
248 akien 1339667 %package -n %{khrdevel}
249     Summary: Mesa Khronos development headers
250     Group: Development/C
251     Provides: mesakhr-devel = %{version}-%{release}
252    
253 anssi 278008 %package -n %{libosmesaname}
254     Summary: Mesa offscreen rendering library
255     Group: System/Libraries
256    
257     %package -n %{osmesadevel}
258     Summary: Development files for libosmesa
259     Group: Development/C
260     Requires: %{libosmesaname} = %{version}-%{release}
261     Provides: osmesa-devel = %{version}-%{release}
262     Conflicts: MesaGL-devel < 8.1.0-0.git20120727.3
263    
264 mikala 112356 %package -n %{libglapiname}
265     Summary: Files for mesa (glapi libs)
266     Group: System/Libraries
267     Provides: %{libglapiname_virt} = %{version}-%{release}
268 tv 88442
269 mikala 112356 %package -n %{libglapiname}-devel
270     Summary: Development files for glapi libs
271     Group: Development/C
272     Requires: %{libglapiname_virt} = %{version}-%{release}
273     Provides: lib%{glapiname}-devel
274     Provides: %{libglapiname}-devel
275    
276 tv 88442 %package -n %{libglesv1name}
277     Summary: Files for Mesa (glesv1 libs)
278     Group: System/Libraries
279     Provides: %{libglesv1name_virt} = %{version}-%{release}
280    
281     %package -n %{libglesv1name}-devel
282     Summary: Development files for glesv1 libs
283     Group: Development/C
284     Requires: %{libglesv1name} = %{version}-%{release}
285 akien 1339667 Requires: %{khrdevel} = %{version}-%{release}
286 tv 88442 Provides: lib%{glesv1name}-devel
287     Provides: %{glesv1name}-devel
288     Provides: libglesv1-devel
289    
290     %package -n %{libglesv2name}
291     Summary: Files for Mesa (glesv2 libs)
292     Group: System/Libraries
293     Provides: %{libglesv2name_virt} = %{version}-%{release}
294    
295     %package -n %{libglesv2name}-devel
296     Summary: Development files for glesv2 libs
297     Group: Development/C
298     Requires: %{libglesv2name} = %{version}-%{release}
299 akien 1339667 Requires: %{khrdevel} = %{version}-%{release}
300 tv 88442 Provides: lib%{glesv2name}-devel
301     Provides: %{glesv2name}-devel
302     Provides: libglesv2-devel
303    
304 blino 215979 %package -n %{libgbmname}
305     Summary: Files for Mesa (gbm libs)
306     Group: System/Libraries
307     Provides: %{libgbmname_virt} = %{version}-%{release}
308    
309     %package -n %{libgbmname}-devel
310     Summary: Development files for Mesa (gbm libs)
311     Group: Development/C
312     Requires: %{libgbmname} = %{version}-%{release}
313     Provides: lib%{gbmname}-devel
314     Provides: %{gbmname}-devel
315    
316 tv 1219406 %if %{?with_wayland_egl}
317 blino 215979 %package -n %{libwaylandeglname}
318     Summary: Files for Mesa (Wayland EGL libs)
319     Group: System/Libraries
320     Provides: %{libwaylandeglname_virt} = %{version}-%{release}
321    
322     %package -n %{libwaylandeglname}-devel
323     Summary: Development files for Mesa (Wayland EGL libs)
324     Group: Development/C
325     Requires: %{libwaylandeglname} = %{version}-%{release}
326     Provides: lib%{waylandeglname}-devel
327     Provides: %{waylandeglname}-devel
328 tv 1214970 %endif
329 blino 215979
330 tv 301233 %package -n %{_lib}vdpau-driver-nouveau
331 blino 270761 Summary: VDPAU plugin for nouveau driver
332 blino 300616 Group: System/Libraries
333 tv 302568 # temporary:
334     %rename vdpau-driver-nouveau
335 blino 270761
336 tv 799259 %package -n %{_lib}vdpau-driver-r300
337     Summary: VDPAU plugin for r300 driver
338     Group: System/Libraries
339     # temporary:
340     %rename vdpau-driver-r300
341    
342 tv 301233 %package -n %{_lib}vdpau-driver-r600
343 blino 270761 Summary: VDPAU plugin for r600 driver
344 blino 300616 Group: System/Libraries
345 tv 302568 # temporary:
346     %rename vdpau-driver-r600
347 blino 270761
348 tv 301233 %package -n %{_lib}vdpau-driver-radeonsi
349 blino 289282 Summary: VDPAU plugin for radeonsi driver
350     Group: System/Libraries
351 tv 302568 # temporary:
352     %rename vdpau-driver-radeonsi
353 blino 289282
354 tv 634669 %package -n %{libxaname}
355     Summary: Files for Mesa XA state tracker
356     Group: System/Libraries
357     Provides: %{libxaname_virt} = %{version}-%{release}
358    
359     %package -n %{libxaname}-devel
360     Summary: Development files for XA libs
361     Group: Development/C
362     Requires: %{libxaname_virt} = %{version}-%{release}
363     Provides: lib%{xaname}-devel
364     Provides: %{libxaname}-devel
365    
366 akien 1041911 %if %{enable_vulkan}
367     %package -n %{libvulkanname}_intel
368     Summary: Mesa vulkan driver for Intel GPU
369     Group: System/Libraries
370    
371 akien 1099595 %package -n %{libvulkanname}_radeon
372     Summary: Mesa vulkan driver for Radeon GPU
373     Group: System/Libraries
374    
375 akien 1041911 %package -n %{libvulkanname}-devel
376     Summary: Mesa's Vulkan development files
377     Group: Development/C
378     Requires: %{libvulkanname}_intel = %{version}-%{release}
379     Provides: libvulkan-devel
380     Provides: libvulkan_intel-devel
381     %endif
382    
383 pterjan 5340 %package common-devel
384     Summary: Meta package for mesa devel
385     Group: Development/C
386 tv 88247 Provides: Mesa-common-devel = %{version}-%{release}
387 pterjan 5340 Provides: hackMesa-common-devel = %{version}
388 tv 88247 Obsoletes: Mesa-common-devel < %{version}
389 pterjan 5340 Obsoletes: hackMesa-common-devel < %{version}
390     Requires: %{libglname}-devel = %{version}
391 blino 289355 Requires: mesaglu-devel
392 tv 135156 Requires: freeglut-devel
393 tv 88442 Requires: %{libeglname}-devel = %{version}
394     Requires: %{libglesv1name}-devel = %{version}
395     Requires: %{libglesv2name}-devel = %{version}
396 pterjan 5340
397 tv 88440 #------------------------------------------------------------------------------
398 pterjan 5340
399     %description
400 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
401 pterjan 5340
402     %description common-devel
403     Mesa common metapackage devel
404    
405     %description -n %{libeglname}
406 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
407 pterjan 5340 EGL parts.
408    
409     %description -n %{libeglname}-devel
410 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
411 pterjan 5340 EGL development parts.
412    
413     %description -n %{libglname}
414 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
415 pterjan 5340 GL and GLX parts.
416    
417     %description -n %{dridrivers}
418 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
419 pterjan 5340 DRI drivers.
420    
421     %description -n %{libglname}-devel
422 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
423 pterjan 5340
424     This package contains the headers needed to compile Mesa programs.
425    
426 tv 88442 %description -n %{libglesv1name}
427     OpenGL ES is a low-level, lightweight API for advanced embedded graphics using
428     well-defined subset profiles of OpenGL.
429    
430     This package provides the OpenGL ES library version 1.
431    
432 akien 1339667 %description -n %{khrdevel}
433     Mesa Khronos development headers.
434    
435 anssi 278008 %description -n %{libosmesaname}
436     Mesa offscreen rendering libraries for rendering OpenGL into
437     application-allocated blocks of memory.
438    
439     %description -n %{osmesadevel}
440     This package contains the headers needed to compile programs against
441     the Mesa offscreen rendering library.
442    
443 mikala 112356 %description -n %{libglapiname}
444     This packages provides the glapi shared library used by gallium.
445    
446     %description -n %{libglapiname}-devel
447     This package contains the headers needed to compile programes against glapi shared library.
448    
449 tv 88442 %description -n %{libglesv1name}-devel
450     This package contains the headers needed to compile OpenGL ES 1 programs.
451    
452 tv 812143 %description -n %{libd3dname}
453     Mesa Direct3D9 state tracker.
454    
455     %description -n %{libd3dname}-devel
456     Mesa Direct3D9 state tracker development package.
457    
458 tv 88442 %description -n %{libglesv2name}
459     OpenGL ES is a low-level, lightweight API for advanced embedded graphics using
460     well-defined subset profiles of OpenGL.
461    
462     This package provides the OpenGL ES library version 2.
463    
464     %description -n %{libglesv2name}-devel
465     This package contains the headers needed to compile OpenGL ES 2 programs.
466    
467 blino 215979 %description -n %{libgbmname}
468 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
469 blino 215979 GBM (Graphics Buffer Manager) parts.
470    
471     %description -n %{libgbmname}-devel
472 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
473 blino 215979 GBM (Graphics Buffer Manager) development parts.
474    
475 tv 1219406 %if %{?with_wayland_egl}
476 blino 215979 %description -n %{libwaylandeglname}
477 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
478 blino 215979 Wayland EGL platform parts.
479    
480     %description -n %{libwaylandeglname}-devel
481 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
482 blino 215979 Wayland EGL platform development parts.
483 tv 1214970 %endif
484 blino 215979
485 tv 634669 %description -n %{libxaname}
486     This packages provides the xa shared library used by gallium.
487    
488     %description -n %{libxaname}-devel
489     This package contains the headers needed to compile programes against xa shared library.
490    
491 tv 301233 %description -n %{_lib}vdpau-driver-nouveau
492 blino 270761 This packages provides a VPDAU plugin to enable video acceleration
493     with the nouveau driver.
494    
495 tv 799259 %description -n %{_lib}vdpau-driver-r300
496     This packages provides a VPDAU plugin to enable video acceleration
497     with the r300 driver.
498    
499 tv 301233 %description -n %{_lib}vdpau-driver-r600
500 blino 270761 This packages provides a VPDAU plugin to enable video acceleration
501     with the r600 driver.
502    
503 tv 301233 %description -n %{_lib}vdpau-driver-radeonsi
504 blino 289282 This packages provides a VPDAU plugin to enable video acceleration
505     with the radeonsi driver.
506    
507 akien 1041911 %if %{enable_vulkan}
508     %description -n %{libvulkanname}_intel
509     This package contains the Vulkan parts for Mesa's Intel driver.
510    
511 akien 1099595 %description -n %{libvulkanname}_radeon
512     This package contains the Vulkan parts for Mesa's Radeon driver.
513    
514 akien 1041911 %description -n %{libvulkanname}-devel
515     This package contains the development files for Mesa's Vulkan implementation.
516     %endif
517    
518 tv 88440 #------------------------------------------------------------------------------
519    
520 pterjan 5340 %prep
521 akien 1099119 %autosetup -n %{name}-%{version}%{?relc:-rc%{relc}} -p1
522 pterjan 5340
523     %build
524 cjw 336175 # (re)generate auto* generated files using our autotools and libtoolize
525     autoreconf -vfi
526    
527 tv 551068 # for bin/test-driver:
528     automake --add-missing
529    
530 tv 1051650 %configure2_5x \
531 akien 1041911 %if %{enable_vulkan}
532 akien 1099595 --with-vulkan-drivers=intel,radeon \
533 akien 1041911 %endif
534 tv 1051646 --enable-gallium-osmesa \
535 tv 1051650 --with-dri-driverdir=%{_libdir}/dri \
536 pterjan 5340 --enable-egl \
537 tv 88442 --enable-gles1 \
538     --enable-gles2 \
539 blino 270761 --disable-xvmc \
540     --enable-vdpau \
541 tv 1217640 %{?with_vaapi:--enable-va} \
542 tv 1219406 --with-platforms=x11,drm,surfaceless,wayland \
543 tv 1051650 --enable-shared-glapi \
544     --enable-gbm \
545     --enable-glx \
546     --enable-glx-tls \
547     --enable-texture-float=yes \
548 tv 1140192 --enable-llvm \
549 tv 1051650 --enable-dri \
550 tv 634669 --enable-xa \
551 blino 897332 --enable-nine \
552 neoclust 1216966 --with-gallium-drivers=r300,r600,radeonsi,nouveau,swrast,%{?with_freedreno:freedreno,}%{?with_etnaviv:etnaviv,imx,}%{?with_vc4:vc4,}virgl%{?gallium_platform_drivers} \
553 tv 1051613 %{?dri_drivers}
554 blino 270723 # end of configure options
555 pterjan 5340
556 anssi 332631
557 anssi 165988 %make
558 pterjan 5340
559     %install
560 tv 1051611 %make_install
561 pterjan 5340
562 blino 216556 # FIXME: strip will likely break the hardlink
563 pterjan 5340 # (blino) hardlink libGL files in %{_libdir}/mesa
564     # to prevent proprietary driver installers from removing them
565     mkdir -p $RPM_BUILD_ROOT%{_libdir}/mesa
566     pushd $RPM_BUILD_ROOT%{_libdir}/mesa
567     for l in ../libGL.so.*; do cp -a $l .; done
568     popd
569    
570     %ifarch %{x86_64}
571     mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/dri
572     %endif
573    
574 tv 1051623 # libvdpau opens the versioned name, don't bother including the unversioned
575     rm -f %{buildroot}%{_libdir}/vdpau/*.so
576 blino 270761
577 tv 1051625 # strip out useless headers
578     rm -f %{buildroot}%{_includedir}/GL/w*.h
579    
580 tv 1051622 # remove .la files
581 tv 881746 find %{buildroot} -name '*.la' -delete
582 blino 271144
583 tv 1219406 # remove libwayland-egl on F28+ where it's built as part of wayland source package
584     %if !%{?with_wayland_egl}
585     rm -f %{buildroot}%{_libdir}/libwayland-egl.so*
586     rm -f %{buildroot}%{_libdir}/pkgconfig/wayland-egl.pc
587     %endif
588    
589 tv 88440 #------------------------------------------------------------------------------
590    
591 pterjan 5340 %files
592 tv 1328786 /usr/share/drirc.d/
593 pterjan 5340
594     %files -n %{dridrivers}
595     %dir %{_libdir}/dri
596     %{_libdir}/dri/*_dri.so
597 tv 812142 %{_libdir}/dri/*_drv*.so
598 pterjan 5340
599 tv 88433 %files -n %{libglname}
600     %{_libdir}/libGL.so.*
601     %dir %{_libdir}/mesa
602 ovitters 877635 %{_libdir}/mesa/libGL.so.%{glmajor}{,.*}
603 tv 88433
604     %files -n %{libeglname}
605 ovitters 877635 %{_libdir}/libEGL.so.%{eglmajor}{,.*}
606 tv 88433
607 anssi 278008 %files -n %{libosmesaname}
608 ovitters 877635 %{_libdir}/libOSMesa.so.%{osmesamajor}{,.*}
609 anssi 278008
610 mikala 112356 %files -n %{libglapiname}
611 ovitters 877635 %{_libdir}/libglapi.so.%{glapimajor}{,.*}
612 mikala 112356
613 tv 88442 %files -n %{libglesv1name}
614 ovitters 877635 %{_libdir}/libGLESv1_CM.so.%{glesv1major}{,.*}
615 tv 88442
616 tv 812143 %files -n %{libd3dname}
617     %{_libdir}/d3d/*.so.*
618    
619 tv 88442 %files -n %{libglesv2name}
620 ovitters 877635 %{_libdir}/libGLESv2.so.%{glesv2major}{,.*}
621 tv 88442
622 blino 215979 %files -n %{libgbmname}
623     %{_libdir}/libgbm.so.%{gbmmajor}
624 ovitters 878590 %{_libdir}/libgbm.so.%{gbmmajor}.*
625 tv 88445
626 tv 1219406 %if %{?with_wayland_egl}
627 blino 215979 %files -n %{libwaylandeglname}
628     %{_libdir}/libwayland-egl.so.%{waylandeglmajor}
629 ovitters 878590 %{_libdir}/libwayland-egl.so.%{waylandeglmajor}.*
630 tv 1214970 %endif
631 blino 215979
632 tv 634669 %files -n %{libxaname}
633 ovitters 877635 %{_libdir}/libxatracker.so.%{xamajor}{,.*}
634 blino 215979
635 pterjan 5340 %files -n %{libglname}-devel
636 anssi 278008 %dir %{_includedir}/GL
637 pterjan 5340 %{_includedir}/GL/gl.h
638 tv 1051618 %{_includedir}/GL/gl_mangle.h
639 pterjan 5340 %{_includedir}/GL/glext.h
640     %{_includedir}/GL/glx.h
641 tv 1051618 %{_includedir}/GL/glx_mangle.h
642 pterjan 5340 %{_includedir}/GL/glxext.h
643 tv 1051618 %{_includedir}/GL/glcorearb.h
644     %dir %{_includedir}/GL/internal
645     %{_includedir}/GL/internal/dri_interface.h
646     %{_libdir}/pkgconfig/dri.pc
647 pterjan 5340 %{_libdir}/libGL.so
648 tv 88436 %{_libdir}/pkgconfig/gl.pc
649 pterjan 5340
650     %files common-devel
651 tv 1051614
652 tv 88433 %files -n %{libeglname}-devel
653 tv 88442 %{_includedir}/EGL
654 tv 88433 %{_libdir}/libEGL.so
655 tv 88436 %{_libdir}/pkgconfig/egl.pc
656 pterjan 5340
657 akien 1339667 %files -n %{khrdevel}
658     %{_includedir}/KHR
659    
660 anssi 278008 %files -n %{osmesadevel}
661     %dir %{_includedir}/GL
662     %{_includedir}/GL/osmesa.h
663     %{_libdir}/libOSMesa.so
664     %{_libdir}/pkgconfig/osmesa.pc
665    
666 mikala 112356 %files -n %{libglapiname}-devel
667     %{_libdir}/libglapi.so
668 pterjan 5340
669 tv 88442 %files -n %{libglesv1name}-devel
670     %{_includedir}/GLES
671     %{_libdir}/libGLESv1_CM.so
672     %{_libdir}/pkgconfig/glesv1_cm.pc
673 tv 88433
674 tv 88442 %files -n %{libglesv2name}-devel
675     %{_includedir}/GLES2
676 cjw 336175 %{_includedir}/GLES3
677 tv 88442 %{_libdir}/libGLESv2.so
678     %{_libdir}/pkgconfig/glesv2.pc
679 tv 88445
680 tv 812143 %files -n %{libd3dname}-devel
681     %{_includedir}/d3dadapter
682     %{_libdir}/d3d/*.so
683     %{_libdir}/pkgconfig/d3d.pc
684    
685 blino 215979 %files -n %{libgbmname}-devel
686 tv 1051618 %{_libdir}/libgbm.so
687 blino 215979 %{_includedir}/gbm.h
688     %{_libdir}/pkgconfig/gbm.pc
689    
690 tv 1219406 %if %{?with_wayland_egl}
691 blino 215979 %files -n %{libwaylandeglname}-devel
692     %{_libdir}/libwayland-egl.so
693     %{_libdir}/pkgconfig/wayland-egl.pc
694 tv 1214970 %endif
695 blino 270761
696 tv 634669 %files -n %{libxaname}-devel
697     %{_libdir}/libxatracker.so
698     %{_includedir}/xa_tracker.h
699     %{_includedir}/xa_composite.h
700     %{_includedir}/xa_context.h
701     %{_libdir}/pkgconfig/xatracker.pc
702    
703 tv 301233 %files -n %{_lib}vdpau-driver-nouveau
704 blino 270761 %{_libdir}/vdpau/libvdpau_nouveau.so.*
705    
706 tv 799259 %files -n %{_lib}vdpau-driver-r300
707     %{_libdir}/vdpau/libvdpau_r300.so.*
708    
709 tv 301233 %files -n %{_lib}vdpau-driver-r600
710 blino 270761 %{_libdir}/vdpau/libvdpau_r600.so.*
711    
712 tv 301233 %files -n %{_lib}vdpau-driver-radeonsi
713 blino 289282 %{_libdir}/vdpau/libvdpau_radeonsi.so.*
714 akien 1041911
715     %if %{enable_vulkan}
716     %files -n %{libvulkanname}_intel
717     %dir %{_datadir}/vulkan
718     %dir %{_datadir}/vulkan/icd.d
719 ghibo 1065537 %{_datadir}/vulkan/icd.d/intel_icd*.json
720 akien 1041911 # (akien) No lib major?
721     %{_libdir}/libvulkan_intel.so
722    
723 akien 1099595 %files -n %{libvulkanname}_radeon
724     %dir %{_datadir}/vulkan
725     %dir %{_datadir}/vulkan/icd.d
726     %{_datadir}/vulkan/icd.d/radeon_icd*.json
727     # (akien) No lib major?
728     %{_libdir}/libvulkan_radeon.so
729    
730 akien 1041911 %files -n %{libvulkanname}-devel
731     %{_includedir}/vulkan/
732     %endif

  ViewVC Help
Powered by ViewVC 1.1.26