4 # --enable-shared-glapi (for libGL; required if the same app uses GL and GLES)
5 # --enable-shared-dricore
6 # - subpackage with non-dri libGL for use with X-servers with missing GLX extension?
7 # - resurrect static if it's useful
10 %bcond_without egl # build egl
11 %bcond_without gallium # don't build gallium
12 %bcond_with gallium_intel # gallium i915 driver (but doesn't work with AIGLX)
13 %bcond_without gallium_radeon # gallium radeon driver
14 %bcond_without gallium_nouveau # gallium nouveau driver
15 %bcond_without motif # build static libGLw without Motif interface
16 %bcond_with multigl # package libGL in a way allowing concurrent install with nvidia/fglrx drivers
17 %bcond_without osmesa # don't build osmesa
18 %bcond_with static_libs # static libraries
20 # minimal supported xserver version
21 %define xserver_ver 1.5.0
22 # glapi version (glapi tables in dri drivers and libglx must be in sync);
23 # set to current Mesa version on ABI break, when xserver tables get regenerated
24 # (until they start to be somehow versioned themselves)
25 %define glapi_ver 7.1.0
27 %define libdrm_ver 2.4.25
28 %define dri2proto_ver 2.6
29 %define glproto_ver 1.4.11
33 Summary: Free OpenGL implementation
34 Summary(pl.UTF-8): Wolnodostępna implementacja standardu OpenGL
37 Release: %{rel}%{?with_multigl:.mgl}
38 License: MIT (core), SGI (GLU,libGLw) and others - see license.html file
40 Source0: ftp://ftp.freedesktop.org/pub/mesa/%{version}/%{name}Lib-%{version}.tar.bz2
41 # Source0-md5: a77307102cee844ff6544ffa8fafeac1
42 Patch0: %{name}-realclean.patch
43 Patch1: %{name}-git.patch
44 Patch2: %{name}-selinux.patch
45 URL: http://www.mesa3d.org/
46 BuildRequires: autoconf >= 2.59
47 BuildRequires: automake
48 BuildRequires: expat-devel
49 BuildRequires: gcc >= 5:3.3
50 BuildRequires: libdrm-devel >= %{libdrm_ver}
51 BuildRequires: libselinux-devel
52 BuildRequires: libstdc++-devel >= 5:3.3.0
53 BuildRequires: libtalloc-devel >= 2:2.0.1
54 BuildRequires: libtool >= 2:1.4d
56 BuildRequires: llvm-devel >= 2.9
57 %{?with_motif:BuildRequires: motif-devel}
58 BuildRequires: pixman-devel
59 BuildRequires: pkgconfig
60 BuildRequires: pkgconfig(talloc) >= 2.0.1
62 BuildRequires: python-libxml2
63 BuildRequires: python-modules
64 BuildRequires: rpmbuild(macros) >= 1.470
65 BuildRequires: sed >= 4.0
66 BuildRequires: xorg-lib-libXdamage-devel
67 BuildRequires: xorg-lib-libXext-devel >= 1.0.5
68 BuildRequires: xorg-lib-libXt-devel
69 BuildRequires: xorg-lib-libXxf86vm-devel
70 BuildRequires: xorg-proto-dri2proto-devel >= %{dri2proto_ver}
71 BuildRequires: xorg-proto-glproto-devel >= %{glproto_ver}
72 BuildRequires: xorg-util-makedepend
73 BuildRequires: xorg-xserver-server-devel
75 BuildRequires: libxcb-devel
76 BuildRequires: udev-devel >= 150
79 BuildRequires: xorg-proto-xextproto-devel >= 7.0.99.1
80 BuildRequires: xorg-xserver-server-devel >= 1.6.0
82 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
84 %if %{without gallium}
85 %undefine with_gallium_intel
86 %undefine with_gallium_nouveau
87 %undefine with_gallium_radeon
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.*
94 Mesa is a 3-D graphics library with an API which is very similar to
95 that of OpenGL(R). To the extent that Mesa utilizes the OpenGL command
96 syntax or state machine, it is being used with authorization from
97 Silicon Graphics, Inc. However, the author does not possess an OpenGL
98 license from SGI, and makes no claim that Mesa is in any way a
99 compatible replacement for OpenGL or associated with SGI.
101 %description -l pl.UTF-8
102 Mesa jest biblioteką grafiki 3D z API bardzo podobnym do OpenGL(R). Do
103 tego stopnia, że Mesa używa składni i automatu OpenGL jest używana z
104 autoryzacją Silicon Graphics, Inc. Jednak autor nie posiada licencji
105 OpenGL od SGI i nie twierdzi, że Mesa jest kompatybilnym zamiennikiem
106 OpenGL ani powiązana z SGI.
109 Summary: Mesa implementation of EGL Native Platform Graphics Interface library
110 Summary(pl.UTF-8): Implementacja Mesa biblioteki interfejsu EGL
113 # glx driver in libEGL dlopens libGL.so
114 Requires: OpenGL >= 1.2
115 Requires: libdrm >= %{libdrm_ver}
118 Requires: Mesa-libOpenVG = %{version}-%{release}
119 Requires: udev-libs >= 150
124 This package contains shared libEGL - Mesa implementation of EGL
125 Native Platform Graphics Interface as specified by Khronos Group:
126 <http://www.khronos.org/egl/>.
128 %description libEGL -l pl.UTF-8
129 Ten pakiet zawiera bibliotekę współdzieloną libEGL - implementację
130 Mesa standardu EGL Native Platform Graphics Interface (interfejsu
131 graficznego platformy natywnej) wg specyfikacji Khronos Group:
132 <http://www.khronos.org/egl/>.
134 %package libEGL-devel
135 Summary: Header files for Mesa implementation of EGL library
136 Summary(pl.UTF-8): Pliki nagłówkowe implementacji Mesa biblioteki EGL
138 Group: Development/Libraries
139 Requires: %{name}-libEGL = %{version}-%{release}
140 Requires: libdrm-devel >= %{libdrm_ver}
141 Requires: xorg-lib-libX11-devel
142 Requires: xorg-lib-libXdamage-devel
143 Requires: xorg-lib-libXext-devel
144 Requires: xorg-lib-libXfixes-devel
145 Requires: xorg-lib-libXxf86vm-devel
146 Requires: xorg-proto-dri2proto-devel >= %{dri2proto_ver}
147 Requires: xorg-proto-glproto-devel >= %{glproto_ver}
148 Provides: EGL-devel = 1.4
150 %description libEGL-devel
151 Header files for Mesa implementation of EGL library.
153 %description libEGL-devel -l pl.UTF-8
154 Pliki nagłówkowe implementacji Mesa biblioteki EGL.
156 %package libEGL-static
157 Summary: Static Mesa EGL library
158 Summary(pl.UTF-8): Statyczna biblioteka Mesa EGL
160 Group: Development/Libraries
161 Requires: %{name}-libEGL-devel = %{version}-%{release}
162 Provides: EGL-static = 1.4
164 %description libEGL-static
165 Static Mesa EGL library.
167 %description libEGL-static -l pl.UTF-8
168 Statyczna biblioteka Mesa EGL.
171 Summary: Free Mesa3D implementation of libGL OpenGL library
172 Summary(pl.UTF-8): Wolnodostępna implementacja Mesa3D biblioteki libGL ze standardu OpenGL
175 Requires: libdrm >= %{libdrm_ver}
176 Provides: OpenGL = 2.1
177 Provides: OpenGL-GLX = 1.4
180 Obsoletes: X11-OpenGL-libGL < 1:7.0.0
181 Obsoletes: XFree86-OpenGL-libGL < 1:7.0.0
184 Mesa is a 3-D graphics library with an API which is very similar to
185 that of OpenGL(R). To the extent that Mesa utilizes the OpenGL command
186 syntax or state machine, it is being used with authorization from
187 Silicon Graphics, Inc. However, the author does not possess an OpenGL
188 license from SGI, and makes no claim that Mesa is in any way a
189 compatible replacement for OpenGL or associated with SGI.
191 This package contains libGL which implements OpenGL 1.5 and GLX 1.4
192 specifications. It uses DRI for rendering.
194 %description libGL -l pl.UTF-8
195 Mesa jest biblioteką grafiki 3D z API bardzo podobnym do OpenGL(R). Do
196 tego stopnia, że Mesa używa składni i automatu OpenGL jest używana z
197 autoryzacją Silicon Graphics, Inc. Jednak autor nie posiada licencji
198 OpenGL od SGI i nie twierdzi, że Mesa jest kompatybilnym zamiennikiem
199 OpenGL ani powiązana z SGI.
201 Ten pakiet zawiera libGL implementującą specyfikacje OpenGL 1.5 oraz
202 GLX 1.4. Używa DRI do renderowania.
205 Summary: Header files for Mesa3D libGL library
206 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libGL z projektu Mesa3D
208 Group: X11/Development/Libraries
209 # loose dependency on libGL to use with other libGL binaries
210 Requires: OpenGL >= 1.5
211 Requires: libdrm-devel >= %{libdrm_ver}
212 Requires: xorg-lib-libX11-devel
213 Requires: xorg-lib-libXdamage-devel
214 Requires: xorg-lib-libXext-devel
215 Requires: xorg-lib-libXxf86vm-devel
216 Requires: xorg-proto-dri2proto-devel >= %{dri2proto_ver}
217 Requires: xorg-proto-glproto-devel >= %{glproto_ver}
218 Suggests: OpenGL-doc-man
219 Provides: OpenGL-GLX-devel = 1.4
220 Provides: OpenGL-devel = 2.1
221 Obsoletes: Mesa-devel
222 Obsoletes: X11-OpenGL-devel < 1:7.0.0
223 Obsoletes: X11-OpenGL-devel-base < 1:7.0.0
224 Obsoletes: XFree86-OpenGL-devel < 1:7.0.0
225 Obsoletes: XFree86-OpenGL-devel-base < 1:7.0.0
227 %description libGL-devel
228 Header files for Mesa3D libGL library.
230 %description libGL-devel -l pl.UTF-8
231 Pliki nagłówkowe biblioteki libGL z projektu Mesa3D.
233 %package libGL-static
234 Summary: Static Mesa3D libGL library
235 Summary(pl.UTF-8): Statyczna biblioteka libGL z projektu Mesa3D
237 Group: X11/Development/Libraries
238 Requires: %{name}-libGL-devel = %{version}-%{release}
239 Provides: OpenGL-static = 2.1
240 Obsoletes: Mesa-static
241 Obsoletes: X11-OpenGL-static < 1:7.0.0
242 Obsoletes: XFree86-OpenGL-static < 1:7.0.0
244 %description libGL-static
245 Static Mesa3D libGL library. It uses software renderer.
247 %description libGL-static -l pl.UTF-8
248 Statyczna biblioteka libGL z projektu Mesa3D. Używa programowego
252 Summary: Mesa implementation of GLES (OpenGL ES) libraries
253 Summary(pl.UTF-8): Implementacja Mesa bibliotek GLES (OpenGL ES)
255 # only for libglapi.so.0
256 Requires: %{name}-libEGL = %{version}-%{release}
259 This package contains shared libraries of Mesa implementation of GLES
260 (OpenGL ES) - cross-platform API for full-function 2D and 3D graphics
261 on embedded systems. OpenGL ES specification can be found on Khronos
262 Group site: <http://www.khronos.org/opengles/>. Mesa implements OpenGL
265 %description libGLES -l pl.UTF-8
266 Ten pakiet zawiera biblioteki współdzielone implementacji Mesa
267 standardu GLES (OpenGL ES) - wieloplatformowego API do w pełni
268 funkcjonalnej grafiki 2D i 3D na systemach wbudowanych. Specyfikację
269 OpenGL ES można znaleźć na stronie Khronos Group:
270 <http://www.khronos.org/opengles/>. Mesa zawiera implementacją OpenGL
273 %package libGLES-devel
274 Summary: Header files for Mesa GLES libraries
275 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Mesa GLES
276 Group: Development/Libraries
277 # EGL for libglapi.so, <KHR/khrplatform.h> always required, <EGL/egl.h> for <GLES/egl.h>
278 Requires: %{name}-libEGL-devel = %{version}-%{release}
279 Requires: %{name}-libGLES = %{version}-%{release}
281 %description libGLES-devel
282 Header files for Mesa GLES libraries.
284 %description libGLES-devel -l pl.UTF-8
285 Pliki nagłówkowe bibliotek Mesa GLES.
288 Summary: SGI implementation of libGLU OpenGL library
289 Summary(pl.UTF-8): Implementacja SGI biblioteki libGLU ze standardu OpenGL
290 License: SGI Free Software License B v2.0 (MIT-like)
292 # loose dependency on libGL.so.1 to use with other libGL binaries
293 Requires: OpenGL >= 1.2
294 Provides: OpenGL-GLU = 1.3
295 Obsoletes: Mesa-devel
296 Obsoletes: X11-OpenGL-libs < 1:7.0.0
297 Obsoletes: XFree86-OpenGL-libs < 1:7.0.0
300 SGI implementation of libGLU OpenGL library. It implements OpenGL GLU
303 %description libGLU -l pl.UTF-8
304 Implementacja SGI biblioteki libGLU ze standardu OpenGL. Implementuje
305 specyfikację OpenGL GLU 1.3.
307 %package libGLU-devel
308 Summary: Header files for SGI libGLU library
309 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SGI libGLU
310 License: SGI Free Software License B v2.0 (MIT-like)
311 Group: Development/Libraries
312 Requires: %{name}-libGLU = %{version}-%{release}
313 Requires: OpenGL-devel >= 1.2
314 Requires: libstdc++-devel
315 Provides: OpenGL-GLU-devel = 1.3
317 %description libGLU-devel
318 Header files for SGI libGLU library.
320 %description libGLU-devel -l pl.UTF-8
321 Pliki nagłówkowe biblioteki SGI libGLU.
323 %package libGLU-static
324 Summary: Static SGI libGLU library
325 Summary(pl.UTF-8): Statyczna biblioteka SGI libGLU
326 License: SGI Free Software License B v2.0 (MIT-like)
327 Group: Development/Libraries
328 Requires: %{name}-libGLU-devel = %{version}-%{release}
329 Provides: OpenGL-GLU-static = 1.3
331 %description libGLU-static
332 Static SGI libGLU library.
334 %description libGLU-static -l pl.UTF-8
335 Statyczna biblioteka SGI libGLU.
338 Summary: SGI OpenGL Xt widgets library
339 Summary(pl.UTF-8): Biblioteka SGI widgetów Xt dla OpenGL-a
340 License: SGI MIT-like
342 # loose dependency on libGL.so.1 to use with other libGL binaries
343 Requires: OpenGL >= 1.1
347 SGI OpenGL Xt widgets library.
349 %description libGLw -l pl.UTF-8
350 Biblioteka SGI widgetów Xt dla OpenGL-a.
352 %package libGLw-devel
353 Summary: Header files for SGI libGLw library
354 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SGI libGLw
355 License: SGI MIT-like
356 Group: Development/Libraries
357 Requires: %{name}-libGLw = %{version}-%{release}
358 Requires: OpenGL-devel >= 1.2
359 Requires: xorg-lib-libX11-devel
360 Requires: xorg-lib-libXt-devel
361 Provides: OpenGL-GLw-devel
363 %description libGLw-devel
364 Header files for SGI libGLw library.
366 %description libGLw-devel -l pl.UTF-8
367 Pliki nagłówkowe biblioteki SGI libGLw.
369 %package libGLw-static
370 Summary: Static SGI libGLw library
371 Summary(pl.UTF-8): Statyczna biblioteka SGI libGLw
372 License: SGI MIT-like
373 Group: Development/Libraries
374 Requires: %{name}-libGLw-devel = %{version}-%{release}
375 Provides: OpenGL-GLw-static
377 %description libGLw-static
378 Static SGI libGLw library.
380 %description libGLw-static -l pl.UTF-8
381 Statyczna biblioteka SGI libGLw.
384 Summary: OSMesa (off-screen renderer) library
385 Summary(pl.UTF-8): Biblioteka OSMesa (renderująca bitmapy w pamięci)
388 # doesn't require base
390 %description libOSMesa
391 OSMesa (off-screen renderer) library.
393 %description libOSMesa -l pl.UTF-8
394 Biblioteka OSMesa (renderująca bitmapy w pamięci).
396 %package libOSMesa-devel
397 Summary: Header file for OSMesa (off-screen renderer) library
398 Summary(pl.UTF-8): Plik nagłówkowy biblioteki OSMesa (renderującej bitmapy w pamięci)
400 Group: Development/Libraries
401 Requires: %{name}-libOSMesa = %{version}-%{release}
403 Requires: OpenGL-devel
404 Requires: libselinux-devel
406 %description libOSMesa-devel
407 Header file for OSMesa (off-screen renderer) library.
409 %description libOSMesa-devel -l pl.UTF-8
410 Plik nagłówkowy biblioteki OSMesa (renderującej bitmapy w pamięci).
412 %package libOSMesa-static
413 Summary: Static OSMesa (off-screen renderer) library
414 Summary(pl.UTF-8): Biblioteka statyczna OSMesa (renderująca bitmapy w pamięci)
416 Group: Development/Libraries
417 Requires: %{name}-libOSMesa-devel = %{version}-%{release}
418 # this static build of OSMesa needs static non-dri Mesa implementation
419 Requires: %{name}-libGL-static = %{version}-%{release}
421 %description libOSMesa-static
422 Static OSMesa (off-screen renderer) library.
424 %description libOSMesa-static -l pl.UTF-8
425 Biblioteka statyczna OSMesa (renderująca bitmapy w pamięci).
428 Summary: Mesa implementation of OpenVG (Vector Graphics Accelleration) API
429 Summary(pl.UTF-8): Implementacja Mesa API OpenVG (akceleracji grafiki wektorowej)
432 # doesn't require base
434 %description libOpenVG
435 This package contains Mesa implementation of OpenVG - cross-platform
436 API that provides a low-level hardware acceleration interface for
437 vector graphics libraries such as Flash and SVG. OpenVG specification
438 can be found on Khronos Group site: <http://www.khronos.org/openvg/>.
439 Mesa implements OpenVG 1.1.
441 %description libOpenVG -l pl.UTF-8
442 Ten pakiet zawiera implementację Mesa standardu OpenVG -
443 wieloplatfomowego API zapewniającego niskopoziomowy interfejs
444 akceleracji sprzętowej dla bibliotek grafiki wektorowej, takiej
445 jak Flash czy SVG. Specyfikację OpenVG można znaleźć na stronie
446 Khronos Group: <http://www.khronos.org/openvg/>. Mesa zawiera
447 implementację OpenVG w wersji 1.1.
449 %package libOpenVG-devel
450 Summary: Header file for Mesa OpenVG library
451 Summary(pl.UTF-8): Plik nagłówkowy biblioteki Mesa OpenVG
453 Group: Development/Libraries
454 # EGL headers for <KHR/khrplatform.h>
455 Requires: %{name}-libEGL-devel = %{version}-%{release}
456 Requires: %{name}-libOpenVG = %{version}-%{release}
458 %description libOpenVG-devel
459 Header file for Mesa OpenVG library.
461 %description libOpenVG-devel -l pl.UTF-8
462 Plik nagłówkowy biblioteki Mesa OpenVG.
464 %package dri-driver-ati-mach64
465 Summary: X.org DRI driver for ATI Mach64 card family
466 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI Mach64
469 Requires: xorg-driver-video-mach64
470 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
471 Requires: xorg-xserver-server >= %{xserver_ver}
473 %description dri-driver-ati-mach64
474 X.org DRI driver for ATI Mach64 card family.
476 %description dri-driver-ati-mach64 -l pl.UTF-8
477 Sterownik X.org DRI dla rodziny kart ATI Mach64.
479 %package dri-driver-ati-radeon-R100
480 Summary: X.org DRI driver for ATI R100 card family
481 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R100
484 Requires: xorg-driver-video-ati
485 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
486 Requires: xorg-xserver-server >= %{xserver_ver}
487 Obsoletes: X11-driver-radeon-dri < 1:7.0.0
489 %description dri-driver-ati-radeon-R100
490 X.org DRI driver for ATI R100 card family (Radeon 7000-7500).
492 %description dri-driver-ati-radeon-R100 -l pl.UTF-8
493 Sterownik X.org DRI dla rodziny kart ATI R100 (Radeon 7000-7500).
495 %package dri-driver-ati-radeon-R200
496 Summary: X.org DRI driver for ATI R200 card family
497 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R200
500 Requires: xorg-driver-video-ati
501 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
502 Requires: xorg-xserver-server >= %{xserver_ver}
503 Obsoletes: X11-driver-radeon-dri < 1:7.0.0
505 %description dri-driver-ati-radeon-R200
506 X.org DRI driver for ATI R200 card family (Radeon 8500-92xx)
508 %description dri-driver-ati-radeon-R200 -l pl.UTF-8
509 Sterownik X.org DRI dla rodziny kart ATI R200 (Radeon 8500-92xx).
511 %package dri-driver-ati-radeon-R300
512 Summary: X.org DRI driver for ATI R300 card family
513 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R300
516 Requires: xorg-driver-video-ati
517 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
518 Requires: xorg-xserver-server >= %{xserver_ver}
519 Obsoletes: X11-driver-radeon-dri < 1:7.0.0
521 %description dri-driver-ati-radeon-R300
522 X.org DRI driver for ATI R300 card family.
524 %description dri-driver-ati-radeon-R300 -l pl.UTF-8
525 Sterownik X.org DRI dla rodziny kart ATI R300.
527 %package dri-driver-ati-radeon-R600
528 Summary: X.org DRI driver for ATI R600 card family
529 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R600
532 Requires: radeon-ucode
533 Requires: xorg-driver-video-ati
534 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
535 Requires: xorg-xserver-server >= %{xserver_ver}
537 %description dri-driver-ati-radeon-R600
538 X.org DRI driver for ATI R600 card family.
540 %description dri-driver-ati-radeon-R600 -l pl.UTF-8
541 Sterownik X.org DRI dla rodziny kart ATI R600.
543 %package dri-driver-ati-rage128
544 Summary: X.org DRI driver for ATI Rage128 card family
545 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI Rage128
548 Requires: xorg-driver-video-r128
549 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
550 Requires: xorg-xserver-server >= %{xserver_ver}
551 Obsoletes: X11-driver-r128-dri < 1:7.0.0
553 %description dri-driver-ati-rage128
554 X.org DRI driver for ATI Rage128 card family.
556 %description dri-driver-ati-rage128 -l pl.UTF-8
557 Sterownik X.org DRI dla rodziny kart ATI Rage128.
559 %package dri-driver-ffb
560 Summary: X.org DRI driver for Sun FFB card family
561 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart Sun FFB
564 Requires: xorg-driver-video-sunffb
565 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
566 Requires: xorg-xserver-server >= %{xserver_ver}
568 %description dri-driver-ffb
569 X.org DRI driver for SUN Creator3D and Elite3D card family.
571 %description dri-driver-ffb -l pl.UTF-8
572 Sterownik X.org DRI dla rodziny kart SUN Creator3D i Elite3D.
574 %package dri-driver-glint
575 Summary: X.org DRI driver for GLINT/Permedia card family
576 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart GLINT/Permedia
579 Requires: xorg-driver-video-glint
580 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
581 Requires: xorg-xserver-server >= %{xserver_ver}
582 Obsoletes: X11-driver-glint-dri < 1:7.0.0
584 %description dri-driver-glint
585 X.org DRI driver for GLINT/Permedia card family.
587 %description dri-driver-glint -l pl.UTF-8
588 Sterownik X.org DRI dla rodziny kart GLINT/Permedia.
590 %package dri-driver-intel-i810
591 Summary: X.org DRI driver for Intel i810 card family
592 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart Intel i810
595 Requires: xorg-driver-video-intel
596 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
597 Requires: xorg-xserver-server >= %{xserver_ver}
598 Obsoletes: X11-driver-i810-dri < 1:7.0.0
600 %description dri-driver-intel-i810
601 X.org DRI driver for Intel i810 card family.
603 %description dri-driver-intel-i810 -l pl.UTF-8
604 Sterownik X.org DRI dla rodziny kart Intel i810.
606 %package dri-driver-intel-i915
607 Summary: X.org DRI driver for Intel i915 card family
608 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart Intel i915
611 Requires: xorg-driver-video-intel
612 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
613 Requires: xorg-xserver-server >= %{xserver_ver}
614 Obsoletes: Mesa-dri-driver-intel-i830
615 Obsoletes: X11-driver-i810-dri < 1:7.0.0
617 %description dri-driver-intel-i915
618 X.org DRI driver for Intel i915 card family.
620 %description dri-driver-intel-i915 -l pl.UTF-8
621 Sterownik X.org DRI dla rodziny kart Intel i915.
623 %package dri-driver-intel-i965
624 Summary: X.org DRI driver for Intel i965 card family
625 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart Intel i965
628 Requires: xorg-driver-video-intel
629 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
630 Requires: xorg-xserver-server >= %{xserver_ver}
631 Obsoletes: Mesa-dri-driver-intel-i830
632 Obsoletes: X11-driver-i810-dri < 1:7.0.0
634 %description dri-driver-intel-i965
635 X.org DRI driver for Intel i965 card family.
637 %description dri-driver-intel-i965 -l pl.UTF-8
638 Sterownik X.org DRI dla rodziny kart Intel i965.
640 %package dri-driver-matrox
641 Summary: X.org DRI driver for Matrox G card family
642 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart Matrox G
645 Requires: xorg-driver-video-mga
646 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
647 Requires: xorg-xserver-server >= %{xserver_ver}
648 Obsoletes: X11-driver-mga-dri < 1:7.0.0
650 %description dri-driver-matrox
651 X.org DRI drivers for Matrox G card family.
653 %description dri-driver-matrox -l pl.UTF-8
654 Sterowniki X.org DRI dla rodziny kart Matrox G.
656 %package dri-driver-nouveau
657 Summary: X.org DRI driver for NVIDIA card family
658 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart NVIDIA
661 Requires: xorg-driver-video-nouveau
662 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
663 Requires: xorg-xserver-server >= %{xserver_ver}
665 %description dri-driver-nouveau
666 X.org DRI drivers for NVIDIA card family.
668 %description dri-driver-nouveau -l pl.UTF-8
669 Sterowniki X.org DRI dla rodziny kart NVIDIA.
671 %package dri-driver-savage
672 Summary: X.org DRI driver for S3 Savage card family
673 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart S3 Savage
676 Requires: xorg-driver-video-savage
677 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
678 Requires: xorg-xserver-server >= %{xserver_ver}
680 %description dri-driver-savage
681 X.org DRI driver for S3 Savage card family.
683 %description dri-driver-savage -l pl.UTF-8
684 Sterownik X.org DRI dla rodziny kart S3 Savage.
686 %package dri-driver-sis
687 Summary: X.org DRI driver for SiS card family
688 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart SiS
691 Requires: xorg-driver-video-sis
692 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
693 Requires: xorg-xserver-server >= %{xserver_ver}
694 Obsoletes: X11-driver-sis-dri < 1:7.0.0
696 %description dri-driver-sis
697 X.org DRI driver for SiS card family.
699 %description dri-driver-sis -l pl.UTF-8
700 Sterownik X.org DRI dla rodziny kart SiS.
702 %package dri-driver-swrast
703 Summary: X.org DRI software rasterizer driver
704 Summary(pl.UTF-8): Sterownik X.org DRI obsługujący rysowanie programowe
707 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
708 Requires: xorg-xserver-server >= %{xserver_ver}
710 %description dri-driver-swrast
711 X.org DRI software rasterizer driver.
713 %description dri-driver-swrast -l pl.UTF-8
714 Sterownik X.org DRI obsługujący rysowanie programowe.
716 %package dri-driver-tdfx
717 Summary: X.org DRI driver for 3DFX Voodoo card family
718 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart 3DFX Voodoo
722 Requires: xorg-driver-video-tdfx
723 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
724 Requires: xorg-xserver-server >= %{xserver_ver}
725 Obsoletes: X11-driver-tdfx-dri < 1:7.0.0
727 %description dri-driver-tdfx
728 X.org DRI driver for 3DFX Voodoo card family (Voodoo 3,4,5, Banshee
729 and Velocity 100/200).
731 %description dri-driver-tdfx -l pl.UTF-8
732 Sterownik X.org DRI dla rodziny kart 3DFX Voodoo. (Voodoo 3,4,5,
733 Banshee i Velocity 100/200).
735 %package dri-driver-via-unichrome
736 Summary: X.org DRI driver for VIA Unichrome card family
737 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart VIA Unichrome
740 Requires: xorg-driver-video-openchrome
741 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
742 Requires: xorg-xserver-server >= %{xserver_ver}
744 %description dri-driver-via-unichrome
745 X.org DRI driver for VIA Unichrome card family.
747 %description dri-driver-via-unichrome -l pl.UTF-8
748 Sterownik X.org DRI dla rodziny kart VIA Unichrome.
750 %package dri-driver-vmwgfx
751 Summary: X.org DRI driver for VMware
752 Summary(pl.UTF-8): Sterownik X.org DRI dla VMware
755 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
756 Requires: xorg-xserver-server >= %{xserver_ver}
758 %description dri-driver-vmwgfx
759 X.org DRI driver for VMWare.
761 %description dri-driver-vmwgfx -l pl.UTF-8
762 Sterownik X.org DRI dla VMware.
765 %define filterout_ld -Wl,--as-needed
777 dri_drivers="i810 mach64 mga r128 r200 radeon \
778 %if %{without gallium_radeon}
782 %if %{without gallium_intel}
785 %ifarch sparc sparcv9 sparc64
788 %ifarch %{ix86} %{x8664}
791 swrast tdfx unichrome"
793 dri_drivers=$(echo $dri_drivers | xargs | tr ' ' ',')
795 gallium_drivers="svga swrast \
796 %if %{with gallium_intel}
800 %if %{with gallium_radeon}
804 %if %{with gallium_nouveau}
809 gallium_drivers=$(echo $gallium_drivers | xargs | tr ' ' ',')
815 %{?with_static_libs:--enable-static} \
819 osmesa_common_flags="\
820 --with-driver=osmesa \
826 %configure $common_flags $osmesa_common_flags \
829 %{__make} -C src/mesa osmesa.pc
831 cp -p src/mesa/osmesa.pc osmesa8
835 %configure $common_flags \
843 --enable-gallium-egl \
844 --with-gallium-drivers=${gallium_drivers} \
849 --with-dri-drivers=${dri_drivers} \
850 --with-dri-driverdir=%{_libdir}/xorg/modules/dri
855 rm -rf $RPM_BUILD_ROOT
857 # libs without drivers
859 DESTDIR=$RPM_BUILD_ROOT
862 cp -p osmesa8/libOSMesa* $RPM_BUILD_ROOT%{_libdir}
863 cp -p osmesa8/osmesa.pc $RPM_BUILD_ROOT%{_pkgconfigdir}
866 # strip out undesirable headers
867 %{__rm} $RPM_BUILD_ROOT%{_includedir}/GL/{glfbdev,mesa_wgl,vms_x_fix,wglext,wmesa}.h
870 # use gallium swrastg as swrast
871 mv $RPM_BUILD_ROOT%{_libdir}/xorg/modules/dri/swrastg_dri.so $RPM_BUILD_ROOT%{_libdir}/xorg/modules/dri/swrast_dri.so
875 install -d $RPM_BUILD_ROOT{%{_libdir}/Mesa,%{_sysconfdir}/ld.so.conf.d}
877 mv -f $RPM_BUILD_ROOT%{_libdir}/libGL.so.* $RPM_BUILD_ROOT%{_libdir}/Mesa
878 ln -sf Mesa/libGL.so.1 $RPM_BUILD_ROOT%{_libdir}/libGL.so
880 echo %{_libdir}/Mesa >$RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/Mesa.conf
884 rm -rf $RPM_BUILD_ROOT
886 %post libEGL -p /sbin/ldconfig
887 %postun libEGL -p /sbin/ldconfig
889 %post libGL -p /sbin/ldconfig
890 %postun libGL -p /sbin/ldconfig
892 %post libGLES -p /sbin/ldconfig
893 %postun libGLES -p /sbin/ldconfig
895 %post libGLU -p /sbin/ldconfig
896 %postun libGLU -p /sbin/ldconfig
898 %post libGLw -p /sbin/ldconfig
899 %postun libGLw -p /sbin/ldconfig
901 %post libOSMesa -p /sbin/ldconfig
902 %postun libOSMesa -p /sbin/ldconfig
904 %post libOpenVG -p /sbin/ldconfig
905 %postun libOpenVG -p /sbin/ldconfig
909 %defattr(644,root,root,755)
910 %attr(755,root,root) %{_libdir}/libEGL.so.*.*
911 %attr(755,root,root) %ghost %{_libdir}/libEGL.so.1
912 %attr(755,root,root) %{_libdir}/libglapi.so.*.*
913 %attr(755,root,root) %ghost %{_libdir}/libglapi.so.0
916 %attr(755,root,root) %{_libdir}/egl/egl_gallium.so
917 %attr(755,root,root) %{_libdir}/egl/st_GL.so
918 %if %{with gallium_intel}
919 %attr(755,root,root) %{_libdir}/egl/pipe_i915.so
920 %attr(755,root,root) %{_libdir}/egl/pipe_i965.so
925 %defattr(644,root,root,755)
926 %attr(755,root,root) %{_libdir}/libEGL.so
927 %attr(755,root,root) %{_libdir}/libglapi.so
928 %dir %{_includedir}/EGL
929 %{_includedir}/EGL/egl.h
930 %{_includedir}/EGL/eglext.h
931 %{_includedir}/EGL/eglplatform.h
932 %dir %{_includedir}/KHR
933 %{_includedir}/KHR/khrplatform.h
934 %{_pkgconfigdir}/egl.pc
936 %if %{with static_libs}
938 %defattr(644,root,root,755)
944 %defattr(644,root,root,755)
945 %doc docs/{*.html,README.{3DFX,GGI,MITS,QUAKE,THREADS},RELNOTES*}
947 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ld.so.conf.d/Mesa.conf
949 %attr(755,root,root) %{_libdir}/Mesa/libGL.so.*.*
950 %attr(755,root,root) %ghost %{_libdir}/Mesa/libGL.so.1
952 %attr(755,root,root) %{_libdir}/libGL.so.*.*
953 %attr(755,root,root) %ghost %{_libdir}/libGL.so.1
954 # symlink for binary apps which fail to conform Linux OpenGL ABI
955 # (and dlopen libGL.so instead of libGL.so.1; the same does Mesa libEGL)
956 %attr(755,root,root) %{_libdir}/libGL.so
960 %defattr(644,root,root,755)
963 %attr(755,root,root) %{_libdir}/libGL.so
965 %dir %{_includedir}/GL
966 %{_includedir}/GL/gl.h
967 %{_includedir}/GL/glext.h
968 %{_includedir}/GL/gl_mangle.h
969 %{_includedir}/GL/glx.h
970 %{_includedir}/GL/glxext.h
971 %{_includedir}/GL/glx_mangle.h
972 %dir %{_includedir}/GL/internal
973 %{_includedir}/GL/internal/dri_interface.h
974 %{_pkgconfigdir}/dri.pc
975 %{_pkgconfigdir}/gl.pc
977 %if %{with static_libs}
979 %defattr(644,root,root,755)
984 %defattr(644,root,root,755)
985 %attr(755,root,root) %{_libdir}/libGLESv1_CM.so.*.*.*
986 %attr(755,root,root) %ghost %{_libdir}/libGLESv1_CM.so.1
987 %attr(755,root,root) %{_libdir}/libGLESv2.so.*.*
988 %attr(755,root,root) %ghost %{_libdir}/libGLESv2.so.2
991 %defattr(644,root,root,755)
992 %attr(755,root,root) %{_libdir}/libGLESv1_CM.so
993 %attr(755,root,root) %{_libdir}/libGLESv2.so
996 %{_pkgconfigdir}/glesv1_cm.pc
997 %{_pkgconfigdir}/glesv2.pc
1000 %defattr(644,root,root,755)
1001 %attr(755,root,root) %{_libdir}/libGLU.so.*.*
1002 %attr(755,root,root) %ghost %{_libdir}/libGLU.so.1
1005 %defattr(644,root,root,755)
1006 %attr(755,root,root) %{_libdir}/libGLU.so
1007 %{_includedir}/GL/glu.h
1008 %{_includedir}/GL/glu_mangle.h
1009 %{_pkgconfigdir}/glu.pc
1011 %if %{with static_libs}
1012 %files libGLU-static
1013 %defattr(644,root,root,755)
1018 %defattr(644,root,root,755)
1019 %attr(755,root,root) %{_libdir}/libGLw.so.*.*
1020 %attr(755,root,root) %ghost %{_libdir}/libGLw.so.1
1023 %defattr(644,root,root,755)
1024 %attr(755,root,root) %{_libdir}/libGLw.so
1025 %{_includedir}/GL/GLwDrawA.h
1026 %{_includedir}/GL/GLwDrawAP.h
1027 %{_includedir}/GL/GLwMDrawA.h
1028 %{_includedir}/GL/GLwMDrawAP.h
1029 %{_pkgconfigdir}/glw.pc
1031 %if %{with static_libs}
1032 %files libGLw-static
1033 %defattr(644,root,root,755)
1039 %defattr(644,root,root,755)
1040 %attr(755,root,root) %{_libdir}/libOSMesa.so.*.*
1041 %attr(755,root,root) %ghost %{_libdir}/libOSMesa.so.7
1043 %files libOSMesa-devel
1044 %defattr(644,root,root,755)
1045 %attr(755,root,root) %{_libdir}/libOSMesa.so
1046 %{_includedir}/GL/osmesa.h
1047 %{_pkgconfigdir}/osmesa.pc
1049 %if %{with static_libs}
1050 %files libOSMesa-static
1051 %defattr(644,root,root,755)
1052 %{_libdir}/libOSMesa.a
1058 %defattr(644,root,root,755)
1059 %attr(755,root,root) %{_libdir}/libOpenVG.so.*.*.*
1060 %attr(755,root,root) %ghost %{_libdir}/libOpenVG.so.1
1062 %files libOpenVG-devel
1063 %defattr(644,root,root,755)
1064 %attr(755,root,root) %{_libdir}/libOpenVG.so
1066 %{_pkgconfigdir}/vg.pc
1069 %files dri-driver-ati-mach64
1070 %defattr(644,root,root,755)
1071 %attr(755,root,root) %{_libdir}/xorg/modules/dri/mach64_dri.so
1073 %files dri-driver-ati-radeon-R100
1074 %defattr(644,root,root,755)
1075 %attr(755,root,root) %{_libdir}/xorg/modules/dri/radeon_dri.so
1077 %files dri-driver-ati-radeon-R200
1078 %defattr(644,root,root,755)
1079 %attr(755,root,root) %{_libdir}/xorg/modules/dri/r200_dri.so
1081 %files dri-driver-ati-radeon-R300
1082 %defattr(644,root,root,755)
1083 %attr(755,root,root) %{_libdir}/xorg/modules/dri/r300_dri.so
1085 %files dri-driver-ati-radeon-R600
1086 %defattr(644,root,root,755)
1087 %attr(755,root,root) %{_libdir}/xorg/modules/dri/r600_dri.so
1089 %files dri-driver-ati-rage128
1090 %defattr(644,root,root,755)
1091 %attr(755,root,root) %{_libdir}/xorg/modules/dri/r128_dri.so
1093 # sunffb (sparc only)
1094 %ifarch sparc sparcv9 sparc64
1095 %files dri-driver-ffb
1096 %defattr(644,root,root,755)
1097 %attr(755,root,root) %{_libdir}/xorg/modules/dri/ffb_dri.so
1100 # glint (requires update)
1102 %files dri-driver-glint
1103 %defattr(644,root,root,755)
1104 %attr(755,root,root) %{_libdir}/xorg/modules/dri/gamma_dri.so
1107 %files dri-driver-intel-i810
1108 %defattr(644,root,root,755)
1109 %attr(755,root,root) %{_libdir}/xorg/modules/dri/i810_dri.so
1111 %files dri-driver-intel-i915
1112 %defattr(644,root,root,755)
1113 %attr(755,root,root) %{_libdir}/xorg/modules/dri/i915_dri.so
1115 %files dri-driver-intel-i965
1116 %defattr(644,root,root,755)
1117 %attr(755,root,root) %{_libdir}/xorg/modules/dri/i965_dri.so
1118 %if %{with gallium_intel}
1119 %attr(755,root,root) %{_libdir}/xorg/modules/drivers/i965g_drv.so
1122 %files dri-driver-matrox
1123 %defattr(644,root,root,755)
1124 %attr(755,root,root) %{_libdir}/xorg/modules/dri/mga_dri.so
1126 %if %{with gallium_nouveau}
1127 %files dri-driver-nouveau
1128 %defattr(644,root,root,755)
1129 %attr(755,root,root) %{_libdir}/xorg/modules/dri/nouveau_dri.so
1132 %files dri-driver-savage
1133 %defattr(644,root,root,755)
1134 %attr(755,root,root) %{_libdir}/xorg/modules/dri/savage_dri.so
1136 %ifarch %{ix86} %{x8664}
1137 %files dri-driver-sis
1138 %defattr(644,root,root,755)
1139 %attr(755,root,root) %{_libdir}/xorg/modules/dri/sis_dri.so
1142 %files dri-driver-swrast
1143 %defattr(644,root,root,755)
1144 %attr(755,root,root) %{_libdir}/xorg/modules/dri/swrast_dri.so
1146 %files dri-driver-tdfx
1147 %defattr(644,root,root,755)
1148 %attr(755,root,root) %{_libdir}/xorg/modules/dri/tdfx_dri.so
1150 %files dri-driver-via-unichrome
1151 %defattr(644,root,root,755)
1152 %attr(755,root,root) %{_libdir}/xorg/modules/dri/unichrome_dri.so
1155 %files dri-driver-vmwgfx
1156 %defattr(644,root,root,755)
1157 %attr(755,root,root) %{_libdir}/xorg/modules/dri/vmwgfx_dri.so