4 # --enable-shared-dricore
5 # - subpackage with non-dri libGL for use with X-servers with missing GLX extension?
6 # - resurrect static if it's useful
9 %bcond_without egl # EGL libraries
10 %bcond_without gallium # gallium drivers
11 %bcond_with gallium_intel # gallium i915 driver (but doesn't work with AIGLX)
12 %bcond_without gallium_nouveau # gallium nouveau driver
13 %bcond_without osmesa # OSMesa libraries
14 %bcond_without gbm # with Graphics Buffer Manager
15 %bcond_with static_libs # static libraries
17 # minimal supported xserver version
18 %define xserver_ver 1.5.0
19 # glapi version (glapi tables in dri drivers and libglx must be in sync);
20 # set to current Mesa version on ABI break, when xserver tables get regenerated
21 # (until they start to be somehow versioned themselves)
22 %define glapi_ver 7.1.0
24 %define libdrm_ver 2.4.30
25 %define dri2proto_ver 2.6
26 %define glproto_ver 1.4.14
28 Summary: Free OpenGL implementation
29 Summary(pl.UTF-8): Wolnodostępna implementacja standardu OpenGL
33 License: MIT (core), SGI (GLU) and others - see license.html file
35 Source0: ftp://ftp.freedesktop.org/pub/mesa/%{version}/%{name}Lib-%{version}.tar.bz2
36 # Source0-md5: 24eeebf66971809d8f40775a379b36c9
37 Patch0: %{name}-realclean.patch
38 URL: http://www.mesa3d.org/
39 BuildRequires: autoconf >= 2.59
40 BuildRequires: automake
41 BuildRequires: expat-devel
42 BuildRequires: gcc >= 5:3.3
43 BuildRequires: libdrm-devel >= %{libdrm_ver}
44 BuildRequires: libselinux-devel
45 BuildRequires: libstdc++-devel >= 5:3.3.0
46 BuildRequires: libtalloc-devel >= 2:2.0.1
47 BuildRequires: libtool >= 2:1.4d
48 BuildRequires: libvdpau-devel >= 0.4.1
49 BuildRequires: llvm-devel >= 2.9
50 BuildRequires: pixman-devel
51 BuildRequires: pkgconfig
52 BuildRequires: pkgconfig(talloc) >= 2.0.1
54 BuildRequires: python-libxml2
55 BuildRequires: python-modules
56 BuildRequires: rpmbuild(macros) >= 1.470
57 BuildRequires: sed >= 4.0
58 BuildRequires: xorg-lib-libXdamage-devel
59 BuildRequires: xorg-lib-libXext-devel >= 1.0.5
60 BuildRequires: xorg-lib-libXt-devel
61 BuildRequires: xorg-lib-libXvMC-devel >= 1.0.6
62 BuildRequires: xorg-lib-libXxf86vm-devel
63 BuildRequires: xorg-proto-dri2proto-devel >= %{dri2proto_ver}
64 BuildRequires: xorg-proto-glproto-devel >= %{glproto_ver}
65 BuildRequires: xorg-util-makedepend
66 BuildRequires: xorg-xserver-server-devel
68 BuildRequires: libxcb-devel
69 BuildRequires: udev-devel >= 1:150
72 BuildRequires: xorg-proto-xextproto-devel >= 7.0.99.1
73 BuildRequires: xorg-xserver-server-devel >= 1.6.0
75 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
77 %if %{without gallium}
78 %undefine with_gallium_intel
79 %undefine with_gallium_nouveau
86 # _glapi_tls_Dispatch is defined in libglapi, but it's some kind of symbol ldd -r doesn't notice(?)
87 %define skip_post_check_so libGLESv1_CM.so.1.* libGLESv2.so.2.* libGL.so.1.* libXvMCnouveau.so.1.* libXvMCr300.so.1.* libXvMCr600.so.1.* libXvMCsoftpipe.so.1.* libvdpau_nouveau.so.1.*
90 %define filterout_ld -Wl,--as-needed
93 Mesa is a 3-D graphics library with an API which is very similar to
94 that of OpenGL(R). To the extent that Mesa utilizes the OpenGL command
95 syntax or state machine, it is being used with authorization from
96 Silicon Graphics, Inc. However, the author does not possess an OpenGL
97 license from SGI, and makes no claim that Mesa is in any way a
98 compatible replacement for OpenGL or associated with SGI.
100 %description -l pl.UTF-8
101 Mesa jest biblioteką grafiki 3D z API bardzo podobnym do OpenGL(R). Do
102 tego stopnia, że Mesa używa składni i automatu OpenGL jest używana z
103 autoryzacją Silicon Graphics, Inc. Jednak autor nie posiada licencji
104 OpenGL od SGI i nie twierdzi, że Mesa jest kompatybilnym zamiennikiem
105 OpenGL ani powiązana z SGI.
108 Summary: Mesa implementation of EGL Native Platform Graphics Interface library
109 Summary(pl.UTF-8): Implementacja Mesa biblioteki interfejsu EGL
112 # glx driver in libEGL dlopens libGL.so
113 Requires: OpenGL >= 1.2
114 Requires: libdrm >= %{libdrm_ver}
117 Requires: Mesa-libOpenVG = %{version}-%{release}
118 Requires: udev-libs >= 1:150
123 This package contains shared libEGL - Mesa implementation of EGL
124 Native Platform Graphics Interface as specified by Khronos Group:
125 <http://www.khronos.org/egl/>.
127 %description libEGL -l pl.UTF-8
128 Ten pakiet zawiera bibliotekę współdzieloną libEGL - implementację
129 Mesa standardu EGL Native Platform Graphics Interface (interfejsu
130 graficznego platformy natywnej) wg specyfikacji Khronos Group:
131 <http://www.khronos.org/egl/>.
133 %package libEGL-devel
134 Summary: Header files for Mesa implementation of EGL library
135 Summary(pl.UTF-8): Pliki nagłówkowe implementacji Mesa biblioteki EGL
137 Group: Development/Libraries
138 Requires: %{name}-libEGL = %{version}-%{release}
139 Requires: libdrm-devel >= %{libdrm_ver}
140 Requires: xorg-lib-libX11-devel
141 Requires: xorg-lib-libXdamage-devel
142 Requires: xorg-lib-libXext-devel
143 Requires: xorg-lib-libXfixes-devel
144 Requires: xorg-lib-libXxf86vm-devel
145 Requires: xorg-proto-dri2proto-devel >= %{dri2proto_ver}
146 Requires: xorg-proto-glproto-devel >= %{glproto_ver}
147 Provides: EGL-devel = 1.4
149 %description libEGL-devel
150 Header files for Mesa implementation of EGL library.
152 %description libEGL-devel -l pl.UTF-8
153 Pliki nagłówkowe implementacji Mesa biblioteki EGL.
155 %package libEGL-static
156 Summary: Static Mesa EGL library
157 Summary(pl.UTF-8): Statyczna biblioteka Mesa EGL
159 Group: Development/Libraries
160 Requires: %{name}-libEGL-devel = %{version}-%{release}
161 Provides: EGL-static = 1.4
163 %description libEGL-static
164 Static Mesa EGL library.
166 %description libEGL-static -l pl.UTF-8
167 Statyczna biblioteka Mesa EGL.
169 %package gbm-driver-i915
170 Summary: i915 driver for Mesa GBM framework (used by EGL and OpenVG APIs)
171 Summary(pl.UTF-8): Sterownik i915 dla szkieletu Mesa GBM (wykorzystywanego przez API EGL i OpenVG)
173 Requires: %{name}-libEGL = %{version}-%{release}
175 %description gbm-driver-i915
176 i915 driver for Mesa Graphics Buffer Manager (used by EGL and OpenVG
177 APIs). It supports Intel 915/945/G33/Q33/Q35/Pineview chips.
179 %description gbm-driver-i915 -l pl.UTF-8
180 Sterownik i915 dla szkieletu Mesa Graphics Buffer Manager (zarządcy
181 bufora graficznego, wykorzystywanego przez API EGL i OpenVG).
182 Obsługuje układy Intel 915/945/G33/Q33/Q35/Pineview.
184 %package gbm-driver-nouveau
185 Summary: nouveau driver for Mesa GBM framework (used by EGL and OpenVG APIs)
186 Summary(pl.UTF-8): Sterownik nouveau dla szkieletu Mesa GBM (wykorzystywanego przez API EGL i OpenVG)
188 Requires: %{name}-libEGL = %{version}-%{release}
190 %description gbm-driver-nouveau
191 nouveau driver for Mesa Graphics Buffer Manager (used by EGL and
192 OpenVG APIs). It supports NVidia adapters.
194 %description gbm-driver-nouveau -l pl.UTF-8
195 Sterownik nouveau dla szkieletu Mesa Graphics Buffer Manager (zarządcy
196 bufora graficznego, wykorzystywanego przez API EGL i OpenVG).
197 Obsługuje karty graficzne firmy NVidia.
199 %package gbm-driver-r300
200 Summary: r300 driver for Mesa GBM framework (used by EGL and OpenVG APIs)
201 Summary(pl.UTF-8): Sterownik r300 dla szkieletu Mesa GBM (wykorzystywanego przez API EGL i OpenVG)
203 Requires: %{name}-libEGL = %{version}-%{release}
205 %description gbm-driver-r300
206 r300 driver for Mesa Graphics Buffer Manager (used by EGL and
207 OpenVG APIs). It supports ATI Radeon adapters based on
208 R300/R400/RS690/R500 chips.
210 %description gbm-driver-r300 -l pl.UTF-8
211 Sterownik r300 dla szkieletu Mesa Graphics Buffer Manager (zarządcy
212 bufora graficznego, wykorzystywanego przez API EGL i OpenVG).
213 Obsługuje karty graficzne ATI Radeon oparte na układach
214 R300/R400/RS690/R500.
216 %package gbm-driver-r600
217 Summary: r600 driver for Mesa GBM framework (used by EGL and OpenVG APIs)
218 Summary(pl.UTF-8): Sterownik r600 dla szkieletu Mesa GBM (wykorzystywanego przez API EGL i OpenVG)
220 Requires: %{name}-libEGL = %{version}-%{release}
222 %description gbm-driver-r600
223 r600 driver for Mesa Graphics Buffer Manager (used by EGL and
224 OpenVG APIs). It supports ATI Radeon adapters based on R600/R700
227 %description gbm-driver-r600 -l pl.UTF-8
228 Sterownik r600 dla szkieletu Mesa Graphics Buffer Manager (zarządcy
229 bufora graficznego, wykorzystywanego przez API EGL i OpenVG).
230 Obsługuje karty graficzne ATI Radeon oparte na układach R600/R700.
232 %package gbm-driver-vmwgfx
233 Summary: vmwgfx driver for Mesa GBM framework (used by EGL and OpenVG APIs)
234 Summary(pl.UTF-8): Sterownik vmwgfx dla szkieletu Mesa GBM (wykorzystywanego przez API EGL i OpenVG)
236 Requires: %{name}-libEGL = %{version}-%{release}
238 %description gbm-driver-vmwgfx
239 vmwgfx driver for Mesa Graphics Buffer Manager (used by EGL and
240 OpenVG APIs). It supports VMware virtual video adapter.
242 %description gbm-driver-vmwgfx -l pl.UTF-8
243 Sterownik vmwgfx dla szkieletu Mesa Graphics Buffer Manager (zarządcy
244 bufora graficznego, wykorzystywanego przez API EGL i OpenVG).
245 Obsługuje wirtualną kartę graficzną VMware.
248 Summary: Free Mesa3D implementation of libGL OpenGL library
249 Summary(pl.UTF-8): Wolnodostępna implementacja Mesa3D biblioteki libGL ze standardu OpenGL
252 Requires: libdrm >= %{libdrm_ver}
253 Provides: OpenGL = 2.1
254 Provides: OpenGL-GLX = 1.4
257 Obsoletes: X11-OpenGL-libGL < 1:7.0.0
258 Obsoletes: XFree86-OpenGL-libGL < 1:7.0.0
261 Mesa is a 3-D graphics library with an API which is very similar to
262 that of OpenGL(R). To the extent that Mesa utilizes the OpenGL command
263 syntax or state machine, it is being used with authorization from
264 Silicon Graphics, Inc. However, the author does not possess an OpenGL
265 license from SGI, and makes no claim that Mesa is in any way a
266 compatible replacement for OpenGL or associated with SGI.
268 This package contains libGL which implements OpenGL 1.5 and GLX 1.4
269 specifications. It uses DRI for rendering.
271 %description libGL -l pl.UTF-8
272 Mesa jest biblioteką grafiki 3D z API bardzo podobnym do OpenGL(R). Do
273 tego stopnia, że Mesa używa składni i automatu OpenGL jest używana z
274 autoryzacją Silicon Graphics, Inc. Jednak autor nie posiada licencji
275 OpenGL od SGI i nie twierdzi, że Mesa jest kompatybilnym zamiennikiem
276 OpenGL ani powiązana z SGI.
278 Ten pakiet zawiera libGL implementującą specyfikacje OpenGL 1.5 oraz
279 GLX 1.4. Używa DRI do renderowania.
282 Summary: Header files for Mesa3D libGL library
283 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libGL z projektu Mesa3D
285 Group: X11/Development/Libraries
286 # loose dependency on libGL to use with other libGL binaries
287 Requires: OpenGL >= 1.5
288 Requires: libdrm-devel >= %{libdrm_ver}
289 Requires: xorg-lib-libX11-devel
290 Requires: xorg-lib-libXdamage-devel
291 Requires: xorg-lib-libXext-devel
292 Requires: xorg-lib-libXxf86vm-devel
293 Requires: xorg-proto-dri2proto-devel >= %{dri2proto_ver}
294 Requires: xorg-proto-glproto-devel >= %{glproto_ver}
295 Suggests: OpenGL-doc-man
296 Provides: OpenGL-GLX-devel = 1.4
297 Provides: OpenGL-devel = 2.1
298 Obsoletes: Mesa-devel
299 Obsoletes: X11-OpenGL-devel < 1:7.0.0
300 Obsoletes: X11-OpenGL-devel-base < 1:7.0.0
301 Obsoletes: XFree86-OpenGL-devel < 1:7.0.0
302 Obsoletes: XFree86-OpenGL-devel-base < 1:7.0.0
304 %description libGL-devel
305 Header files for Mesa3D libGL library.
307 %description libGL-devel -l pl.UTF-8
308 Pliki nagłówkowe biblioteki libGL z projektu Mesa3D.
310 %package libGL-static
311 Summary: Static Mesa3D libGL library
312 Summary(pl.UTF-8): Statyczna biblioteka libGL z projektu Mesa3D
314 Group: X11/Development/Libraries
315 Requires: %{name}-libGL-devel = %{version}-%{release}
316 Provides: OpenGL-static = 2.1
317 Obsoletes: Mesa-static
318 Obsoletes: X11-OpenGL-static < 1:7.0.0
319 Obsoletes: XFree86-OpenGL-static < 1:7.0.0
321 %description libGL-static
322 Static Mesa3D libGL library. It uses software renderer.
324 %description libGL-static -l pl.UTF-8
325 Statyczna biblioteka libGL z projektu Mesa3D. Używa programowego
329 Summary: Mesa implementation of GLES (OpenGL ES) libraries
330 Summary(pl.UTF-8): Implementacja Mesa bibliotek GLES (OpenGL ES)
332 # only for libglapi.so.0
333 Requires: %{name}-libEGL = %{version}-%{release}
336 This package contains shared libraries of Mesa implementation of GLES
337 (OpenGL ES) - cross-platform API for full-function 2D and 3D graphics
338 on embedded systems. OpenGL ES specification can be found on Khronos
339 Group site: <http://www.khronos.org/opengles/>. Mesa implements OpenGL
342 %description libGLES -l pl.UTF-8
343 Ten pakiet zawiera biblioteki współdzielone implementacji Mesa
344 standardu GLES (OpenGL ES) - wieloplatformowego API do w pełni
345 funkcjonalnej grafiki 2D i 3D na systemach wbudowanych. Specyfikację
346 OpenGL ES można znaleźć na stronie Khronos Group:
347 <http://www.khronos.org/opengles/>. Mesa zawiera implementacją OpenGL
350 %package libGLES-devel
351 Summary: Header files for Mesa GLES libraries
352 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Mesa GLES
353 Group: Development/Libraries
354 # EGL for libglapi.so, <KHR/khrplatform.h> always required, <EGL/egl.h> for <GLES/egl.h>
355 Requires: %{name}-libEGL-devel = %{version}-%{release}
356 Requires: %{name}-libGLES = %{version}-%{release}
358 %description libGLES-devel
359 Header files for Mesa GLES libraries.
361 %description libGLES-devel -l pl.UTF-8
362 Pliki nagłówkowe bibliotek Mesa GLES.
365 Summary: SGI implementation of libGLU OpenGL library
366 Summary(pl.UTF-8): Implementacja SGI biblioteki libGLU ze standardu OpenGL
367 License: SGI Free Software License B v2.0 (MIT-like)
369 # loose dependency on libGL.so.1 to use with other libGL binaries
370 Requires: OpenGL >= 1.2
371 Provides: OpenGL-GLU = 1.3
372 Obsoletes: Mesa-devel
373 Obsoletes: X11-OpenGL-libs < 1:7.0.0
374 Obsoletes: XFree86-OpenGL-libs < 1:7.0.0
377 SGI implementation of libGLU OpenGL library. It implements OpenGL GLU
380 %description libGLU -l pl.UTF-8
381 Implementacja SGI biblioteki libGLU ze standardu OpenGL. Implementuje
382 specyfikację OpenGL GLU 1.3.
384 %package libGLU-devel
385 Summary: Header files for SGI libGLU library
386 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SGI libGLU
387 License: SGI Free Software License B v2.0 (MIT-like)
388 Group: Development/Libraries
389 Requires: %{name}-libGLU = %{version}-%{release}
390 Requires: OpenGL-devel >= 1.2
391 Requires: libstdc++-devel
392 Provides: OpenGL-GLU-devel = 1.3
394 %description libGLU-devel
395 Header files for SGI libGLU library.
397 %description libGLU-devel -l pl.UTF-8
398 Pliki nagłówkowe biblioteki SGI libGLU.
400 %package libGLU-static
401 Summary: Static SGI libGLU library
402 Summary(pl.UTF-8): Statyczna biblioteka SGI libGLU
403 License: SGI Free Software License B v2.0 (MIT-like)
404 Group: Development/Libraries
405 Requires: %{name}-libGLU-devel = %{version}-%{release}
406 Provides: OpenGL-GLU-static = 1.3
408 %description libGLU-static
409 Static SGI libGLU library.
411 %description libGLU-static -l pl.UTF-8
412 Statyczna biblioteka SGI libGLU.
415 Summary: OSMesa (off-screen renderer) library
416 Summary(pl.UTF-8): Biblioteka OSMesa (renderująca bitmapy w pamięci)
419 # doesn't require base
421 %description libOSMesa
422 OSMesa (off-screen renderer) library.
424 %description libOSMesa -l pl.UTF-8
425 Biblioteka OSMesa (renderująca bitmapy w pamięci).
427 %package libOSMesa-devel
428 Summary: Header file for OSMesa (off-screen renderer) library
429 Summary(pl.UTF-8): Plik nagłówkowy biblioteki OSMesa (renderującej bitmapy w pamięci)
431 Group: Development/Libraries
432 Requires: %{name}-libOSMesa = %{version}-%{release}
434 Requires: OpenGL-devel
435 Requires: libselinux-devel
437 %description libOSMesa-devel
438 Header file for OSMesa (off-screen renderer) library.
440 %description libOSMesa-devel -l pl.UTF-8
441 Plik nagłówkowy biblioteki OSMesa (renderującej bitmapy w pamięci).
443 %package libOSMesa-static
444 Summary: Static OSMesa (off-screen renderer) library
445 Summary(pl.UTF-8): Biblioteka statyczna OSMesa (renderująca bitmapy w pamięci)
447 Group: Development/Libraries
448 Requires: %{name}-libOSMesa-devel = %{version}-%{release}
449 # this static build of OSMesa needs static non-dri Mesa implementation
450 Requires: %{name}-libGL-static = %{version}-%{release}
452 %description libOSMesa-static
453 Static OSMesa (off-screen renderer) library.
455 %description libOSMesa-static -l pl.UTF-8
456 Biblioteka statyczna OSMesa (renderująca bitmapy w pamięci).
459 Summary: Mesa implementation of OpenVG (Vector Graphics Accelleration) API
460 Summary(pl.UTF-8): Implementacja Mesa API OpenVG (akceleracji grafiki wektorowej)
463 # doesn't require base
465 %description libOpenVG
466 This package contains Mesa implementation of OpenVG - cross-platform
467 API that provides a low-level hardware acceleration interface for
468 vector graphics libraries such as Flash and SVG. OpenVG specification
469 can be found on Khronos Group site: <http://www.khronos.org/openvg/>.
470 Mesa implements OpenVG 1.1.
472 %description libOpenVG -l pl.UTF-8
473 Ten pakiet zawiera implementację Mesa standardu OpenVG -
474 wieloplatfomowego API zapewniającego niskopoziomowy interfejs
475 akceleracji sprzętowej dla bibliotek grafiki wektorowej, takiej jak
476 Flash czy SVG. Specyfikację OpenVG można znaleźć na stronie Khronos
477 Group: <http://www.khronos.org/openvg/>. Mesa zawiera implementację
480 %package libOpenVG-devel
481 Summary: Header file for Mesa OpenVG library
482 Summary(pl.UTF-8): Plik nagłówkowy biblioteki Mesa OpenVG
484 Group: Development/Libraries
485 # EGL headers for <KHR/khrplatform.h>
486 Requires: %{name}-libEGL-devel = %{version}-%{release}
487 Requires: %{name}-libOpenVG = %{version}-%{release}
489 %description libOpenVG-devel
490 Header file for Mesa OpenVG library.
492 %description libOpenVG-devel -l pl.UTF-8
493 Plik nagłówkowy biblioteki Mesa OpenVG.
495 %package libXvMC-nouveau
496 Summary: Mesa implementation of XvMC API for NVidia adapters
497 Summary(pl.UTF-8): Implementacja Mesa API XvMC dla kart NVidia
500 Requires: libdrm >= %{libdrm_ver}
501 Conflicts: Mesa-libXvMC
503 %description libXvMC-nouveau
504 Mesa implementation of XvMC API for NVidia adapters (NV40-NV96, NVa0).
506 %description libXvMC-nouveau -l pl.UTF-8
507 Implementacja Mesa API XvMC dla kart NVidia (NV40-NV96, NVa0).
509 %package libXvMC-r300
510 Summary: Mesa implementation of XvMC API for ATI Radeon R300 series adapters
511 Summary(pl.UTF-8): Implementacja Mesa API XvMC dla kart ATI Radeon z serii R300
514 Requires: libdrm >= %{libdrm_ver}
515 Conflicts: Mesa-libXvMC
517 %description libXvMC-r300
518 Mesa implementation of XvMC API for ATI Radeon adapters based on
519 R300/R400/RS690/R500 chips.
521 %description libXvMC-r300 -l pl.UTF-8
522 Implementacja Mesa API XvMC dla kart ATI Radeon opartych na układach
523 R300/R400/RS690/R500.
525 %package libXvMC-r600
526 Summary: Mesa implementation of XvMC API for ATI Radeon R600 series adapters
527 Summary(pl.UTF-8): Implementacja Mesa API XvMC dla kart ATI Radeon z serii R600
530 Requires: libdrm >= %{libdrm_ver}
531 Conflicts: Mesa-libXvMC
533 %description libXvMC-r600
534 Mesa implementation of XvMC API for ATI Radeon adapters based on
537 %description libXvMC-r600 -l pl.UTF-8
538 Implementacja Mesa API XvMC dla kart ATI Radeon opartych na układach
541 %package libXvMC-softpipe
542 Summary: Mesa softpipe implementation of XvMC API
543 Summary(pl.UTF-8): Implementacja Mesa softpipe API XvMC
546 Requires: libdrm >= %{libdrm_ver}
547 Conflicts: Mesa-libXvMC
549 %description libXvMC-softpipe
550 Mesa softpipe implementation of XvMC API.
552 %description libXvMC-softpipe -l pl.UTF-8
553 Implementacja Mesa softpipe API XvMC.
555 %package dri-driver-ati-radeon-R100
556 Summary: X.org DRI driver for ATI R100 card family
557 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R100
560 Requires: xorg-driver-video-ati
561 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
562 Requires: xorg-xserver-server >= %{xserver_ver}
563 Obsoletes: X11-driver-radeon-dri < 1:7.0.0
565 %description dri-driver-ati-radeon-R100
566 X.org DRI driver for ATI R100 card family (Radeon 7000-7500).
568 %description dri-driver-ati-radeon-R100 -l pl.UTF-8
569 Sterownik X.org DRI dla rodziny kart ATI R100 (Radeon 7000-7500).
571 %package dri-driver-ati-radeon-R200
572 Summary: X.org DRI driver for ATI R200 card family
573 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R200
576 Requires: xorg-driver-video-ati
577 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
578 Requires: xorg-xserver-server >= %{xserver_ver}
579 Obsoletes: X11-driver-radeon-dri < 1:7.0.0
581 %description dri-driver-ati-radeon-R200
582 X.org DRI driver for ATI R200 card family (Radeon 8500-92xx)
584 %description dri-driver-ati-radeon-R200 -l pl.UTF-8
585 Sterownik X.org DRI dla rodziny kart ATI R200 (Radeon 8500-92xx).
587 %package dri-driver-ati-radeon-R300
588 Summary: X.org DRI driver for ATI R300 card family
589 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R300
592 Requires: xorg-driver-video-ati
593 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
594 Requires: xorg-xserver-server >= %{xserver_ver}
595 Obsoletes: X11-driver-radeon-dri < 1:7.0.0
597 %description dri-driver-ati-radeon-R300
598 X.org DRI driver for ATI R300/R400/RS690/R500 card family.
600 %description dri-driver-ati-radeon-R300 -l pl.UTF-8
601 Sterownik X.org DRI dla rodziny kart ATI R300/R400/RS690/R500.
603 %package dri-driver-ati-radeon-R600
604 Summary: X.org DRI driver for ATI R600 card family
605 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R600
608 Requires: radeon-ucode
609 Requires: xorg-driver-video-ati
610 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
611 Requires: xorg-xserver-server >= %{xserver_ver}
613 %description dri-driver-ati-radeon-R600
614 X.org DRI driver for ATI R600/R700 card family.
616 %description dri-driver-ati-radeon-R600 -l pl.UTF-8
617 Sterownik X.org DRI dla rodziny kart ATI R600/R700.
619 %package dri-driver-intel-i915
620 Summary: X.org DRI driver for Intel i915 card family
621 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart Intel i915
624 Requires: xorg-driver-video-intel
625 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
626 Requires: xorg-xserver-server >= %{xserver_ver}
627 Obsoletes: Mesa-dri-driver-intel-i830
628 Obsoletes: X11-driver-i810-dri < 1:7.0.0
630 %description dri-driver-intel-i915
631 X.org DRI driver for Intel i915 card family (915, 945, G33, Q33, Q35,
634 %description dri-driver-intel-i915 -l pl.UTF-8
635 Sterownik X.org DRI dla rodziny kart Intel i915 (915, 945, G33, Q33,
638 %package dri-driver-intel-i965
639 Summary: X.org DRI driver for Intel i965 card family
640 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart Intel i965
643 Requires: xorg-driver-video-intel
644 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
645 Requires: xorg-xserver-server >= %{xserver_ver}
646 Obsoletes: Mesa-dri-driver-intel-i830
647 Obsoletes: X11-driver-i810-dri < 1:7.0.0
649 %description dri-driver-intel-i965
650 X.org DRI driver for Intel i965 card family (946GZ, 965G, 965Q, 965GM,
651 965GME, GM45, G41, B43, Q45, G45);
653 %description dri-driver-intel-i965 -l pl.UTF-8
654 Sterownik X.org DRI dla rodziny kart Intel i965 (946GZ, 965G, 965Q,
655 965GM, 965GME, GM45, G41, B43, Q45, G45).
657 %package dri-driver-nouveau
658 Summary: X.org DRI driver for NVIDIA card family
659 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart NVIDIA
662 Requires: xorg-driver-video-nouveau
663 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
664 Requires: xorg-xserver-server >= %{xserver_ver}
666 %description dri-driver-nouveau
667 X.org DRI drivers for NVIDIA card family.
669 %description dri-driver-nouveau -l pl.UTF-8
670 Sterowniki X.org DRI dla rodziny kart NVIDIA.
672 %package dri-driver-swrast
673 Summary: X.org DRI software rasterizer driver
674 Summary(pl.UTF-8): Sterownik X.org DRI obsługujący rysowanie programowe
677 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
678 Requires: xorg-xserver-server >= %{xserver_ver}
680 %description dri-driver-swrast
681 X.org DRI software rasterizer driver.
683 %description dri-driver-swrast -l pl.UTF-8
684 Sterownik X.org DRI obsługujący rysowanie programowe.
686 %package dri-driver-vmwgfx
687 Summary: X.org DRI driver for VMware
688 Summary(pl.UTF-8): Sterownik X.org DRI dla VMware
691 Requires: xorg-driver-video-vmware
692 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
693 Requires: xorg-xserver-server >= %{xserver_ver}
695 %description dri-driver-vmwgfx
696 X.org DRI driver for VMWare.
698 %description dri-driver-vmwgfx -l pl.UTF-8
699 Sterownik X.org DRI dla VMware.
701 %package -n libvdpau-driver-mesa-nouveau
702 Summary: Mesa nouveau driver for the vdpau API
703 Summary(pl.UTF-8): Sterownik Mesa nouveau dla API vdpau
706 Requires: libdrm >= %{libdrm_ver}
707 Requires: libvdpau >= 0.4.1
708 Conflicts: libvdpau-driver-mesa
710 %description -n libvdpau-driver-mesa-nouveau
711 Mesa nouveau driver for the vdpau API. It supports NVidia adapters
714 %description -n libvdpau-driver-mesa-nouveau -l pl.UTF-8
715 Sterownik Mesa nouveau dla API vdpau. Obsługuje karty NVidia
718 %package -n libvdpau-driver-mesa-r300
719 Summary: Mesa r300 driver for the vdpau API
720 Summary(pl.UTF-8): Sterownik Mesa r300 dla API vdpau
723 Requires: libdrm >= %{libdrm_ver}
724 Requires: libvdpau >= 0.4.1
725 Conflicts: libvdpau-driver-mesa
727 %description -n libvdpau-driver-mesa-r300
728 Mesa r300 driver for the vdpau API. It supports ATI Radeon adapters
729 based on R300/R400/RS690/R500 chips.
731 %description -n libvdpau-driver-mesa-r300 -l pl.UTF-8
732 Sterownik Mesa r300 dla API vdpau. Obsługuje karty ATI Radeon oparte
733 na układach R300/R400/RS690/R500.
735 %package -n libvdpau-driver-mesa-r600
736 Summary: Mesa r600 driver for the vdpau API
737 Summary(pl.UTF-8): Sterownik Mesa r600 dla API vdpau
740 Requires: libdrm >= %{libdrm_ver}
741 Requires: libvdpau >= 0.4.1
742 Conflicts: libvdpau-driver-mesa
744 %description -n libvdpau-driver-mesa-r600
745 Mesa r600 driver for the vdpau API. It supports ATI Radeon adapters
746 based on R600/R700 chips.
748 %description -n libvdpau-driver-mesa-r600 -l pl.UTF-8
749 Sterownik Mesa r600 dla API vdpau. Obsługuje karty ATI Radeon oparte
750 na układach R600/R700.
752 %package -n libvdpau-driver-mesa-softpipe
753 Summary: Mesa softpipe driver for the vdpau API
754 Summary(pl.UTF-8): Sterownik Mesa softpipe dla API vdpau
757 Requires: libdrm >= %{libdrm_ver}
758 Requires: libvdpau >= 0.4.1
759 Conflicts: libvdpau-driver-mesa
761 %description -n libvdpau-driver-mesa-softpipe
762 Mesa softpipe driver for the vdpau API.
764 %description -n libvdpau-driver-mesa-softpipe -l pl.UTF-8
765 Sterownik Mesa softpipe dla API vdpau.
775 dri_drivers="r200 radeon \
776 %if %{without gallium_intel}
780 %ifarch sparc sparcv9 sparc64
785 dri_drivers=$(echo $dri_drivers | xargs | tr ' ' ',')
787 gallium_drivers="svga swrast \
788 %if %{with gallium_intel}
793 %if %{with gallium_nouveau}
798 gallium_drivers=$(echo $gallium_drivers | xargs | tr ' ' ',')
805 %{?with_static_libs:--enable-static} \
808 osmesa_common_flags="\
809 --with-driver=osmesa \
815 %configure $common_flags $osmesa_common_flags \
818 %{__make} -C src/mesa osmesa.pc
820 cp -p src/mesa/osmesa.pc osmesa8
824 %configure $common_flags \
826 --enable-shared-glapi \
833 --enable-gallium-llvm \
834 %{__enable egl gallium-egl} \
835 %{__enable gbm gallium-gbm} \
839 --with-gallium-drivers=${gallium_drivers} \
841 --without-gallium-drivers \
844 --with-dri-drivers=${dri_drivers} \
845 --with-dri-driverdir=%{_libdir}/xorg/modules/dri
850 rm -rf $RPM_BUILD_ROOT
853 DESTDIR=$RPM_BUILD_ROOT
856 cp -dp osmesa8/libOSMesa* $RPM_BUILD_ROOT%{_libdir}
857 cp -p osmesa8/osmesa.pc $RPM_BUILD_ROOT%{_pkgconfigdir}
860 # strip out undesirable headers
861 %{__rm} $RPM_BUILD_ROOT%{_includedir}/GL/{vms_x_fix,wglext,wmesa}.h
863 # remove "OS ABI: Linux 2.4.20" tag, so private copies (nvidia or fglrx),
864 # set up via /etc/ld.so.conf.d/*.conf will be preferred over this
865 strip -R .note.ABI-tag $RPM_BUILD_ROOT%{_libdir}/libGL.so.*.*
868 rm -rf $RPM_BUILD_ROOT
870 %post libEGL -p /sbin/ldconfig
871 %postun libEGL -p /sbin/ldconfig
873 %post libGL -p /sbin/ldconfig
874 %postun libGL -p /sbin/ldconfig
876 %post libGLES -p /sbin/ldconfig
877 %postun libGLES -p /sbin/ldconfig
879 %post libGLU -p /sbin/ldconfig
880 %postun libGLU -p /sbin/ldconfig
882 %post libOSMesa -p /sbin/ldconfig
883 %postun libOSMesa -p /sbin/ldconfig
885 %post libOpenVG -p /sbin/ldconfig
886 %postun libOpenVG -p /sbin/ldconfig
888 %post libXvMC-nouveau -p /sbin/ldconfig
889 %postun libXvMC-nouveau -p /sbin/ldconfig
890 %post libXvMC-r300 -p /sbin/ldconfig
891 %postun libXvMC-r300 -p /sbin/ldconfig
892 %post libXvMC-r600 -p /sbin/ldconfig
893 %postun libXvMC-r600 -p /sbin/ldconfig
894 %post libXvMC-softpipe -p /sbin/ldconfig
895 %postun libXvMC-softpipe -p /sbin/ldconfig
899 %defattr(644,root,root,755)
900 %attr(755,root,root) %{_libdir}/libEGL.so.*.*
901 %attr(755,root,root) %ghost %{_libdir}/libEGL.so.1
902 %attr(755,root,root) %{_libdir}/libglapi.so.*.*
903 %attr(755,root,root) %ghost %{_libdir}/libglapi.so.0
905 %attr(755,root,root) %{_libdir}/libgbm.so.*.*
906 %attr(755,root,root) %ghost %{_libdir}/libgbm.so.1
910 %attr(755,root,root) %{_libdir}/egl/egl_gallium.so
913 %attr(755,root,root) %{_libdir}/gbm/gbm_gallium_drm.so
918 %defattr(644,root,root,755)
919 %attr(755,root,root) %{_libdir}/libEGL.so
920 %attr(755,root,root) %{_libdir}/libglapi.so
921 %dir %{_includedir}/EGL
922 %{_includedir}/EGL/egl.h
923 %{_includedir}/EGL/eglext.h
924 %{_includedir}/EGL/eglmesaext.h
925 %{_includedir}/EGL/eglplatform.h
926 %dir %{_includedir}/KHR
927 %{_includedir}/KHR/khrplatform.h
928 %{_pkgconfigdir}/egl.pc
930 %attr(755,root,root) %{_libdir}/libgbm.so
932 %{_pkgconfigdir}/gbm.pc
935 %if %{with static_libs}
937 %defattr(644,root,root,755)
943 %if %{with gallium_intel}
944 %files gbm-driver-i915
945 %defattr(644,root,root,755)
946 %attr(755,root,root) %{_libdir}/gbm/pipe_i915.so
949 %if %{with gallium_nouveau}
950 %files gbm-driver-nouveau
951 %defattr(644,root,root,755)
952 %attr(755,root,root) %{_libdir}/gbm/pipe_nouveau.so
955 %files gbm-driver-r300
956 %defattr(644,root,root,755)
957 %attr(755,root,root) %{_libdir}/gbm/pipe_r300.so
959 %files gbm-driver-r600
960 %defattr(644,root,root,755)
961 %attr(755,root,root) %{_libdir}/gbm/pipe_r600.so
963 %files gbm-driver-vmwgfx
964 %defattr(644,root,root,755)
965 %attr(755,root,root) %{_libdir}/gbm/pipe_vmwgfx.so
969 %defattr(644,root,root,755)
970 %doc docs/{*.html,README.{MITS,QUAKE,THREADS},RELNOTES*}
971 %attr(755,root,root) %{_libdir}/libGL.so.*.*
972 %attr(755,root,root) %ghost %{_libdir}/libGL.so.1
973 # symlink for binary apps which fail to conform Linux OpenGL ABI
974 # (and dlopen libGL.so instead of libGL.so.1; the same does Mesa libEGL)
975 %attr(755,root,root) %{_libdir}/libGL.so
978 %defattr(644,root,root,755)
980 %dir %{_includedir}/GL
981 %{_includedir}/GL/gl.h
982 %{_includedir}/GL/glext.h
983 %{_includedir}/GL/gl_mangle.h
984 %{_includedir}/GL/glx.h
985 %{_includedir}/GL/glxext.h
986 %{_includedir}/GL/glx_mangle.h
987 %dir %{_includedir}/GL/internal
988 %{_includedir}/GL/internal/dri_interface.h
989 %{_pkgconfigdir}/dri.pc
990 %{_pkgconfigdir}/gl.pc
992 %if %{with static_libs}
994 %defattr(644,root,root,755)
999 %defattr(644,root,root,755)
1000 %attr(755,root,root) %{_libdir}/libGLESv1_CM.so.*.*.*
1001 %attr(755,root,root) %ghost %{_libdir}/libGLESv1_CM.so.1
1002 %attr(755,root,root) %{_libdir}/libGLESv2.so.*.*
1003 %attr(755,root,root) %ghost %{_libdir}/libGLESv2.so.2
1005 %files libGLES-devel
1006 %defattr(644,root,root,755)
1007 %attr(755,root,root) %{_libdir}/libGLESv1_CM.so
1008 %attr(755,root,root) %{_libdir}/libGLESv2.so
1010 %{_includedir}/GLES2
1011 %{_pkgconfigdir}/glesv1_cm.pc
1012 %{_pkgconfigdir}/glesv2.pc
1015 %defattr(644,root,root,755)
1016 %attr(755,root,root) %{_libdir}/libGLU.so.*.*
1017 %attr(755,root,root) %ghost %{_libdir}/libGLU.so.1
1020 %defattr(644,root,root,755)
1021 %attr(755,root,root) %{_libdir}/libGLU.so
1022 %{_includedir}/GL/glu.h
1023 %{_includedir}/GL/glu_mangle.h
1024 %{_pkgconfigdir}/glu.pc
1026 %if %{with static_libs}
1027 %files libGLU-static
1028 %defattr(644,root,root,755)
1034 %defattr(644,root,root,755)
1035 %attr(755,root,root) %{_libdir}/libOSMesa.so.*.*
1036 %attr(755,root,root) %ghost %{_libdir}/libOSMesa.so.8
1038 %files libOSMesa-devel
1039 %defattr(644,root,root,755)
1040 %attr(755,root,root) %{_libdir}/libOSMesa.so
1041 %{_includedir}/GL/osmesa.h
1042 %{_pkgconfigdir}/osmesa.pc
1044 %if %{with static_libs}
1045 %files libOSMesa-static
1046 %defattr(644,root,root,755)
1047 %{_libdir}/libOSMesa.a
1053 %defattr(644,root,root,755)
1054 %attr(755,root,root) %{_libdir}/libOpenVG.so.*.*.*
1055 %attr(755,root,root) %ghost %{_libdir}/libOpenVG.so.1
1057 %files libOpenVG-devel
1058 %defattr(644,root,root,755)
1059 %attr(755,root,root) %{_libdir}/libOpenVG.so
1061 %{_pkgconfigdir}/vg.pc
1065 %files libXvMC-nouveau
1066 %defattr(644,root,root,755)
1067 %attr(755,root,root) %{_libdir}/libXvMCnouveau.so.1.0
1068 %attr(755,root,root) %ghost %{_libdir}/libXvMCnouveau.so.1
1071 %defattr(644,root,root,755)
1072 %attr(755,root,root) %{_libdir}/libXvMCr300.so.1.0
1073 %attr(755,root,root) %ghost %{_libdir}/libXvMCr300.so.1
1076 %defattr(644,root,root,755)
1077 %attr(755,root,root) %{_libdir}/libXvMCr600.so.1.0
1078 %attr(755,root,root) %ghost %{_libdir}/libXvMCr600.so.1
1080 %files libXvMC-softpipe
1081 %defattr(644,root,root,755)
1082 %attr(755,root,root) %{_libdir}/libXvMCsoftpipe.so.1.0
1083 %attr(755,root,root) %ghost %{_libdir}/libXvMCsoftpipe.so.1
1086 %files dri-driver-ati-radeon-R100
1087 %defattr(644,root,root,755)
1088 %attr(755,root,root) %{_libdir}/xorg/modules/dri/radeon_dri.so
1090 %files dri-driver-ati-radeon-R200
1091 %defattr(644,root,root,755)
1092 %attr(755,root,root) %{_libdir}/xorg/modules/dri/r200_dri.so
1095 %files dri-driver-ati-radeon-R300
1096 %defattr(644,root,root,755)
1097 %attr(755,root,root) %{_libdir}/xorg/modules/dri/r300_dri.so
1099 %files dri-driver-ati-radeon-R600
1100 %defattr(644,root,root,755)
1101 %attr(755,root,root) %{_libdir}/xorg/modules/dri/r600_dri.so
1103 %files dri-driver-intel-i915
1104 %defattr(644,root,root,755)
1105 %attr(755,root,root) %{_libdir}/xorg/modules/dri/i915_dri.so
1107 %files dri-driver-intel-i965
1108 %defattr(644,root,root,755)
1109 %attr(755,root,root) %{_libdir}/xorg/modules/dri/i965_dri.so
1111 %if %{with gallium_nouveau}
1112 %files dri-driver-nouveau
1113 %defattr(644,root,root,755)
1114 %attr(755,root,root) %{_libdir}/xorg/modules/dri/nouveau_dri.so
1118 %files dri-driver-swrast
1119 %defattr(644,root,root,755)
1120 %attr(755,root,root) %{_libdir}/xorg/modules/dri/swrast_dri.so
1123 %files dri-driver-vmwgfx
1124 %defattr(644,root,root,755)
1125 %attr(755,root,root) %{_libdir}/xorg/modules/dri/vmwgfx_dri.so
1129 # ldconfig is not used in vdpau tree, so package all symlinks
1130 %if %{with gallium_nouveau}
1131 %files -n libvdpau-driver-mesa-nouveau
1132 %defattr(644,root,root,755)
1133 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_nouveau.so.1.0
1134 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_nouveau.so.1
1135 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_nouveau.so
1138 %files -n libvdpau-driver-mesa-r300
1139 %defattr(644,root,root,755)
1140 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_r300.so.1.0
1141 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_r300.so.1
1142 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_r300.so
1144 %files -n libvdpau-driver-mesa-r600
1145 %defattr(644,root,root,755)
1146 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_r600.so.1.0
1147 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_r600.so.1
1148 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_r600.so
1150 %files -n libvdpau-driver-mesa-softpipe
1151 %defattr(644,root,root,755)
1152 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_softpipe.so.1.0
1153 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_softpipe.so.1
1154 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_softpipe.so