/[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 1230842 - (hide annotations) (download)
Sun May 20 21:04:16 2018 UTC (15 months ago) by kekepower
File size: 21332 byte(s)
- Update to version 18.1.0

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

  ViewVC Help
Powered by ViewVC 1.1.26