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 (using plain xorg target? DRI doesn't support static)
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 # Graphics Buffer Manager
15 %bcond_with xa # XA state tracker (for future vmwgfx xorg driver)
16 %bcond_with static_libs # static libraries [not supported for DRI, thus broken currently]
18 # minimal supported xserver version
19 %define xserver_ver 1.5.0
20 # glapi version (glapi tables in dri drivers and libglx must be in sync);
21 # set to current Mesa version on ABI break, when xserver tables get regenerated
22 # (until they start to be somehow versioned themselves)
23 %define glapi_ver 7.1.0
25 %define libdrm_ver 2.4.30
26 %define dri2proto_ver 2.6
27 %define glproto_ver 1.4.14
29 Summary: Free OpenGL implementation
30 Summary(pl.UTF-8): Wolnodostępna implementacja standardu OpenGL
34 License: MIT (core), SGI (GLU) and others - see license.html file
36 Source0: ftp://ftp.freedesktop.org/pub/mesa/%{version}/%{name}Lib-%{version}.tar.bz2
37 # Source0-md5: 24eeebf66971809d8f40775a379b36c9
38 Patch0: %{name}-realclean.patch
39 Patch1: %{name}-link.patch
40 URL: http://www.mesa3d.org/
41 BuildRequires: autoconf >= 2.59
42 BuildRequires: automake
43 BuildRequires: expat-devel
44 BuildRequires: gcc >= 5:3.3
45 BuildRequires: libdrm-devel >= %{libdrm_ver}
46 BuildRequires: libselinux-devel
47 BuildRequires: libstdc++-devel >= 5:3.3.0
48 BuildRequires: libtalloc-devel >= 2:2.0.1
49 BuildRequires: libtool >= 2:1.4d
50 BuildRequires: libvdpau-devel >= 0.4.1
51 BuildRequires: llvm-devel >= 2.9
52 BuildRequires: pixman-devel
53 BuildRequires: pkgconfig
54 BuildRequires: pkgconfig(talloc) >= 2.0.1
56 BuildRequires: python-libxml2
57 BuildRequires: python-modules
58 BuildRequires: rpmbuild(macros) >= 1.470
59 BuildRequires: sed >= 4.0
60 BuildRequires: xorg-lib-libXdamage-devel
61 BuildRequires: xorg-lib-libXext-devel >= 1.0.5
62 BuildRequires: xorg-lib-libXfixes-devel
63 BuildRequires: xorg-lib-libXt-devel
64 BuildRequires: xorg-lib-libXvMC-devel >= 1.0.6
65 BuildRequires: xorg-lib-libXxf86vm-devel
66 BuildRequires: xorg-proto-dri2proto-devel >= %{dri2proto_ver}
67 BuildRequires: xorg-proto-glproto-devel >= %{glproto_ver}
68 BuildRequires: xorg-util-makedepend
69 BuildRequires: xorg-xserver-server-devel
71 BuildRequires: libxcb-devel
72 BuildRequires: udev-devel >= 1:150
75 BuildRequires: xorg-proto-xextproto-devel >= 7.0.99.1
76 BuildRequires: xorg-xserver-server-devel >= 1.6.0
78 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
80 %if %{without gallium}
81 %undefine with_gallium_intel
82 %undefine with_gallium_nouveau
90 # _glapi_tls_Dispatch is defined in libglapi, but it's some kind of symbol ldd -r doesn't notice(?)
91 %define skip_post_check_so libGLESv1_CM.so.1.* libGLESv2.so.2.* libGL.so.1.*
94 %define filterout_ld -Wl,--as-needed
97 Mesa is a 3-D graphics library with an API which is very similar to
98 that of OpenGL(R). To the extent that Mesa utilizes the OpenGL command
99 syntax or state machine, it is being used with authorization from
100 Silicon Graphics, Inc. However, the author does not possess an OpenGL
101 license from SGI, and makes no claim that Mesa is in any way a
102 compatible replacement for OpenGL or associated with SGI.
104 %description -l pl.UTF-8
105 Mesa jest biblioteką grafiki 3D z API bardzo podobnym do OpenGL(R). Do
106 tego stopnia, że Mesa używa składni i automatu OpenGL jest używana z
107 autoryzacją Silicon Graphics, Inc. Jednak autor nie posiada licencji
108 OpenGL od SGI i nie twierdzi, że Mesa jest kompatybilnym zamiennikiem
109 OpenGL ani powiązana z SGI.
112 Summary: Mesa implementation of EGL Native Platform Graphics Interface library
113 Summary(pl.UTF-8): Implementacja Mesa biblioteki interfejsu EGL
116 # glx driver in libEGL dlopens libGL.so
117 Requires: OpenGL >= 1.2
118 Requires: libdrm >= %{libdrm_ver}
121 Requires: Mesa-libOpenVG = %{version}-%{release}
122 Requires: udev-libs >= 1:150
127 This package contains shared libEGL - Mesa implementation of EGL
128 Native Platform Graphics Interface as specified by Khronos Group:
129 <http://www.khronos.org/egl/>.
131 %description libEGL -l pl.UTF-8
132 Ten pakiet zawiera bibliotekę współdzieloną libEGL - implementację
133 Mesa standardu EGL Native Platform Graphics Interface (interfejsu
134 graficznego platformy natywnej) wg specyfikacji Khronos Group:
135 <http://www.khronos.org/egl/>.
137 %package libEGL-devel
138 Summary: Header files for Mesa implementation of EGL library
139 Summary(pl.UTF-8): Pliki nagłówkowe implementacji Mesa biblioteki EGL
141 Group: Development/Libraries
142 Requires: %{name}-libEGL = %{version}-%{release}
143 Requires: libdrm-devel >= %{libdrm_ver}
144 Requires: xorg-lib-libX11-devel
145 Requires: xorg-lib-libXdamage-devel
146 Requires: xorg-lib-libXext-devel
147 Requires: xorg-lib-libXfixes-devel
148 Requires: xorg-lib-libXxf86vm-devel
149 Requires: xorg-proto-dri2proto-devel >= %{dri2proto_ver}
150 Requires: xorg-proto-glproto-devel >= %{glproto_ver}
151 Provides: EGL-devel = 1.4
153 %description libEGL-devel
154 Header files for Mesa implementation of EGL library.
156 %description libEGL-devel -l pl.UTF-8
157 Pliki nagłówkowe implementacji Mesa biblioteki EGL.
159 %package libEGL-static
160 Summary: Static Mesa EGL library
161 Summary(pl.UTF-8): Statyczna biblioteka Mesa EGL
163 Group: Development/Libraries
164 Requires: %{name}-libEGL-devel = %{version}-%{release}
165 Provides: EGL-static = 1.4
167 %description libEGL-static
168 Static Mesa EGL library.
170 %description libEGL-static -l pl.UTF-8
171 Statyczna biblioteka Mesa EGL.
173 %package gbm-driver-i915
174 Summary: i915 driver for Mesa GBM framework (used by EGL and OpenVG APIs)
175 Summary(pl.UTF-8): Sterownik i915 dla szkieletu Mesa GBM (wykorzystywanego przez API EGL i OpenVG)
177 Requires: %{name}-libEGL = %{version}-%{release}
179 %description gbm-driver-i915
180 i915 driver for Mesa Graphics Buffer Manager (used by EGL and OpenVG
181 APIs). It supports Intel 915/945/G33/Q33/Q35/Pineview chips.
183 %description gbm-driver-i915 -l pl.UTF-8
184 Sterownik i915 dla szkieletu Mesa Graphics Buffer Manager (zarządcy
185 bufora graficznego, wykorzystywanego przez API EGL i OpenVG).
186 Obsługuje układy Intel 915/945/G33/Q33/Q35/Pineview.
188 %package gbm-driver-nouveau
189 Summary: nouveau driver for Mesa GBM framework (used by EGL and OpenVG APIs)
190 Summary(pl.UTF-8): Sterownik nouveau dla szkieletu Mesa GBM (wykorzystywanego przez API EGL i OpenVG)
192 Requires: %{name}-libEGL = %{version}-%{release}
194 %description gbm-driver-nouveau
195 nouveau driver for Mesa Graphics Buffer Manager (used by EGL and
196 OpenVG APIs). It supports NVidia adapters.
198 %description gbm-driver-nouveau -l pl.UTF-8
199 Sterownik nouveau dla szkieletu Mesa Graphics Buffer Manager (zarządcy
200 bufora graficznego, wykorzystywanego przez API EGL i OpenVG).
201 Obsługuje karty graficzne firmy NVidia.
203 %package gbm-driver-r300
204 Summary: r300 driver for Mesa GBM framework (used by EGL and OpenVG APIs)
205 Summary(pl.UTF-8): Sterownik r300 dla szkieletu Mesa GBM (wykorzystywanego przez API EGL i OpenVG)
207 Requires: %{name}-libEGL = %{version}-%{release}
209 %description gbm-driver-r300
210 r300 driver for Mesa Graphics Buffer Manager (used by EGL and
211 OpenVG APIs). It supports ATI Radeon adapters based on
212 R300/R400/RS690/R500 chips.
214 %description gbm-driver-r300 -l pl.UTF-8
215 Sterownik r300 dla szkieletu Mesa Graphics Buffer Manager (zarządcy
216 bufora graficznego, wykorzystywanego przez API EGL i OpenVG).
217 Obsługuje karty graficzne ATI Radeon oparte na układach
218 R300/R400/RS690/R500.
220 %package gbm-driver-r600
221 Summary: r600 driver for Mesa GBM framework (used by EGL and OpenVG APIs)
222 Summary(pl.UTF-8): Sterownik r600 dla szkieletu Mesa GBM (wykorzystywanego przez API EGL i OpenVG)
224 Requires: %{name}-libEGL = %{version}-%{release}
226 %description gbm-driver-r600
227 r600 driver for Mesa Graphics Buffer Manager (used by EGL and
228 OpenVG APIs). It supports ATI Radeon adapters based on R600/R700
231 %description gbm-driver-r600 -l pl.UTF-8
232 Sterownik r600 dla szkieletu Mesa Graphics Buffer Manager (zarządcy
233 bufora graficznego, wykorzystywanego przez API EGL i OpenVG).
234 Obsługuje karty graficzne ATI Radeon oparte na układach R600/R700.
236 %package gbm-driver-vmwgfx
237 Summary: vmwgfx driver for Mesa GBM framework (used by EGL and OpenVG APIs)
238 Summary(pl.UTF-8): Sterownik vmwgfx dla szkieletu Mesa GBM (wykorzystywanego przez API EGL i OpenVG)
240 Requires: %{name}-libEGL = %{version}-%{release}
242 %description gbm-driver-vmwgfx
243 vmwgfx driver for Mesa Graphics Buffer Manager (used by EGL and
244 OpenVG APIs). It supports VMware virtual video adapter.
246 %description gbm-driver-vmwgfx -l pl.UTF-8
247 Sterownik vmwgfx dla szkieletu Mesa Graphics Buffer Manager (zarządcy
248 bufora graficznego, wykorzystywanego przez API EGL i OpenVG).
249 Obsługuje wirtualną kartę graficzną VMware.
252 Summary: Free Mesa3D implementation of libGL OpenGL library
253 Summary(pl.UTF-8): Wolnodostępna implementacja Mesa3D biblioteki libGL ze standardu OpenGL
256 Requires: libdrm >= %{libdrm_ver}
257 Provides: OpenGL = 2.1
258 Provides: OpenGL-GLX = 1.4
261 Obsoletes: X11-OpenGL-libGL < 1:7.0.0
262 Obsoletes: XFree86-OpenGL-libGL < 1:7.0.0
265 Mesa is a 3-D graphics library with an API which is very similar to
266 that of OpenGL(R). To the extent that Mesa utilizes the OpenGL command
267 syntax or state machine, it is being used with authorization from
268 Silicon Graphics, Inc. However, the author does not possess an OpenGL
269 license from SGI, and makes no claim that Mesa is in any way a
270 compatible replacement for OpenGL or associated with SGI.
272 This package contains libGL which implements OpenGL 1.5 and GLX 1.4
273 specifications. It uses DRI for rendering.
275 %description libGL -l pl.UTF-8
276 Mesa jest biblioteką grafiki 3D z API bardzo podobnym do OpenGL(R). Do
277 tego stopnia, że Mesa używa składni i automatu OpenGL jest używana z
278 autoryzacją Silicon Graphics, Inc. Jednak autor nie posiada licencji
279 OpenGL od SGI i nie twierdzi, że Mesa jest kompatybilnym zamiennikiem
280 OpenGL ani powiązana z SGI.
282 Ten pakiet zawiera libGL implementującą specyfikacje OpenGL 1.5 oraz
283 GLX 1.4. Używa DRI do renderowania.
286 Summary: Header files for Mesa3D libGL library
287 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libGL z projektu Mesa3D
289 Group: X11/Development/Libraries
290 # loose dependency on libGL to use with other libGL binaries
291 Requires: OpenGL >= 1.5
292 Requires: libdrm-devel >= %{libdrm_ver}
293 Requires: xorg-lib-libX11-devel
294 Requires: xorg-lib-libXdamage-devel
295 Requires: xorg-lib-libXext-devel
296 Requires: xorg-lib-libXxf86vm-devel
297 Requires: xorg-proto-dri2proto-devel >= %{dri2proto_ver}
298 Requires: xorg-proto-glproto-devel >= %{glproto_ver}
299 Suggests: OpenGL-doc-man
300 Provides: OpenGL-GLX-devel = 1.4
301 Provides: OpenGL-devel = 2.1
302 Obsoletes: Mesa-devel
303 Obsoletes: X11-OpenGL-devel < 1:7.0.0
304 Obsoletes: X11-OpenGL-devel-base < 1:7.0.0
305 Obsoletes: XFree86-OpenGL-devel < 1:7.0.0
306 Obsoletes: XFree86-OpenGL-devel-base < 1:7.0.0
308 %description libGL-devel
309 Header files for Mesa3D libGL library.
311 %description libGL-devel -l pl.UTF-8
312 Pliki nagłówkowe biblioteki libGL z projektu Mesa3D.
314 %package libGL-static
315 Summary: Static Mesa3D libGL library
316 Summary(pl.UTF-8): Statyczna biblioteka libGL z projektu Mesa3D
318 Group: X11/Development/Libraries
319 Requires: %{name}-libGL-devel = %{version}-%{release}
320 Provides: OpenGL-static = 2.1
321 Obsoletes: Mesa-static
322 Obsoletes: X11-OpenGL-static < 1:7.0.0
323 Obsoletes: XFree86-OpenGL-static < 1:7.0.0
325 %description libGL-static
326 Static Mesa3D libGL library. It uses software renderer.
328 %description libGL-static -l pl.UTF-8
329 Statyczna biblioteka libGL z projektu Mesa3D. Używa programowego
333 Summary: Mesa implementation of GLES (OpenGL ES) libraries
334 Summary(pl.UTF-8): Implementacja Mesa bibliotek GLES (OpenGL ES)
336 # only for libglapi.so.0
337 Requires: %{name}-libEGL = %{version}-%{release}
340 This package contains shared libraries of Mesa implementation of GLES
341 (OpenGL ES) - cross-platform API for full-function 2D and 3D graphics
342 on embedded systems. OpenGL ES specification can be found on Khronos
343 Group site: <http://www.khronos.org/opengles/>. Mesa implements OpenGL
346 %description libGLES -l pl.UTF-8
347 Ten pakiet zawiera biblioteki współdzielone implementacji Mesa
348 standardu GLES (OpenGL ES) - wieloplatformowego API do w pełni
349 funkcjonalnej grafiki 2D i 3D na systemach wbudowanych. Specyfikację
350 OpenGL ES można znaleźć na stronie Khronos Group:
351 <http://www.khronos.org/opengles/>. Mesa zawiera implementacją OpenGL
354 %package libGLES-devel
355 Summary: Header files for Mesa GLES libraries
356 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Mesa GLES
357 Group: Development/Libraries
358 # EGL for libglapi.so, <KHR/khrplatform.h> always required, <EGL/egl.h> for <GLES/egl.h>
359 Requires: %{name}-libEGL-devel = %{version}-%{release}
360 Requires: %{name}-libGLES = %{version}-%{release}
362 %description libGLES-devel
363 Header files for Mesa GLES libraries.
365 %description libGLES-devel -l pl.UTF-8
366 Pliki nagłówkowe bibliotek Mesa GLES.
369 Summary: SGI implementation of libGLU OpenGL library
370 Summary(pl.UTF-8): Implementacja SGI biblioteki libGLU ze standardu OpenGL
371 License: SGI Free Software License B v2.0 (MIT-like)
373 # loose dependency on libGL.so.1 to use with other libGL binaries
374 Requires: OpenGL >= 1.2
375 Provides: OpenGL-GLU = 1.3
376 Obsoletes: Mesa-devel
377 Obsoletes: X11-OpenGL-libs < 1:7.0.0
378 Obsoletes: XFree86-OpenGL-libs < 1:7.0.0
381 SGI implementation of libGLU OpenGL library. It implements OpenGL GLU
384 %description libGLU -l pl.UTF-8
385 Implementacja SGI biblioteki libGLU ze standardu OpenGL. Implementuje
386 specyfikację OpenGL GLU 1.3.
388 %package libGLU-devel
389 Summary: Header files for SGI libGLU library
390 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SGI libGLU
391 License: SGI Free Software License B v2.0 (MIT-like)
392 Group: Development/Libraries
393 Requires: %{name}-libGLU = %{version}-%{release}
394 Requires: OpenGL-devel >= 1.2
395 Requires: libstdc++-devel
396 Provides: OpenGL-GLU-devel = 1.3
398 %description libGLU-devel
399 Header files for SGI libGLU library.
401 %description libGLU-devel -l pl.UTF-8
402 Pliki nagłówkowe biblioteki SGI libGLU.
404 %package libGLU-static
405 Summary: Static SGI libGLU library
406 Summary(pl.UTF-8): Statyczna biblioteka SGI libGLU
407 License: SGI Free Software License B v2.0 (MIT-like)
408 Group: Development/Libraries
409 Requires: %{name}-libGLU-devel = %{version}-%{release}
410 Provides: OpenGL-GLU-static = 1.3
412 %description libGLU-static
413 Static SGI libGLU library.
415 %description libGLU-static -l pl.UTF-8
416 Statyczna biblioteka SGI libGLU.
419 Summary: OSMesa (off-screen renderer) library
420 Summary(pl.UTF-8): Biblioteka OSMesa (renderująca bitmapy w pamięci)
423 # doesn't require base
425 %description libOSMesa
426 OSMesa (off-screen renderer) library.
428 %description libOSMesa -l pl.UTF-8
429 Biblioteka OSMesa (renderująca bitmapy w pamięci).
431 %package libOSMesa-devel
432 Summary: Header file for OSMesa (off-screen renderer) library
433 Summary(pl.UTF-8): Plik nagłówkowy biblioteki OSMesa (renderującej bitmapy w pamięci)
435 Group: Development/Libraries
436 Requires: %{name}-libOSMesa = %{version}-%{release}
438 Requires: OpenGL-devel
439 Requires: libselinux-devel
441 %description libOSMesa-devel
442 Header file for OSMesa (off-screen renderer) library.
444 %description libOSMesa-devel -l pl.UTF-8
445 Plik nagłówkowy biblioteki OSMesa (renderującej bitmapy w pamięci).
447 %package libOSMesa-static
448 Summary: Static OSMesa (off-screen renderer) library
449 Summary(pl.UTF-8): Biblioteka statyczna OSMesa (renderująca bitmapy w pamięci)
451 Group: Development/Libraries
452 Requires: %{name}-libOSMesa-devel = %{version}-%{release}
453 # this static build of OSMesa needs static non-dri Mesa implementation
454 Requires: %{name}-libGL-static = %{version}-%{release}
456 %description libOSMesa-static
457 Static OSMesa (off-screen renderer) library.
459 %description libOSMesa-static -l pl.UTF-8
460 Biblioteka statyczna OSMesa (renderująca bitmapy w pamięci).
463 Summary: Mesa implementation of OpenVG (Vector Graphics Accelleration) API
464 Summary(pl.UTF-8): Implementacja Mesa API OpenVG (akceleracji grafiki wektorowej)
467 # doesn't require base
469 %description libOpenVG
470 This package contains Mesa implementation of OpenVG - cross-platform
471 API that provides a low-level hardware acceleration interface for
472 vector graphics libraries such as Flash and SVG. OpenVG specification
473 can be found on Khronos Group site: <http://www.khronos.org/openvg/>.
474 Mesa implements OpenVG 1.1.
476 %description libOpenVG -l pl.UTF-8
477 Ten pakiet zawiera implementację Mesa standardu OpenVG -
478 wieloplatfomowego API zapewniającego niskopoziomowy interfejs
479 akceleracji sprzętowej dla bibliotek grafiki wektorowej, takiej jak
480 Flash czy SVG. Specyfikację OpenVG można znaleźć na stronie Khronos
481 Group: <http://www.khronos.org/openvg/>. Mesa zawiera implementację
484 %package libOpenVG-devel
485 Summary: Header file for Mesa OpenVG library
486 Summary(pl.UTF-8): Plik nagłówkowy biblioteki Mesa OpenVG
488 Group: Development/Libraries
489 # EGL headers for <KHR/khrplatform.h>
490 Requires: %{name}-libEGL-devel = %{version}-%{release}
491 Requires: %{name}-libOpenVG = %{version}-%{release}
493 %description libOpenVG-devel
494 Header file for Mesa OpenVG library.
496 %description libOpenVG-devel -l pl.UTF-8
497 Plik nagłówkowy biblioteki Mesa OpenVG.
499 %package libXvMC-nouveau
500 Summary: Mesa implementation of XvMC API for NVidia adapters
501 Summary(pl.UTF-8): Implementacja Mesa API XvMC dla kart NVidia
504 Requires: libdrm >= %{libdrm_ver}
505 Requires: xorg-lib-libXvMC >= 1.0.6
506 Conflicts: Mesa-libXvMC
508 %description libXvMC-nouveau
509 Mesa implementation of XvMC API for NVidia adapters (NV40-NV96, NVa0).
511 %description libXvMC-nouveau -l pl.UTF-8
512 Implementacja Mesa API XvMC dla kart NVidia (NV40-NV96, NVa0).
514 %package libXvMC-r300
515 Summary: Mesa implementation of XvMC API for ATI Radeon R300 series adapters
516 Summary(pl.UTF-8): Implementacja Mesa API XvMC dla kart ATI Radeon z serii R300
519 Requires: libdrm >= %{libdrm_ver}
520 Requires: xorg-lib-libXvMC >= 1.0.6
521 Conflicts: Mesa-libXvMC
523 %description libXvMC-r300
524 Mesa implementation of XvMC API for ATI Radeon adapters based on
525 R300/R400/RS690/R500 chips.
527 %description libXvMC-r300 -l pl.UTF-8
528 Implementacja Mesa API XvMC dla kart ATI Radeon opartych na układach
529 R300/R400/RS690/R500.
531 %package libXvMC-r600
532 Summary: Mesa implementation of XvMC API for ATI Radeon R600 series adapters
533 Summary(pl.UTF-8): Implementacja Mesa API XvMC dla kart ATI Radeon z serii R600
536 Requires: libdrm >= %{libdrm_ver}
537 Requires: xorg-lib-libXvMC >= 1.0.6
538 Conflicts: Mesa-libXvMC
540 %description libXvMC-r600
541 Mesa implementation of XvMC API for ATI Radeon adapters based on
544 %description libXvMC-r600 -l pl.UTF-8
545 Implementacja Mesa API XvMC dla kart ATI Radeon opartych na układach
548 %package libXvMC-softpipe
549 Summary: Mesa softpipe implementation of XvMC API
550 Summary(pl.UTF-8): Implementacja Mesa softpipe API XvMC
553 Requires: libdrm >= %{libdrm_ver}
554 Requires: xorg-lib-libXvMC >= 1.0.6
555 Conflicts: Mesa-libXvMC
557 %description libXvMC-softpipe
558 Mesa softpipe implementation of XvMC API.
560 %description libXvMC-softpipe -l pl.UTF-8
561 Implementacja Mesa softpipe API XvMC.
563 %package libxatracker
564 Summary: Xorg Gallium3D accelleration library
565 Summary(pl.UTF-8): Biblioteka akceleracji Gallium3D dla Xorg
569 %description libxatracker
570 Xorg Gallium3D accelleration library (used by new vmwgfx driver).
572 %description libxatracker -l pl.UTF-8
573 Biblioteka akceleracji Gallium3D dla Xorg (używana przez nowy
576 %package libxatracker-devel
577 Summary: Header files for Xorg Gallium3D accelleration library
578 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki akceleracji Gallium3D dla Xorg
579 Group: X11/Development/Libraries
580 Requires: %{name}-libxatracker = %{version}-%{release}
583 %description libxatracker-devel
584 Header files for Xorg Gallium3D accelleration library.
586 %description libxatracker-devel -l pl.UTF-8
587 Pliki nagłówkowe biblioteki akceleracji Gallium3D dla Xorg.
589 %package dri-driver-ati-radeon-R100
590 Summary: X.org DRI driver for ATI R100 card family
591 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R100
594 Requires: xorg-driver-video-ati
595 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
596 Requires: xorg-xserver-server >= %{xserver_ver}
597 Obsoletes: X11-driver-radeon-dri < 1:7.0.0
599 %description dri-driver-ati-radeon-R100
600 X.org DRI driver for ATI R100 card family (Radeon 7000-7500).
602 %description dri-driver-ati-radeon-R100 -l pl.UTF-8
603 Sterownik X.org DRI dla rodziny kart ATI R100 (Radeon 7000-7500).
605 %package dri-driver-ati-radeon-R200
606 Summary: X.org DRI driver for ATI R200 card family
607 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R200
610 Requires: xorg-driver-video-ati
611 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
612 Requires: xorg-xserver-server >= %{xserver_ver}
613 Obsoletes: X11-driver-radeon-dri < 1:7.0.0
615 %description dri-driver-ati-radeon-R200
616 X.org DRI driver for ATI R200 card family (Radeon 8500-92xx)
618 %description dri-driver-ati-radeon-R200 -l pl.UTF-8
619 Sterownik X.org DRI dla rodziny kart ATI R200 (Radeon 8500-92xx).
621 %package dri-driver-ati-radeon-R300
622 Summary: X.org DRI driver for ATI R300 card family
623 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R300
626 Requires: xorg-driver-video-ati
627 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
628 Requires: xorg-xserver-server >= %{xserver_ver}
629 Obsoletes: X11-driver-radeon-dri < 1:7.0.0
631 %description dri-driver-ati-radeon-R300
632 X.org DRI driver for ATI R300/R400/RS690/R500 card family.
634 %description dri-driver-ati-radeon-R300 -l pl.UTF-8
635 Sterownik X.org DRI dla rodziny kart ATI R300/R400/RS690/R500.
637 %package dri-driver-ati-radeon-R600
638 Summary: X.org DRI driver for ATI R600 card family
639 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R600
642 Requires: radeon-ucode
643 Requires: xorg-driver-video-ati
644 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
645 Requires: xorg-xserver-server >= %{xserver_ver}
647 %description dri-driver-ati-radeon-R600
648 X.org DRI driver for ATI R600/R700 card family.
650 %description dri-driver-ati-radeon-R600 -l pl.UTF-8
651 Sterownik X.org DRI dla rodziny kart ATI R600/R700.
653 %package dri-driver-intel-i915
654 Summary: X.org DRI driver for Intel i915 card family
655 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart Intel i915
658 Requires: xorg-driver-video-intel
659 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
660 Requires: xorg-xserver-server >= %{xserver_ver}
661 Obsoletes: Mesa-dri-driver-intel-i830
662 Obsoletes: X11-driver-i810-dri < 1:7.0.0
664 %description dri-driver-intel-i915
665 X.org DRI driver for Intel i915 card family (915, 945, G33, Q33, Q35,
668 %description dri-driver-intel-i915 -l pl.UTF-8
669 Sterownik X.org DRI dla rodziny kart Intel i915 (915, 945, G33, Q33,
672 %package dri-driver-intel-i965
673 Summary: X.org DRI driver for Intel i965 card family
674 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart Intel i965
677 Requires: xorg-driver-video-intel
678 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
679 Requires: xorg-xserver-server >= %{xserver_ver}
680 Obsoletes: Mesa-dri-driver-intel-i830
681 Obsoletes: X11-driver-i810-dri < 1:7.0.0
683 %description dri-driver-intel-i965
684 X.org DRI driver for Intel i965 card family (946GZ, 965G, 965Q, 965GM,
685 965GME, GM45, G41, B43, Q45, G45);
687 %description dri-driver-intel-i965 -l pl.UTF-8
688 Sterownik X.org DRI dla rodziny kart Intel i965 (946GZ, 965G, 965Q,
689 965GM, 965GME, GM45, G41, B43, Q45, G45).
691 %package dri-driver-nouveau
692 Summary: X.org DRI driver for NVIDIA card family
693 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart NVIDIA
696 Requires: xorg-driver-video-nouveau
697 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
698 Requires: xorg-xserver-server >= %{xserver_ver}
700 %description dri-driver-nouveau
701 X.org DRI drivers for NVIDIA card family.
703 %description dri-driver-nouveau -l pl.UTF-8
704 Sterowniki X.org DRI dla rodziny kart NVIDIA.
706 %package dri-driver-swrast
707 Summary: X.org DRI software rasterizer driver
708 Summary(pl.UTF-8): Sterownik X.org DRI obsługujący rysowanie programowe
711 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
712 Requires: xorg-xserver-server >= %{xserver_ver}
714 %description dri-driver-swrast
715 X.org DRI software rasterizer driver.
717 %description dri-driver-swrast -l pl.UTF-8
718 Sterownik X.org DRI obsługujący rysowanie programowe.
720 %package dri-driver-vmwgfx
721 Summary: X.org DRI driver for VMware
722 Summary(pl.UTF-8): Sterownik X.org DRI dla VMware
725 Requires: xorg-driver-video-vmware
726 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
727 Requires: xorg-xserver-server >= %{xserver_ver}
729 %description dri-driver-vmwgfx
730 X.org DRI driver for VMWare.
732 %description dri-driver-vmwgfx -l pl.UTF-8
733 Sterownik X.org DRI dla VMware.
735 %package -n libvdpau-driver-mesa-nouveau
736 Summary: Mesa nouveau driver for the vdpau API
737 Summary(pl.UTF-8): Sterownik Mesa nouveau 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-nouveau
745 Mesa nouveau driver for the vdpau API. It supports NVidia adapters
748 %description -n libvdpau-driver-mesa-nouveau -l pl.UTF-8
749 Sterownik Mesa nouveau dla API vdpau. Obsługuje karty NVidia
752 %package -n libvdpau-driver-mesa-r300
753 Summary: Mesa r300 driver for the vdpau API
754 Summary(pl.UTF-8): Sterownik Mesa r300 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-r300
762 Mesa r300 driver for the vdpau API. It supports ATI Radeon adapters
763 based on R300/R400/RS690/R500 chips.
765 %description -n libvdpau-driver-mesa-r300 -l pl.UTF-8
766 Sterownik Mesa r300 dla API vdpau. Obsługuje karty ATI Radeon oparte
767 na układach R300/R400/RS690/R500.
769 %package -n libvdpau-driver-mesa-r600
770 Summary: Mesa r600 driver for the vdpau API
771 Summary(pl.UTF-8): Sterownik Mesa r600 dla API vdpau
774 Requires: libdrm >= %{libdrm_ver}
775 Requires: libvdpau >= 0.4.1
776 Conflicts: libvdpau-driver-mesa
778 %description -n libvdpau-driver-mesa-r600
779 Mesa r600 driver for the vdpau API. It supports ATI Radeon adapters
780 based on R600/R700 chips.
782 %description -n libvdpau-driver-mesa-r600 -l pl.UTF-8
783 Sterownik Mesa r600 dla API vdpau. Obsługuje karty ATI Radeon oparte
784 na układach R600/R700.
786 %package -n libvdpau-driver-mesa-softpipe
787 Summary: Mesa softpipe driver for the vdpau API
788 Summary(pl.UTF-8): Sterownik Mesa softpipe dla API vdpau
791 Requires: libdrm >= %{libdrm_ver}
792 Requires: libvdpau >= 0.4.1
793 Conflicts: libvdpau-driver-mesa
795 %description -n libvdpau-driver-mesa-softpipe
796 Mesa softpipe driver for the vdpau API.
798 %description -n libvdpau-driver-mesa-softpipe -l pl.UTF-8
799 Sterownik Mesa softpipe dla API vdpau.
810 dri_drivers="r200 radeon \
811 %if %{without gallium_intel}
815 %ifarch sparc sparcv9 sparc64
820 dri_drivers=$(echo $dri_drivers | xargs | tr ' ' ',')
822 gallium_drivers="svga swrast \
823 %if %{with gallium_intel}
828 %if %{with gallium_nouveau}
833 gallium_drivers=$(echo $gallium_drivers | xargs | tr ' ' ',')
840 %{?with_static_libs:--enable-static} \
843 osmesa_common_flags="\
844 --with-driver=osmesa \
850 %configure $common_flags $osmesa_common_flags \
853 %{__make} -C src/mesa osmesa.pc
855 cp -p src/mesa/osmesa.pc osmesa8
859 %configure $common_flags \
861 --enable-shared-glapi \
868 --enable-gallium-llvm \
869 %{__enable egl gallium-egl} \
870 %{__enable gbm gallium-gbm} \
873 %{?with_xa:--enable-xa} \
875 --with-gallium-drivers=${gallium_drivers} \
877 --without-gallium-drivers \
880 --with-dri-drivers=${dri_drivers} \
881 --with-dri-driverdir=%{_libdir}/xorg/modules/dri
886 rm -rf $RPM_BUILD_ROOT
889 DESTDIR=$RPM_BUILD_ROOT
892 cp -dp osmesa8/libOSMesa* $RPM_BUILD_ROOT%{_libdir}
893 cp -p osmesa8/osmesa.pc $RPM_BUILD_ROOT%{_pkgconfigdir}
896 # strip out undesirable headers
897 %{__rm} $RPM_BUILD_ROOT%{_includedir}/GL/{vms_x_fix,wglext,wmesa}.h
899 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libXvMC*.so
901 # remove "OS ABI: Linux 2.4.20" tag, so private copies (nvidia or fglrx),
902 # set up via /etc/ld.so.conf.d/*.conf will be preferred over this
903 strip -R .note.ABI-tag $RPM_BUILD_ROOT%{_libdir}/libGL.so.*.*
906 rm -rf $RPM_BUILD_ROOT
908 %post libEGL -p /sbin/ldconfig
909 %postun libEGL -p /sbin/ldconfig
911 %post libGL -p /sbin/ldconfig
912 %postun libGL -p /sbin/ldconfig
914 %post libGLES -p /sbin/ldconfig
915 %postun libGLES -p /sbin/ldconfig
917 %post libGLU -p /sbin/ldconfig
918 %postun libGLU -p /sbin/ldconfig
920 %post libOSMesa -p /sbin/ldconfig
921 %postun libOSMesa -p /sbin/ldconfig
923 %post libOpenVG -p /sbin/ldconfig
924 %postun libOpenVG -p /sbin/ldconfig
926 %post libXvMC-nouveau -p /sbin/ldconfig
927 %postun libXvMC-nouveau -p /sbin/ldconfig
928 %post libXvMC-r300 -p /sbin/ldconfig
929 %postun libXvMC-r300 -p /sbin/ldconfig
930 %post libXvMC-r600 -p /sbin/ldconfig
931 %postun libXvMC-r600 -p /sbin/ldconfig
932 %post libXvMC-softpipe -p /sbin/ldconfig
933 %postun libXvMC-softpipe -p /sbin/ldconfig
935 %post libxatracker -p /sbin/ldconfig
936 %postun libxatracker -p /sbin/ldconfig
940 %defattr(644,root,root,755)
941 %attr(755,root,root) %{_libdir}/libEGL.so.*.*
942 %attr(755,root,root) %ghost %{_libdir}/libEGL.so.1
943 %attr(755,root,root) %{_libdir}/libglapi.so.*.*
944 %attr(755,root,root) %ghost %{_libdir}/libglapi.so.0
946 %attr(755,root,root) %{_libdir}/libgbm.so.*.*
947 %attr(755,root,root) %ghost %{_libdir}/libgbm.so.1
951 %attr(755,root,root) %{_libdir}/egl/egl_gallium.so
954 %attr(755,root,root) %{_libdir}/gbm/gbm_gallium_drm.so
959 %defattr(644,root,root,755)
960 %attr(755,root,root) %{_libdir}/libEGL.so
961 %attr(755,root,root) %{_libdir}/libglapi.so
962 %dir %{_includedir}/EGL
963 %{_includedir}/EGL/egl.h
964 %{_includedir}/EGL/eglext.h
965 %{_includedir}/EGL/eglmesaext.h
966 %{_includedir}/EGL/eglplatform.h
967 %dir %{_includedir}/KHR
968 %{_includedir}/KHR/khrplatform.h
969 %{_pkgconfigdir}/egl.pc
971 %attr(755,root,root) %{_libdir}/libgbm.so
973 %{_pkgconfigdir}/gbm.pc
976 %if %{with static_libs}
978 %defattr(644,root,root,755)
984 %if %{with gallium_intel}
985 %files gbm-driver-i915
986 %defattr(644,root,root,755)
987 %attr(755,root,root) %{_libdir}/gbm/pipe_i915.so
990 %if %{with gallium_nouveau}
991 %files gbm-driver-nouveau
992 %defattr(644,root,root,755)
993 %attr(755,root,root) %{_libdir}/gbm/pipe_nouveau.so
996 %files gbm-driver-r300
997 %defattr(644,root,root,755)
998 %attr(755,root,root) %{_libdir}/gbm/pipe_r300.so
1000 %files gbm-driver-r600
1001 %defattr(644,root,root,755)
1002 %attr(755,root,root) %{_libdir}/gbm/pipe_r600.so
1004 %files gbm-driver-vmwgfx
1005 %defattr(644,root,root,755)
1006 %attr(755,root,root) %{_libdir}/gbm/pipe_vmwgfx.so
1010 %defattr(644,root,root,755)
1011 %doc docs/{*.html,README.{MITS,QUAKE,THREADS},RELNOTES*}
1012 %attr(755,root,root) %{_libdir}/libGL.so.*.*
1013 %attr(755,root,root) %ghost %{_libdir}/libGL.so.1
1014 # symlink for binary apps which fail to conform Linux OpenGL ABI
1015 # (and dlopen libGL.so instead of libGL.so.1; the same does Mesa libEGL)
1016 %attr(755,root,root) %{_libdir}/libGL.so
1019 %defattr(644,root,root,755)
1021 %dir %{_includedir}/GL
1022 %{_includedir}/GL/gl.h
1023 %{_includedir}/GL/glext.h
1024 %{_includedir}/GL/gl_mangle.h
1025 %{_includedir}/GL/glx.h
1026 %{_includedir}/GL/glxext.h
1027 %{_includedir}/GL/glx_mangle.h
1028 %dir %{_includedir}/GL/internal
1029 %{_includedir}/GL/internal/dri_interface.h
1030 %{_pkgconfigdir}/dri.pc
1031 %{_pkgconfigdir}/gl.pc
1033 %if %{with static_libs}
1035 %defattr(644,root,root,755)
1040 %defattr(644,root,root,755)
1041 %attr(755,root,root) %{_libdir}/libGLESv1_CM.so.*.*.*
1042 %attr(755,root,root) %ghost %{_libdir}/libGLESv1_CM.so.1
1043 %attr(755,root,root) %{_libdir}/libGLESv2.so.*.*
1044 %attr(755,root,root) %ghost %{_libdir}/libGLESv2.so.2
1046 %files libGLES-devel
1047 %defattr(644,root,root,755)
1048 %attr(755,root,root) %{_libdir}/libGLESv1_CM.so
1049 %attr(755,root,root) %{_libdir}/libGLESv2.so
1051 %{_includedir}/GLES2
1052 %{_pkgconfigdir}/glesv1_cm.pc
1053 %{_pkgconfigdir}/glesv2.pc
1056 %defattr(644,root,root,755)
1057 %attr(755,root,root) %{_libdir}/libGLU.so.*.*
1058 %attr(755,root,root) %ghost %{_libdir}/libGLU.so.1
1061 %defattr(644,root,root,755)
1062 %attr(755,root,root) %{_libdir}/libGLU.so
1063 %{_includedir}/GL/glu.h
1064 %{_includedir}/GL/glu_mangle.h
1065 %{_pkgconfigdir}/glu.pc
1067 %if %{with static_libs}
1068 %files libGLU-static
1069 %defattr(644,root,root,755)
1075 %defattr(644,root,root,755)
1076 %attr(755,root,root) %{_libdir}/libOSMesa.so.*.*
1077 %attr(755,root,root) %ghost %{_libdir}/libOSMesa.so.8
1079 %files libOSMesa-devel
1080 %defattr(644,root,root,755)
1081 %attr(755,root,root) %{_libdir}/libOSMesa.so
1082 %{_includedir}/GL/osmesa.h
1083 %{_pkgconfigdir}/osmesa.pc
1085 %if %{with static_libs}
1086 %files libOSMesa-static
1087 %defattr(644,root,root,755)
1088 %{_libdir}/libOSMesa.a
1094 %defattr(644,root,root,755)
1095 %attr(755,root,root) %{_libdir}/libOpenVG.so.*.*.*
1096 %attr(755,root,root) %ghost %{_libdir}/libOpenVG.so.1
1098 %files libOpenVG-devel
1099 %defattr(644,root,root,755)
1100 %attr(755,root,root) %{_libdir}/libOpenVG.so
1102 %{_pkgconfigdir}/vg.pc
1106 %if %{with gallium_nouveau}
1107 %files libXvMC-nouveau
1108 %defattr(644,root,root,755)
1109 %attr(755,root,root) %{_libdir}/libXvMCnouveau.so.1.0
1110 %attr(755,root,root) %ghost %{_libdir}/libXvMCnouveau.so.1
1114 %defattr(644,root,root,755)
1115 %attr(755,root,root) %{_libdir}/libXvMCr300.so.1.0
1116 %attr(755,root,root) %ghost %{_libdir}/libXvMCr300.so.1
1119 %defattr(644,root,root,755)
1120 %attr(755,root,root) %{_libdir}/libXvMCr600.so.1.0
1121 %attr(755,root,root) %ghost %{_libdir}/libXvMCr600.so.1
1123 %files libXvMC-softpipe
1124 %defattr(644,root,root,755)
1125 %attr(755,root,root) %{_libdir}/libXvMCsoftpipe.so.1.0
1126 %attr(755,root,root) %ghost %{_libdir}/libXvMCsoftpipe.so.1
1131 %defattr(644,root,root,755)
1132 %attr(755,root,root) %{_libdir}/libxatracker.so.*.*
1133 %attr(755,root,root) %ghost %{_libdir}/libxatracker.so.1
1135 %files libxatracker-devel
1136 %defattr(644,root,root,755)
1137 %attr(755,root,root) %{_libdir}/libxatracker.so
1138 %{_includedir}/xa_composite.h
1139 %{_includedir}/xa_context.h
1140 %{_includedir}/xa_tracker.h
1141 %{_pkgconfigdir}/xatracker.pc
1144 %files dri-driver-ati-radeon-R100
1145 %defattr(644,root,root,755)
1146 %attr(755,root,root) %{_libdir}/xorg/modules/dri/radeon_dri.so
1148 %files dri-driver-ati-radeon-R200
1149 %defattr(644,root,root,755)
1150 %attr(755,root,root) %{_libdir}/xorg/modules/dri/r200_dri.so
1153 %files dri-driver-ati-radeon-R300
1154 %defattr(644,root,root,755)
1155 %attr(755,root,root) %{_libdir}/xorg/modules/dri/r300_dri.so
1157 %files dri-driver-ati-radeon-R600
1158 %defattr(644,root,root,755)
1159 %attr(755,root,root) %{_libdir}/xorg/modules/dri/r600_dri.so
1161 %files dri-driver-intel-i915
1162 %defattr(644,root,root,755)
1163 %attr(755,root,root) %{_libdir}/xorg/modules/dri/i915_dri.so
1165 %files dri-driver-intel-i965
1166 %defattr(644,root,root,755)
1167 %attr(755,root,root) %{_libdir}/xorg/modules/dri/i965_dri.so
1169 %if %{with gallium_nouveau}
1170 %files dri-driver-nouveau
1171 %defattr(644,root,root,755)
1172 %attr(755,root,root) %{_libdir}/xorg/modules/dri/nouveau_dri.so
1176 %files dri-driver-swrast
1177 %defattr(644,root,root,755)
1178 %attr(755,root,root) %{_libdir}/xorg/modules/dri/swrast_dri.so
1181 %files dri-driver-vmwgfx
1182 %defattr(644,root,root,755)
1183 %attr(755,root,root) %{_libdir}/xorg/modules/dri/vmwgfx_dri.so
1187 # ldconfig is not used in vdpau tree, so package all symlinks
1188 %if %{with gallium_nouveau}
1189 %files -n libvdpau-driver-mesa-nouveau
1190 %defattr(644,root,root,755)
1191 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_nouveau.so.1.0
1192 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_nouveau.so.1
1193 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_nouveau.so
1196 %files -n libvdpau-driver-mesa-r300
1197 %defattr(644,root,root,755)
1198 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_r300.so.1.0
1199 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_r300.so.1
1200 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_r300.so
1202 %files -n libvdpau-driver-mesa-r600
1203 %defattr(644,root,root,755)
1204 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_r600.so.1.0
1205 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_r600.so.1
1206 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_r600.so
1208 %files -n libvdpau-driver-mesa-softpipe
1209 %defattr(644,root,root,755)
1210 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_softpipe.so.1.0
1211 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_softpipe.so.1
1212 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_softpipe.so