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

  ViewVC Help
Powered by ViewVC 1.1.26