3 # - subpackage with non-dri libGL for use with X-servers with missing GLX extension?
4 # - resurrect static if it's useful
7 %bcond_without egl # build egl
8 %bcond_without gallium # don't build gallium
9 %bcond_with gallium_intel # gallium i915 driver (but doesn't work with AIGLX)
10 %bcond_with gallium_radeon # gallium radeon driver
11 %bcond_without gallium_nouveau # gallium nouveau driver
12 %bcond_without motif # build static libGLw without Motif interface
13 %bcond_with multigl # package libGL in a way allowing concurrent install with nvidia/fglrx drivers
14 %bcond_without osmesa # don't build osmesa
15 %bcond_with static # static libraries
17 # minimal supported xserver version
18 %define xserver_ver 1.5.0
19 # glapi version (glapi tables in dri drivers and libglx must be in sync);
20 # set to current Mesa version on ABI break, when xserver tables get regenerated
21 # (until they start to be somehow versioned themselves)
22 %define glapi_ver 7.1.0
24 %define libdrm_ver 2.4.23
25 %define dri2proto_ver 2.1
26 %define glproto_ver 1.4.11
28 Summary: Free OpenGL implementation
29 Summary(pl.UTF-8): Wolnodostępna implementacja standardu OpenGL
32 Release: 1%{?with_multigl:.mgl}
33 License: MIT (core), SGI (GLU,libGLw) and others - see license.html file
35 Source0: ftp://ftp.freedesktop.org/pub/mesa/%{version}/%{name}Lib-%{version}.tar.bz2
36 # Source0-md5: f5de82852f1243f42cc004039e10b771
37 Patch0: %{name}-realclean.patch
38 Patch1: %{name}-selinux.patch
39 Patch2: %{name}-git.patch
40 Patch3: %{name}-nouveau-updates.patch
41 Patch4: %{name}-nouveau-revert.patch
42 Patch5: %{name}-nouveau-classic-libdrm.patch
43 URL: http://www.mesa3d.org/
44 BuildRequires: autoconf >= 2.59
45 BuildRequires: automake
46 BuildRequires: expat-devel
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
52 %{?with_motif:BuildRequires: motif-devel}
53 BuildRequires: pixman-devel
54 BuildRequires: pkgconfig
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-libXt-devel
63 BuildRequires: xorg-lib-libXxf86vm-devel
64 BuildRequires: xorg-proto-dri2proto-devel >= %{dri2proto_ver}
65 BuildRequires: xorg-proto-glproto-devel >= %{glproto_ver}
66 BuildRequires: xorg-util-makedepend
67 BuildRequires: xorg-xserver-server-devel
69 BuildRequires: libxcb-devel
70 BuildRequires: udev-devel >= 150
73 BuildRequires: xorg-proto-xextproto-devel >= 7.0.99.1
74 BuildRequires: xorg-xserver-server-devel >= 1.6.0
76 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
78 %if %{without gallium}
79 %undefine with_gallium_intel
80 %undefine with_gallium_radeon
84 Mesa is a 3-D graphics library with an API which is very similar to
85 that of OpenGL(R). To the extent that Mesa utilizes the OpenGL command
86 syntax or state machine, it is being used with authorization from
87 Silicon Graphics, Inc. However, the author does not possess an OpenGL
88 license from SGI, and makes no claim that Mesa is in any way a
89 compatible replacement for OpenGL or associated with SGI.
91 %description -l pl.UTF-8
92 Mesa jest biblioteką grafiki 3D z API bardzo podobnym do OpenGL(R). Do
93 tego stopnia, że Mesa używa składni i automatu OpenGL jest używana z
94 autoryzacją Silicon Graphics, Inc. Jednak autor nie posiada licencji
95 OpenGL od SGI i nie twierdzi, że Mesa jest kompatybilnym zamiennikiem
96 OpenGL ani powiązana z SGI.
99 Summary: Mesa implementation of EGL Native Platform Graphics Interface library
100 Summary(pl.UTF-8): Implementacja Mesa biblioteki interfejsu EGL
103 Requires: OpenGL >= 1.2
104 Requires: udev-libs >= 150
108 This package contains shared libEGL - Mesa implementation of EGL
109 Native Platform Graphics Interface as specified by Khronos Group:
110 <http://www.khronos.org/egl/>.
112 %description libEGL -l pl.UTF-8
113 Ten pakiet zawiera bibliotekę współdzieloną libEGL - implementację
114 Mesa standardu EGL Native Platform Graphics Interface (interfejsu
115 graficznego platformy natywnej) wg specyfikacji Khronos Group:
116 <http://www.khronos.org/egl/>.
118 %package libEGL-devel
119 Summary: Header files for Mesa implementation of EGL library
120 Summary(pl.UTF-8): Pliki nagłówkowe implementacji Mesa biblioteki EGL
122 Group: Development/Libraries
123 Requires: %{name}-libEGL = %{version}-%{release}
124 Requires: OpenGL-devel >= 1.2
125 Requires: libstdc++-devel
126 Provides: EGL-devel = 1.4
128 %description libEGL-devel
129 Header files for Mesa implementation of EGL library.
131 %description libEGL-devel -l pl.UTF-8
132 Pliki nagłówkowe implementacji Mesa biblioteki EGL.
134 %package libEGL-static
135 Summary: Static Mesa libEGL library
136 Summary(pl.UTF-8): Statyczna biblioteka Mesa libEGL
138 Group: Development/Libraries
139 Requires: %{name}-libEGL-devel = %{version}-%{release}
140 Provides: EGL-static = 1.4
142 %description libEGL-static
143 Static Mesa libEGL library.
145 %description libEGL-static -l pl.UTF-8
146 Statyczna biblioteka Mesa libEGL.
149 Summary: Free Mesa3D implementation of libGL OpenGL library
150 Summary(pl.UTF-8): Wolnodostępna implementacja Mesa3D biblioteki libGL ze standardu OpenGL
153 Requires: libdrm >= %{libdrm_ver}
154 Provides: OpenGL = 2.1
155 # reports version 1.3, but supports glXGetProcAddress() from 1.4
156 Provides: OpenGL-GLX = 1.4
159 Obsoletes: X11-OpenGL-libGL < 1:7.0.0
160 Obsoletes: XFree86-OpenGL-libGL < 1:7.0.0
163 Mesa is a 3-D graphics library with an API which is very similar to
164 that of OpenGL(R). To the extent that Mesa utilizes the OpenGL command
165 syntax or state machine, it is being used with authorization from
166 Silicon Graphics, Inc. However, the author does not possess an OpenGL
167 license from SGI, and makes no claim that Mesa is in any way a
168 compatible replacement for OpenGL or associated with SGI.
170 This package contains libGL which implements OpenGL 1.5 and GLX 1.4
171 specifications. It uses DRI for rendering.
173 %description libGL -l pl.UTF-8
174 Mesa jest biblioteką grafiki 3D z API bardzo podobnym do OpenGL(R). Do
175 tego stopnia, że Mesa używa składni i automatu OpenGL jest używana z
176 autoryzacją Silicon Graphics, Inc. Jednak autor nie posiada licencji
177 OpenGL od SGI i nie twierdzi, że Mesa jest kompatybilnym zamiennikiem
178 OpenGL ani powiązana z SGI.
180 Ten pakiet zawiera libGL implementującą specyfikacje OpenGL 1.5 oraz
181 GLX 1.4. Używa DRI do renderowania.
184 Summary: Header files for Mesa3D libGL library
185 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libGL z projektu Mesa3D
187 Group: X11/Development/Libraries
188 # loose dependency on libGL to use with other libGL binaries
189 Requires: OpenGL >= 1.5
190 Requires: libdrm-devel >= %{libdrm_ver}
191 Requires: xorg-lib-libX11-devel
192 Requires: xorg-lib-libXdamage-devel
193 Requires: xorg-lib-libXext-devel
194 Requires: xorg-lib-libXxf86vm-devel
195 Requires: xorg-proto-dri2proto-devel >= %{dri2proto_ver}
196 Requires: xorg-proto-glproto-devel >= %{glproto_ver}
197 Suggests: OpenGL-doc-man
198 Provides: OpenGL-GLX-devel = 1.4
199 Provides: OpenGL-devel = 2.1
200 Obsoletes: Mesa-devel
201 Obsoletes: X11-OpenGL-devel < 1:7.0.0
202 Obsoletes: X11-OpenGL-devel-base < 1:7.0.0
203 Obsoletes: XFree86-OpenGL-devel < 1:7.0.0
204 Obsoletes: XFree86-OpenGL-devel-base < 1:7.0.0
206 %description libGL-devel
207 Header files for Mesa3D libGL library.
209 %description libGL-devel -l pl.UTF-8
210 Pliki nagłówkowe biblioteki libGL z projektu Mesa3D.
212 %package libGL-static
213 Summary: Static Mesa3D libGL library
214 Summary(pl.UTF-8): Statyczna biblioteka libGL z projektu Mesa3D
216 Group: X11/Development/Libraries
217 Requires: %{name}-libGL-devel = %{version}-%{release}
218 Provides: OpenGL-static = 2.1
219 Obsoletes: Mesa-static
220 Obsoletes: X11-OpenGL-static < 1:7.0.0
221 Obsoletes: XFree86-OpenGL-static < 1:7.0.0
223 %description libGL-static
224 Static Mesa3D libGL library. It uses software renderer.
226 %description libGL-static -l pl.UTF-8
227 Statyczna biblioteka libGL z projektu Mesa3D. Używa programowego
231 Summary: SGI implementation of libGLU OpenGL library
232 Summary(pl.UTF-8): Implementacja SGI biblioteki libGLU ze standardu OpenGL
233 License: SGI Free Software License B v2.0 (MIT-like)
235 # loose dependency on libGL.so.1 to use with other libGL binaries
236 Requires: OpenGL >= 1.2
237 Provides: OpenGL-GLU = 1.3
238 Obsoletes: Mesa-devel
239 Obsoletes: X11-OpenGL-libs < 1:7.0.0
240 Obsoletes: XFree86-OpenGL-libs < 1:7.0.0
243 SGI implementation of libGLU OpenGL library. It implements OpenGL GLU
246 %description libGLU -l pl.UTF-8
247 Implementacja SGI biblioteki libGLU ze standardu OpenGL. Implementuje
248 specyfikację OpenGL GLU 1.3.
250 %package libGLU-devel
251 Summary: Header files for SGI libGLU library
252 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SGI libGLU
253 License: SGI Free Software License B v2.0 (MIT-like)
254 Group: Development/Libraries
255 Requires: %{name}-libGLU = %{version}-%{release}
256 Requires: OpenGL-devel >= 1.2
257 Requires: libstdc++-devel
258 Provides: OpenGL-GLU-devel = 1.3
260 %description libGLU-devel
261 Header files for SGI libGLU library.
263 %description libGLU-devel -l pl.UTF-8
264 Pliki nagłówkowe biblioteki SGI libGLU.
266 %package libGLU-static
267 Summary: Static SGI libGLU library
268 Summary(pl.UTF-8): Statyczna biblioteka SGI libGLU
269 License: SGI Free Software License B v2.0 (MIT-like)
270 Group: Development/Libraries
271 Requires: %{name}-libGLU-devel = %{version}-%{release}
272 Provides: OpenGL-GLU-static = 1.3
274 %description libGLU-static
275 Static SGI libGLU library.
277 %description libGLU-static -l pl.UTF-8
278 Statyczna biblioteka SGI libGLU.
281 Summary: SGI OpenGL Xt widgets library
282 Summary(pl.UTF-8): Biblioteka SGI widgetów Xt dla OpenGL-a
283 License: SGI MIT-like
285 # loose dependency on libGL.so.1 to use with other libGL binaries
286 Requires: OpenGL >= 1.1
290 SGI OpenGL Xt widgets library.
292 %description libGLw -l pl.UTF-8
293 Biblioteka SGI widgetów Xt dla OpenGL-a.
295 %package libGLw-devel
296 Summary: Header files for SGI libGLw library
297 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SGI libGLw
298 License: SGI MIT-like
299 Group: Development/Libraries
300 Requires: %{name}-libGLw = %{version}-%{release}
301 Requires: OpenGL-devel >= 1.2
302 Provides: OpenGL-GLw-devel
304 %description libGLw-devel
305 Header files for SGI libGLw library.
307 %description libGLw-devel -l pl.UTF-8
308 Pliki nagłówkowe biblioteki SGI libGLw.
310 %package libGLw-static
311 Summary: Static SGI libGLw library
312 Summary(pl.UTF-8): Statyczna biblioteka SGI libGLw
313 License: SGI MIT-like
314 Group: Development/Libraries
315 Requires: %{name}-libGLw-devel = %{version}-%{release}
316 Provides: OpenGL-GLw-static
318 %description libGLw-static
319 Static SGI libGLw library.
321 %description libGLw-static -l pl.UTF-8
322 Statyczna biblioteka SGI libGLw.
325 Summary: OSMesa (off-screen renderer) library
326 Summary(pl.UTF-8): Biblioteka OSMesa (renderująca bitmapy w pamięci)
329 # doesn't require base
331 %description libOSMesa
332 OSMesa (off-screen renderer) library.
334 %description libOSMesa -l pl.UTF-8
335 Biblioteka OSMesa (renderująca bitmapy w pamięci).
337 %package libOSMesa-devel
338 Summary: Header file for OSMesa (off-screen renderer) library
339 Summary(pl.UTF-8): Plik nagłówkowy biblioteki OSMesa (renderującej bitmapy w pamięci)
341 Group: Development/Libraries
342 Requires: %{name}-libOSMesa = %{version}-%{release}
344 Requires: OpenGL-devel
346 %description libOSMesa-devel
347 Header file for OSMesa (off-screen renderer) library.
349 %description libOSMesa-devel -l pl.UTF-8
350 Plik nagłówkowy biblioteki OSMesa (renderującej bitmapy w pamięci).
352 %package libOSMesa-static
353 Summary: Static OSMesa (off-screen renderer) library
354 Summary(pl.UTF-8): Biblioteka statyczna OSMesa (renderująca bitmapy w pamięci)
356 Group: Development/Libraries
357 Requires: %{name}-libOSMesa-devel = %{version}-%{release}
358 # this static build of OSMesa needs static non-dri Mesa implementation
359 Requires: %{name}-libGL-static = %{version}-%{release}
361 %description libOSMesa-static
362 Static OSMesa (off-screen renderer) library.
364 %description libOSMesa-static -l pl.UTF-8
365 Biblioteka statyczna OSMesa (renderująca bitmapy w pamięci).
368 Summary: OpenGL utilities from Mesa3D
369 Summary(pl.UTF-8): Programy narzędziowe OpenGL z projektu Mesa3D
371 Group: X11/Applications/Graphics
372 # loose deps on libGL/libGLU
375 OpenGL utilities from Mesa3D: glxgears and glxinfo.
377 %description utils -l pl.UTF-8
378 Programy narzędziowe OpenGL z projektu Mesa3D: glxgears i glxinfo.
380 %package dri-driver-ati-mach64
381 Summary: X.org DRI driver for ATI Mach64 card family
382 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI Mach64
385 Requires: xorg-driver-video-mach64
386 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
387 Requires: xorg-xserver-server >= %{xserver_ver}
389 %description dri-driver-ati-mach64
390 X.org DRI driver for ATI Mach64 card family.
392 %description dri-driver-ati-mach64 -l pl.UTF-8
393 Sterownik X.org DRI dla rodziny kart ATI Mach64.
395 %package dri-driver-ati-radeon-R100
396 Summary: X.org DRI driver for ATI R100 card family
397 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R100
400 Requires: xorg-driver-video-ati
401 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
402 Requires: xorg-xserver-server >= %{xserver_ver}
403 Obsoletes: X11-driver-radeon-dri < 1:7.0.0
405 %description dri-driver-ati-radeon-R100
406 X.org DRI driver for ATI R100 card family (Radeon 7000-7500).
408 %description dri-driver-ati-radeon-R100 -l pl.UTF-8
409 Sterownik X.org DRI dla rodziny kart ATI R100 (Radeon 7000-7500).
411 %package dri-driver-ati-radeon-R200
412 Summary: X.org DRI driver for ATI R200 card family
413 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R200
416 Requires: xorg-driver-video-ati
417 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
418 Requires: xorg-xserver-server >= %{xserver_ver}
419 Obsoletes: X11-driver-radeon-dri < 1:7.0.0
421 %description dri-driver-ati-radeon-R200
422 X.org DRI driver for ATI R200 card family (Radeon 8500-92xx)
424 %description dri-driver-ati-radeon-R200 -l pl.UTF-8
425 Sterownik X.org DRI dla rodziny kart ATI R200 (Radeon 8500-92xx).
427 %package dri-driver-ati-radeon-R300
428 Summary: X.org DRI driver for ATI R300 card family
429 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R300
432 Requires: xorg-driver-video-ati
433 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
434 Requires: xorg-xserver-server >= %{xserver_ver}
435 Obsoletes: X11-driver-radeon-dri < 1:7.0.0
437 %description dri-driver-ati-radeon-R300
438 X.org DRI driver for ATI R300 card family.
440 %description dri-driver-ati-radeon-R300 -l pl.UTF-8
441 Sterownik X.org DRI dla rodziny kart ATI R300.
443 %package dri-driver-ati-radeon-R600
444 Summary: X.org DRI driver for ATI R600 card family
445 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R600
448 Requires: radeon-ucode
449 Requires: xorg-driver-video-ati
450 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
451 Requires: xorg-xserver-server >= %{xserver_ver}
453 %description dri-driver-ati-radeon-R600
454 X.org DRI driver for ATI R600 card family.
456 %description dri-driver-ati-radeon-R600 -l pl.UTF-8
457 Sterownik X.org DRI dla rodziny kart ATI R600.
459 %package dri-driver-ati-rage128
460 Summary: X.org DRI driver for ATI Rage128 card family
461 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI Rage128
464 Requires: xorg-driver-video-r128
465 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
466 Requires: xorg-xserver-server >= %{xserver_ver}
467 Obsoletes: X11-driver-r128-dri < 1:7.0.0
469 %description dri-driver-ati-rage128
470 X.org DRI driver for ATI Rage128 card family.
472 %description dri-driver-ati-rage128 -l pl.UTF-8
473 Sterownik X.org DRI dla rodziny kart ATI Rage128.
475 %package dri-driver-ffb
476 Summary: X.org DRI driver for Sun FFB card family
477 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart Sun FFB
480 Requires: xorg-driver-video-sunffb
481 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
482 Requires: xorg-xserver-server >= %{xserver_ver}
484 %description dri-driver-ffb
485 X.org DRI driver for SUN Creator3D and Elite3D card family.
487 %description dri-driver-ffb -l pl.UTF-8
488 Sterownik X.org DRI dla rodziny kart SUN Creator3D i Elite3D.
490 %package dri-driver-glint
491 Summary: X.org DRI driver for GLINT/Permedia card family
492 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart GLINT/Permedia
495 Requires: xorg-driver-video-glint
496 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
497 Requires: xorg-xserver-server >= %{xserver_ver}
498 Obsoletes: X11-driver-glint-dri < 1:7.0.0
500 %description dri-driver-glint
501 X.org DRI driver for GLINT/Permedia card family.
503 %description dri-driver-glint -l pl.UTF-8
504 Sterownik X.org DRI dla rodziny kart GLINT/Permedia.
506 %package dri-driver-intel-i810
507 Summary: X.org DRI driver for Intel i810 card family
508 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart Intel i810
511 Requires: xorg-driver-video-intel
512 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
513 Requires: xorg-xserver-server >= %{xserver_ver}
514 Obsoletes: X11-driver-i810-dri < 1:7.0.0
516 %description dri-driver-intel-i810
517 X.org DRI driver for Intel i810 card family.
519 %description dri-driver-intel-i810 -l pl.UTF-8
520 Sterownik X.org DRI dla rodziny kart Intel i810.
522 %package dri-driver-intel-i915
523 Summary: X.org DRI driver for Intel i915 card family
524 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart Intel i915
527 Requires: xorg-driver-video-intel
528 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
529 Requires: xorg-xserver-server >= %{xserver_ver}
530 Obsoletes: Mesa-dri-driver-intel-i830
531 Obsoletes: X11-driver-i810-dri < 1:7.0.0
533 %description dri-driver-intel-i915
534 X.org DRI driver for Intel i915 card family.
536 %description dri-driver-intel-i915 -l pl.UTF-8
537 Sterownik X.org DRI dla rodziny kart Intel i915.
539 %package dri-driver-intel-i965
540 Summary: X.org DRI driver for Intel i965 card family
541 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart Intel i965
544 Requires: xorg-driver-video-intel
545 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
546 Requires: xorg-xserver-server >= %{xserver_ver}
547 Obsoletes: Mesa-dri-driver-intel-i830
548 Obsoletes: X11-driver-i810-dri < 1:7.0.0
550 %description dri-driver-intel-i965
551 X.org DRI driver for Intel i965 card family.
553 %description dri-driver-intel-i965 -l pl.UTF-8
554 Sterownik X.org DRI dla rodziny kart Intel i965.
556 %package dri-driver-matrox
557 Summary: X.org DRI driver for Matrox G card family
558 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart Matrox G
561 Requires: xorg-driver-video-mga
562 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
563 Requires: xorg-xserver-server >= %{xserver_ver}
564 Obsoletes: X11-driver-mga-dri < 1:7.0.0
566 %description dri-driver-matrox
567 X.org DRI drivers for Matrox G card family.
569 %description dri-driver-matrox -l pl.UTF-8
570 Sterowniki X.org DRI dla rodziny kart Matrox G.
572 %package dri-driver-nouveau
573 Summary: X.org DRI driver for NVIDIA card family
574 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart NVIDIA
577 Requires: xorg-driver-video-nouveau
578 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
579 Requires: xorg-xserver-server >= %{xserver_ver}
581 %description dri-driver-nouveau
582 X.org DRI drivers for NVIDIA card family.
584 %description dri-driver-nouveau -l pl.UTF-8
585 Sterowniki X.org DRI dla rodziny kart NVIDIA.
587 %package dri-driver-savage
588 Summary: X.org DRI driver for S3 Savage card family
589 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart S3 Savage
592 Requires: xorg-driver-video-savage
593 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
594 Requires: xorg-xserver-server >= %{xserver_ver}
596 %description dri-driver-savage
597 X.org DRI driver for S3 Savage card family.
599 %description dri-driver-savage -l pl.UTF-8
600 Sterownik X.org DRI dla rodziny kart S3 Savage.
602 %package dri-driver-sis
603 Summary: X.org DRI driver for SiS card family
604 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart SiS
607 Requires: xorg-driver-video-sis
608 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
609 Requires: xorg-xserver-server >= %{xserver_ver}
610 Obsoletes: X11-driver-sis-dri < 1:7.0.0
612 %description dri-driver-sis
613 X.org DRI driver for SiS card family.
615 %description dri-driver-sis -l pl.UTF-8
616 Sterownik X.org DRI dla rodziny kart SiS.
618 %package dri-driver-swrast
619 Summary: X.org DRI software rasterizer driver
620 Summary(pl.UTF-8): Sterownik X.org DRI obsługujący rysowanie programowe
623 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
624 Requires: xorg-xserver-server >= %{xserver_ver}
626 %description dri-driver-swrast
627 X.org DRI software rasterizer driver.
629 %description dri-driver-swrast -l pl.UTF-8
630 Sterownik X.org DRI obsługujący rysowanie programowe.
632 %package dri-driver-tdfx
633 Summary: X.org DRI driver for 3DFX Voodoo card family
634 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart 3DFX Voodoo
638 Requires: xorg-driver-video-tdfx
639 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
640 Requires: xorg-xserver-server >= %{xserver_ver}
641 Obsoletes: X11-driver-tdfx-dri < 1:7.0.0
643 %description dri-driver-tdfx
644 X.org DRI driver for 3DFX Voodoo card family (Voodoo 3,4,5, Banshee
645 and Velocity 100/200).
647 %description dri-driver-tdfx -l pl.UTF-8
648 Sterownik X.org DRI dla rodziny kart 3DFX Voodoo. (Voodoo 3,4,5,
649 Banshee i Velocity 100/200).
651 %package dri-driver-via-unichrome
652 Summary: X.org DRI driver for VIA Unichrome card family
653 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart VIA Unichrome
656 Requires: xorg-driver-video-openchrome
657 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
658 Requires: xorg-xserver-server >= %{xserver_ver}
660 %description dri-driver-via-unichrome
661 X.org DRI driver for VIA Unichrome card family.
663 %description dri-driver-via-unichrome -l pl.UTF-8
664 Sterownik X.org DRI dla rodziny kart VIA Unichrome.
666 %package dri-driver-vmwgfx
667 Summary: X.org DRI driver for VMware
668 Summary(pl.UTF-8): Sterownik X.org DRI dla VMware
671 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
672 Requires: xorg-xserver-server >= %{xserver_ver}
674 %description dri-driver-vmwgfx
675 X.org DRI driver for VMWare.
677 %description dri-driver-vmwgfx -l pl.UTF-8
678 Sterownik X.org DRI dla VMware.
693 dri_drivers="i810 i965 mach64 mga r128 \
694 %if %{without gallium_radeon}
695 r200 r300 r600 radeon \
698 %if %{without gallium_intel}
701 %ifarch sparc sparcv9 sparc64
704 %ifarch %{ix86} %{x8664}
707 swrast tdfx unichrome"
709 dri_drivers=$(echo $dri_drivers | xargs | tr ' ' ',')
718 --%{?with_egl:en}%{!?with_egl:dis}able-egl"
720 osmesa_common_flags="\
721 --with-driver=osmesa \
727 %configure $common_flags $osmesa_common_flags \
733 %configure $common_flags $osmesa_common_flags \
734 --with-osmesa-bits=16
739 %configure $common_flags $osmesa_common_flags \
740 --with-osmesa-bits=32
746 %configure $common_flags \
749 --%{?with_gallium_intel:en}%{!?with_gallium_intel:dis}able-gallium-intel \
750 --%{?with_gallium_radeon:en}%{!?with_gallium_radeon:dis}able-gallium-radeon \
751 --enable-gallium-svga \
752 %{?with_gallium_nouveau:--enable-gallium-nouveau} \
753 --with-state-trackers=dri,glx \
758 --with-dri-drivers=${dri_drivers} \
759 --with-dri-driverdir=%{_libdir}/xorg/modules/dri
764 rm -rf $RPM_BUILD_ROOT
766 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
768 # libs without drivers
770 DESTDIR=$RPM_BUILD_ROOT
773 install osmesa*/*OSMesa* $RPM_BUILD_ROOT%{_libdir}
776 rm -rf $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/*/{.deps,CVS,Makefile.{BeOS*,win,cygnus,DJ,dja}}
778 # strip out undesirable headers
780 cd $RPM_BUILD_ROOT%{_includedir}/GL
781 rm [a-fh-np-wyz]*.h glf*.h
782 cd $RPM_BUILD_ROOT%{_libdir}
786 install -d $RPM_BUILD_ROOT{%{_libdir}/Mesa,%{_sysconfdir}/ld.so.conf.d}
788 mv -f $RPM_BUILD_ROOT%{_libdir}/libGL.so.* $RPM_BUILD_ROOT%{_libdir}/Mesa
789 ln -sf Mesa/libGL.so.1 $RPM_BUILD_ROOT%{_libdir}/libGL.so
791 echo %{_libdir}/Mesa >$RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/Mesa.conf
795 rm -rf $RPM_BUILD_ROOT
797 %post libEGL -p /sbin/ldconfig
798 %postun libEGL -p /sbin/ldconfig
800 %post libGL -p /sbin/ldconfig
801 %postun libGL -p /sbin/ldconfig
803 %post libGLU -p /sbin/ldconfig
804 %postun libGLU -p /sbin/ldconfig
806 %post libGLw -p /sbin/ldconfig
807 %postun libGLw -p /sbin/ldconfig
811 %defattr(644,root,root,755)
812 %attr(755,root,root) %{_libdir}/libEGL.so.*.*
813 %attr(755,root,root) %ghost %{_libdir}/libEGL.so.1
815 %attr(755,root,root) %{_libdir}/egl/egl_dri2.so
816 %attr(755,root,root) %{_libdir}/egl/egl_glx.so
819 %defattr(644,root,root,755)
820 %attr(755,root,root) %{_libdir}/libEGL.so
821 %dir %{_includedir}/EGL
822 %{_includedir}/EGL/egl.h
823 %{_includedir}/EGL/eglext.h
824 %{_includedir}/EGL/eglplatform.h
825 %dir %{_includedir}/KHR
826 %{_includedir}/KHR/khrplatform.h
827 %{_pkgconfigdir}/egl.pc
831 %defattr(644,root,root,755)
837 %defattr(644,root,root,755)
838 %doc docs/{*.html,README.{3DFX,GGI,MITS,QUAKE,THREADS},RELNOTES*}
840 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ld.so.conf.d/Mesa.conf
842 %attr(755,root,root) %{_libdir}/Mesa/libGL.so.*.*
843 %attr(755,root,root) %ghost %{_libdir}/Mesa/libGL.so.1
845 %attr(755,root,root) %{_libdir}/libGL.so.*.*
846 %attr(755,root,root) %ghost %{_libdir}/libGL.so.1
847 # symlink for binary apps which fail to conform Linux OpenGL ABI
848 # (and dlopen libGL.so instead of libGL.so.1)
849 %attr(755,root,root) %{_libdir}/libGL.so
853 %defattr(644,root,root,755)
856 %attr(755,root,root) %{_libdir}/libGL.so
858 %dir %{_includedir}/GL
859 %{_includedir}/GL/gl.h
860 %{_includedir}/GL/glext.h
861 %{_includedir}/GL/gl_mangle.h
862 %{_includedir}/GL/glx.h
863 %{_includedir}/GL/glxext.h
864 %{_includedir}/GL/glx_mangle.h
865 %dir %{_includedir}/GL/internal
866 %{_includedir}/GL/internal/dri_interface.h
867 %{_pkgconfigdir}/dri.pc
868 %{_pkgconfigdir}/gl.pc
872 %defattr(644,root,root,755)
877 %defattr(644,root,root,755)
878 %attr(755,root,root) %{_libdir}/libGLU.so.*.*
879 %attr(755,root,root) %ghost %{_libdir}/libGLU.so.1
882 %defattr(644,root,root,755)
883 %attr(755,root,root) %{_libdir}/libGLU.so
884 %{_includedir}/GL/glu.h
885 %{_includedir}/GL/glu_mangle.h
886 %{_pkgconfigdir}/glu.pc
890 %defattr(644,root,root,755)
895 %defattr(644,root,root,755)
896 %attr(755,root,root) %{_libdir}/libGLw.so.*.*
897 %attr(755,root,root) %ghost %{_libdir}/libGLw.so.1
900 %defattr(644,root,root,755)
901 %attr(755,root,root) %{_libdir}/libGLw.so
902 %{_includedir}/GL/GLwDrawA.h
903 %{_includedir}/GL/GLwDrawAP.h
904 %{_includedir}/GL/GLwMDrawA.h
905 %{_includedir}/GL/GLwMDrawAP.h
906 %{_pkgconfigdir}/glw.pc
910 %defattr(644,root,root,755)
916 %defattr(644,root,root,755)
917 %attr(755,root,root) %{_libdir}/libOSMesa*.so.*.*
918 %attr(755,root,root) %ghost %{_libdir}/libOSMesa*.so.7
920 %files libOSMesa-devel
921 %defattr(644,root,root,755)
922 %attr(755,root,root) %{_libdir}/libOSMesa*.so
923 %{_includedir}/GL/osmesa.h
926 %files libOSMesa-static
927 %defattr(644,root,root,755)
928 %{_libdir}/libOSMesa*.a
932 %files dri-driver-ati-mach64
933 %defattr(644,root,root,755)
934 %attr(755,root,root) %{_libdir}/xorg/modules/dri/mach64_dri.so
936 %files dri-driver-ati-radeon-R100
937 %defattr(644,root,root,755)
938 %attr(755,root,root) %{_libdir}/xorg/modules/dri/radeon_dri.so
940 %files dri-driver-ati-radeon-R200
941 %defattr(644,root,root,755)
942 %attr(755,root,root) %{_libdir}/xorg/modules/dri/r200_dri.so
944 %files dri-driver-ati-radeon-R300
945 %defattr(644,root,root,755)
946 %attr(755,root,root) %{_libdir}/xorg/modules/dri/r300_dri.so
948 %files dri-driver-ati-radeon-R600
949 %defattr(644,root,root,755)
950 %attr(755,root,root) %{_libdir}/xorg/modules/dri/r600_dri.so
952 %files dri-driver-ati-rage128
953 %defattr(644,root,root,755)
954 %attr(755,root,root) %{_libdir}/xorg/modules/dri/r128_dri.so
956 # sunffb (sparc only)
957 %ifarch sparc sparcv9 sparc64
958 %files dri-driver-ffb
959 %defattr(644,root,root,755)
960 %attr(755,root,root) %{_libdir}/xorg/modules/dri/ffb_dri.so
963 # glint (requires update)
965 %files dri-driver-glint
966 %defattr(644,root,root,755)
967 %attr(755,root,root) %{_libdir}/xorg/modules/dri/gamma_dri.so
970 %files dri-driver-intel-i810
971 %defattr(644,root,root,755)
972 %attr(755,root,root) %{_libdir}/xorg/modules/dri/i810_dri.so
974 %files dri-driver-intel-i915
975 %defattr(644,root,root,755)
976 %attr(755,root,root) %{_libdir}/xorg/modules/dri/i915_dri.so
978 %files dri-driver-intel-i965
979 %defattr(644,root,root,755)
980 %attr(755,root,root) %{_libdir}/xorg/modules/dri/i965_dri.so
982 %files dri-driver-matrox
983 %defattr(644,root,root,755)
984 %attr(755,root,root) %{_libdir}/xorg/modules/dri/mga_dri.so
987 %if %{with gallium_nouveau}
988 %files dri-driver-nouveau
989 %defattr(644,root,root,755)
990 #%attr(755,root,root) %{_libdir}/xorg/modules/drivers/modesetting_drv.so
991 %attr(755,root,root) %{_libdir}/xorg/modules/dri/nouveau_dri.so
995 %files dri-driver-savage
996 %defattr(644,root,root,755)
997 %attr(755,root,root) %{_libdir}/xorg/modules/dri/savage_dri.so
999 %ifarch %{ix86} %{x8664}
1000 %files dri-driver-sis
1001 %defattr(644,root,root,755)
1002 %attr(755,root,root) %{_libdir}/xorg/modules/dri/sis_dri.so
1005 %files dri-driver-swrast
1006 %defattr(644,root,root,755)
1007 %attr(755,root,root) %{_libdir}/xorg/modules/dri/swrast_dri.so
1008 %attr(755,root,root) %{_libdir}/xorg/modules/dri/swrastg_dri.so
1010 %files dri-driver-tdfx
1011 %defattr(644,root,root,755)
1012 %attr(755,root,root) %{_libdir}/xorg/modules/dri/tdfx_dri.so
1014 %files dri-driver-via-unichrome
1015 %defattr(644,root,root,755)
1016 %attr(755,root,root) %{_libdir}/xorg/modules/dri/unichrome_dri.so
1019 %files dri-driver-vmwgfx
1020 %defattr(644,root,root,755)
1021 %attr(755,root,root) %{_libdir}/xorg/modules/dri/vmwgfx_dri.so