]> git.pld-linux.org Git - packages/Mesa.git/blob - Mesa.spec
0199e739a46dd31701365f14dc8225977ad70d7e
[packages/Mesa.git] / Mesa.spec
1 #
2 # TODO:
3 # - subpackage with non-dri libGL for use with X-servers with missing GLX extension?
4 # - resurrect static if it's useful
5 #
6 # Conditional build:
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
16 #
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
23 #
24 %define         libdrm_ver      2.4.23
25 %define         dri2proto_ver   2.1
26 %define         glproto_ver     1.4.11
27 #
28 Summary:        Free OpenGL implementation
29 Summary(pl.UTF-8):      Wolnodostępna implementacja standardu OpenGL
30 Name:           Mesa
31 Version:        7.10.2
32 Release:        1%{?with_multigl:.mgl}
33 License:        MIT (core), SGI (GLU,libGLw) and others - see license.html file
34 Group:          X11/Libraries
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
55 BuildRequires:  python
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
68 %if %{with egl}
69 BuildRequires:  libxcb-devel
70 BuildRequires:  udev-devel >= 150
71 %endif
72 %if %{with gallium}
73 BuildRequires:  xorg-proto-xextproto-devel >= 7.0.99.1
74 BuildRequires:  xorg-xserver-server-devel >= 1.6.0
75 %endif
76 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
77
78 %if %{without gallium}
79 %undefine       with_gallium_intel
80 %undefine       with_gallium_radeon
81 %endif
82
83 %description
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.
90
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.
97
98 %package libEGL
99 Summary:        Mesa implementation of EGL Native Platform Graphics Interface library
100 Summary(pl.UTF-8):      Implementacja Mesa biblioteki interfejsu EGL
101 License:        MIT
102 Group:          Libraries
103 Requires:       OpenGL >= 1.2
104 Requires:       udev-libs >= 150
105 Provides:       EGL = 1.4
106
107 %description libEGL
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/>.
111
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/>.
117
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
121 License:        MIT
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
127
128 %description libEGL-devel
129 Header files for Mesa implementation of EGL library.
130
131 %description libEGL-devel -l pl.UTF-8
132 Pliki nagłówkowe implementacji Mesa biblioteki EGL.
133
134 %package libEGL-static
135 Summary:        Static Mesa libEGL library
136 Summary(pl.UTF-8):      Statyczna biblioteka Mesa libEGL
137 License:        MIT
138 Group:          Development/Libraries
139 Requires:       %{name}-libEGL-devel = %{version}-%{release}
140 Provides:       EGL-static = 1.4
141
142 %description libEGL-static
143 Static Mesa libEGL library.
144
145 %description libEGL-static -l pl.UTF-8
146 Statyczna biblioteka Mesa libEGL.
147
148 %package libGL
149 Summary:        Free Mesa3D implementation of libGL OpenGL library
150 Summary(pl.UTF-8):      Wolnodostępna implementacja Mesa3D biblioteki libGL ze standardu OpenGL
151 License:        MIT
152 Group:          X11/Libraries
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
157 Obsoletes:      Mesa
158 Obsoletes:      Mesa-dri
159 Obsoletes:      X11-OpenGL-libGL < 1:7.0.0
160 Obsoletes:      XFree86-OpenGL-libGL < 1:7.0.0
161
162 %description libGL
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.
169
170 This package contains libGL which implements OpenGL 1.5 and GLX 1.4
171 specifications. It uses DRI for rendering.
172
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.
179
180 Ten pakiet zawiera libGL implementującą specyfikacje OpenGL 1.5 oraz
181 GLX 1.4. Używa DRI do renderowania.
182
183 %package libGL-devel
184 Summary:        Header files for Mesa3D libGL library
185 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libGL z projektu Mesa3D
186 License:        MIT
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
205
206 %description libGL-devel
207 Header files for Mesa3D libGL library.
208
209 %description libGL-devel -l pl.UTF-8
210 Pliki nagłówkowe biblioteki libGL z projektu Mesa3D.
211
212 %package libGL-static
213 Summary:        Static Mesa3D libGL library
214 Summary(pl.UTF-8):      Statyczna biblioteka libGL z projektu Mesa3D
215 License:        MIT
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
222
223 %description libGL-static
224 Static Mesa3D libGL library. It uses software renderer.
225
226 %description libGL-static -l pl.UTF-8
227 Statyczna biblioteka libGL z projektu Mesa3D. Używa programowego
228 renderingu.
229
230 %package libGLU
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)
234 Group:          Libraries
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
241
242 %description libGLU
243 SGI implementation of libGLU OpenGL library. It implements OpenGL GLU
244 1.3 specifications.
245
246 %description libGLU -l pl.UTF-8
247 Implementacja SGI biblioteki libGLU ze standardu OpenGL. Implementuje
248 specyfikację OpenGL GLU 1.3.
249
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
259
260 %description libGLU-devel
261 Header files for SGI libGLU library.
262
263 %description libGLU-devel -l pl.UTF-8
264 Pliki nagłówkowe biblioteki SGI libGLU.
265
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
273
274 %description libGLU-static
275 Static SGI libGLU library.
276
277 %description libGLU-static -l pl.UTF-8
278 Statyczna biblioteka SGI libGLU.
279
280 %package libGLw
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
284 Group:          Libraries
285 # loose dependency on libGL.so.1 to use with other libGL binaries
286 Requires:       OpenGL >= 1.1
287 Provides:       OpenGL-GLw
288
289 %description libGLw
290 SGI OpenGL Xt widgets library.
291
292 %description libGLw -l pl.UTF-8
293 Biblioteka SGI widgetów Xt dla OpenGL-a.
294
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
303
304 %description libGLw-devel
305 Header files for SGI libGLw library.
306
307 %description libGLw-devel -l pl.UTF-8
308 Pliki nagłówkowe biblioteki SGI libGLw.
309
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
317
318 %description libGLw-static
319 Static SGI libGLw library.
320
321 %description libGLw-static -l pl.UTF-8
322 Statyczna biblioteka SGI libGLw.
323
324 %package libOSMesa
325 Summary:        OSMesa (off-screen renderer) library
326 Summary(pl.UTF-8):      Biblioteka OSMesa (renderująca bitmapy w pamięci)
327 License:        MIT
328 Group:          Libraries
329 # doesn't require base
330
331 %description libOSMesa
332 OSMesa (off-screen renderer) library.
333
334 %description libOSMesa -l pl.UTF-8
335 Biblioteka OSMesa (renderująca bitmapy w pamięci).
336
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)
340 License:        MIT
341 Group:          Development/Libraries
342 Requires:       %{name}-libOSMesa = %{version}-%{release}
343 # for <GL/gl.h> only
344 Requires:       OpenGL-devel
345
346 %description libOSMesa-devel
347 Header file for OSMesa (off-screen renderer) library.
348
349 %description libOSMesa-devel -l pl.UTF-8
350 Plik nagłówkowy biblioteki OSMesa (renderującej bitmapy w pamięci).
351
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)
355 License:        MIT
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}
360
361 %description libOSMesa-static
362 Static OSMesa (off-screen renderer) library.
363
364 %description libOSMesa-static -l pl.UTF-8
365 Biblioteka statyczna OSMesa (renderująca bitmapy w pamięci).
366
367 %package utils
368 Summary:        OpenGL utilities from Mesa3D
369 Summary(pl.UTF-8):      Programy narzędziowe OpenGL z projektu Mesa3D
370 License:        MIT
371 Group:          X11/Applications/Graphics
372 # loose deps on libGL/libGLU
373
374 %description utils
375 OpenGL utilities from Mesa3D: glxgears and glxinfo.
376
377 %description utils -l pl.UTF-8
378 Programy narzędziowe OpenGL z projektu Mesa3D: glxgears i glxinfo.
379
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
383 License:        MIT
384 Group:          X11/Libraries
385 Requires:       xorg-driver-video-mach64
386 Requires:       xorg-xserver-libglx(glapi) = %{glapi_ver}
387 Requires:       xorg-xserver-server >= %{xserver_ver}
388
389 %description dri-driver-ati-mach64
390 X.org DRI driver for ATI Mach64 card family.
391
392 %description dri-driver-ati-mach64 -l pl.UTF-8
393 Sterownik X.org DRI dla rodziny kart ATI Mach64.
394
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
398 License:        MIT
399 Group:          X11/Libraries
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
404
405 %description dri-driver-ati-radeon-R100
406 X.org DRI driver for ATI R100 card family (Radeon 7000-7500).
407
408 %description dri-driver-ati-radeon-R100 -l pl.UTF-8
409 Sterownik X.org DRI dla rodziny kart ATI R100 (Radeon 7000-7500).
410
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
414 License:        MIT
415 Group:          X11/Libraries
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
420
421 %description dri-driver-ati-radeon-R200
422 X.org DRI driver for ATI R200 card family (Radeon 8500-92xx)
423
424 %description dri-driver-ati-radeon-R200 -l pl.UTF-8
425 Sterownik X.org DRI dla rodziny kart ATI R200 (Radeon 8500-92xx).
426
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
430 License:        MIT
431 Group:          X11/Libraries
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
436
437 %description dri-driver-ati-radeon-R300
438 X.org DRI driver for ATI R300 card family.
439
440 %description dri-driver-ati-radeon-R300 -l pl.UTF-8
441 Sterownik X.org DRI dla rodziny kart ATI R300.
442
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
446 License:        MIT
447 Group:          X11/Libraries
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}
452
453 %description dri-driver-ati-radeon-R600
454 X.org DRI driver for ATI R600 card family.
455
456 %description dri-driver-ati-radeon-R600 -l pl.UTF-8
457 Sterownik X.org DRI dla rodziny kart ATI R600.
458
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
462 License:        MIT
463 Group:          X11/Libraries
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
468
469 %description dri-driver-ati-rage128
470 X.org DRI driver for ATI Rage128 card family.
471
472 %description dri-driver-ati-rage128 -l pl.UTF-8
473 Sterownik X.org DRI dla rodziny kart ATI Rage128.
474
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
478 License:        MIT
479 Group:          X11/Libraries
480 Requires:       xorg-driver-video-sunffb
481 Requires:       xorg-xserver-libglx(glapi) = %{glapi_ver}
482 Requires:       xorg-xserver-server >= %{xserver_ver}
483
484 %description dri-driver-ffb
485 X.org DRI driver for SUN Creator3D and Elite3D card family.
486
487 %description dri-driver-ffb -l pl.UTF-8
488 Sterownik X.org DRI dla rodziny kart SUN Creator3D i Elite3D.
489
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
493 License:        MIT
494 Group:          X11/Libraries
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
499
500 %description dri-driver-glint
501 X.org DRI driver for GLINT/Permedia card family.
502
503 %description dri-driver-glint -l pl.UTF-8
504 Sterownik X.org DRI dla rodziny kart GLINT/Permedia.
505
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
509 License:        MIT
510 Group:          X11/Libraries
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
515
516 %description dri-driver-intel-i810
517 X.org DRI driver for Intel i810 card family.
518
519 %description dri-driver-intel-i810 -l pl.UTF-8
520 Sterownik X.org DRI dla rodziny kart Intel i810.
521
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
525 License:        MIT
526 Group:          X11/Libraries
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
532
533 %description dri-driver-intel-i915
534 X.org DRI driver for Intel i915 card family.
535
536 %description dri-driver-intel-i915 -l pl.UTF-8
537 Sterownik X.org DRI dla rodziny kart Intel i915.
538
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
542 License:        MIT
543 Group:          X11/Libraries
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
549
550 %description dri-driver-intel-i965
551 X.org DRI driver for Intel i965 card family.
552
553 %description dri-driver-intel-i965 -l pl.UTF-8
554 Sterownik X.org DRI dla rodziny kart Intel i965.
555
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
559 License:        MIT
560 Group:          X11/Libraries
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
565
566 %description dri-driver-matrox
567 X.org DRI drivers for Matrox G card family.
568
569 %description dri-driver-matrox -l pl.UTF-8
570 Sterowniki X.org DRI dla rodziny kart Matrox G.
571
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
575 License:        MIT
576 Group:          X11/Libraries
577 Requires:       xorg-driver-video-nouveau
578 Requires:       xorg-xserver-libglx(glapi) = %{glapi_ver}
579 Requires:       xorg-xserver-server >= %{xserver_ver}
580
581 %description dri-driver-nouveau
582 X.org DRI drivers for NVIDIA card family.
583
584 %description dri-driver-nouveau -l pl.UTF-8
585 Sterowniki X.org DRI dla rodziny kart NVIDIA.
586
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
590 License:        MIT
591 Group:          X11/Libraries
592 Requires:       xorg-driver-video-savage
593 Requires:       xorg-xserver-libglx(glapi) = %{glapi_ver}
594 Requires:       xorg-xserver-server >= %{xserver_ver}
595
596 %description dri-driver-savage
597 X.org DRI driver for S3 Savage card family.
598
599 %description dri-driver-savage -l pl.UTF-8
600 Sterownik X.org DRI dla rodziny kart S3 Savage.
601
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
605 License:        MIT
606 Group:          X11/Libraries
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
611
612 %description dri-driver-sis
613 X.org DRI driver for SiS card family.
614
615 %description dri-driver-sis -l pl.UTF-8
616 Sterownik X.org DRI dla rodziny kart SiS.
617
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
621 License:        MIT
622 Group:          X11/Libraries
623 Requires:       xorg-xserver-libglx(glapi) = %{glapi_ver}
624 Requires:       xorg-xserver-server >= %{xserver_ver}
625
626 %description dri-driver-swrast
627 X.org DRI software rasterizer driver.
628
629 %description dri-driver-swrast -l pl.UTF-8
630 Sterownik X.org DRI obsługujący rysowanie programowe.
631
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
635 License:        MIT
636 Group:          X11/Libraries
637 Requires:       Glide3-DRI
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
642
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).
646
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).
650
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
654 License:        MIT
655 Group:          X11/Libraries
656 Requires:       xorg-driver-video-openchrome
657 Requires:       xorg-xserver-libglx(glapi) = %{glapi_ver}
658 Requires:       xorg-xserver-server >= %{xserver_ver}
659
660 %description dri-driver-via-unichrome
661 X.org DRI driver for VIA Unichrome card family.
662
663 %description dri-driver-via-unichrome -l pl.UTF-8
664 Sterownik X.org DRI dla rodziny kart VIA Unichrome.
665
666 %package dri-driver-vmwgfx
667 Summary:        X.org DRI driver for VMware
668 Summary(pl.UTF-8):      Sterownik X.org DRI dla VMware
669 License:        MIT
670 Group:          X11/Libraries
671 Requires:       xorg-xserver-libglx(glapi) = %{glapi_ver}
672 Requires:       xorg-xserver-server >= %{xserver_ver}
673
674 %description dri-driver-vmwgfx
675 X.org DRI driver for VMWare.
676
677 %description dri-driver-vmwgfx -l pl.UTF-8
678 Sterownik X.org DRI dla VMware.
679
680 %prep
681 %setup -q
682 %patch0 -p0
683 %patch1 -p1
684 #patch2 -p1
685 %patch3 -p1
686 %patch4 -p1
687 %patch5 -p1
688
689 %build
690 %{__aclocal}
691 %{__autoconf}
692
693 dri_drivers="i810 i965 mach64 mga r128 \
694 %if %{without gallium_radeon}
695 r200 r300 r600 radeon \
696 %endif
697 savage \
698 %if %{without gallium_intel}
699 i915 \
700 %endif
701 %ifarch sparc sparcv9 sparc64
702 ffb \
703 %endif
704 %ifarch %{ix86} %{x8664}
705 sis \
706 %endif
707 swrast tdfx unichrome"
708
709 dri_drivers=$(echo $dri_drivers | xargs | tr ' ' ',')
710
711 common_flags="\
712         --enable-shared \
713         --enable-selinux \
714         --enable-pic \
715         --enable-glx-tls \
716         --disable-glut \
717         --disable-os-mesa \
718         --%{?with_egl:en}%{!?with_egl:dis}able-egl"
719
720 osmesa_common_flags="\
721         --with-driver=osmesa \
722         --disable-asm \
723         --disable-glu"
724
725 %if %{with osmesa}
726 # osmesa variants
727 %configure $common_flags $osmesa_common_flags \
728         --with-osmesa-bits=8
729 %{__make}
730 mv %{_lib} osmesa8
731 %{__make} clean
732
733 %configure $common_flags $osmesa_common_flags \
734         --with-osmesa-bits=16
735 %{__make}
736 mv %{_lib} osmesa16
737 %{__make} clean
738
739 %configure $common_flags $osmesa_common_flags \
740         --with-osmesa-bits=32
741 %{__make}
742 mv %{_lib} osmesa32
743 %{__make} clean
744 %endif
745
746 %configure $common_flags \
747 %if %{with gallium}
748         --enable-gallium \
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 \
754 %else
755         --disable-gallium \
756 %endif
757         --with-driver=dri \
758         --with-dri-drivers=${dri_drivers} \
759         --with-dri-driverdir=%{_libdir}/xorg/modules/dri
760
761 %{__make}
762
763 %install
764 rm -rf $RPM_BUILD_ROOT
765
766 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
767
768 # libs without drivers
769 %{__make} install \
770         DESTDIR=$RPM_BUILD_ROOT
771
772 %if %{with osmesa}
773 install osmesa*/*OSMesa* $RPM_BUILD_ROOT%{_libdir}
774 %endif
775
776 rm -rf $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/*/{.deps,CVS,Makefile.{BeOS*,win,cygnus,DJ,dja}}
777
778 # strip out undesirable headers
779 olddir=$(pwd)
780 cd $RPM_BUILD_ROOT%{_includedir}/GL
781 rm [a-fh-np-wyz]*.h glf*.h
782 cd $RPM_BUILD_ROOT%{_libdir}
783 cd $olddir
784
785 %if %{with multigl}
786 install -d $RPM_BUILD_ROOT{%{_libdir}/Mesa,%{_sysconfdir}/ld.so.conf.d}
787
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
790
791 echo %{_libdir}/Mesa >$RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/Mesa.conf
792 %endif
793
794 %clean
795 rm -rf $RPM_BUILD_ROOT
796
797 %post   libEGL -p /sbin/ldconfig
798 %postun libEGL -p /sbin/ldconfig
799
800 %post   libGL -p /sbin/ldconfig
801 %postun libGL -p /sbin/ldconfig
802
803 %post   libGLU -p /sbin/ldconfig
804 %postun libGLU -p /sbin/ldconfig
805
806 %post   libGLw -p /sbin/ldconfig
807 %postun libGLw -p /sbin/ldconfig
808
809 %if %{with egl}
810 %files libEGL
811 %defattr(644,root,root,755)
812 %attr(755,root,root) %{_libdir}/libEGL.so.*.*
813 %attr(755,root,root) %ghost %{_libdir}/libEGL.so.1
814 %dir %{_libdir}/egl
815 %attr(755,root,root) %{_libdir}/egl/egl_dri2.so
816 %attr(755,root,root) %{_libdir}/egl/egl_glx.so
817
818 %files libEGL-devel
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
828
829 %if %{with static}
830 %files libEGL-static
831 %defattr(644,root,root,755)
832 %{_libdir}/libEGL.a
833 %endif
834 %endif
835
836 %files libGL
837 %defattr(644,root,root,755)
838 %doc docs/{*.html,README.{3DFX,GGI,MITS,QUAKE,THREADS},RELNOTES*}
839 %if %{with multigl}
840 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ld.so.conf.d/Mesa.conf
841 %dir %{_libdir}/Mesa
842 %attr(755,root,root) %{_libdir}/Mesa/libGL.so.*.*
843 %attr(755,root,root) %ghost %{_libdir}/Mesa/libGL.so.1
844 %else
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
850 %endif
851
852 %files libGL-devel
853 %defattr(644,root,root,755)
854 %doc docs/*.spec
855 %if %{with multigl}
856 %attr(755,root,root) %{_libdir}/libGL.so
857 %endif
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
869
870 %if %{with static}
871 %files libGL-static
872 %defattr(644,root,root,755)
873 %{_libdir}/libGL.a
874 %endif
875
876 %files libGLU
877 %defattr(644,root,root,755)
878 %attr(755,root,root) %{_libdir}/libGLU.so.*.*
879 %attr(755,root,root) %ghost %{_libdir}/libGLU.so.1
880
881 %files libGLU-devel
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
887
888 %if %{with static}
889 %files libGLU-static
890 %defattr(644,root,root,755)
891 %{_libdir}/libGLU.a
892 %endif
893
894 %files libGLw
895 %defattr(644,root,root,755)
896 %attr(755,root,root) %{_libdir}/libGLw.so.*.*
897 %attr(755,root,root) %ghost %{_libdir}/libGLw.so.1
898
899 %files libGLw-devel
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
907
908 %if %{with static}
909 %files libGLw-static
910 %defattr(644,root,root,755)
911 %{_libdir}/libGLw.a
912 %endif
913
914 %if %{with osmesa}
915 %files libOSMesa
916 %defattr(644,root,root,755)
917 %attr(755,root,root) %{_libdir}/libOSMesa*.so.*.*
918 %attr(755,root,root) %ghost %{_libdir}/libOSMesa*.so.7
919
920 %files libOSMesa-devel
921 %defattr(644,root,root,755)
922 %attr(755,root,root) %{_libdir}/libOSMesa*.so
923 %{_includedir}/GL/osmesa.h
924
925 %if %{with static}
926 %files libOSMesa-static
927 %defattr(644,root,root,755)
928 %{_libdir}/libOSMesa*.a
929 %endif
930 %endif
931
932 %files dri-driver-ati-mach64
933 %defattr(644,root,root,755)
934 %attr(755,root,root) %{_libdir}/xorg/modules/dri/mach64_dri.so
935
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
939
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
943
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
947
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
951
952 %files dri-driver-ati-rage128
953 %defattr(644,root,root,755)
954 %attr(755,root,root) %{_libdir}/xorg/modules/dri/r128_dri.so
955
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
961 %endif
962
963 # glint (requires update)
964 %if 0
965 %files dri-driver-glint
966 %defattr(644,root,root,755)
967 %attr(755,root,root) %{_libdir}/xorg/modules/dri/gamma_dri.so
968 %endif
969
970 %files dri-driver-intel-i810
971 %defattr(644,root,root,755)
972 %attr(755,root,root) %{_libdir}/xorg/modules/dri/i810_dri.so
973
974 %files dri-driver-intel-i915
975 %defattr(644,root,root,755)
976 %attr(755,root,root) %{_libdir}/xorg/modules/dri/i915_dri.so
977
978 %files dri-driver-intel-i965
979 %defattr(644,root,root,755)
980 %attr(755,root,root) %{_libdir}/xorg/modules/dri/i965_dri.so
981
982 %files dri-driver-matrox
983 %defattr(644,root,root,755)
984 %attr(755,root,root) %{_libdir}/xorg/modules/dri/mga_dri.so
985
986 %if %{with gallium}
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
992 %endif
993 %endif
994
995 %files dri-driver-savage
996 %defattr(644,root,root,755)
997 %attr(755,root,root) %{_libdir}/xorg/modules/dri/savage_dri.so
998
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
1003 %endif
1004
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
1009
1010 %files dri-driver-tdfx
1011 %defattr(644,root,root,755)
1012 %attr(755,root,root) %{_libdir}/xorg/modules/dri/tdfx_dri.so
1013
1014 %files dri-driver-via-unichrome
1015 %defattr(644,root,root,755)
1016 %attr(755,root,root) %{_libdir}/xorg/modules/dri/unichrome_dri.so
1017
1018 %if %{with gallium}
1019 %files dri-driver-vmwgfx
1020 %defattr(644,root,root,755)
1021 %attr(755,root,root) %{_libdir}/xorg/modules/dri/vmwgfx_dri.so
1022 %endif
This page took 0.416782 seconds and 2 git commands to generate.