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_without osmesa # don't build osmesa
17 %bcond_with static_libs # static libraries
19 # minimal supported xserver version
20 %define xserver_ver 1.5.0
21 # glapi version (glapi tables in dri drivers and libglx must be in sync);
22 # set to current Mesa version on ABI break, when xserver tables get regenerated
23 # (until they start to be somehow versioned themselves)
24 %define glapi_ver 7.1.0
26 %define libdrm_ver 2.4.25
27 %define dri2proto_ver 2.6
28 %define glproto_ver 1.4.11
30 Summary: Free OpenGL implementation
31 Summary(pl.UTF-8): Wolnodostępna implementacja standardu OpenGL
35 License: MIT (core), SGI (GLU,libGLw) and others - see license.html file
37 Source0: ftp://ftp.freedesktop.org/pub/mesa/%{version}/%{name}Lib-%{version}.tar.bz2
38 # Source0-md5: 0837c52698fe3252369c3fdb5195afcc
39 Patch0: %{name}-realclean.patch
40 Patch1: %{name}-git.patch
41 Patch2: %{name}-selinux.patch
42 URL: http://www.mesa3d.org/
43 BuildRequires: autoconf >= 2.59
44 BuildRequires: automake
45 BuildRequires: expat-devel
46 BuildRequires: gcc >= 5:3.3
47 BuildRequires: libdrm-devel >= %{libdrm_ver}
48 BuildRequires: libselinux-devel
49 BuildRequires: libstdc++-devel >= 5:3.3.0
50 BuildRequires: libtalloc-devel >= 2:2.0.1
51 BuildRequires: libtool >= 2:1.4d
53 BuildRequires: llvm-devel >= 2.9
54 %{?with_motif:BuildRequires: motif-devel}
55 BuildRequires: pixman-devel
56 BuildRequires: pkgconfig
57 BuildRequires: pkgconfig(talloc) >= 2.0.1
59 BuildRequires: python-libxml2
60 BuildRequires: python-modules
61 BuildRequires: rpmbuild(macros) >= 1.470
62 BuildRequires: sed >= 4.0
63 BuildRequires: xorg-lib-libXdamage-devel
64 BuildRequires: xorg-lib-libXext-devel >= 1.0.5
65 BuildRequires: xorg-lib-libXt-devel
66 BuildRequires: xorg-lib-libXxf86vm-devel
67 BuildRequires: xorg-proto-dri2proto-devel >= %{dri2proto_ver}
68 BuildRequires: xorg-proto-glproto-devel >= %{glproto_ver}
69 BuildRequires: xorg-util-makedepend
70 BuildRequires: xorg-xserver-server-devel
72 BuildRequires: libxcb-devel
73 BuildRequires: udev-devel >= 150
76 BuildRequires: xorg-proto-xextproto-devel >= 7.0.99.1
77 BuildRequires: xorg-xserver-server-devel >= 1.6.0
79 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
81 %if %{without gallium}
82 %undefine with_gallium_intel
83 %undefine with_gallium_nouveau
84 %undefine with_gallium_radeon
87 # _glapi_tls_Dispatch is defined in libglapi, but it's some kind of symbol ldd -r doesn't notice(?)
88 %define skip_post_check_so libGLESv1_CM.so.1.* libGLESv2.so.2.*
91 Mesa is a 3-D graphics library with an API which is very similar to
92 that of OpenGL(R). To the extent that Mesa utilizes the OpenGL command
93 syntax or state machine, it is being used with authorization from
94 Silicon Graphics, Inc. However, the author does not possess an OpenGL
95 license from SGI, and makes no claim that Mesa is in any way a
96 compatible replacement for OpenGL or associated with SGI.
98 %description -l pl.UTF-8
99 Mesa jest biblioteką grafiki 3D z API bardzo podobnym do OpenGL(R). Do
100 tego stopnia, że Mesa używa składni i automatu OpenGL jest używana z
101 autoryzacją Silicon Graphics, Inc. Jednak autor nie posiada licencji
102 OpenGL od SGI i nie twierdzi, że Mesa jest kompatybilnym zamiennikiem
103 OpenGL ani powiązana z SGI.
106 Summary: Mesa implementation of EGL Native Platform Graphics Interface library
107 Summary(pl.UTF-8): Implementacja Mesa biblioteki interfejsu EGL
110 # glx driver in libEGL dlopens libGL.so
111 Requires: OpenGL >= 1.2
112 Requires: libdrm >= %{libdrm_ver}
115 Requires: Mesa-libOpenVG = %{version}-%{release}
116 Requires: udev-libs >= 150
121 This package contains shared libEGL - Mesa implementation of EGL
122 Native Platform Graphics Interface as specified by Khronos Group:
123 <http://www.khronos.org/egl/>.
125 %description libEGL -l pl.UTF-8
126 Ten pakiet zawiera bibliotekę współdzieloną libEGL - implementację
127 Mesa standardu EGL Native Platform Graphics Interface (interfejsu
128 graficznego platformy natywnej) wg specyfikacji Khronos Group:
129 <http://www.khronos.org/egl/>.
131 %package libEGL-devel
132 Summary: Header files for Mesa implementation of EGL library
133 Summary(pl.UTF-8): Pliki nagłówkowe implementacji Mesa biblioteki EGL
135 Group: Development/Libraries
136 Requires: %{name}-libEGL = %{version}-%{release}
137 Requires: libdrm-devel >= %{libdrm_ver}
138 Requires: xorg-lib-libX11-devel
139 Requires: xorg-lib-libXdamage-devel
140 Requires: xorg-lib-libXext-devel
141 Requires: xorg-lib-libXfixes-devel
142 Requires: xorg-lib-libXxf86vm-devel
143 Requires: xorg-proto-dri2proto-devel >= %{dri2proto_ver}
144 Requires: xorg-proto-glproto-devel >= %{glproto_ver}
145 Provides: EGL-devel = 1.4
147 %description libEGL-devel
148 Header files for Mesa implementation of EGL library.
150 %description libEGL-devel -l pl.UTF-8
151 Pliki nagłówkowe implementacji Mesa biblioteki EGL.
153 %package libEGL-static
154 Summary: Static Mesa EGL library
155 Summary(pl.UTF-8): Statyczna biblioteka Mesa EGL
157 Group: Development/Libraries
158 Requires: %{name}-libEGL-devel = %{version}-%{release}
159 Provides: EGL-static = 1.4
161 %description libEGL-static
162 Static Mesa EGL library.
164 %description libEGL-static -l pl.UTF-8
165 Statyczna biblioteka Mesa EGL.
168 Summary: Free Mesa3D implementation of libGL OpenGL library
169 Summary(pl.UTF-8): Wolnodostępna implementacja Mesa3D biblioteki libGL ze standardu OpenGL
172 Requires: libdrm >= %{libdrm_ver}
173 Provides: OpenGL = 2.1
174 Provides: OpenGL-GLX = 1.4
177 Obsoletes: X11-OpenGL-libGL < 1:7.0.0
178 Obsoletes: XFree86-OpenGL-libGL < 1:7.0.0
181 Mesa is a 3-D graphics library with an API which is very similar to
182 that of OpenGL(R). To the extent that Mesa utilizes the OpenGL command
183 syntax or state machine, it is being used with authorization from
184 Silicon Graphics, Inc. However, the author does not possess an OpenGL
185 license from SGI, and makes no claim that Mesa is in any way a
186 compatible replacement for OpenGL or associated with SGI.
188 This package contains libGL which implements OpenGL 1.5 and GLX 1.4
189 specifications. It uses DRI for rendering.
191 %description libGL -l pl.UTF-8
192 Mesa jest biblioteką grafiki 3D z API bardzo podobnym do OpenGL(R). Do
193 tego stopnia, że Mesa używa składni i automatu OpenGL jest używana z
194 autoryzacją Silicon Graphics, Inc. Jednak autor nie posiada licencji
195 OpenGL od SGI i nie twierdzi, że Mesa jest kompatybilnym zamiennikiem
196 OpenGL ani powiązana z SGI.
198 Ten pakiet zawiera libGL implementującą specyfikacje OpenGL 1.5 oraz
199 GLX 1.4. Używa DRI do renderowania.
202 Summary: Header files for Mesa3D libGL library
203 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libGL z projektu Mesa3D
205 Group: X11/Development/Libraries
206 # loose dependency on libGL to use with other libGL binaries
207 Requires: OpenGL >= 1.5
208 Requires: libdrm-devel >= %{libdrm_ver}
209 Requires: xorg-lib-libX11-devel
210 Requires: xorg-lib-libXdamage-devel
211 Requires: xorg-lib-libXext-devel
212 Requires: xorg-lib-libXxf86vm-devel
213 Requires: xorg-proto-dri2proto-devel >= %{dri2proto_ver}
214 Requires: xorg-proto-glproto-devel >= %{glproto_ver}
215 Suggests: OpenGL-doc-man
216 Provides: OpenGL-GLX-devel = 1.4
217 Provides: OpenGL-devel = 2.1
218 Obsoletes: Mesa-devel
219 Obsoletes: X11-OpenGL-devel < 1:7.0.0
220 Obsoletes: X11-OpenGL-devel-base < 1:7.0.0
221 Obsoletes: XFree86-OpenGL-devel < 1:7.0.0
222 Obsoletes: XFree86-OpenGL-devel-base < 1:7.0.0
224 %description libGL-devel
225 Header files for Mesa3D libGL library.
227 %description libGL-devel -l pl.UTF-8
228 Pliki nagłówkowe biblioteki libGL z projektu Mesa3D.
230 %package libGL-static
231 Summary: Static Mesa3D libGL library
232 Summary(pl.UTF-8): Statyczna biblioteka libGL z projektu Mesa3D
234 Group: X11/Development/Libraries
235 Requires: %{name}-libGL-devel = %{version}-%{release}
236 Provides: OpenGL-static = 2.1
237 Obsoletes: Mesa-static
238 Obsoletes: X11-OpenGL-static < 1:7.0.0
239 Obsoletes: XFree86-OpenGL-static < 1:7.0.0
241 %description libGL-static
242 Static Mesa3D libGL library. It uses software renderer.
244 %description libGL-static -l pl.UTF-8
245 Statyczna biblioteka libGL z projektu Mesa3D. Używa programowego
249 Summary: Mesa implementation of GLES (OpenGL ES) libraries
250 Summary(pl.UTF-8): Implementacja Mesa bibliotek GLES (OpenGL ES)
252 # only for libglapi.so.0
253 Requires: %{name}-libEGL = %{version}-%{release}
256 This package contains shared libraries of Mesa implementation of GLES
257 (OpenGL ES) - cross-platform API for full-function 2D and 3D graphics
258 on embedded systems. OpenGL ES specification can be found on Khronos
259 Group site: <http://www.khronos.org/opengles/>. Mesa implements OpenGL
262 %description libGLES -l pl.UTF-8
263 Ten pakiet zawiera biblioteki współdzielone implementacji Mesa
264 standardu GLES (OpenGL ES) - wieloplatformowego API do w pełni
265 funkcjonalnej grafiki 2D i 3D na systemach wbudowanych. Specyfikację
266 OpenGL ES można znaleźć na stronie Khronos Group:
267 <http://www.khronos.org/opengles/>. Mesa zawiera implementacją OpenGL
270 %package libGLES-devel
271 Summary: Header files for Mesa GLES libraries
272 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Mesa GLES
273 Group: Development/Libraries
274 # EGL for libglapi.so, <KHR/khrplatform.h> always required, <EGL/egl.h> for <GLES/egl.h>
275 Requires: %{name}-libEGL-devel = %{version}-%{release}
276 Requires: %{name}-libGLES = %{version}-%{release}
278 %description libGLES-devel
279 Header files for Mesa GLES libraries.
281 %description libGLES-devel -l pl.UTF-8
282 Pliki nagłówkowe bibliotek Mesa GLES.
285 Summary: SGI implementation of libGLU OpenGL library
286 Summary(pl.UTF-8): Implementacja SGI biblioteki libGLU ze standardu OpenGL
287 License: SGI Free Software License B v2.0 (MIT-like)
289 # loose dependency on libGL.so.1 to use with other libGL binaries
290 Requires: OpenGL >= 1.2
291 Provides: OpenGL-GLU = 1.3
292 Obsoletes: Mesa-devel
293 Obsoletes: X11-OpenGL-libs < 1:7.0.0
294 Obsoletes: XFree86-OpenGL-libs < 1:7.0.0
297 SGI implementation of libGLU OpenGL library. It implements OpenGL GLU
300 %description libGLU -l pl.UTF-8
301 Implementacja SGI biblioteki libGLU ze standardu OpenGL. Implementuje
302 specyfikację OpenGL GLU 1.3.
304 %package libGLU-devel
305 Summary: Header files for SGI libGLU library
306 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SGI libGLU
307 License: SGI Free Software License B v2.0 (MIT-like)
308 Group: Development/Libraries
309 Requires: %{name}-libGLU = %{version}-%{release}
310 Requires: OpenGL-devel >= 1.2
311 Requires: libstdc++-devel
312 Provides: OpenGL-GLU-devel = 1.3
314 %description libGLU-devel
315 Header files for SGI libGLU library.
317 %description libGLU-devel -l pl.UTF-8
318 Pliki nagłówkowe biblioteki SGI libGLU.
320 %package libGLU-static
321 Summary: Static SGI libGLU library
322 Summary(pl.UTF-8): Statyczna biblioteka SGI libGLU
323 License: SGI Free Software License B v2.0 (MIT-like)
324 Group: Development/Libraries
325 Requires: %{name}-libGLU-devel = %{version}-%{release}
326 Provides: OpenGL-GLU-static = 1.3
328 %description libGLU-static
329 Static SGI libGLU library.
331 %description libGLU-static -l pl.UTF-8
332 Statyczna biblioteka SGI libGLU.
335 Summary: SGI OpenGL Xt widgets library
336 Summary(pl.UTF-8): Biblioteka SGI widgetów Xt dla OpenGL-a
337 License: SGI MIT-like
339 # loose dependency on libGL.so.1 to use with other libGL binaries
340 Requires: OpenGL >= 1.1
344 SGI OpenGL Xt widgets library.
346 %description libGLw -l pl.UTF-8
347 Biblioteka SGI widgetów Xt dla OpenGL-a.
349 %package libGLw-devel
350 Summary: Header files for SGI libGLw library
351 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SGI libGLw
352 License: SGI MIT-like
353 Group: Development/Libraries
354 Requires: %{name}-libGLw = %{version}-%{release}
355 Requires: OpenGL-devel >= 1.2
356 Requires: xorg-lib-libX11-devel
357 Requires: xorg-lib-libXt-devel
358 Provides: OpenGL-GLw-devel
360 %description libGLw-devel
361 Header files for SGI libGLw library.
363 %description libGLw-devel -l pl.UTF-8
364 Pliki nagłówkowe biblioteki SGI libGLw.
366 %package libGLw-static
367 Summary: Static SGI libGLw library
368 Summary(pl.UTF-8): Statyczna biblioteka SGI libGLw
369 License: SGI MIT-like
370 Group: Development/Libraries
371 Requires: %{name}-libGLw-devel = %{version}-%{release}
372 Provides: OpenGL-GLw-static
374 %description libGLw-static
375 Static SGI libGLw library.
377 %description libGLw-static -l pl.UTF-8
378 Statyczna biblioteka SGI libGLw.
381 Summary: OSMesa (off-screen renderer) library
382 Summary(pl.UTF-8): Biblioteka OSMesa (renderująca bitmapy w pamięci)
385 # doesn't require base
387 %description libOSMesa
388 OSMesa (off-screen renderer) library.
390 %description libOSMesa -l pl.UTF-8
391 Biblioteka OSMesa (renderująca bitmapy w pamięci).
393 %package libOSMesa-devel
394 Summary: Header file for OSMesa (off-screen renderer) library
395 Summary(pl.UTF-8): Plik nagłówkowy biblioteki OSMesa (renderującej bitmapy w pamięci)
397 Group: Development/Libraries
398 Requires: %{name}-libOSMesa = %{version}-%{release}
400 Requires: OpenGL-devel
401 Requires: libselinux-devel
403 %description libOSMesa-devel
404 Header file for OSMesa (off-screen renderer) library.
406 %description libOSMesa-devel -l pl.UTF-8
407 Plik nagłówkowy biblioteki OSMesa (renderującej bitmapy w pamięci).
409 %package libOSMesa-static
410 Summary: Static OSMesa (off-screen renderer) library
411 Summary(pl.UTF-8): Biblioteka statyczna OSMesa (renderująca bitmapy w pamięci)
413 Group: Development/Libraries
414 Requires: %{name}-libOSMesa-devel = %{version}-%{release}
415 # this static build of OSMesa needs static non-dri Mesa implementation
416 Requires: %{name}-libGL-static = %{version}-%{release}
418 %description libOSMesa-static
419 Static OSMesa (off-screen renderer) library.
421 %description libOSMesa-static -l pl.UTF-8
422 Biblioteka statyczna OSMesa (renderująca bitmapy w pamięci).
425 Summary: Mesa implementation of OpenVG (Vector Graphics Accelleration) API
426 Summary(pl.UTF-8): Implementacja Mesa API OpenVG (akceleracji grafiki wektorowej)
429 # doesn't require base
431 %description libOpenVG
432 This package contains Mesa implementation of OpenVG - cross-platform
433 API that provides a low-level hardware acceleration interface for
434 vector graphics libraries such as Flash and SVG. OpenVG specification
435 can be found on Khronos Group site: <http://www.khronos.org/openvg/>.
436 Mesa implements OpenVG 1.1.
438 %description libOpenVG -l pl.UTF-8
439 Ten pakiet zawiera implementację Mesa standardu OpenVG -
440 wieloplatfomowego API zapewniającego niskopoziomowy interfejs
441 akceleracji sprzętowej dla bibliotek grafiki wektorowej, takiej
442 jak Flash czy SVG. Specyfikację OpenVG można znaleźć na stronie
443 Khronos Group: <http://www.khronos.org/openvg/>. Mesa zawiera
444 implementację OpenVG w wersji 1.1.
446 %package libOpenVG-devel
447 Summary: Header file for Mesa OpenVG library
448 Summary(pl.UTF-8): Plik nagłówkowy biblioteki Mesa OpenVG
450 Group: Development/Libraries
451 # EGL headers for <KHR/khrplatform.h>
452 Requires: %{name}-libEGL-devel = %{version}-%{release}
453 Requires: %{name}-libOpenVG = %{version}-%{release}
455 %description libOpenVG-devel
456 Header file for Mesa OpenVG library.
458 %description libOpenVG-devel -l pl.UTF-8
459 Plik nagłówkowy biblioteki Mesa OpenVG.
461 %package dri-driver-ati-mach64
462 Summary: X.org DRI driver for ATI Mach64 card family
463 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI Mach64
466 Requires: xorg-driver-video-mach64
467 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
468 Requires: xorg-xserver-server >= %{xserver_ver}
470 %description dri-driver-ati-mach64
471 X.org DRI driver for ATI Mach64 card family.
473 %description dri-driver-ati-mach64 -l pl.UTF-8
474 Sterownik X.org DRI dla rodziny kart ATI Mach64.
476 %package dri-driver-ati-radeon-R100
477 Summary: X.org DRI driver for ATI R100 card family
478 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R100
481 Requires: xorg-driver-video-ati
482 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
483 Requires: xorg-xserver-server >= %{xserver_ver}
484 Obsoletes: X11-driver-radeon-dri < 1:7.0.0
486 %description dri-driver-ati-radeon-R100
487 X.org DRI driver for ATI R100 card family (Radeon 7000-7500).
489 %description dri-driver-ati-radeon-R100 -l pl.UTF-8
490 Sterownik X.org DRI dla rodziny kart ATI R100 (Radeon 7000-7500).
492 %package dri-driver-ati-radeon-R200
493 Summary: X.org DRI driver for ATI R200 card family
494 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R200
497 Requires: xorg-driver-video-ati
498 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
499 Requires: xorg-xserver-server >= %{xserver_ver}
500 Obsoletes: X11-driver-radeon-dri < 1:7.0.0
502 %description dri-driver-ati-radeon-R200
503 X.org DRI driver for ATI R200 card family (Radeon 8500-92xx)
505 %description dri-driver-ati-radeon-R200 -l pl.UTF-8
506 Sterownik X.org DRI dla rodziny kart ATI R200 (Radeon 8500-92xx).
508 %package dri-driver-ati-radeon-R300
509 Summary: X.org DRI driver for ATI R300 card family
510 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R300
513 Requires: xorg-driver-video-ati
514 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
515 Requires: xorg-xserver-server >= %{xserver_ver}
516 Obsoletes: X11-driver-radeon-dri < 1:7.0.0
518 %description dri-driver-ati-radeon-R300
519 X.org DRI driver for ATI R300 card family.
521 %description dri-driver-ati-radeon-R300 -l pl.UTF-8
522 Sterownik X.org DRI dla rodziny kart ATI R300.
524 %package dri-driver-ati-radeon-R600
525 Summary: X.org DRI driver for ATI R600 card family
526 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R600
529 Requires: radeon-ucode
530 Requires: xorg-driver-video-ati
531 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
532 Requires: xorg-xserver-server >= %{xserver_ver}
534 %description dri-driver-ati-radeon-R600
535 X.org DRI driver for ATI R600 card family.
537 %description dri-driver-ati-radeon-R600 -l pl.UTF-8
538 Sterownik X.org DRI dla rodziny kart ATI R600.
540 %package dri-driver-ati-rage128
541 Summary: X.org DRI driver for ATI Rage128 card family
542 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI Rage128
545 Requires: xorg-driver-video-r128
546 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
547 Requires: xorg-xserver-server >= %{xserver_ver}
548 Obsoletes: X11-driver-r128-dri < 1:7.0.0
550 %description dri-driver-ati-rage128
551 X.org DRI driver for ATI Rage128 card family.
553 %description dri-driver-ati-rage128 -l pl.UTF-8
554 Sterownik X.org DRI dla rodziny kart ATI Rage128.
556 %package dri-driver-ffb
557 Summary: X.org DRI driver for Sun FFB card family
558 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart Sun FFB
561 Requires: xorg-driver-video-sunffb
562 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
563 Requires: xorg-xserver-server >= %{xserver_ver}
565 %description dri-driver-ffb
566 X.org DRI driver for SUN Creator3D and Elite3D card family.
568 %description dri-driver-ffb -l pl.UTF-8
569 Sterownik X.org DRI dla rodziny kart SUN Creator3D i Elite3D.
571 %package dri-driver-glint
572 Summary: X.org DRI driver for GLINT/Permedia card family
573 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart GLINT/Permedia
576 Requires: xorg-driver-video-glint
577 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
578 Requires: xorg-xserver-server >= %{xserver_ver}
579 Obsoletes: X11-driver-glint-dri < 1:7.0.0
581 %description dri-driver-glint
582 X.org DRI driver for GLINT/Permedia card family.
584 %description dri-driver-glint -l pl.UTF-8
585 Sterownik X.org DRI dla rodziny kart GLINT/Permedia.
587 %package dri-driver-intel-i810
588 Summary: X.org DRI driver for Intel i810 card family
589 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart Intel i810
592 Requires: xorg-driver-video-intel
593 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
594 Requires: xorg-xserver-server >= %{xserver_ver}
595 Obsoletes: X11-driver-i810-dri < 1:7.0.0
597 %description dri-driver-intel-i810
598 X.org DRI driver for Intel i810 card family.
600 %description dri-driver-intel-i810 -l pl.UTF-8
601 Sterownik X.org DRI dla rodziny kart Intel i810.
603 %package dri-driver-intel-i915
604 Summary: X.org DRI driver for Intel i915 card family
605 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart Intel i915
608 Requires: xorg-driver-video-intel
609 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
610 Requires: xorg-xserver-server >= %{xserver_ver}
611 Obsoletes: Mesa-dri-driver-intel-i830
612 Obsoletes: X11-driver-i810-dri < 1:7.0.0
614 %description dri-driver-intel-i915
615 X.org DRI driver for Intel i915 card family.
617 %description dri-driver-intel-i915 -l pl.UTF-8
618 Sterownik X.org DRI dla rodziny kart Intel i915.
620 %package dri-driver-intel-i965
621 Summary: X.org DRI driver for Intel i965 card family
622 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart Intel i965
625 Requires: xorg-driver-video-intel
626 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
627 Requires: xorg-xserver-server >= %{xserver_ver}
628 Obsoletes: Mesa-dri-driver-intel-i830
629 Obsoletes: X11-driver-i810-dri < 1:7.0.0
631 %description dri-driver-intel-i965
632 X.org DRI driver for Intel i965 card family.
634 %description dri-driver-intel-i965 -l pl.UTF-8
635 Sterownik X.org DRI dla rodziny kart Intel i965.
637 %package dri-driver-matrox
638 Summary: X.org DRI driver for Matrox G card family
639 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart Matrox G
642 Requires: xorg-driver-video-mga
643 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
644 Requires: xorg-xserver-server >= %{xserver_ver}
645 Obsoletes: X11-driver-mga-dri < 1:7.0.0
647 %description dri-driver-matrox
648 X.org DRI drivers for Matrox G card family.
650 %description dri-driver-matrox -l pl.UTF-8
651 Sterowniki X.org DRI dla rodziny kart Matrox G.
653 %package dri-driver-nouveau
654 Summary: X.org DRI driver for NVIDIA card family
655 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart NVIDIA
658 Requires: xorg-driver-video-nouveau
659 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
660 Requires: xorg-xserver-server >= %{xserver_ver}
662 %description dri-driver-nouveau
663 X.org DRI drivers for NVIDIA card family.
665 %description dri-driver-nouveau -l pl.UTF-8
666 Sterowniki X.org DRI dla rodziny kart NVIDIA.
668 %package dri-driver-savage
669 Summary: X.org DRI driver for S3 Savage card family
670 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart S3 Savage
673 Requires: xorg-driver-video-savage
674 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
675 Requires: xorg-xserver-server >= %{xserver_ver}
677 %description dri-driver-savage
678 X.org DRI driver for S3 Savage card family.
680 %description dri-driver-savage -l pl.UTF-8
681 Sterownik X.org DRI dla rodziny kart S3 Savage.
683 %package dri-driver-sis
684 Summary: X.org DRI driver for SiS card family
685 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart SiS
688 Requires: xorg-driver-video-sis
689 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
690 Requires: xorg-xserver-server >= %{xserver_ver}
691 Obsoletes: X11-driver-sis-dri < 1:7.0.0
693 %description dri-driver-sis
694 X.org DRI driver for SiS card family.
696 %description dri-driver-sis -l pl.UTF-8
697 Sterownik X.org DRI dla rodziny kart SiS.
699 %package dri-driver-swrast
700 Summary: X.org DRI software rasterizer driver
701 Summary(pl.UTF-8): Sterownik X.org DRI obsługujący rysowanie programowe
704 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
705 Requires: xorg-xserver-server >= %{xserver_ver}
707 %description dri-driver-swrast
708 X.org DRI software rasterizer driver.
710 %description dri-driver-swrast -l pl.UTF-8
711 Sterownik X.org DRI obsługujący rysowanie programowe.
713 %package dri-driver-tdfx
714 Summary: X.org DRI driver for 3DFX Voodoo card family
715 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart 3DFX Voodoo
719 Requires: xorg-driver-video-tdfx
720 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
721 Requires: xorg-xserver-server >= %{xserver_ver}
722 Obsoletes: X11-driver-tdfx-dri < 1:7.0.0
724 %description dri-driver-tdfx
725 X.org DRI driver for 3DFX Voodoo card family (Voodoo 3,4,5, Banshee
726 and Velocity 100/200).
728 %description dri-driver-tdfx -l pl.UTF-8
729 Sterownik X.org DRI dla rodziny kart 3DFX Voodoo. (Voodoo 3,4,5,
730 Banshee i Velocity 100/200).
732 %package dri-driver-via-unichrome
733 Summary: X.org DRI driver for VIA Unichrome card family
734 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart VIA Unichrome
737 Requires: xorg-driver-video-openchrome
738 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
739 Requires: xorg-xserver-server >= %{xserver_ver}
741 %description dri-driver-via-unichrome
742 X.org DRI driver for VIA Unichrome card family.
744 %description dri-driver-via-unichrome -l pl.UTF-8
745 Sterownik X.org DRI dla rodziny kart VIA Unichrome.
747 %package dri-driver-vmwgfx
748 Summary: X.org DRI driver for VMware
749 Summary(pl.UTF-8): Sterownik X.org DRI dla VMware
752 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
753 Requires: xorg-xserver-server >= %{xserver_ver}
755 %description dri-driver-vmwgfx
756 X.org DRI driver for VMWare.
758 %description dri-driver-vmwgfx -l pl.UTF-8
759 Sterownik X.org DRI dla VMware.
762 %define filterout_ld -Wl,--as-needed
774 dri_drivers="i810 mach64 mga r128 r200 radeon \
775 %if %{without gallium_radeon}
779 %if %{without gallium_intel}
782 %ifarch sparc sparcv9 sparc64
785 %ifarch %{ix86} %{x8664}
788 swrast tdfx unichrome"
790 dri_drivers=$(echo $dri_drivers | xargs | tr ' ' ',')
792 gallium_drivers="svga swrast \
793 %if %{with gallium_intel}
797 %if %{with gallium_radeon}
801 %if %{with gallium_nouveau}
806 gallium_drivers=$(echo $gallium_drivers | xargs | tr ' ' ',')
812 %{?with_static_libs:--enable-static} \
816 osmesa_common_flags="\
817 --with-driver=osmesa \
823 %configure $common_flags $osmesa_common_flags \
826 %{__make} -C src/mesa osmesa.pc
828 cp -p src/mesa/osmesa.pc osmesa8
832 %configure $common_flags \
840 --enable-gallium-egl \
841 --with-gallium-drivers=${gallium_drivers} \
846 --with-dri-drivers=${dri_drivers} \
847 --with-dri-driverdir=%{_libdir}/xorg/modules/dri
852 rm -rf $RPM_BUILD_ROOT
854 # libs without drivers
856 DESTDIR=$RPM_BUILD_ROOT
859 cp -p osmesa8/libOSMesa* $RPM_BUILD_ROOT%{_libdir}
860 cp -p osmesa8/osmesa.pc $RPM_BUILD_ROOT%{_pkgconfigdir}
863 # strip out undesirable headers
864 %{__rm} $RPM_BUILD_ROOT%{_includedir}/GL/{glfbdev,mesa_wgl,vms_x_fix,wglext,wmesa}.h
867 # use gallium swrastg as swrast
868 mv $RPM_BUILD_ROOT%{_libdir}/xorg/modules/dri/swrastg_dri.so $RPM_BUILD_ROOT%{_libdir}/xorg/modules/dri/swrast_dri.so
871 # remove "OS ABI: Linux 2.4.20" tag, so private copies (nvidia or fglrx),
872 # set up via /etc/ld.so.conf.d/*.conf will be preferred over this
873 strip -R .note.ABI-tag $RPM_BUILD_ROOT%{_libdir}/libGL.so.*.*
876 rm -rf $RPM_BUILD_ROOT
878 %post libEGL -p /sbin/ldconfig
879 %postun libEGL -p /sbin/ldconfig
881 %post libGL -p /sbin/ldconfig
882 %postun libGL -p /sbin/ldconfig
884 %post libGLES -p /sbin/ldconfig
885 %postun libGLES -p /sbin/ldconfig
887 %post libGLU -p /sbin/ldconfig
888 %postun libGLU -p /sbin/ldconfig
890 %post libGLw -p /sbin/ldconfig
891 %postun libGLw -p /sbin/ldconfig
893 %post libOSMesa -p /sbin/ldconfig
894 %postun libOSMesa -p /sbin/ldconfig
896 %post libOpenVG -p /sbin/ldconfig
897 %postun libOpenVG -p /sbin/ldconfig
901 %defattr(644,root,root,755)
902 %attr(755,root,root) %{_libdir}/libEGL.so.*.*
903 %attr(755,root,root) %ghost %{_libdir}/libEGL.so.1
904 %attr(755,root,root) %{_libdir}/libglapi.so.*.*
905 %attr(755,root,root) %ghost %{_libdir}/libglapi.so.0
908 %attr(755,root,root) %{_libdir}/egl/egl_gallium.so
909 %attr(755,root,root) %{_libdir}/egl/st_GL.so
910 %if %{with gallium_intel}
911 %attr(755,root,root) %{_libdir}/egl/pipe_i915.so
912 %attr(755,root,root) %{_libdir}/egl/pipe_i965.so
917 %defattr(644,root,root,755)
918 %attr(755,root,root) %{_libdir}/libEGL.so
919 %attr(755,root,root) %{_libdir}/libglapi.so
920 %dir %{_includedir}/EGL
921 %{_includedir}/EGL/egl.h
922 %{_includedir}/EGL/eglext.h
923 %{_includedir}/EGL/eglplatform.h
924 %dir %{_includedir}/KHR
925 %{_includedir}/KHR/khrplatform.h
926 %{_pkgconfigdir}/egl.pc
928 %if %{with static_libs}
930 %defattr(644,root,root,755)
936 %defattr(644,root,root,755)
937 %doc docs/{*.html,README.{3DFX,GGI,MITS,QUAKE,THREADS},RELNOTES*}
938 %attr(755,root,root) %{_libdir}/libGL.so.*.*
939 %attr(755,root,root) %ghost %{_libdir}/libGL.so.1
940 # symlink for binary apps which fail to conform Linux OpenGL ABI
941 # (and dlopen libGL.so instead of libGL.so.1; the same does Mesa libEGL)
942 %attr(755,root,root) %{_libdir}/libGL.so
945 %defattr(644,root,root,755)
947 %dir %{_includedir}/GL
948 %{_includedir}/GL/gl.h
949 %{_includedir}/GL/glext.h
950 %{_includedir}/GL/gl_mangle.h
951 %{_includedir}/GL/glx.h
952 %{_includedir}/GL/glxext.h
953 %{_includedir}/GL/glx_mangle.h
954 %dir %{_includedir}/GL/internal
955 %{_includedir}/GL/internal/dri_interface.h
956 %{_pkgconfigdir}/dri.pc
957 %{_pkgconfigdir}/gl.pc
959 %if %{with static_libs}
961 %defattr(644,root,root,755)
966 %defattr(644,root,root,755)
967 %attr(755,root,root) %{_libdir}/libGLESv1_CM.so.*.*.*
968 %attr(755,root,root) %ghost %{_libdir}/libGLESv1_CM.so.1
969 %attr(755,root,root) %{_libdir}/libGLESv2.so.*.*
970 %attr(755,root,root) %ghost %{_libdir}/libGLESv2.so.2
973 %defattr(644,root,root,755)
974 %attr(755,root,root) %{_libdir}/libGLESv1_CM.so
975 %attr(755,root,root) %{_libdir}/libGLESv2.so
978 %{_pkgconfigdir}/glesv1_cm.pc
979 %{_pkgconfigdir}/glesv2.pc
982 %defattr(644,root,root,755)
983 %attr(755,root,root) %{_libdir}/libGLU.so.*.*
984 %attr(755,root,root) %ghost %{_libdir}/libGLU.so.1
987 %defattr(644,root,root,755)
988 %attr(755,root,root) %{_libdir}/libGLU.so
989 %{_includedir}/GL/glu.h
990 %{_includedir}/GL/glu_mangle.h
991 %{_pkgconfigdir}/glu.pc
993 %if %{with static_libs}
995 %defattr(644,root,root,755)
1000 %defattr(644,root,root,755)
1001 %attr(755,root,root) %{_libdir}/libGLw.so.*.*
1002 %attr(755,root,root) %ghost %{_libdir}/libGLw.so.1
1005 %defattr(644,root,root,755)
1006 %attr(755,root,root) %{_libdir}/libGLw.so
1007 %{_includedir}/GL/GLwDrawA.h
1008 %{_includedir}/GL/GLwDrawAP.h
1009 %{_includedir}/GL/GLwMDrawA.h
1010 %{_includedir}/GL/GLwMDrawAP.h
1011 %{_pkgconfigdir}/glw.pc
1013 %if %{with static_libs}
1014 %files libGLw-static
1015 %defattr(644,root,root,755)
1021 %defattr(644,root,root,755)
1022 %attr(755,root,root) %{_libdir}/libOSMesa.so.*.*
1023 %attr(755,root,root) %ghost %{_libdir}/libOSMesa.so.7
1025 %files libOSMesa-devel
1026 %defattr(644,root,root,755)
1027 %attr(755,root,root) %{_libdir}/libOSMesa.so
1028 %{_includedir}/GL/osmesa.h
1029 %{_pkgconfigdir}/osmesa.pc
1031 %if %{with static_libs}
1032 %files libOSMesa-static
1033 %defattr(644,root,root,755)
1034 %{_libdir}/libOSMesa.a
1040 %defattr(644,root,root,755)
1041 %attr(755,root,root) %{_libdir}/libOpenVG.so.*.*.*
1042 %attr(755,root,root) %ghost %{_libdir}/libOpenVG.so.1
1044 %files libOpenVG-devel
1045 %defattr(644,root,root,755)
1046 %attr(755,root,root) %{_libdir}/libOpenVG.so
1048 %{_pkgconfigdir}/vg.pc
1051 %files dri-driver-ati-mach64
1052 %defattr(644,root,root,755)
1053 %attr(755,root,root) %{_libdir}/xorg/modules/dri/mach64_dri.so
1055 %files dri-driver-ati-radeon-R100
1056 %defattr(644,root,root,755)
1057 %attr(755,root,root) %{_libdir}/xorg/modules/dri/radeon_dri.so
1059 %files dri-driver-ati-radeon-R200
1060 %defattr(644,root,root,755)
1061 %attr(755,root,root) %{_libdir}/xorg/modules/dri/r200_dri.so
1063 %files dri-driver-ati-radeon-R300
1064 %defattr(644,root,root,755)
1065 %attr(755,root,root) %{_libdir}/xorg/modules/dri/r300_dri.so
1067 %files dri-driver-ati-radeon-R600
1068 %defattr(644,root,root,755)
1069 %attr(755,root,root) %{_libdir}/xorg/modules/dri/r600_dri.so
1071 %files dri-driver-ati-rage128
1072 %defattr(644,root,root,755)
1073 %attr(755,root,root) %{_libdir}/xorg/modules/dri/r128_dri.so
1075 # sunffb (sparc only)
1076 %ifarch sparc sparcv9 sparc64
1077 %files dri-driver-ffb
1078 %defattr(644,root,root,755)
1079 %attr(755,root,root) %{_libdir}/xorg/modules/dri/ffb_dri.so
1082 # glint (requires update)
1084 %files dri-driver-glint
1085 %defattr(644,root,root,755)
1086 %attr(755,root,root) %{_libdir}/xorg/modules/dri/gamma_dri.so
1089 %files dri-driver-intel-i810
1090 %defattr(644,root,root,755)
1091 %attr(755,root,root) %{_libdir}/xorg/modules/dri/i810_dri.so
1093 %files dri-driver-intel-i915
1094 %defattr(644,root,root,755)
1095 %attr(755,root,root) %{_libdir}/xorg/modules/dri/i915_dri.so
1097 %files dri-driver-intel-i965
1098 %defattr(644,root,root,755)
1099 %attr(755,root,root) %{_libdir}/xorg/modules/dri/i965_dri.so
1100 %if %{with gallium_intel}
1101 %attr(755,root,root) %{_libdir}/xorg/modules/drivers/i965g_drv.so
1104 %files dri-driver-matrox
1105 %defattr(644,root,root,755)
1106 %attr(755,root,root) %{_libdir}/xorg/modules/dri/mga_dri.so
1108 %if %{with gallium_nouveau}
1109 %files dri-driver-nouveau
1110 %defattr(644,root,root,755)
1111 %attr(755,root,root) %{_libdir}/xorg/modules/dri/nouveau_dri.so
1114 %files dri-driver-savage
1115 %defattr(644,root,root,755)
1116 %attr(755,root,root) %{_libdir}/xorg/modules/dri/savage_dri.so
1118 %ifarch %{ix86} %{x8664}
1119 %files dri-driver-sis
1120 %defattr(644,root,root,755)
1121 %attr(755,root,root) %{_libdir}/xorg/modules/dri/sis_dri.so
1124 %files dri-driver-swrast
1125 %defattr(644,root,root,755)
1126 %attr(755,root,root) %{_libdir}/xorg/modules/dri/swrast_dri.so
1128 %files dri-driver-tdfx
1129 %defattr(644,root,root,755)
1130 %attr(755,root,root) %{_libdir}/xorg/modules/dri/tdfx_dri.so
1132 %files dri-driver-via-unichrome
1133 %defattr(644,root,root,755)
1134 %attr(755,root,root) %{_libdir}/xorg/modules/dri/unichrome_dri.so
1137 %files dri-driver-vmwgfx
1138 %defattr(644,root,root,755)
1139 %attr(755,root,root) %{_libdir}/xorg/modules/dri/vmwgfx_dri.so