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

  ViewVC Help
Powered by ViewVC 1.1.26