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

  ViewVC Help
Powered by ViewVC 1.1.26