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

  ViewVC Help
Powered by ViewVC 1.1.26