/[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 1328786 - (hide annotations) (download)
Wed Nov 7 16:00:08 2018 UTC (13 months, 1 week ago) by tv
File size: 20422 byte(s)
18.3.0 RC1

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     %define relc 1
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 tmb 411326
174 pterjan 5340
175 tv 88440 #------------------------------------------------------------------------------
176    
177     # package mesa
178 pterjan 5340 License: MIT
179     Requires: %{libglname} = %{version}-%{release}
180     Provides: hackMesa = %{version}
181     Obsoletes: hackMesa <= %{version}
182     Provides: Mesa = %{version}
183     Obsoletes: Mesa < %{version}
184    
185     %package -n %{libglname}
186     Summary: Files for Mesa (GL and GLX libs)
187     Group: System/Libraries
188 tv 88247 Obsoletes: %{oldlibglname} < 6.4
189 pterjan 5340 Provides: %{oldlibglname} = %{version}-%{release}
190     Provides: %{libglname_virt} = %{version}-%{release}
191     Requires: %{dridrivers} >= %{version}-%{release}
192    
193     # (anssi) Forces the upgrade of x11-server-common to happen before
194     # alternatives removal, which allows x11-server-common to grab the symlink.
195     Conflicts: x11-server-common < 1.3.0.0-17
196    
197     %package -n %{dridrivers}
198     Summary: Mesa DRI drivers
199     Group: System/Libraries
200 blino 274132 # do not require exact release to avoid conflicts when having
201     # x86_64 dri drivers from tainted and i586 dri drivers from core
202     Requires: mesa = %{version}
203 pterjan 5340 Conflicts: %{_lib}MesaGL1 < 7.7-5
204 anssi 181478 Obsoletes: %{_lib}dri-drivers-experimental < 7.11.2-4
205     Provides: %{_lib}dri-drivers-experimental = %{version}-%{release}
206 pterjan 5340
207 tv 812143 %package -n %{libd3dname}
208     Summary: Mesa Direct3D9 state tracker
209     Group: System/Libraries
210     Provides: %{libd3dname_virt} = %{version}-%{release}
211    
212     %package -n %{libd3dname}-devel
213     Summary: Development files for Mesa Direct3D9 state tracker
214     Group: Development/C
215     Requires: %{libd3dname} = %{version}-%{release}
216     Provides: lib%{d3dname}-devel
217     Provides: %{d3dname}-devel
218     Provides: libd3d-devel
219    
220 pterjan 5340 %package -n %{libglname}-devel
221     Summary: Development files for Mesa (OpenGL compatible 3D lib)
222     Group: Development/C
223 tv 88237 Requires: %{libglname} = %{version}-%{release}
224 pterjan 5340 Provides: lib%{glname}-devel = %{version}-%{release}
225     Provides: %{glname}-devel = %{version}-%{release}
226     Provides: GL-devel
227     Obsoletes: %{oldlibglname}-devel < 6.4
228     Provides: %{oldlibglname}-devel = %{version}-%{release}
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 tv 88433 Provides: EGL-devel
243 tv 88438 Provides: lib%{eglname}-devel
244     Provides: %{eglname}-devel
245     Provides: libegl-devel
246 tv 88433
247 anssi 278008 %package -n %{libosmesaname}
248     Summary: Mesa offscreen rendering library
249     Group: System/Libraries
250    
251     %package -n %{osmesadevel}
252     Summary: Development files for libosmesa
253     Group: Development/C
254     Requires: %{libosmesaname} = %{version}-%{release}
255     Provides: osmesa-devel = %{version}-%{release}
256     Conflicts: MesaGL-devel < 8.1.0-0.git20120727.3
257    
258 mikala 112356 %package -n %{libglapiname}
259     Summary: Files for mesa (glapi libs)
260     Group: System/Libraries
261     Provides: %{libglapiname_virt} = %{version}-%{release}
262 tv 88442
263 mikala 112356 %package -n %{libglapiname}-devel
264     Summary: Development files for glapi libs
265     Group: Development/C
266     Requires: %{libglapiname_virt} = %{version}-%{release}
267     Provides: lib%{glapiname}-devel
268     Provides: %{libglapiname}-devel
269    
270 tv 88442 %package -n %{libglesv1name}
271     Summary: Files for Mesa (glesv1 libs)
272     Group: System/Libraries
273     Provides: %{libglesv1name_virt} = %{version}-%{release}
274    
275     %package -n %{libglesv1name}-devel
276     Summary: Development files for glesv1 libs
277     Group: Development/C
278     Requires: %{libglesv1name} = %{version}-%{release}
279     Provides: lib%{glesv1name}-devel
280     Provides: %{glesv1name}-devel
281     Provides: libglesv1-devel
282    
283     %package -n %{libglesv2name}
284     Summary: Files for Mesa (glesv2 libs)
285     Group: System/Libraries
286     Provides: %{libglesv2name_virt} = %{version}-%{release}
287    
288     %package -n %{libglesv2name}-devel
289     Summary: Development files for glesv2 libs
290     Group: Development/C
291     Requires: %{libglesv2name} = %{version}-%{release}
292 blino 216556 Requires: %{libeglname}-devel = %{version}-%{release}
293 tv 88442 Provides: lib%{glesv2name}-devel
294     Provides: %{glesv2name}-devel
295     Provides: libglesv2-devel
296    
297 blino 215979 %package -n %{libgbmname}
298     Summary: Files for Mesa (gbm libs)
299     Group: System/Libraries
300     Provides: %{libgbmname_virt} = %{version}-%{release}
301    
302     %package -n %{libgbmname}-devel
303     Summary: Development files for Mesa (gbm libs)
304     Group: Development/C
305     Requires: %{libgbmname} = %{version}-%{release}
306     Provides: lib%{gbmname}-devel
307     Provides: %{gbmname}-devel
308    
309 tv 1219406 %if %{?with_wayland_egl}
310 blino 215979 %package -n %{libwaylandeglname}
311     Summary: Files for Mesa (Wayland EGL libs)
312     Group: System/Libraries
313     Provides: %{libwaylandeglname_virt} = %{version}-%{release}
314    
315     %package -n %{libwaylandeglname}-devel
316     Summary: Development files for Mesa (Wayland EGL libs)
317     Group: Development/C
318     Requires: %{libwaylandeglname} = %{version}-%{release}
319     Provides: lib%{waylandeglname}-devel
320     Provides: %{waylandeglname}-devel
321 tv 1214970 %endif
322 blino 215979
323 tv 301233 %package -n %{_lib}vdpau-driver-nouveau
324 blino 270761 Summary: VDPAU plugin for nouveau driver
325 blino 300616 Group: System/Libraries
326 tv 302568 # temporary:
327     %rename vdpau-driver-nouveau
328 blino 270761
329 tv 799259 %package -n %{_lib}vdpau-driver-r300
330     Summary: VDPAU plugin for r300 driver
331     Group: System/Libraries
332     # temporary:
333     %rename vdpau-driver-r300
334    
335 tv 301233 %package -n %{_lib}vdpau-driver-r600
336 blino 270761 Summary: VDPAU plugin for r600 driver
337 blino 300616 Group: System/Libraries
338 tv 302568 # temporary:
339     %rename vdpau-driver-r600
340 blino 270761
341 tv 301233 %package -n %{_lib}vdpau-driver-radeonsi
342 blino 289282 Summary: VDPAU plugin for radeonsi driver
343     Group: System/Libraries
344 tv 302568 # temporary:
345     %rename vdpau-driver-radeonsi
346 blino 289282
347 tv 634669 %package -n %{libxaname}
348     Summary: Files for Mesa XA state tracker
349     Group: System/Libraries
350     Provides: %{libxaname_virt} = %{version}-%{release}
351    
352     %package -n %{libxaname}-devel
353     Summary: Development files for XA libs
354     Group: Development/C
355     Requires: %{libxaname_virt} = %{version}-%{release}
356     Provides: lib%{xaname}-devel
357     Provides: %{libxaname}-devel
358    
359 akien 1041911 %if %{enable_vulkan}
360     %package -n %{libvulkanname}_intel
361     Summary: Mesa vulkan driver for Intel GPU
362     Group: System/Libraries
363    
364 akien 1099595 %package -n %{libvulkanname}_radeon
365     Summary: Mesa vulkan driver for Radeon GPU
366     Group: System/Libraries
367    
368 akien 1041911 %package -n %{libvulkanname}-devel
369     Summary: Mesa's Vulkan development files
370     Group: Development/C
371     Requires: %{libvulkanname}_intel = %{version}-%{release}
372     Provides: libvulkan-devel
373     Provides: libvulkan_intel-devel
374     %endif
375    
376 pterjan 5340 %package common-devel
377     Summary: Meta package for mesa devel
378     Group: Development/C
379 tv 88247 Provides: Mesa-common-devel = %{version}-%{release}
380 pterjan 5340 Provides: hackMesa-common-devel = %{version}
381 tv 88247 Obsoletes: Mesa-common-devel < %{version}
382 pterjan 5340 Obsoletes: hackMesa-common-devel < %{version}
383     Requires: %{libglname}-devel = %{version}
384 blino 289355 Requires: mesaglu-devel
385 tv 135156 Requires: freeglut-devel
386 tv 88442 Requires: %{libeglname}-devel = %{version}
387     Requires: %{libglesv1name}-devel = %{version}
388     Requires: %{libglesv2name}-devel = %{version}
389 pterjan 5340
390 tv 88440 #------------------------------------------------------------------------------
391 pterjan 5340
392     %description
393 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
394 pterjan 5340
395     %description common-devel
396     Mesa common metapackage devel
397    
398     %description -n %{libeglname}
399 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
400 pterjan 5340 EGL parts.
401    
402     %description -n %{libeglname}-devel
403 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
404 pterjan 5340 EGL development parts.
405    
406     %description -n %{libglname}
407 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
408 pterjan 5340 GL and GLX parts.
409    
410     %description -n %{dridrivers}
411 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
412 pterjan 5340 DRI drivers.
413    
414     %description -n %{libglname}-devel
415 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
416 pterjan 5340
417     This package contains the headers needed to compile Mesa programs.
418    
419 tv 88442 %description -n %{libglesv1name}
420     OpenGL ES is a low-level, lightweight API for advanced embedded graphics using
421     well-defined subset profiles of OpenGL.
422    
423     This package provides the OpenGL ES library version 1.
424    
425 anssi 278008 %description -n %{libosmesaname}
426     Mesa offscreen rendering libraries for rendering OpenGL into
427     application-allocated blocks of memory.
428    
429     %description -n %{osmesadevel}
430     This package contains the headers needed to compile programs against
431     the Mesa offscreen rendering library.
432    
433 mikala 112356 %description -n %{libglapiname}
434     This packages provides the glapi shared library used by gallium.
435    
436     %description -n %{libglapiname}-devel
437     This package contains the headers needed to compile programes against glapi shared library.
438    
439 tv 88442 %description -n %{libglesv1name}-devel
440     This package contains the headers needed to compile OpenGL ES 1 programs.
441    
442 tv 812143 %description -n %{libd3dname}
443     Mesa Direct3D9 state tracker.
444    
445     %description -n %{libd3dname}-devel
446     Mesa Direct3D9 state tracker development package.
447    
448 tv 88442 %description -n %{libglesv2name}
449     OpenGL ES is a low-level, lightweight API for advanced embedded graphics using
450     well-defined subset profiles of OpenGL.
451    
452     This package provides the OpenGL ES library version 2.
453    
454     %description -n %{libglesv2name}-devel
455     This package contains the headers needed to compile OpenGL ES 2 programs.
456    
457 blino 215979 %description -n %{libgbmname}
458 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
459 blino 215979 GBM (Graphics Buffer Manager) parts.
460    
461     %description -n %{libgbmname}-devel
462 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
463 blino 215979 GBM (Graphics Buffer Manager) development parts.
464    
465 tv 1219406 %if %{?with_wayland_egl}
466 blino 215979 %description -n %{libwaylandeglname}
467 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
468 blino 215979 Wayland EGL platform parts.
469    
470     %description -n %{libwaylandeglname}-devel
471 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
472 blino 215979 Wayland EGL platform development parts.
473 tv 1214970 %endif
474 blino 215979
475 tv 634669 %description -n %{libxaname}
476     This packages provides the xa shared library used by gallium.
477    
478     %description -n %{libxaname}-devel
479     This package contains the headers needed to compile programes against xa shared library.
480    
481 tv 301233 %description -n %{_lib}vdpau-driver-nouveau
482 blino 270761 This packages provides a VPDAU plugin to enable video acceleration
483     with the nouveau driver.
484    
485 tv 799259 %description -n %{_lib}vdpau-driver-r300
486     This packages provides a VPDAU plugin to enable video acceleration
487     with the r300 driver.
488    
489 tv 301233 %description -n %{_lib}vdpau-driver-r600
490 blino 270761 This packages provides a VPDAU plugin to enable video acceleration
491     with the r600 driver.
492    
493 tv 301233 %description -n %{_lib}vdpau-driver-radeonsi
494 blino 289282 This packages provides a VPDAU plugin to enable video acceleration
495     with the radeonsi driver.
496    
497 akien 1041911 %if %{enable_vulkan}
498     %description -n %{libvulkanname}_intel
499     This package contains the Vulkan parts for Mesa's Intel driver.
500    
501 akien 1099595 %description -n %{libvulkanname}_radeon
502     This package contains the Vulkan parts for Mesa's Radeon driver.
503    
504 akien 1041911 %description -n %{libvulkanname}-devel
505     This package contains the development files for Mesa's Vulkan implementation.
506     %endif
507    
508 tv 88440 #------------------------------------------------------------------------------
509    
510 pterjan 5340 %prep
511 akien 1099119 %autosetup -n %{name}-%{version}%{?relc:-rc%{relc}} -p1
512 pterjan 5340
513     %build
514 cjw 336175 # (re)generate auto* generated files using our autotools and libtoolize
515     autoreconf -vfi
516    
517 tv 551068 # for bin/test-driver:
518     automake --add-missing
519    
520 tv 1051650 %configure2_5x \
521 akien 1041911 %if %{enable_vulkan}
522 akien 1099595 --with-vulkan-drivers=intel,radeon \
523 akien 1041911 %endif
524 tv 1051646 --enable-gallium-osmesa \
525 tv 1051650 --with-dri-driverdir=%{_libdir}/dri \
526 pterjan 5340 --enable-egl \
527 tv 88442 --enable-gles1 \
528     --enable-gles2 \
529 blino 270761 --disable-xvmc \
530     --enable-vdpau \
531 tv 1217640 %{?with_vaapi:--enable-va} \
532 tv 1219406 --with-platforms=x11,drm,surfaceless,wayland \
533 tv 1051650 --enable-shared-glapi \
534     --enable-gbm \
535     --enable-glx \
536     --enable-glx-tls \
537     --enable-texture-float=yes \
538 tv 1140192 --enable-llvm \
539 tv 1051650 --enable-dri \
540 tv 634669 --enable-xa \
541 blino 897332 --enable-nine \
542 neoclust 1216966 --with-gallium-drivers=r300,r600,radeonsi,nouveau,swrast,%{?with_freedreno:freedreno,}%{?with_etnaviv:etnaviv,imx,}%{?with_vc4:vc4,}virgl%{?gallium_platform_drivers} \
543 tv 1051613 %{?dri_drivers}
544 blino 270723 # end of configure options
545 pterjan 5340
546 anssi 332631
547 anssi 165988 %make
548 pterjan 5340
549     %install
550 tv 1051611 %make_install
551 pterjan 5340
552 blino 216556 # FIXME: strip will likely break the hardlink
553 pterjan 5340 # (blino) hardlink libGL files in %{_libdir}/mesa
554     # to prevent proprietary driver installers from removing them
555     mkdir -p $RPM_BUILD_ROOT%{_libdir}/mesa
556     pushd $RPM_BUILD_ROOT%{_libdir}/mesa
557     for l in ../libGL.so.*; do cp -a $l .; done
558     popd
559    
560     %ifarch %{x86_64}
561     mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/dri
562     %endif
563    
564 tv 1051623 # libvdpau opens the versioned name, don't bother including the unversioned
565     rm -f %{buildroot}%{_libdir}/vdpau/*.so
566 blino 270761
567 tv 1051625 # strip out useless headers
568     rm -f %{buildroot}%{_includedir}/GL/w*.h
569    
570 tv 1051622 # remove .la files
571 tv 881746 find %{buildroot} -name '*.la' -delete
572 blino 271144
573 tv 1219406 # remove libwayland-egl on F28+ where it's built as part of wayland source package
574     %if !%{?with_wayland_egl}
575     rm -f %{buildroot}%{_libdir}/libwayland-egl.so*
576     rm -f %{buildroot}%{_libdir}/pkgconfig/wayland-egl.pc
577     %endif
578    
579 tv 88440 #------------------------------------------------------------------------------
580    
581 pterjan 5340 %files
582 tv 1328786 /usr/share/drirc.d/
583 pterjan 5340
584     %files -n %{dridrivers}
585     %dir %{_libdir}/dri
586     %{_libdir}/dri/*_dri.so
587 tv 812142 %{_libdir}/dri/*_drv*.so
588 pterjan 5340
589 tv 88433 %files -n %{libglname}
590     %{_libdir}/libGL.so.*
591     %dir %{_libdir}/mesa
592 ovitters 877635 %{_libdir}/mesa/libGL.so.%{glmajor}{,.*}
593 tv 88433
594     %files -n %{libeglname}
595 ovitters 877635 %{_libdir}/libEGL.so.%{eglmajor}{,.*}
596 tv 88433
597 anssi 278008 %files -n %{libosmesaname}
598 ovitters 877635 %{_libdir}/libOSMesa.so.%{osmesamajor}{,.*}
599 anssi 278008
600 mikala 112356 %files -n %{libglapiname}
601 ovitters 877635 %{_libdir}/libglapi.so.%{glapimajor}{,.*}
602 mikala 112356
603 tv 88442 %files -n %{libglesv1name}
604 ovitters 877635 %{_libdir}/libGLESv1_CM.so.%{glesv1major}{,.*}
605 tv 88442
606 tv 812143 %files -n %{libd3dname}
607     %{_libdir}/d3d/*.so.*
608    
609 tv 88442 %files -n %{libglesv2name}
610 ovitters 877635 %{_libdir}/libGLESv2.so.%{glesv2major}{,.*}
611 tv 88442
612 blino 215979 %files -n %{libgbmname}
613     %{_libdir}/libgbm.so.%{gbmmajor}
614 ovitters 878590 %{_libdir}/libgbm.so.%{gbmmajor}.*
615 tv 88445
616 tv 1219406 %if %{?with_wayland_egl}
617 blino 215979 %files -n %{libwaylandeglname}
618     %{_libdir}/libwayland-egl.so.%{waylandeglmajor}
619 ovitters 878590 %{_libdir}/libwayland-egl.so.%{waylandeglmajor}.*
620 tv 1214970 %endif
621 blino 215979
622 tv 634669 %files -n %{libxaname}
623 ovitters 877635 %{_libdir}/libxatracker.so.%{xamajor}{,.*}
624 blino 215979
625 pterjan 5340 %files -n %{libglname}-devel
626 anssi 278008 %dir %{_includedir}/GL
627 pterjan 5340 %{_includedir}/GL/gl.h
628 tv 1051618 %{_includedir}/GL/gl_mangle.h
629 pterjan 5340 %{_includedir}/GL/glext.h
630     %{_includedir}/GL/glx.h
631 tv 1051618 %{_includedir}/GL/glx_mangle.h
632 pterjan 5340 %{_includedir}/GL/glxext.h
633 tv 1051618 %{_includedir}/GL/glcorearb.h
634     %dir %{_includedir}/GL/internal
635     %{_includedir}/GL/internal/dri_interface.h
636     %{_libdir}/pkgconfig/dri.pc
637 pterjan 5340 %{_libdir}/libGL.so
638 tv 88436 %{_libdir}/pkgconfig/gl.pc
639 pterjan 5340
640     %files common-devel
641 tv 1051614
642 tv 88433 %files -n %{libeglname}-devel
643 tv 88442 %{_includedir}/EGL
644     %{_includedir}/KHR
645 tv 88433 %{_libdir}/libEGL.so
646 tv 88436 %{_libdir}/pkgconfig/egl.pc
647 pterjan 5340
648 anssi 278008 %files -n %{osmesadevel}
649     %dir %{_includedir}/GL
650     %{_includedir}/GL/osmesa.h
651     %{_libdir}/libOSMesa.so
652     %{_libdir}/pkgconfig/osmesa.pc
653    
654 mikala 112356 %files -n %{libglapiname}-devel
655     %{_libdir}/libglapi.so
656 pterjan 5340
657 tv 88442 %files -n %{libglesv1name}-devel
658     %{_includedir}/GLES
659     %{_libdir}/libGLESv1_CM.so
660     %{_libdir}/pkgconfig/glesv1_cm.pc
661 tv 88433
662 tv 88442 %files -n %{libglesv2name}-devel
663     %{_includedir}/GLES2
664 cjw 336175 %{_includedir}/GLES3
665 tv 88442 %{_libdir}/libGLESv2.so
666     %{_libdir}/pkgconfig/glesv2.pc
667 tv 88445
668 tv 812143 %files -n %{libd3dname}-devel
669     %{_includedir}/d3dadapter
670     %{_libdir}/d3d/*.so
671     %{_libdir}/pkgconfig/d3d.pc
672    
673 blino 215979 %files -n %{libgbmname}-devel
674 tv 1051618 %{_libdir}/libgbm.so
675 blino 215979 %{_includedir}/gbm.h
676     %{_libdir}/pkgconfig/gbm.pc
677    
678 tv 1219406 %if %{?with_wayland_egl}
679 blino 215979 %files -n %{libwaylandeglname}-devel
680     %{_libdir}/libwayland-egl.so
681     %{_libdir}/pkgconfig/wayland-egl.pc
682 tv 1214970 %endif
683 blino 270761
684 tv 634669 %files -n %{libxaname}-devel
685     %{_libdir}/libxatracker.so
686     %{_includedir}/xa_tracker.h
687     %{_includedir}/xa_composite.h
688     %{_includedir}/xa_context.h
689     %{_libdir}/pkgconfig/xatracker.pc
690    
691 tv 301233 %files -n %{_lib}vdpau-driver-nouveau
692 blino 270761 %{_libdir}/vdpau/libvdpau_nouveau.so.*
693    
694 tv 799259 %files -n %{_lib}vdpau-driver-r300
695     %{_libdir}/vdpau/libvdpau_r300.so.*
696    
697 tv 301233 %files -n %{_lib}vdpau-driver-r600
698 blino 270761 %{_libdir}/vdpau/libvdpau_r600.so.*
699    
700 tv 301233 %files -n %{_lib}vdpau-driver-radeonsi
701 blino 289282 %{_libdir}/vdpau/libvdpau_radeonsi.so.*
702 akien 1041911
703     %if %{enable_vulkan}
704     %files -n %{libvulkanname}_intel
705     %dir %{_datadir}/vulkan
706     %dir %{_datadir}/vulkan/icd.d
707 ghibo 1065537 %{_datadir}/vulkan/icd.d/intel_icd*.json
708 akien 1041911 # (akien) No lib major?
709     %{_libdir}/libvulkan_intel.so
710    
711 akien 1099595 %files -n %{libvulkanname}_radeon
712     %dir %{_datadir}/vulkan
713     %dir %{_datadir}/vulkan/icd.d
714     %{_datadir}/vulkan/icd.d/radeon_icd*.json
715     # (akien) No lib major?
716     %{_libdir}/libvulkan_radeon.so
717    
718 akien 1041911 %files -n %{libvulkanname}-devel
719     %{_includedir}/vulkan/
720     %endif

  ViewVC Help
Powered by ViewVC 1.1.26