/[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 1156949 - (hide annotations) (download)
Thu Sep 21 22:14:52 2017 UTC (21 months, 3 weeks ago) by tv
File size: 20875 byte(s)
rebuild with llvm-4.0 in core/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 1155144 %define main_version 17.2.1
21 tv 1151285 #define relc 5
22 tv 1156949 %define rel 3.2
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     %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 ovitters 1145130 BuildRequires: pkgconfig(expat) >= 2.0.1
121 pterjan 5340 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 ovitters 1145130 BuildRequires: pkgconfig(libelf)
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 ovitters 1145130 BuildRequires: pkgconfig(wayland-protocols) >= 1.8
145 pterjan 5340
146     URL: http://www.mesa3d.org
147     %if %{git}
148 ghibo 1066639 #Source0: %{name}-%{git}.tar.bz2
149     # (blino) snapshot of 13.0 branch
150     Source0: %{name}-%{git_branch}-%{git}.tar.xz
151 pterjan 5340 %else
152 tmb 1107908 Source0: https://mesa.freedesktop.org/archive/mesa-%{main_version}%{?relc:-rc%{relc}}.tar.xz
153 pterjan 5340 %endif
154     Source3: make-git-snapshot.sh
155    
156     # Instructions to setup your repository clone
157     # git://git.freedesktop.org/git/mesa/mesa
158     # git checkout mesa_7_5_branch
159     # git branch mdv-cherry-picks
160     # git am ../02??-*.patch
161     # git branch mdv-redhat
162     # git am ../03??-*.patch
163     # git branch mdv-patches
164     # git am ../09??-*.patch
165     # In order to update to the branch via patches, issue this command:
166     # git format-patch --start-number 100 mesa_7_5_1..mesa_7_5_branch | sed 's/^0\([0-9]\+\)-/Patch\1: 0\1-/'
167    
168     # Cherry picks
169     # git format-patch --start-number 200 mesa_7_5_branch..mdv-cherry-picks
170 tmb 411326
171 tv 88247 # Patches "liberated" from Fedora:
172 tv 1051664 # http://pkgs.fedoraproject.org/cgit/rpms/mesa.git/
173 pterjan 5340 # git format-patch --start-number 300 mdv-cherry-picks..mdv-redhat
174    
175 blino 278732 # Patches from ChromiumOS
176     # http://git.chromium.org/gitweb/?p=chromiumos/overlays/chromiumos-overlay.git;a=tree;f=media-libs/mesa/files;hb=HEAD
177    
178 blino 271493 # Mageia/Mandriva patches
179 pterjan 5340 # git format-patch --start-number 900 mdv-redhat..mdv-patches
180    
181 tv 88440 #------------------------------------------------------------------------------
182    
183     # package mesa
184 pterjan 5340 License: MIT
185     Requires: %{libglname} = %{version}-%{release}
186     Provides: hackMesa = %{version}
187     Obsoletes: hackMesa <= %{version}
188     Provides: Mesa = %{version}
189     Obsoletes: Mesa < %{version}
190    
191     %package -n %{libglname}
192     Summary: Files for Mesa (GL and GLX libs)
193     Group: System/Libraries
194 tv 88247 Obsoletes: %{oldlibglname} < 6.4
195 pterjan 5340 Provides: %{oldlibglname} = %{version}-%{release}
196     Provides: %{libglname_virt} = %{version}-%{release}
197     Requires: %{dridrivers} >= %{version}-%{release}
198 tv 135172 %if %{build_plf}
199     Requires: %mklibname txc-dxtn
200     %endif
201 pterjan 5340
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 tv 135173 %if %{build_plf}
402 pterjan 5340
403 tv 135173 This package is in the "tainted" section because it enables some
404     OpenGL extentions that are covered by software patents.
405     %endif
406    
407 pterjan 5340 %description common-devel
408     Mesa common metapackage devel
409    
410     %description -n %{libeglname}
411 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
412 pterjan 5340 EGL parts.
413    
414     %description -n %{libeglname}-devel
415 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
416 pterjan 5340 EGL development parts.
417    
418     %description -n %{libglname}
419 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
420 pterjan 5340 GL and GLX parts.
421    
422 tv 135155 %if %{build_plf}
423     This package is in the "tainted" section because it enables some
424     OpenGL extentions that are covered by software patents.
425     %endif
426    
427 pterjan 5340 %description -n %{dridrivers}
428 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
429 pterjan 5340 DRI drivers.
430    
431     %description -n %{libglname}-devel
432 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
433 pterjan 5340
434     This package contains the headers needed to compile Mesa programs.
435    
436 tv 88442 %description -n %{libglesv1name}
437     OpenGL ES is a low-level, lightweight API for advanced embedded graphics using
438     well-defined subset profiles of OpenGL.
439    
440     This package provides the OpenGL ES library version 1.
441    
442 anssi 278008 %description -n %{libosmesaname}
443     Mesa offscreen rendering libraries for rendering OpenGL into
444     application-allocated blocks of memory.
445    
446     %description -n %{osmesadevel}
447     This package contains the headers needed to compile programs against
448     the Mesa offscreen rendering library.
449    
450 mikala 112356 %description -n %{libglapiname}
451     This packages provides the glapi shared library used by gallium.
452    
453     %description -n %{libglapiname}-devel
454     This package contains the headers needed to compile programes against glapi shared library.
455    
456 tv 88442 %description -n %{libglesv1name}-devel
457     This package contains the headers needed to compile OpenGL ES 1 programs.
458    
459 tv 812143 %description -n %{libd3dname}
460     Mesa Direct3D9 state tracker.
461    
462     %description -n %{libd3dname}-devel
463     Mesa Direct3D9 state tracker development package.
464    
465 tv 88442 %description -n %{libglesv2name}
466     OpenGL ES is a low-level, lightweight API for advanced embedded graphics using
467     well-defined subset profiles of OpenGL.
468    
469     This package provides the OpenGL ES library version 2.
470    
471     %description -n %{libglesv2name}-devel
472     This package contains the headers needed to compile OpenGL ES 2 programs.
473    
474 blino 215979 %description -n %{libgbmname}
475 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
476 blino 215979 GBM (Graphics Buffer Manager) parts.
477    
478     %description -n %{libgbmname}-devel
479 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
480 blino 215979 GBM (Graphics Buffer Manager) development parts.
481    
482     %description -n %{libwaylandeglname}
483 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
484 blino 215979 Wayland EGL platform parts.
485    
486     %description -n %{libwaylandeglname}-devel
487 blino 289598 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
488 blino 215979 Wayland EGL platform development parts.
489    
490 tv 634669 %description -n %{libxaname}
491     This packages provides the xa shared library used by gallium.
492    
493     %description -n %{libxaname}-devel
494     This package contains the headers needed to compile programes against xa shared library.
495    
496 tv 301233 %description -n %{_lib}vdpau-driver-nouveau
497 blino 270761 This packages provides a VPDAU plugin to enable video acceleration
498     with the nouveau driver.
499    
500 tv 799259 %description -n %{_lib}vdpau-driver-r300
501     This packages provides a VPDAU plugin to enable video acceleration
502     with the r300 driver.
503    
504 tv 301233 %description -n %{_lib}vdpau-driver-r600
505 blino 270761 This packages provides a VPDAU plugin to enable video acceleration
506     with the r600 driver.
507    
508 tv 301233 %description -n %{_lib}vdpau-driver-radeonsi
509 blino 289282 This packages provides a VPDAU plugin to enable video acceleration
510     with the radeonsi driver.
511    
512 akien 1041911 %if %{enable_vulkan}
513     %description -n %{libvulkanname}_intel
514     This package contains the Vulkan parts for Mesa's Intel driver.
515    
516 akien 1099595 %description -n %{libvulkanname}_radeon
517     This package contains the Vulkan parts for Mesa's Radeon driver.
518    
519 akien 1041911 %description -n %{libvulkanname}-devel
520     This package contains the development files for Mesa's Vulkan implementation.
521     %endif
522    
523 tv 88440 #------------------------------------------------------------------------------
524    
525 pterjan 5340 %prep
526 akien 1099119 %autosetup -n %{name}-%{version}%{?relc:-rc%{relc}} -p1
527 pterjan 5340
528     %build
529 cjw 336175 # (re)generate auto* generated files using our autotools and libtoolize
530     autoreconf -vfi
531    
532 tv 551068 # for bin/test-driver:
533     automake --add-missing
534    
535 tv 1051650 %configure2_5x \
536 akien 1041911 %if %{enable_vulkan}
537 akien 1099595 --with-vulkan-drivers=intel,radeon \
538 akien 1041911 %endif
539 tv 1051646 --enable-gallium-osmesa \
540 tv 1051650 --with-dri-driverdir=%{_libdir}/dri \
541 pterjan 5340 --enable-egl \
542 tv 88442 --enable-gles1 \
543     --enable-gles2 \
544 blino 270761 --disable-xvmc \
545     --enable-vdpau \
546 tv 1051650 --enable-va \
547 tv 1140192 --with-platforms=x11,wayland,drm \
548 tv 1051650 --enable-shared-glapi \
549     --enable-gbm \
550     --enable-glx \
551     --enable-glx-tls \
552     %if %{build_plf}
553     --enable-texture-float=yes \
554     %endif
555 tv 1140192 --enable-llvm \
556 tv 1051650 --enable-dri \
557 tv 634669 --enable-xa \
558 blino 897332 --enable-nine \
559 tv 1051650 --with-gallium-drivers=r300,r600,radeonsi,nouveau,svga,swrast,virgl \
560 tv 1051613 %{?dri_drivers}
561 blino 270723 # end of configure options
562 pterjan 5340
563 anssi 332631
564 anssi 165988 %make
565 pterjan 5340
566     %install
567 tv 1051611 %make_install
568 pterjan 5340
569 blino 216556 # FIXME: strip will likely break the hardlink
570 pterjan 5340 # (blino) hardlink libGL files in %{_libdir}/mesa
571     # to prevent proprietary driver installers from removing them
572     mkdir -p $RPM_BUILD_ROOT%{_libdir}/mesa
573     pushd $RPM_BUILD_ROOT%{_libdir}/mesa
574     for l in ../libGL.so.*; do cp -a $l .; done
575     popd
576    
577     %ifarch %{x86_64}
578     mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/dri
579     %endif
580    
581 tv 1051623 # libvdpau opens the versioned name, don't bother including the unversioned
582     rm -f %{buildroot}%{_libdir}/vdpau/*.so
583 blino 270761
584 tv 1051625 # strip out useless headers
585     rm -f %{buildroot}%{_includedir}/GL/w*.h
586    
587 tv 1051622 # remove .la files
588 tv 881746 find %{buildroot} -name '*.la' -delete
589 blino 271144
590 tv 88440 #------------------------------------------------------------------------------
591    
592 pterjan 5340 %files
593 blino 271500 %config(noreplace) %{_sysconfdir}/drirc
594 pterjan 5340
595     %files -n %{dridrivers}
596     %dir %{_libdir}/dri
597     %{_libdir}/dri/*_dri.so
598 tv 812142 %{_libdir}/dri/*_drv*.so
599 pterjan 5340
600 tv 88433 %files -n %{libglname}
601     %{_libdir}/libGL.so.*
602     %dir %{_libdir}/mesa
603 ovitters 877635 %{_libdir}/mesa/libGL.so.%{glmajor}{,.*}
604 tv 88433
605     %files -n %{libeglname}
606 ovitters 877635 %{_libdir}/libEGL.so.%{eglmajor}{,.*}
607 tv 88433
608 anssi 278008 %files -n %{libosmesaname}
609 ovitters 877635 %{_libdir}/libOSMesa.so.%{osmesamajor}{,.*}
610 anssi 278008
611 mikala 112356 %files -n %{libglapiname}
612 ovitters 877635 %{_libdir}/libglapi.so.%{glapimajor}{,.*}
613 mikala 112356
614 tv 88442 %files -n %{libglesv1name}
615 ovitters 877635 %{_libdir}/libGLESv1_CM.so.%{glesv1major}{,.*}
616 tv 88442
617 tv 812143 %files -n %{libd3dname}
618     %{_libdir}/d3d/*.so.*
619    
620 tv 88442 %files -n %{libglesv2name}
621 ovitters 877635 %{_libdir}/libGLESv2.so.%{glesv2major}{,.*}
622 tv 88442
623 blino 215979 %files -n %{libgbmname}
624     %{_libdir}/libgbm.so.%{gbmmajor}
625 ovitters 878590 %{_libdir}/libgbm.so.%{gbmmajor}.*
626 tv 88445
627 blino 215979 %files -n %{libwaylandeglname}
628     %{_libdir}/libwayland-egl.so.%{waylandeglmajor}
629 ovitters 878590 %{_libdir}/libwayland-egl.so.%{waylandeglmajor}.*
630 blino 215979
631 tv 634669 %files -n %{libxaname}
632 ovitters 877635 %{_libdir}/libxatracker.so.%{xamajor}{,.*}
633 blino 215979
634 pterjan 5340 %files -n %{libglname}-devel
635 anssi 278008 %dir %{_includedir}/GL
636 pterjan 5340 %{_includedir}/GL/gl.h
637 tv 1051618 %{_includedir}/GL/gl_mangle.h
638 pterjan 5340 %{_includedir}/GL/glext.h
639     %{_includedir}/GL/glx.h
640 tv 1051618 %{_includedir}/GL/glx_mangle.h
641 pterjan 5340 %{_includedir}/GL/glxext.h
642 tv 1051618 %{_includedir}/GL/glcorearb.h
643     %dir %{_includedir}/GL/internal
644     %{_includedir}/GL/internal/dri_interface.h
645     %{_libdir}/pkgconfig/dri.pc
646 pterjan 5340 %{_libdir}/libGL.so
647 tv 88436 %{_libdir}/pkgconfig/gl.pc
648 pterjan 5340
649     %files common-devel
650 tv 1051614
651 tv 88433 %files -n %{libeglname}-devel
652 tv 88442 %{_includedir}/EGL
653     %{_includedir}/KHR
654 tv 88433 %{_libdir}/libEGL.so
655 tv 88436 %{_libdir}/pkgconfig/egl.pc
656 pterjan 5340
657 anssi 278008 %files -n %{osmesadevel}
658     %dir %{_includedir}/GL
659     %{_includedir}/GL/osmesa.h
660     %{_libdir}/libOSMesa.so
661     %{_libdir}/pkgconfig/osmesa.pc
662    
663 mikala 112356 %files -n %{libglapiname}-devel
664     %{_libdir}/libglapi.so
665 pterjan 5340
666 tv 88442 %files -n %{libglesv1name}-devel
667     %{_includedir}/GLES
668     %{_libdir}/libGLESv1_CM.so
669     %{_libdir}/pkgconfig/glesv1_cm.pc
670 tv 88433
671 tv 88442 %files -n %{libglesv2name}-devel
672     %{_includedir}/GLES2
673 cjw 336175 %{_includedir}/GLES3
674 tv 88442 %{_libdir}/libGLESv2.so
675     %{_libdir}/pkgconfig/glesv2.pc
676 tv 88445
677 tv 812143 %files -n %{libd3dname}-devel
678     %{_includedir}/d3dadapter
679     %{_libdir}/d3d/*.so
680     %{_libdir}/pkgconfig/d3d.pc
681    
682 blino 215979 %files -n %{libgbmname}-devel
683 tv 1051618 %{_libdir}/libgbm.so
684 blino 215979 %{_includedir}/gbm.h
685     %{_libdir}/pkgconfig/gbm.pc
686    
687     %files -n %{libwaylandeglname}-devel
688     %{_libdir}/libwayland-egl.so
689     %{_libdir}/pkgconfig/wayland-egl.pc
690 blino 270761
691 tv 634669 %files -n %{libxaname}-devel
692     %{_libdir}/libxatracker.so
693     %{_includedir}/xa_tracker.h
694     %{_includedir}/xa_composite.h
695     %{_includedir}/xa_context.h
696     %{_libdir}/pkgconfig/xatracker.pc
697    
698 tv 301233 %files -n %{_lib}vdpau-driver-nouveau
699 blino 270761 %{_libdir}/vdpau/libvdpau_nouveau.so.*
700    
701 tv 799259 %files -n %{_lib}vdpau-driver-r300
702     %{_libdir}/vdpau/libvdpau_r300.so.*
703    
704 tv 301233 %files -n %{_lib}vdpau-driver-r600
705 blino 270761 %{_libdir}/vdpau/libvdpau_r600.so.*
706    
707 tv 301233 %files -n %{_lib}vdpau-driver-radeonsi
708 blino 289282 %{_libdir}/vdpau/libvdpau_radeonsi.so.*
709 akien 1041911
710     %if %{enable_vulkan}
711     %files -n %{libvulkanname}_intel
712     %dir %{_datadir}/vulkan
713     %dir %{_datadir}/vulkan/icd.d
714 ghibo 1065537 %{_datadir}/vulkan/icd.d/intel_icd*.json
715 akien 1041911 # (akien) No lib major?
716     %{_libdir}/libvulkan_intel.so
717    
718 akien 1099595 %files -n %{libvulkanname}_radeon
719     %dir %{_datadir}/vulkan
720     %dir %{_datadir}/vulkan/icd.d
721     %{_datadir}/vulkan/icd.d/radeon_icd*.json
722     # (akien) No lib major?
723     %{_libdir}/libvulkan_radeon.so
724    
725 akien 1041911 %files -n %{libvulkanname}-devel
726     %{_includedir}/vulkan/
727     %endif

  ViewVC Help
Powered by ViewVC 1.1.26