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

  ViewVC Help
Powered by ViewVC 1.1.26