/[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 1175798 - (hide annotations) (download)
Sat Nov 4 08:04:17 2017 UTC (2 years, 1 month ago) by tv
File size: 20815 byte(s)
new release
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 1104553 %define git_branch 17.1
16 mikala 112356
17 ghibo 1066639 %define opengl_ver 4.5
18 blino 289598
19 tmb 922766 # define version, RC & release
20 tv 1175798 %define main_version 17.3.0
21     %define relc 2
22 tv 1175796 %define rel 1
23 pterjan 5340
24 tv 1140191 %define release %mkrel %{?relc:0.rc%{relc}.}%{rel}
25 pterjan 5340
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 cjw 1174481 %define gallium_platform_drivers ,svga
103 tv 1051613 %endif
104     %define dri_drivers --with-dri-drivers=%{?base_drivers}%{?platform_drivers}
105 pterjan 5340
106 ovitters 645737 Name: mesa
107 tmb 1039883 Version: %{main_version}
108 pterjan 5340 Release: %{release}
109 blino 289598 Summary: OpenGL %{opengl_ver} compatible 3D graphics library
110 pterjan 5340 Group: System/Libraries
111    
112 tmb 1095010 # temp force new gcc
113     BuildRequires: gcc >= 5.4.0-2
114    
115 mikala 127466 BuildRequires: pkgconfig(xfixes) >= 4.0.3
116 tv 585816 BuildRequires: pkgconfig(xshmfence)
117 mikala 127466 BuildRequires: pkgconfig(xt) >= 1.0.5
118     BuildRequires: pkgconfig(xmu) >= 1.0.3
119     BuildRequires: pkgconfig(x11) >= 1.3.3
120     BuildRequires: pkgconfig(xdamage) >= 1.1.1
121 ovitters 1145130 BuildRequires: pkgconfig(expat) >= 2.0.1
122 pterjan 5340 BuildRequires: gccmakedep
123     BuildRequires: x11-proto-devel >= 7.3
124 tmb 837893 BuildRequires: pkgconfig(libdrm) >= 2.4.60
125 tv 585825 BuildRequires: pkgconfig(xcb-dri3)
126 blino 659717 BuildRequires: pkgconfig(xcb-present) >= 1.11
127 mikala 127466 BuildRequires: pkgconfig(xext) >= 1.1.1
128     BuildRequires: pkgconfig(xxf86vm) >= 1.1.0
129     BuildRequires: pkgconfig(xi) >= 1.3
130     BuildRequires: pkgconfig(talloc)
131 tv 88443 BuildRequires: libxml2-python
132 tmb 920659 BuildRequires: python-mako
133 tmb 35532 BuildRequires: makedepend
134 tmb 920659 BuildRequires: bison
135 ovitters 645737 BuildRequires: flex
136 ovitters 1145130 BuildRequires: pkgconfig(libelf)
137 tmb 1095010 BuildRequires: llvm-devel >= 3.9.1-5
138 mikala 127466 BuildRequires: pkgconfig(libudev)
139 tv 812142 BuildRequires: pkgconfig(libva)
140 blino 270761 BuildRequires: pkgconfig(vdpau)
141 blino 215979 BuildRequires: wayland-devel
142 tmb 1041913 %if %{enable_vulkan}
143     BuildRequires: libgcrypt-devel
144     %endif
145 ovitters 1145130 BuildRequires: pkgconfig(wayland-protocols) >= 1.8
146 pterjan 5340
147     URL: http://www.mesa3d.org
148     %if %{git}
149 ghibo 1066639 #Source0: %{name}-%{git}.tar.bz2
150     # (blino) snapshot of 13.0 branch
151     Source0: %{name}-%{git_branch}-%{git}.tar.xz
152 pterjan 5340 %else
153 tmb 1107908 Source0: https://mesa.freedesktop.org/archive/mesa-%{main_version}%{?relc:-rc%{relc}}.tar.xz
154 pterjan 5340 %endif
155     Source3: make-git-snapshot.sh
156    
157     # Instructions to setup your repository clone
158     # git://git.freedesktop.org/git/mesa/mesa
159     # git checkout mesa_7_5_branch
160     # git branch mdv-cherry-picks
161     # git am ../02??-*.patch
162     # git branch mdv-redhat
163     # git am ../03??-*.patch
164     # git branch mdv-patches
165     # git am ../09??-*.patch
166     # In order to update to the branch via patches, issue this command:
167     # git format-patch --start-number 100 mesa_7_5_1..mesa_7_5_branch | sed 's/^0\([0-9]\+\)-/Patch\1: 0\1-/'
168    
169     # Cherry picks
170     # git format-patch --start-number 200 mesa_7_5_branch..mdv-cherry-picks
171 tmb 411326
172 tv 88247 # Patches "liberated" from Fedora:
173 tv 1051664 # http://pkgs.fedoraproject.org/cgit/rpms/mesa.git/
174 pterjan 5340 # git format-patch --start-number 300 mdv-cherry-picks..mdv-redhat
175    
176 tv 1173701 # https://cgit.freedesktop.org/~ajax/mesa/log/?h=mesa-17.2-s3tc
177    
178 blino 278732 # Patches from ChromiumOS
179     # http://git.chromium.org/gitweb/?p=chromiumos/overlays/chromiumos-overlay.git;a=tree;f=media-libs/mesa/files;hb=HEAD
180    
181 blino 271493 # Mageia/Mandriva patches
182 pterjan 5340 # git format-patch --start-number 900 mdv-redhat..mdv-patches
183    
184 tv 88440 #------------------------------------------------------------------------------
185    
186     # package mesa
187 pterjan 5340 License: MIT
188     Requires: %{libglname} = %{version}-%{release}
189     Provides: hackMesa = %{version}
190     Obsoletes: hackMesa <= %{version}
191     Provides: Mesa = %{version}
192     Obsoletes: Mesa < %{version}
193    
194     %package -n %{libglname}
195     Summary: Files for Mesa (GL and GLX libs)
196     Group: System/Libraries
197 tv 88247 Obsoletes: %{oldlibglname} < 6.4
198 pterjan 5340 Provides: %{oldlibglname} = %{version}-%{release}
199     Provides: %{libglname_virt} = %{version}-%{release}
200     Requires: %{dridrivers} >= %{version}-%{release}
201    
202     # (anssi) Forces the upgrade of x11-server-common to happen before
203     # alternatives removal, which allows x11-server-common to grab the symlink.
204     Conflicts: x11-server-common < 1.3.0.0-17
205    
206     %package -n %{dridrivers}
207     Summary: Mesa DRI drivers
208     Group: System/Libraries
209 blino 274132 # do not require exact release to avoid conflicts when having
210     # x86_64 dri drivers from tainted and i586 dri drivers from core
211     Requires: mesa = %{version}
212 pterjan 5340 Conflicts: %{_lib}MesaGL1 < 7.7-5
213 anssi 181478 Obsoletes: %{_lib}dri-drivers-experimental < 7.11.2-4
214     Provides: %{_lib}dri-drivers-experimental = %{version}-%{release}
215 pterjan 5340
216 tv 812143 %package -n %{libd3dname}
217     Summary: Mesa Direct3D9 state tracker
218     Group: System/Libraries
219     Provides: %{libd3dname_virt} = %{version}-%{release}
220    
221     %package -n %{libd3dname}-devel
222     Summary: Development files for Mesa Direct3D9 state tracker
223     Group: Development/C
224     Requires: %{libd3dname} = %{version}-%{release}
225     Provides: lib%{d3dname}-devel
226     Provides: %{d3dname}-devel
227     Provides: libd3d-devel
228    
229 pterjan 5340 %package -n %{libglname}-devel
230     Summary: Development files for Mesa (OpenGL compatible 3D lib)
231     Group: Development/C
232 tv 88237 Requires: %{libglname} = %{version}-%{release}
233 pterjan 5340 Provides: lib%{glname}-devel = %{version}-%{release}
234     Provides: %{glname}-devel = %{version}-%{release}
235     Provides: GL-devel
236     Obsoletes: %{oldlibglname}-devel < 6.4
237     Provides: %{oldlibglname}-devel = %{version}-%{release}
238     Provides: libMesaGL-devel = %{version}-%{release}
239     Provides: MesaGL-devel = %{version}-%{release}
240 tv 88438 Provides: libgl-devel
241 pterjan 5340
242 tv 88433 %package -n %{libeglname}
243     Summary: Files for Mesa (EGL libs)
244     Group: System/Libraries
245     Provides: %{libeglname_virt} = %{version}-%{release}
246    
247     %package -n %{libeglname}-devel
248     Summary: Development files for Mesa (EGL libs)
249     Group: Development/C
250 tv 88439 Requires: %{libeglname} = %{version}-%{release}
251 tv 88433 Provides: EGL-devel
252 tv 88438 Provides: lib%{eglname}-devel
253     Provides: %{eglname}-devel
254     Provides: libegl-devel
255 tv 88433
256 anssi 278008 %package -n %{libosmesaname}
257     Summary: Mesa offscreen rendering library
258     Group: System/Libraries
259    
260     %package -n %{osmesadevel}
261     Summary: Development files for libosmesa
262     Group: Development/C
263     Requires: %{libosmesaname} = %{version}-%{release}
264     Provides: osmesa-devel = %{version}-%{release}
265     Conflicts: MesaGL-devel < 8.1.0-0.git20120727.3
266    
267 mikala 112356 %package -n %{libglapiname}
268     Summary: Files for mesa (glapi libs)
269     Group: System/Libraries
270     Provides: %{libglapiname_virt} = %{version}-%{release}
271 tv 88442
272 mikala 112356 %package -n %{libglapiname}-devel
273     Summary: Development files for glapi libs
274     Group: Development/C
275     Requires: %{libglapiname_virt} = %{version}-%{release}
276     Provides: lib%{glapiname}-devel
277     Provides: %{libglapiname}-devel
278    
279 tv 88442 %package -n %{libglesv1name}
280     Summary: Files for Mesa (glesv1 libs)
281     Group: System/Libraries
282     Provides: %{libglesv1name_virt} = %{version}-%{release}
283    
284     %package -n %{libglesv1name}-devel
285     Summary: Development files for glesv1 libs
286     Group: Development/C
287     Requires: %{libglesv1name} = %{version}-%{release}
288     Provides: lib%{glesv1name}-devel
289     Provides: %{glesv1name}-devel
290     Provides: libglesv1-devel
291    
292     %package -n %{libglesv2name}
293     Summary: Files for Mesa (glesv2 libs)
294     Group: System/Libraries
295     Provides: %{libglesv2name_virt} = %{version}-%{release}
296    
297     %package -n %{libglesv2name}-devel
298     Summary: Development files for glesv2 libs
299     Group: Development/C
300     Requires: %{libglesv2name} = %{version}-%{release}
301 blino 216556 Requires: %{libeglname}-devel = %{version}-%{release}
302 tv 88442 Provides: lib%{glesv2name}-devel
303     Provides: %{glesv2name}-devel
304     Provides: libglesv2-devel
305    
306 blino 215979 %package -n %{libgbmname}
307     Summary: Files for Mesa (gbm libs)
308     Group: System/Libraries
309     Provides: %{libgbmname_virt} = %{version}-%{release}
310    
311     %package -n %{libgbmname}-devel
312     Summary: Development files for Mesa (gbm libs)
313     Group: Development/C
314     Requires: %{libgbmname} = %{version}-%{release}
315     Provides: lib%{gbmname}-devel
316     Provides: %{gbmname}-devel
317    
318     %package -n %{libwaylandeglname}
319     Summary: Files for Mesa (Wayland EGL libs)
320     Group: System/Libraries
321     Provides: %{libwaylandeglname_virt} = %{version}-%{release}
322    
323     %package -n %{libwaylandeglname}-devel
324     Summary: Development files for Mesa (Wayland EGL libs)
325     Group: Development/C
326     Requires: %{libwaylandeglname} = %{version}-%{release}
327     Provides: lib%{waylandeglname}-devel
328     Provides: %{waylandeglname}-devel
329    
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 anssi 278008 %description -n %{libosmesaname}
433     Mesa offscreen rendering libraries for rendering OpenGL into
434     application-allocated blocks of memory.
435    
436     %description -n %{osmesadevel}
437     This package contains the headers needed to compile programs against
438     the Mesa offscreen rendering library.
439    
440 mikala 112356 %description -n %{libglapiname}
441     This packages provides the glapi shared library used by gallium.
442    
443     %description -n %{libglapiname}-devel
444     This package contains the headers needed to compile programes against glapi shared library.
445    
446 tv 88442 %description -n %{libglesv1name}-devel
447     This package contains the headers needed to compile OpenGL ES 1 programs.
448    
449 tv 812143 %description -n %{libd3dname}
450     Mesa Direct3D9 state tracker.
451    
452     %description -n %{libd3dname}-devel
453     Mesa Direct3D9 state tracker development package.
454    
455 tv 88442 %description -n %{libglesv2name}
456     OpenGL ES is a low-level, lightweight API for advanced embedded graphics using
457     well-defined subset profiles of OpenGL.
458    
459     This package provides the OpenGL ES library version 2.
460    
461     %description -n %{libglesv2name}-devel
462     This package contains the headers needed to compile OpenGL ES 2 programs.
463    
464 blino 215979 %description -n %{libgbmname}
465 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
466 blino 215979 GBM (Graphics Buffer Manager) parts.
467    
468     %description -n %{libgbmname}-devel
469 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
470 blino 215979 GBM (Graphics Buffer Manager) development parts.
471    
472     %description -n %{libwaylandeglname}
473 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
474 blino 215979 Wayland EGL platform parts.
475    
476     %description -n %{libwaylandeglname}-devel
477 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
478 blino 215979 Wayland EGL platform development parts.
479    
480 tv 634669 %description -n %{libxaname}
481     This packages provides the xa shared library used by gallium.
482    
483     %description -n %{libxaname}-devel
484     This package contains the headers needed to compile programes against xa shared library.
485    
486 tv 301233 %description -n %{_lib}vdpau-driver-nouveau
487 blino 270761 This packages provides a VPDAU plugin to enable video acceleration
488     with the nouveau driver.
489    
490 tv 799259 %description -n %{_lib}vdpau-driver-r300
491     This packages provides a VPDAU plugin to enable video acceleration
492     with the r300 driver.
493    
494 tv 301233 %description -n %{_lib}vdpau-driver-r600
495 blino 270761 This packages provides a VPDAU plugin to enable video acceleration
496     with the r600 driver.
497    
498 tv 301233 %description -n %{_lib}vdpau-driver-radeonsi
499 blino 289282 This packages provides a VPDAU plugin to enable video acceleration
500     with the radeonsi driver.
501    
502 akien 1041911 %if %{enable_vulkan}
503     %description -n %{libvulkanname}_intel
504     This package contains the Vulkan parts for Mesa's Intel driver.
505    
506 akien 1099595 %description -n %{libvulkanname}_radeon
507     This package contains the Vulkan parts for Mesa's Radeon driver.
508    
509 akien 1041911 %description -n %{libvulkanname}-devel
510     This package contains the development files for Mesa's Vulkan implementation.
511     %endif
512    
513 tv 88440 #------------------------------------------------------------------------------
514    
515 pterjan 5340 %prep
516 akien 1099119 %autosetup -n %{name}-%{version}%{?relc:-rc%{relc}} -p1
517 pterjan 5340
518 tv 1173701 # this is a hack for S3TC support. r200_screen.c is symlinked to
519     # radeon_screen.c in git, but is its own file in the tarball.
520     cp -f src/mesa/drivers/dri/{radeon,r200}/radeon_screen.c
521    
522 pterjan 5340 %build
523 cjw 336175 # (re)generate auto* generated files using our autotools and libtoolize
524     autoreconf -vfi
525    
526 tv 551068 # for bin/test-driver:
527     automake --add-missing
528    
529 tv 1051650 %configure2_5x \
530 akien 1041911 %if %{enable_vulkan}
531 akien 1099595 --with-vulkan-drivers=intel,radeon \
532 akien 1041911 %endif
533 tv 1051646 --enable-gallium-osmesa \
534 tv 1051650 --with-dri-driverdir=%{_libdir}/dri \
535 pterjan 5340 --enable-egl \
536 tv 88442 --enable-gles1 \
537     --enable-gles2 \
538 blino 270761 --disable-xvmc \
539     --enable-vdpau \
540 tv 1051650 --enable-va \
541 tv 1140192 --with-platforms=x11,wayland,drm \
542 tv 1051650 --enable-shared-glapi \
543     --enable-gbm \
544     --enable-glx \
545     --enable-glx-tls \
546     --enable-texture-float=yes \
547 tv 1140192 --enable-llvm \
548 tv 1051650 --enable-dri \
549 tv 634669 --enable-xa \
550 blino 897332 --enable-nine \
551 cjw 1174481 --with-gallium-drivers=r300,r600,radeonsi,nouveau,swrast,virgl%{?gallium_platform_drivers} \
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 akien 1099595 %files -n %{libvulkanname}_radeon
711     %dir %{_datadir}/vulkan
712     %dir %{_datadir}/vulkan/icd.d
713     %{_datadir}/vulkan/icd.d/radeon_icd*.json
714     # (akien) No lib major?
715     %{_libdir}/libvulkan_radeon.so
716    
717 akien 1041911 %files -n %{libvulkanname}-devel
718     %{_includedir}/vulkan/
719     %endif

  ViewVC Help
Powered by ViewVC 1.1.26