/[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 1095010 - (hide annotations) (download)
Tue Mar 28 06:19:39 2017 UTC (2 years, 5 months ago) by tmb
File size: 20397 byte(s)
rebuild with new gcc & llvm
1 tv 135155 %if "%distro_section" == "tainted"
2     %global build_plf 1
3     %else
4     %global build_plf 0
5     %endif
6    
7 pterjan 5340 # (cg) Cheater...
8     %define Werror_cflags %nil
9    
10     # (aco) Needed for the dri drivers
11     %define _disable_ld_no_undefined 1
12    
13 ghibo 1066639 # https://cgit.freedesktop.org/mesa/mesa/commit/?h=13.0&id=3bb0415ab96f74183f7aa58c1a543448653ccb3e
14 tmb 400079 %define git 0
15 tmb 1088772 %define git_branch 17.0
16 mikala 112356
17 ghibo 1066639 %define opengl_ver 4.5
18 blino 289598
19 tmb 922766 # define version, RC & release
20 tmb 1093839 %define main_version 17.0.2
21 ghibo 1066639 #define relc 1
22 tmb 1095010 %define rel 3
23 pterjan 5340
24     %define release %mkrel %{rel}
25    
26     %if %{git}
27 ghibo 1066639 %if %{?relc:1}%{!?relc:0}
28 tv 799294 %define release %mkrel 1~rc%{relc}.1.git%{git}.%{rel}
29 pterjan 5340 %else
30 ghibo 1066639 %define release 1.git%{git}.%{rel}
31 pterjan 5340 %endif
32     %endif
33    
34     %define makedepend %{_bindir}/gccmakedep
35    
36 tv 812143 %define d3dname d3d
37 pterjan 5340 %define eglname mesaegl
38     %define glname mesagl
39     %define glwname mesaglw
40 tv 88442 %define glesv1name mesaglesv1
41     %define glesv2name mesaglesv2
42 mikala 112356 %define glapiname glapi
43 blino 215979 %define gbmname gbm
44     %define waylandeglname wayland-egl
45 tv 634669 %define xaname xatracker
46 akien 1041911 %define vulkanname vulkan
47 tv 88442
48 tv 812143 %define d3dmajor 1
49 pterjan 5340 %define eglmajor 1
50     %define glmajor 1
51     %define glwmajor 1
52 tv 88442 %define glesv1major 1
53     %define glesv2major 2
54 mikala 112356 %define glapimajor 0
55 blino 215979 %define gbmmajor 1
56     %define waylandeglmajor 1
57 blino 289617 %define osmesamajor 8
58 tv 634669 %define xamajor 2
59 tv 88442
60 tv 812143 %define libd3dname %mklibname %{d3dname} %{d3dmajor}
61 pterjan 5340 %define libeglname %mklibname %{eglname} %{eglmajor}
62     %define libglname %mklibname %{glname} %{glmajor}
63     %define libglwname %mklibname %{glwname} %{glwmajor}
64 tv 88442 %define libglesv1name %mklibname %{glesv1name}_ %{glesv1major}
65     %define libglesv2name %mklibname %{glesv2name}_ %{glesv2major}
66 mikala 112356 %define libglapiname %mklibname %{glapiname} %{glapimajor}
67 blino 215979 %define libgbmname %mklibname %{gbmname} %{gbmmajor}
68     %define libwaylandeglname %mklibname %{waylandeglname} %{waylandeglmajor}
69 anssi 278008 %define libosmesaname %mklibname osmesa %{osmesamajor}
70 tv 634669 %define libxaname %mklibname %{xaname} %{xamajor}
71 akien 1041911 %define libvulkanname %mklibname %{vulkanname}
72 pterjan 5340
73     %define dridrivers %mklibname dri-drivers
74    
75 anssi 278008 %define osmesadevel %mklibname osmesa -d
76    
77 pterjan 5340 # Architecture-independent Virtual provides:
78 tv 812143 %define libd3dname_virt lib%{d3dname}
79 pterjan 5340 %define libeglname_virt lib%{eglname}
80     %define libglname_virt lib%{glname}
81     %define libglwname_virt lib%{glwname}
82 tv 88442 %define libglesv1name_virt lib%{glesv1name}
83     %define libglesv2name_virt lib%{glesv2name}
84 mikala 112356 %define libglapiname_virt lib%{glapiname}
85 blino 215979 %define libgbmname_virt lib%{gbmname}
86     %define libwaylandeglname_virt lib%{waylandeglname}
87 tv 634669 %define libxaname_virt lib%{xaname}
88 pterjan 5340
89     %define oldlibglname %mklibname MesaGL 1
90    
91     %define mesasrcdir %{_prefix}/src/Mesa/
92    
93 akien 1041911 # (akien) Not adding on arm as it would break the build there
94     %define enable_vulkan 0
95     %ifarch %{ix86} x86_64
96     %define enable_vulkan 1
97     %endif
98    
99 tv 1051613 %define base_drivers swrast,nouveau,radeon,r200
100     %ifarch %{ix86} x86_64
101     %define platform_drivers ,i915,i965
102     %endif
103     %define dri_drivers --with-dri-drivers=%{?base_drivers}%{?platform_drivers}
104 pterjan 5340
105 ovitters 645737 Name: mesa
106 tmb 1039883 Version: %{main_version}
107 pterjan 5340 Release: %{release}
108 blino 289598 Summary: OpenGL %{opengl_ver} compatible 3D graphics library
109 pterjan 5340 Group: System/Libraries
110    
111 tmb 1095010 # temp force new gcc
112     BuildRequires: gcc >= 5.4.0-2
113    
114 mikala 127466 BuildRequires: pkgconfig(xfixes) >= 4.0.3
115 tv 585816 BuildRequires: pkgconfig(xshmfence)
116 mikala 127466 BuildRequires: pkgconfig(xt) >= 1.0.5
117     BuildRequires: pkgconfig(xmu) >= 1.0.3
118     BuildRequires: pkgconfig(x11) >= 1.3.3
119     BuildRequires: pkgconfig(xdamage) >= 1.1.1
120 pterjan 5340 BuildRequires: libexpat-devel >= 2.0.1
121     BuildRequires: gccmakedep
122     BuildRequires: x11-proto-devel >= 7.3
123 tmb 837893 BuildRequires: pkgconfig(libdrm) >= 2.4.60
124 tv 585825 BuildRequires: pkgconfig(xcb-dri3)
125 blino 659717 BuildRequires: pkgconfig(xcb-present) >= 1.11
126 mikala 127466 BuildRequires: pkgconfig(xext) >= 1.1.1
127     BuildRequires: pkgconfig(xxf86vm) >= 1.1.0
128     BuildRequires: pkgconfig(xi) >= 1.3
129     BuildRequires: pkgconfig(talloc)
130 tv 88443 BuildRequires: libxml2-python
131 tmb 920659 BuildRequires: python-mako
132 tmb 35532 BuildRequires: makedepend
133 tmb 920659 BuildRequires: bison
134 ovitters 645737 BuildRequires: flex
135 tv 469143 BuildRequires: libelf-devel
136 tmb 1095010 BuildRequires: llvm-devel >= 3.9.1-5
137 mikala 127466 BuildRequires: pkgconfig(libudev)
138 tv 812142 BuildRequires: pkgconfig(libva)
139 blino 270761 BuildRequires: pkgconfig(vdpau)
140 blino 215979 BuildRequires: wayland-devel
141 tmb 1041913 %if %{enable_vulkan}
142     BuildRequires: libgcrypt-devel
143     %endif
144 pterjan 5340
145     URL: http://www.mesa3d.org
146     %if %{git}
147 ghibo 1066639 #Source0: %{name}-%{git}.tar.bz2
148     # (blino) snapshot of 13.0 branch
149     Source0: %{name}-%{git_branch}-%{git}.tar.xz
150 pterjan 5340 %else
151 tv 1051647 Source0: ftp://ftp.freedesktop.org/pub/mesa/%{main_version}/mesa-%{main_version}.tar.xz
152 pterjan 5340 %endif
153     Source3: make-git-snapshot.sh
154    
155     # Instructions to setup your repository clone
156     # git://git.freedesktop.org/git/mesa/mesa
157     # git checkout mesa_7_5_branch
158     # git branch mdv-cherry-picks
159     # git am ../02??-*.patch
160     # git branch mdv-redhat
161     # git am ../03??-*.patch
162     # git branch mdv-patches
163     # git am ../09??-*.patch
164     # In order to update to the branch via patches, issue this command:
165     # git format-patch --start-number 100 mesa_7_5_1..mesa_7_5_branch | sed 's/^0\([0-9]\+\)-/Patch\1: 0\1-/'
166    
167     # Cherry picks
168     # git format-patch --start-number 200 mesa_7_5_branch..mdv-cherry-picks
169 tmb 411326
170 tv 88247 # Patches "liberated" from Fedora:
171 tv 1051664 # http://pkgs.fedoraproject.org/cgit/rpms/mesa.git/
172 pterjan 5340 # git format-patch --start-number 300 mdv-cherry-picks..mdv-redhat
173    
174 blino 278732 # Patches from ChromiumOS
175     # http://git.chromium.org/gitweb/?p=chromiumos/overlays/chromiumos-overlay.git;a=tree;f=media-libs/mesa/files;hb=HEAD
176    
177 blino 271493 # Mageia/Mandriva patches
178 pterjan 5340 # git format-patch --start-number 900 mdv-redhat..mdv-patches
179    
180 tv 88440 #------------------------------------------------------------------------------
181    
182     # package mesa
183 pterjan 5340 License: MIT
184     Requires: %{libglname} = %{version}-%{release}
185     Provides: hackMesa = %{version}
186     Obsoletes: hackMesa <= %{version}
187     Provides: Mesa = %{version}
188     Obsoletes: Mesa < %{version}
189    
190     %package -n %{libglname}
191     Summary: Files for Mesa (GL and GLX libs)
192     Group: System/Libraries
193 tv 88247 Obsoletes: %{oldlibglname} < 6.4
194 pterjan 5340 Provides: %{oldlibglname} = %{version}-%{release}
195     Provides: %{libglname_virt} = %{version}-%{release}
196     Requires: %{dridrivers} >= %{version}-%{release}
197 tv 135172 %if %{build_plf}
198     Requires: %mklibname txc-dxtn
199     %endif
200 pterjan 5340
201     # (anssi) Forces the upgrade of x11-server-common to happen before
202     # alternatives removal, which allows x11-server-common to grab the symlink.
203     Conflicts: x11-server-common < 1.3.0.0-17
204    
205     %package -n %{dridrivers}
206     Summary: Mesa DRI drivers
207     Group: System/Libraries
208 blino 274132 # do not require exact release to avoid conflicts when having
209     # x86_64 dri drivers from tainted and i586 dri drivers from core
210     Requires: mesa = %{version}
211 pterjan 5340 Conflicts: %{_lib}MesaGL1 < 7.7-5
212 anssi 181478 Obsoletes: %{_lib}dri-drivers-experimental < 7.11.2-4
213     Provides: %{_lib}dri-drivers-experimental = %{version}-%{release}
214 pterjan 5340
215 tv 812143 %package -n %{libd3dname}
216     Summary: Mesa Direct3D9 state tracker
217     Group: System/Libraries
218     Provides: %{libd3dname_virt} = %{version}-%{release}
219    
220     %package -n %{libd3dname}-devel
221     Summary: Development files for Mesa Direct3D9 state tracker
222     Group: Development/C
223     Requires: %{libd3dname} = %{version}-%{release}
224     Provides: lib%{d3dname}-devel
225     Provides: %{d3dname}-devel
226     Provides: libd3d-devel
227    
228 pterjan 5340 %package -n %{libglname}-devel
229     Summary: Development files for Mesa (OpenGL compatible 3D lib)
230     Group: Development/C
231 tv 88237 Requires: %{libglname} = %{version}-%{release}
232 pterjan 5340 Provides: lib%{glname}-devel = %{version}-%{release}
233     Provides: %{glname}-devel = %{version}-%{release}
234     Provides: GL-devel
235     Obsoletes: %{oldlibglname}-devel < 6.4
236     Provides: %{oldlibglname}-devel = %{version}-%{release}
237     Provides: libMesaGL-devel = %{version}-%{release}
238     Provides: MesaGL-devel = %{version}-%{release}
239 tv 88438 Provides: libgl-devel
240 pterjan 5340
241 tv 88433 %package -n %{libeglname}
242     Summary: Files for Mesa (EGL libs)
243     Group: System/Libraries
244     Provides: %{libeglname_virt} = %{version}-%{release}
245    
246     %package -n %{libeglname}-devel
247     Summary: Development files for Mesa (EGL libs)
248     Group: Development/C
249 tv 88439 Requires: %{libeglname} = %{version}-%{release}
250 tv 88433 Provides: EGL-devel
251 tv 88438 Provides: lib%{eglname}-devel
252     Provides: %{eglname}-devel
253     Provides: libegl-devel
254 tv 88433
255 anssi 278008 %package -n %{libosmesaname}
256     Summary: Mesa offscreen rendering library
257     Group: System/Libraries
258    
259     %package -n %{osmesadevel}
260     Summary: Development files for libosmesa
261     Group: Development/C
262     Requires: %{libosmesaname} = %{version}-%{release}
263     Provides: osmesa-devel = %{version}-%{release}
264     Conflicts: MesaGL-devel < 8.1.0-0.git20120727.3
265    
266 mikala 112356 %package -n %{libglapiname}
267     Summary: Files for mesa (glapi libs)
268     Group: System/Libraries
269     Provides: %{libglapiname_virt} = %{version}-%{release}
270 tv 88442
271 mikala 112356 %package -n %{libglapiname}-devel
272     Summary: Development files for glapi libs
273     Group: Development/C
274     Requires: %{libglapiname_virt} = %{version}-%{release}
275     Provides: lib%{glapiname}-devel
276     Provides: %{libglapiname}-devel
277    
278 tv 88442 %package -n %{libglesv1name}
279     Summary: Files for Mesa (glesv1 libs)
280     Group: System/Libraries
281     Provides: %{libglesv1name_virt} = %{version}-%{release}
282    
283     %package -n %{libglesv1name}-devel
284     Summary: Development files for glesv1 libs
285     Group: Development/C
286     Requires: %{libglesv1name} = %{version}-%{release}
287     Provides: lib%{glesv1name}-devel
288     Provides: %{glesv1name}-devel
289     Provides: libglesv1-devel
290    
291     %package -n %{libglesv2name}
292     Summary: Files for Mesa (glesv2 libs)
293     Group: System/Libraries
294     Provides: %{libglesv2name_virt} = %{version}-%{release}
295    
296     %package -n %{libglesv2name}-devel
297     Summary: Development files for glesv2 libs
298     Group: Development/C
299     Requires: %{libglesv2name} = %{version}-%{release}
300 blino 216556 Requires: %{libeglname}-devel = %{version}-%{release}
301 tv 88442 Provides: lib%{glesv2name}-devel
302     Provides: %{glesv2name}-devel
303     Provides: libglesv2-devel
304    
305 blino 215979 %package -n %{libgbmname}
306     Summary: Files for Mesa (gbm libs)
307     Group: System/Libraries
308     Provides: %{libgbmname_virt} = %{version}-%{release}
309    
310     %package -n %{libgbmname}-devel
311     Summary: Development files for Mesa (gbm libs)
312     Group: Development/C
313     Requires: %{libgbmname} = %{version}-%{release}
314     Provides: lib%{gbmname}-devel
315     Provides: %{gbmname}-devel
316    
317     %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    
329 tv 301233 %package -n %{_lib}vdpau-driver-nouveau
330 blino 270761 Summary: VDPAU plugin for nouveau driver
331 blino 300616 Group: System/Libraries
332 tv 302568 # temporary:
333     %rename vdpau-driver-nouveau
334 blino 270761
335 tv 799259 %package -n %{_lib}vdpau-driver-r300
336     Summary: VDPAU plugin for r300 driver
337     Group: System/Libraries
338     # temporary:
339     %rename vdpau-driver-r300
340    
341 tv 301233 %package -n %{_lib}vdpau-driver-r600
342 blino 270761 Summary: VDPAU plugin for r600 driver
343 blino 300616 Group: System/Libraries
344 tv 302568 # temporary:
345     %rename vdpau-driver-r600
346 blino 270761
347 tv 301233 %package -n %{_lib}vdpau-driver-radeonsi
348 blino 289282 Summary: VDPAU plugin for radeonsi driver
349     Group: System/Libraries
350 tv 302568 # temporary:
351     %rename vdpau-driver-radeonsi
352 blino 289282
353 tv 634669 %package -n %{libxaname}
354     Summary: Files for Mesa XA state tracker
355     Group: System/Libraries
356     Provides: %{libxaname_virt} = %{version}-%{release}
357    
358     %package -n %{libxaname}-devel
359     Summary: Development files for XA libs
360     Group: Development/C
361     Requires: %{libxaname_virt} = %{version}-%{release}
362     Provides: lib%{xaname}-devel
363     Provides: %{libxaname}-devel
364    
365 akien 1041911 %if %{enable_vulkan}
366     %package -n %{libvulkanname}_intel
367     Summary: Mesa vulkan driver for Intel GPU
368     Group: System/Libraries
369    
370     %package -n %{libvulkanname}-devel
371     Summary: Mesa's Vulkan development files
372     Group: Development/C
373     Requires: %{libvulkanname}_intel = %{version}-%{release}
374     Provides: libvulkan-devel
375     Provides: libvulkan_intel-devel
376     %endif
377    
378 pterjan 5340 %package common-devel
379     Summary: Meta package for mesa devel
380     Group: Development/C
381 tv 88247 Provides: Mesa-common-devel = %{version}-%{release}
382 pterjan 5340 Provides: hackMesa-common-devel = %{version}
383 tv 88247 Obsoletes: Mesa-common-devel < %{version}
384 pterjan 5340 Obsoletes: hackMesa-common-devel < %{version}
385     Requires: %{libglname}-devel = %{version}
386 blino 289355 Requires: mesaglu-devel
387 tv 135156 Requires: freeglut-devel
388 tv 88442 Requires: %{libeglname}-devel = %{version}
389     Requires: %{libglesv1name}-devel = %{version}
390     Requires: %{libglesv2name}-devel = %{version}
391 pterjan 5340
392 tv 88440 #------------------------------------------------------------------------------
393 pterjan 5340
394     %description
395 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
396 tv 135173 %if %{build_plf}
397 pterjan 5340
398 tv 135173 This package is in the "tainted" section because it enables some
399     OpenGL extentions that are covered by software patents.
400     %endif
401    
402 pterjan 5340 %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 tv 135155 %if %{build_plf}
418     This package is in the "tainted" section because it enables some
419     OpenGL extentions that are covered by software patents.
420     %endif
421    
422 pterjan 5340 %description -n %{dridrivers}
423 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
424 pterjan 5340 DRI drivers.
425    
426     %description -n %{libglname}-devel
427 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
428 pterjan 5340
429     This package contains the headers needed to compile Mesa programs.
430    
431 tv 88442 %description -n %{libglesv1name}
432     OpenGL ES is a low-level, lightweight API for advanced embedded graphics using
433     well-defined subset profiles of OpenGL.
434    
435     This package provides the OpenGL ES library version 1.
436    
437 anssi 278008 %description -n %{libosmesaname}
438     Mesa offscreen rendering libraries for rendering OpenGL into
439     application-allocated blocks of memory.
440    
441     %description -n %{osmesadevel}
442     This package contains the headers needed to compile programs against
443     the Mesa offscreen rendering library.
444    
445 mikala 112356 %description -n %{libglapiname}
446     This packages provides the glapi shared library used by gallium.
447    
448     %description -n %{libglapiname}-devel
449     This package contains the headers needed to compile programes against glapi shared library.
450    
451 tv 88442 %description -n %{libglesv1name}-devel
452     This package contains the headers needed to compile OpenGL ES 1 programs.
453    
454 tv 812143 %description -n %{libd3dname}
455     Mesa Direct3D9 state tracker.
456    
457     %description -n %{libd3dname}-devel
458     Mesa Direct3D9 state tracker development package.
459    
460 tv 88442 %description -n %{libglesv2name}
461     OpenGL ES is a low-level, lightweight API for advanced embedded graphics using
462     well-defined subset profiles of OpenGL.
463    
464     This package provides the OpenGL ES library version 2.
465    
466     %description -n %{libglesv2name}-devel
467     This package contains the headers needed to compile OpenGL ES 2 programs.
468    
469 blino 215979 %description -n %{libgbmname}
470 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
471 blino 215979 GBM (Graphics Buffer Manager) parts.
472    
473     %description -n %{libgbmname}-devel
474 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
475 blino 215979 GBM (Graphics Buffer Manager) development parts.
476    
477     %description -n %{libwaylandeglname}
478 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
479 blino 215979 Wayland EGL platform parts.
480    
481     %description -n %{libwaylandeglname}-devel
482 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
483 blino 215979 Wayland EGL platform development parts.
484    
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     %description -n %{libvulkanname}-devel
512     This package contains the development files for Mesa's Vulkan implementation.
513     %endif
514    
515 tv 88440 #------------------------------------------------------------------------------
516    
517 pterjan 5340 %prep
518 tv 1051647 %autosetup -n %{name}-%{version}%{?rctag:-%{rctag}} -p1
519 pterjan 5340
520     %build
521 cjw 336175 # (re)generate auto* generated files using our autotools and libtoolize
522     autoreconf -vfi
523    
524 tv 551068 # for bin/test-driver:
525     automake --add-missing
526    
527 tv 1051650 %configure2_5x \
528 akien 1041911 %if %{enable_vulkan}
529     --with-vulkan-drivers=intel \
530     %endif
531 tv 1051646 --enable-gallium-osmesa \
532 tv 1051650 --with-dri-driverdir=%{_libdir}/dri \
533 pterjan 5340 --enable-egl \
534 tv 88442 --enable-gles1 \
535     --enable-gles2 \
536 blino 270761 --disable-xvmc \
537     --enable-vdpau \
538 tv 1051650 --enable-va \
539     --with-egl-platforms=x11,wayland,drm \
540     --enable-shared-glapi \
541     --enable-gbm \
542     --enable-glx \
543     --enable-glx-tls \
544     %if %{build_plf}
545     --enable-texture-float=yes \
546     %endif
547 mikala 112356 --enable-gallium-llvm \
548 tv 1051650 --enable-dri \
549 tv 634669 --enable-xa \
550 blino 897332 --enable-nine \
551 tv 1051650 --with-gallium-drivers=r300,r600,radeonsi,nouveau,svga,swrast,virgl \
552 tv 1051613 %{?dri_drivers}
553 blino 270723 # end of configure options
554 pterjan 5340
555 anssi 332631
556 anssi 165988 %make
557 pterjan 5340
558     %install
559 tv 1051611 %make_install
560 pterjan 5340
561 blino 216556 # FIXME: strip will likely break the hardlink
562 pterjan 5340 # (blino) hardlink libGL files in %{_libdir}/mesa
563     # to prevent proprietary driver installers from removing them
564     mkdir -p $RPM_BUILD_ROOT%{_libdir}/mesa
565     pushd $RPM_BUILD_ROOT%{_libdir}/mesa
566     for l in ../libGL.so.*; do cp -a $l .; done
567     popd
568    
569     %ifarch %{x86_64}
570     mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/dri
571     %endif
572    
573 tv 1051623 # libvdpau opens the versioned name, don't bother including the unversioned
574     rm -f %{buildroot}%{_libdir}/vdpau/*.so
575 blino 270761
576 tv 1051625 # strip out useless headers
577     rm -f %{buildroot}%{_includedir}/GL/w*.h
578    
579 tv 1051622 # remove .la files
580 tv 881746 find %{buildroot} -name '*.la' -delete
581 blino 271144
582 tv 88440 #------------------------------------------------------------------------------
583    
584 pterjan 5340 %files
585 blino 271500 %config(noreplace) %{_sysconfdir}/drirc
586 pterjan 5340
587     %files -n %{dridrivers}
588     %dir %{_libdir}/dri
589     %{_libdir}/dri/*_dri.so
590 tv 812142 %{_libdir}/dri/*_drv*.so
591 pterjan 5340
592 tv 88433 %files -n %{libglname}
593     %{_libdir}/libGL.so.*
594     %dir %{_libdir}/mesa
595 ovitters 877635 %{_libdir}/mesa/libGL.so.%{glmajor}{,.*}
596 tv 88433
597     %files -n %{libeglname}
598 ovitters 877635 %{_libdir}/libEGL.so.%{eglmajor}{,.*}
599 tv 88433
600 anssi 278008 %files -n %{libosmesaname}
601 ovitters 877635 %{_libdir}/libOSMesa.so.%{osmesamajor}{,.*}
602 anssi 278008
603 mikala 112356 %files -n %{libglapiname}
604 ovitters 877635 %{_libdir}/libglapi.so.%{glapimajor}{,.*}
605 mikala 112356
606 tv 88442 %files -n %{libglesv1name}
607 ovitters 877635 %{_libdir}/libGLESv1_CM.so.%{glesv1major}{,.*}
608 tv 88442
609 tv 812143 %files -n %{libd3dname}
610     %{_libdir}/d3d/*.so.*
611    
612 tv 88442 %files -n %{libglesv2name}
613 ovitters 877635 %{_libdir}/libGLESv2.so.%{glesv2major}{,.*}
614 tv 88442
615 blino 215979 %files -n %{libgbmname}
616     %{_libdir}/libgbm.so.%{gbmmajor}
617 ovitters 878590 %{_libdir}/libgbm.so.%{gbmmajor}.*
618 tv 88445
619 blino 215979 %files -n %{libwaylandeglname}
620     %{_libdir}/libwayland-egl.so.%{waylandeglmajor}
621 ovitters 878590 %{_libdir}/libwayland-egl.so.%{waylandeglmajor}.*
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     %files -n %{libwaylandeglname}-devel
680     %{_libdir}/libwayland-egl.so
681     %{_libdir}/pkgconfig/wayland-egl.pc
682 blino 270761
683 tv 634669 %files -n %{libxaname}-devel
684     %{_libdir}/libxatracker.so
685     %{_includedir}/xa_tracker.h
686     %{_includedir}/xa_composite.h
687     %{_includedir}/xa_context.h
688     %{_libdir}/pkgconfig/xatracker.pc
689    
690 tv 301233 %files -n %{_lib}vdpau-driver-nouveau
691 blino 270761 %{_libdir}/vdpau/libvdpau_nouveau.so.*
692    
693 tv 799259 %files -n %{_lib}vdpau-driver-r300
694     %{_libdir}/vdpau/libvdpau_r300.so.*
695    
696 tv 301233 %files -n %{_lib}vdpau-driver-r600
697 blino 270761 %{_libdir}/vdpau/libvdpau_r600.so.*
698    
699 tv 301233 %files -n %{_lib}vdpau-driver-radeonsi
700 blino 289282 %{_libdir}/vdpau/libvdpau_radeonsi.so.*
701 akien 1041911
702     %if %{enable_vulkan}
703     %files -n %{libvulkanname}_intel
704     %dir %{_datadir}/vulkan
705     %dir %{_datadir}/vulkan/icd.d
706 ghibo 1065537 %{_datadir}/vulkan/icd.d/intel_icd*.json
707 akien 1041911 # (akien) No lib major?
708     %{_libdir}/libvulkan_intel.so
709    
710     %files -n %{libvulkanname}-devel
711     %{_includedir}/vulkan/
712     %endif

  ViewVC Help
Powered by ViewVC 1.1.26