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

  ViewVC Help
Powered by ViewVC 1.1.26