]>
Commit | Line | Data |
---|---|---|
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.25 | |
25 | %define dri2proto_ver 2.6 | |
26 | %define glproto_ver 1.4.11 | |
27 | # | |
28 | %define snap 20110901 | |
29 | # | |
30 | Summary: Free OpenGL implementation | |
31 | Summary(pl.UTF-8): Wolnodostępna implementacja standardu OpenGL | |
32 | Name: Mesa | |
33 | Version: 7.12 | |
34 | Release: 0.%{snap}.1%{?with_multigl:.mgl} | |
35 | License: MIT (core), SGI (GLU) and others - see license.html file | |
36 | Group: X11/Libraries | |
37 | Source0: %{name}Lib-%{snap}.tar.bz2 | |
38 | # Source0-md5: 2b4e889af7e86cbd0f8718263d5b1a11 | |
39 | Patch0: %{name}-realclean.patch | |
40 | Patch2: %{name}-selinux.patch | |
41 | URL: http://www.mesa3d.org/ | |
42 | BuildRequires: autoconf >= 2.59 | |
43 | BuildRequires: automake | |
44 | BuildRequires: expat-devel | |
45 | BuildRequires: libdrm-devel >= %{libdrm_ver} | |
46 | # drop when 2.4.24 is released | |
47 | %{?with_nouveau:BuildRequires: libdrm-devel >= 2.4.24} | |
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 | BuildRequires: libvdpau-devel | |
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 | |
58 | BuildRequires: python | |
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 | |
71 | %if %{with egl} | |
72 | BuildRequires: libxcb-devel | |
73 | BuildRequires: udev-devel >= 150 | |
74 | %endif | |
75 | %if %{with gallium} | |
76 | BuildRequires: xorg-proto-xextproto-devel >= 7.0.99.1 | |
77 | BuildRequires: xorg-xserver-server-devel >= 1.6.0 | |
78 | %endif | |
79 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
80 | ||
81 | %if %{without gallium} | |
82 | %undefine with_gallium_intel | |
83 | %undefine with_gallium_radeon | |
84 | %endif | |
85 | ||
86 | # unresolved symbol _glapi_tls_Dispatch | |
87 | %define skip_post_check_so libGLESv1_CM.so.1.* libGLESv2.so.2.* | |
88 | ||
89 | %description | |
90 | Mesa is a 3-D graphics library with an API which is very similar to | |
91 | that of OpenGL(R). To the extent that Mesa utilizes the OpenGL command | |
92 | syntax or state machine, it is being used with authorization from | |
93 | Silicon Graphics, Inc. However, the author does not possess an OpenGL | |
94 | license from SGI, and makes no claim that Mesa is in any way a | |
95 | compatible replacement for OpenGL or associated with SGI. | |
96 | ||
97 | %description -l pl.UTF-8 | |
98 | Mesa jest biblioteką grafiki 3D z API bardzo podobnym do OpenGL(R). Do | |
99 | tego stopnia, że Mesa używa składni i automatu OpenGL jest używana z | |
100 | autoryzacją Silicon Graphics, Inc. Jednak autor nie posiada licencji | |
101 | OpenGL od SGI i nie twierdzi, że Mesa jest kompatybilnym zamiennikiem | |
102 | OpenGL ani powiązana z SGI. | |
103 | ||
104 | %package libEGL | |
105 | Summary: Mesa implementation of EGL Native Platform Graphics Interface library | |
106 | Summary(pl.UTF-8): Implementacja Mesa biblioteki interfejsu EGL | |
107 | License: MIT | |
108 | Group: Libraries | |
109 | Requires: OpenGL >= 1.2 | |
110 | Requires: udev-libs >= 150 | |
111 | Provides: EGL = 1.4 | |
112 | ||
113 | %description libEGL | |
114 | This package contains shared libEGL - Mesa implementation of EGL | |
115 | Native Platform Graphics Interface as specified by Khronos Group: | |
116 | <http://www.khronos.org/egl/>. | |
117 | ||
118 | %description libEGL -l pl.UTF-8 | |
119 | Ten pakiet zawiera bibliotekę współdzieloną libEGL - implementację | |
120 | Mesa standardu EGL Native Platform Graphics Interface (interfejsu | |
121 | graficznego platformy natywnej) wg specyfikacji Khronos Group: | |
122 | <http://www.khronos.org/egl/>. | |
123 | ||
124 | %package libEGL-devel | |
125 | Summary: Header files for Mesa implementation of EGL library | |
126 | Summary(pl.UTF-8): Pliki nagłówkowe implementacji Mesa biblioteki EGL | |
127 | License: MIT | |
128 | Group: Development/Libraries | |
129 | Requires: %{name}-libEGL = %{version}-%{release} | |
130 | Requires: OpenGL-devel >= 1.2 | |
131 | Requires: libstdc++-devel | |
132 | Provides: EGL-devel = 1.4 | |
133 | ||
134 | %description libEGL-devel | |
135 | Header files for Mesa implementation of EGL library. | |
136 | ||
137 | %description libEGL-devel -l pl.UTF-8 | |
138 | Pliki nagłówkowe implementacji Mesa biblioteki EGL. | |
139 | ||
140 | %package libEGL-static | |
141 | Summary: Static SGI libEGL library | |
142 | Summary(pl.UTF-8): Statyczna biblioteka SGI libEGL | |
143 | License: MIT | |
144 | Group: Development/Libraries | |
145 | Requires: %{name}-libEGL-devel = %{version}-%{release} | |
146 | Provides: EGL-static = 1.4 | |
147 | ||
148 | %description libEGL-static | |
149 | Static Mesa libEGL library. | |
150 | ||
151 | %description libEGL-static -l pl.UTF-8 | |
152 | Statyczna biblioteka Mesa libEGL. | |
153 | ||
154 | %package libGLES | |
155 | Summary: Mesa libGLES runtime libraries | |
156 | Group: Libraries | |
157 | ||
158 | %description libGLES | |
159 | Mesa GLES runtime libraries. | |
160 | ||
161 | %description libGLES -l pl.UTF-8 | |
162 | Biblioteka Mesa GLES. | |
163 | ||
164 | %package libGLES-devel | |
165 | Summary: Header files for libGLES library | |
166 | Group: Development/Libraries | |
167 | Requires: %{name}-libGLES = %{version}-%{release} | |
168 | ||
169 | %description libGLES-devel | |
170 | Header files for libGLES library. | |
171 | ||
172 | %description libGLES-devel -l pl.UTF-8 | |
173 | Pliki nagłówkowe biblioteki libGLES. | |
174 | ||
175 | %package libGL | |
176 | Summary: Free Mesa3D implementation of libGL OpenGL library | |
177 | Summary(pl.UTF-8): Wolnodostępna implementacja Mesa3D biblioteki libGL ze standardu OpenGL | |
178 | License: MIT | |
179 | Group: X11/Libraries | |
180 | Requires: libdrm >= %{libdrm_ver} | |
181 | Provides: OpenGL = 2.1 | |
182 | # reports version 1.3, but supports glXGetProcAddress() from 1.4 | |
183 | Provides: OpenGL-GLX = 1.4 | |
184 | Obsoletes: Mesa | |
185 | Obsoletes: Mesa-dri | |
186 | Obsoletes: X11-OpenGL-libGL < 1:7.0.0 | |
187 | Obsoletes: XFree86-OpenGL-libGL < 1:7.0.0 | |
188 | ||
189 | %description libGL | |
190 | Mesa is a 3-D graphics library with an API which is very similar to | |
191 | that of OpenGL(R). To the extent that Mesa utilizes the OpenGL command | |
192 | syntax or state machine, it is being used with authorization from | |
193 | Silicon Graphics, Inc. However, the author does not possess an OpenGL | |
194 | license from SGI, and makes no claim that Mesa is in any way a | |
195 | compatible replacement for OpenGL or associated with SGI. | |
196 | ||
197 | This package contains libGL which implements OpenGL 1.5 and GLX 1.4 | |
198 | specifications. It uses DRI for rendering. | |
199 | ||
200 | %description libGL -l pl.UTF-8 | |
201 | Mesa jest biblioteką grafiki 3D z API bardzo podobnym do OpenGL(R). Do | |
202 | tego stopnia, że Mesa używa składni i automatu OpenGL jest używana z | |
203 | autoryzacją Silicon Graphics, Inc. Jednak autor nie posiada licencji | |
204 | OpenGL od SGI i nie twierdzi, że Mesa jest kompatybilnym zamiennikiem | |
205 | OpenGL ani powiązana z SGI. | |
206 | ||
207 | Ten pakiet zawiera libGL implementującą specyfikacje OpenGL 1.5 oraz | |
208 | GLX 1.4. Używa DRI do renderowania. | |
209 | ||
210 | %package libGL-devel | |
211 | Summary: Header files for Mesa3D libGL library | |
212 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libGL z projektu Mesa3D | |
213 | License: MIT | |
214 | Group: X11/Development/Libraries | |
215 | # loose dependency on libGL to use with other libGL binaries | |
216 | Requires: OpenGL >= 1.5 | |
217 | Requires: libdrm-devel >= %{libdrm_ver} | |
218 | Requires: xorg-lib-libX11-devel | |
219 | Requires: xorg-lib-libXdamage-devel | |
220 | Requires: xorg-lib-libXext-devel | |
221 | Requires: xorg-lib-libXxf86vm-devel | |
222 | Requires: xorg-proto-dri2proto-devel >= %{dri2proto_ver} | |
223 | Requires: xorg-proto-glproto-devel >= %{glproto_ver} | |
224 | Suggests: OpenGL-doc-man | |
225 | Provides: OpenGL-GLX-devel = 1.4 | |
226 | Provides: OpenGL-devel = 2.1 | |
227 | Obsoletes: Mesa-devel | |
228 | Obsoletes: X11-OpenGL-devel < 1:7.0.0 | |
229 | Obsoletes: X11-OpenGL-devel-base < 1:7.0.0 | |
230 | Obsoletes: XFree86-OpenGL-devel < 1:7.0.0 | |
231 | Obsoletes: XFree86-OpenGL-devel-base < 1:7.0.0 | |
232 | ||
233 | %description libGL-devel | |
234 | Header files for Mesa3D libGL library. | |
235 | ||
236 | %description libGL-devel -l pl.UTF-8 | |
237 | Pliki nagłówkowe biblioteki libGL z projektu Mesa3D. | |
238 | ||
239 | %package libGL-static | |
240 | Summary: Static Mesa3D libGL library | |
241 | Summary(pl.UTF-8): Statyczna biblioteka libGL z projektu Mesa3D | |
242 | License: MIT | |
243 | Group: X11/Development/Libraries | |
244 | Requires: %{name}-libGL-devel = %{version}-%{release} | |
245 | Provides: OpenGL-static = 2.1 | |
246 | Obsoletes: Mesa-static | |
247 | Obsoletes: X11-OpenGL-static < 1:7.0.0 | |
248 | Obsoletes: XFree86-OpenGL-static < 1:7.0.0 | |
249 | ||
250 | %description libGL-static | |
251 | Static Mesa3D libGL library. It uses software renderer. | |
252 | ||
253 | %description libGL-static -l pl.UTF-8 | |
254 | Statyczna biblioteka libGL z projektu Mesa3D. Używa programowego | |
255 | renderingu. | |
256 | ||
257 | %package libGLU | |
258 | Summary: SGI implementation of libGLU OpenGL library | |
259 | Summary(pl.UTF-8): Implementacja SGI biblioteki libGLU ze standardu OpenGL | |
260 | License: SGI Free Software License B v2.0 (MIT-like) | |
261 | Group: Libraries | |
262 | # loose dependency on libGL.so.1 to use with other libGL binaries | |
263 | Requires: OpenGL >= 1.2 | |
264 | Provides: OpenGL-GLU = 1.3 | |
265 | Obsoletes: Mesa-devel | |
266 | Obsoletes: X11-OpenGL-libs < 1:7.0.0 | |
267 | Obsoletes: XFree86-OpenGL-libs < 1:7.0.0 | |
268 | ||
269 | %description libGLU | |
270 | SGI implementation of libGLU OpenGL library. It implements OpenGL GLU | |
271 | 1.3 specifications. | |
272 | ||
273 | %description libGLU -l pl.UTF-8 | |
274 | Implementacja SGI biblioteki libGLU ze standardu OpenGL. Implementuje | |
275 | specyfikację OpenGL GLU 1.3. | |
276 | ||
277 | %package libGLU-devel | |
278 | Summary: Header files for SGI libGLU library | |
279 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SGI libGLU | |
280 | License: SGI Free Software License B v2.0 (MIT-like) | |
281 | Group: Development/Libraries | |
282 | Requires: %{name}-libGLU = %{version}-%{release} | |
283 | Requires: OpenGL-devel >= 1.2 | |
284 | Requires: libstdc++-devel | |
285 | Provides: OpenGL-GLU-devel = 1.3 | |
286 | ||
287 | %description libGLU-devel | |
288 | Header files for SGI libGLU library. | |
289 | ||
290 | %description libGLU-devel -l pl.UTF-8 | |
291 | Pliki nagłówkowe biblioteki SGI libGLU. | |
292 | ||
293 | %package libGLU-static | |
294 | Summary: Static SGI libGLU library | |
295 | Summary(pl.UTF-8): Statyczna biblioteka SGI libGLU | |
296 | License: SGI Free Software License B v2.0 (MIT-like) | |
297 | Group: Development/Libraries | |
298 | Requires: %{name}-libGLU-devel = %{version}-%{release} | |
299 | Provides: OpenGL-GLU-static = 1.3 | |
300 | ||
301 | %description libGLU-static | |
302 | Static SGI libGLU library. | |
303 | ||
304 | %description libGLU-static -l pl.UTF-8 | |
305 | Statyczna biblioteka SGI libGLU. | |
306 | ||
307 | %package libOSMesa | |
308 | Summary: OSMesa (off-screen renderer) library | |
309 | Summary(pl.UTF-8): Biblioteka OSMesa (renderująca bitmapy w pamięci) | |
310 | License: MIT | |
311 | Group: Libraries | |
312 | # doesn't require base | |
313 | ||
314 | %description libOSMesa | |
315 | OSMesa (off-screen renderer) library. | |
316 | ||
317 | %description libOSMesa -l pl.UTF-8 | |
318 | Biblioteka OSMesa (renderująca bitmapy w pamięci). | |
319 | ||
320 | %package libOSMesa-devel | |
321 | Summary: Header file for OSMesa (off-screen renderer) library | |
322 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki OSMesa (renderującej bitmapy w pamięci) | |
323 | License: MIT | |
324 | Group: Development/Libraries | |
325 | Requires: %{name}-libOSMesa = %{version}-%{release} | |
326 | # for <GL/gl.h> only | |
327 | Requires: OpenGL-devel | |
328 | ||
329 | %description libOSMesa-devel | |
330 | Header file for OSMesa (off-screen renderer) library. | |
331 | ||
332 | %description libOSMesa-devel -l pl.UTF-8 | |
333 | Plik nagłówkowy biblioteki OSMesa (renderującej bitmapy w pamięci). | |
334 | ||
335 | %package libOSMesa-static | |
336 | Summary: Static OSMesa (off-screen renderer) library | |
337 | Summary(pl.UTF-8): Biblioteka statyczna OSMesa (renderująca bitmapy w pamięci) | |
338 | License: MIT | |
339 | Group: Development/Libraries | |
340 | Requires: %{name}-libOSMesa-devel = %{version}-%{release} | |
341 | # this static build of OSMesa needs static non-dri Mesa implementation | |
342 | Requires: %{name}-libGL-static = %{version}-%{release} | |
343 | ||
344 | %description libOSMesa-static | |
345 | Static OSMesa (off-screen renderer) library. | |
346 | ||
347 | %description libOSMesa-static -l pl.UTF-8 | |
348 | Biblioteka statyczna OSMesa (renderująca bitmapy w pamięci). | |
349 | ||
350 | %package libOpenVG | |
351 | Summary: OpenVG API implementation | |
352 | Summary(pl.UTF-8): Implementacja API OpenVG | |
353 | License: MIT | |
354 | Group: Libraries | |
355 | # doesn't require base | |
356 | ||
357 | %description libOpenVG | |
358 | OpenVG API implementation. | |
359 | ||
360 | %description libOpenVG -l pl.UTF-8 | |
361 | Implementacja API OpenVG. | |
362 | ||
363 | %package libOpenVG-devel | |
364 | Summary: Header file for libOpenVG library | |
365 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki libOpenVG | |
366 | License: MIT | |
367 | Group: Development/Libraries | |
368 | # for <KHR/khrplatform.h> | |
369 | Requires: %{name}-libEGL-devel = %{version}-%{release} | |
370 | Requires: %{name}-libOpenVG = %{version}-%{release} | |
371 | ||
372 | %description libOpenVG-devel | |
373 | Header file for libOpenVG library. | |
374 | ||
375 | %description libOpenVG-devel -l pl.UTF-8 | |
376 | Plik nagłówkowy biblioteki libOpenVG. | |
377 | ||
378 | %package utils | |
379 | Summary: OpenGL utilities from Mesa3D | |
380 | Summary(pl.UTF-8): Programy narzędziowe OpenGL z projektu Mesa3D | |
381 | License: MIT | |
382 | Group: X11/Applications/Graphics | |
383 | # loose deps on libGL/libGLU | |
384 | ||
385 | %description utils | |
386 | OpenGL utilities from Mesa3D: glxgears and glxinfo. | |
387 | ||
388 | %description utils -l pl.UTF-8 | |
389 | Programy narzędziowe OpenGL z projektu Mesa3D: glxgears i glxinfo. | |
390 | ||
391 | %package dri-driver-ati-radeon-R100 | |
392 | Summary: X.org DRI driver for ATI R100 card family | |
393 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R100 | |
394 | License: MIT | |
395 | Group: X11/Libraries | |
396 | Requires: xorg-driver-video-ati | |
397 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
398 | Requires: xorg-xserver-server >= %{xserver_ver} | |
399 | Obsoletes: X11-driver-radeon-dri < 1:7.0.0 | |
400 | ||
401 | %description dri-driver-ati-radeon-R100 | |
402 | X.org DRI driver for ATI R100 card family (Radeon 7000-7500). | |
403 | ||
404 | %description dri-driver-ati-radeon-R100 -l pl.UTF-8 | |
405 | Sterownik X.org DRI dla rodziny kart ATI R100 (Radeon 7000-7500). | |
406 | ||
407 | %package dri-driver-ati-radeon-R200 | |
408 | Summary: X.org DRI driver for ATI R200 card family | |
409 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R200 | |
410 | License: MIT | |
411 | Group: X11/Libraries | |
412 | Requires: xorg-driver-video-ati | |
413 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
414 | Requires: xorg-xserver-server >= %{xserver_ver} | |
415 | Obsoletes: X11-driver-radeon-dri < 1:7.0.0 | |
416 | ||
417 | %description dri-driver-ati-radeon-R200 | |
418 | X.org DRI driver for ATI R200 card family (Radeon 8500-92xx) | |
419 | ||
420 | %description dri-driver-ati-radeon-R200 -l pl.UTF-8 | |
421 | Sterownik X.org DRI dla rodziny kart ATI R200 (Radeon 8500-92xx). | |
422 | ||
423 | %package dri-driver-ati-radeon-R300 | |
424 | Summary: X.org DRI driver for ATI R300 card family | |
425 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R300 | |
426 | License: MIT | |
427 | Group: X11/Libraries | |
428 | Requires: xorg-driver-video-ati | |
429 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
430 | Requires: xorg-xserver-server >= %{xserver_ver} | |
431 | Obsoletes: X11-driver-radeon-dri < 1:7.0.0 | |
432 | ||
433 | %description dri-driver-ati-radeon-R300 | |
434 | X.org DRI driver for ATI R300 card family. | |
435 | ||
436 | %description dri-driver-ati-radeon-R300 -l pl.UTF-8 | |
437 | Sterownik X.org DRI dla rodziny kart ATI R300. | |
438 | ||
439 | %package dri-driver-ati-radeon-R600 | |
440 | Summary: X.org DRI driver for ATI R600 card family | |
441 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R600 | |
442 | License: MIT | |
443 | Group: X11/Libraries | |
444 | Requires: radeon-ucode | |
445 | Requires: xorg-driver-video-ati | |
446 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
447 | Requires: xorg-xserver-server >= %{xserver_ver} | |
448 | ||
449 | %description dri-driver-ati-radeon-R600 | |
450 | X.org DRI driver for ATI R600 card family. | |
451 | ||
452 | %description dri-driver-ati-radeon-R600 -l pl.UTF-8 | |
453 | Sterownik X.org DRI dla rodziny kart ATI R600. | |
454 | ||
455 | %package dri-driver-ffb | |
456 | Summary: X.org DRI driver for Sun FFB card family | |
457 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart Sun FFB | |
458 | License: MIT | |
459 | Group: X11/Libraries | |
460 | Requires: xorg-driver-video-sunffb | |
461 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
462 | Requires: xorg-xserver-server >= %{xserver_ver} | |
463 | ||
464 | %description dri-driver-ffb | |
465 | X.org DRI driver for SUN Creator3D and Elite3D card family. | |
466 | ||
467 | %description dri-driver-ffb -l pl.UTF-8 | |
468 | Sterownik X.org DRI dla rodziny kart SUN Creator3D i Elite3D. | |
469 | ||
470 | %package dri-driver-glint | |
471 | Summary: X.org DRI driver for GLINT/Permedia card family | |
472 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart GLINT/Permedia | |
473 | License: MIT | |
474 | Group: X11/Libraries | |
475 | Requires: xorg-driver-video-glint | |
476 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
477 | Requires: xorg-xserver-server >= %{xserver_ver} | |
478 | Obsoletes: X11-driver-glint-dri < 1:7.0.0 | |
479 | ||
480 | %description dri-driver-glint | |
481 | X.org DRI driver for GLINT/Permedia card family. | |
482 | ||
483 | %description dri-driver-glint -l pl.UTF-8 | |
484 | Sterownik X.org DRI dla rodziny kart GLINT/Permedia. | |
485 | ||
486 | %package dri-driver-intel-i915 | |
487 | Summary: X.org DRI driver for Intel i915 card family | |
488 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart Intel i915 | |
489 | License: MIT | |
490 | Group: X11/Libraries | |
491 | Requires: xorg-driver-video-intel | |
492 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
493 | Requires: xorg-xserver-server >= %{xserver_ver} | |
494 | Obsoletes: Mesa-dri-driver-intel-i830 | |
495 | Obsoletes: X11-driver-i810-dri < 1:7.0.0 | |
496 | ||
497 | %description dri-driver-intel-i915 | |
498 | X.org DRI driver for Intel i915 card family. | |
499 | ||
500 | %description dri-driver-intel-i915 -l pl.UTF-8 | |
501 | Sterownik X.org DRI dla rodziny kart Intel i915. | |
502 | ||
503 | %package dri-driver-intel-i965 | |
504 | Summary: X.org DRI driver for Intel i965 card family | |
505 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart Intel i965 | |
506 | License: MIT | |
507 | Group: X11/Libraries | |
508 | Requires: xorg-driver-video-intel | |
509 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
510 | Requires: xorg-xserver-server >= %{xserver_ver} | |
511 | Obsoletes: Mesa-dri-driver-intel-i830 | |
512 | Obsoletes: X11-driver-i810-dri < 1:7.0.0 | |
513 | ||
514 | %description dri-driver-intel-i965 | |
515 | X.org DRI driver for Intel i965 card family. | |
516 | ||
517 | %description dri-driver-intel-i965 -l pl.UTF-8 | |
518 | Sterownik X.org DRI dla rodziny kart Intel i965. | |
519 | ||
520 | %package dri-driver-nouveau | |
521 | Summary: X.org DRI driver for NVIDIA card family | |
522 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart NVIDIA | |
523 | License: MIT | |
524 | Group: X11/Libraries | |
525 | Requires: xorg-driver-video-nouveau | |
526 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
527 | Requires: xorg-xserver-server >= %{xserver_ver} | |
528 | ||
529 | %description dri-driver-nouveau | |
530 | X.org DRI drivers for NVIDIA card family. | |
531 | ||
532 | %description dri-driver-nouveau -l pl.UTF-8 | |
533 | Sterowniki X.org DRI dla rodziny kart NVIDIA. | |
534 | ||
535 | %package dri-driver-swrast | |
536 | Summary: X.org DRI software rasterizer driver | |
537 | Summary(pl.UTF-8): Sterownik X.org DRI obsługujący rysowanie programowe | |
538 | License: MIT | |
539 | Group: X11/Libraries | |
540 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
541 | Requires: xorg-xserver-server >= %{xserver_ver} | |
542 | ||
543 | %description dri-driver-swrast | |
544 | X.org DRI software rasterizer driver. | |
545 | ||
546 | %description dri-driver-swrast -l pl.UTF-8 | |
547 | Sterownik X.org DRI obsługujący rysowanie programowe. | |
548 | ||
549 | %package dri-driver-vmwgfx | |
550 | Summary: X.org DRI driver for VMware | |
551 | Summary(pl.UTF-8): Sterownik X.org DRI dla VMware | |
552 | License: MIT | |
553 | Group: X11/Libraries | |
554 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
555 | Requires: xorg-xserver-server >= %{xserver_ver} | |
556 | ||
557 | %description dri-driver-vmwgfx | |
558 | X.org DRI driver for VMWare. | |
559 | ||
560 | %description dri-driver-vmwgfx -l pl.UTF-8 | |
561 | Sterownik X.org DRI dla VMware. | |
562 | ||
563 | %package -n libvdpau-driver-mesa | |
564 | Summary: Mesa driver for the vdpau API | |
565 | Summary(pl.UTF-8): Sterownik Mesa dla API vdpau | |
566 | License: MIT | |
567 | Group: X11/Libraries | |
568 | ||
569 | %description -n libvdpau-driver-mesa | |
570 | Mesa driver for the vdpau API. | |
571 | ||
572 | %description -n libvdpau-driver-mesa -l pl.UTF-8 | |
573 | Sterownik Mesa dla API vdpau. | |
574 | ||
575 | %prep | |
576 | %setup -q | |
577 | %patch0 -p0 | |
578 | %patch2 -p1 | |
579 | ||
580 | %build | |
581 | %{__aclocal} | |
582 | %{__autoconf} | |
583 | ||
584 | dri_drivers="r200 radeon \ | |
585 | %if %{without gallium_radeon} | |
586 | r300 r600 \ | |
587 | %endif | |
588 | %if %{without gallium_intel} | |
589 | i915 i965 \ | |
590 | %endif | |
591 | %ifarch sparc sparcv9 sparc64 | |
592 | ffb \ | |
593 | %endif | |
594 | swrast" | |
595 | ||
596 | dri_drivers=$(echo $dri_drivers | xargs | tr ' ' ',') | |
597 | ||
598 | gallium_drivers="svga swrast \ | |
599 | %if %{with gallium_intel} | |
600 | i915 \ | |
601 | i965 \ | |
602 | %endif | |
603 | %if %{with gallium_radeon} | |
604 | radeon \ | |
605 | r600 \ | |
606 | %endif | |
607 | %if %{with gallium_nouveau} | |
608 | nouveau \ | |
609 | %endif | |
610 | " | |
611 | ||
612 | gallium_drivers=$(echo $gallium_drivers | xargs | tr ' ' ',') | |
613 | ||
614 | common_flags="\ | |
615 | --enable-shared \ | |
616 | --enable-selinux \ | |
617 | --enable-pic \ | |
618 | --enable-glx-tls \ | |
619 | %if %{with egl} | |
620 | --enable-egl \ | |
621 | --enable-gles1 \ | |
622 | --enable-gles2 \ | |
623 | %endif | |
624 | " | |
625 | ||
626 | osmesa_common_flags="\ | |
627 | --with-driver=osmesa \ | |
628 | --disable-asm \ | |
629 | --disable-glu \ | |
630 | --disable-egl" | |
631 | ||
632 | %if %{with osmesa} | |
633 | %configure $common_flags $osmesa_common_flags \ | |
634 | --with-osmesa-bits=8 | |
635 | %{__make} | |
636 | mv %{_lib} osmesa8 | |
637 | %{__make} clean | |
638 | %endif | |
639 | ||
640 | %configure $common_flags \ | |
641 | %if %{with gallium} | |
642 | --enable-openvg \ | |
643 | --enable-gallium-egl \ | |
644 | --enable-vdpau \ | |
645 | --with-gallium-drivers=${gallium_drivers} \ | |
646 | %else | |
647 | --disable-gallium \ | |
648 | %endif | |
649 | --with-driver=dri \ | |
650 | --with-dri-drivers=${dri_drivers} \ | |
651 | --with-dri-driverdir=%{_libdir}/xorg/modules/dri | |
652 | ||
653 | %{__make} | |
654 | ||
655 | %install | |
656 | rm -rf $RPM_BUILD_ROOT | |
657 | ||
658 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
659 | ||
660 | # libs without drivers | |
661 | %{__make} install \ | |
662 | DESTDIR=$RPM_BUILD_ROOT | |
663 | ||
664 | %if %{with osmesa} | |
665 | cp -Pp osmesa*/*OSMesa* $RPM_BUILD_ROOT%{_libdir} | |
666 | %endif | |
667 | ||
668 | rm -rf $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/*/{.deps,CVS,Makefile.{BeOS*,win,cygnus,DJ,dja}} | |
669 | ||
670 | # strip out undesirable headers | |
671 | olddir=$(pwd) | |
672 | cd $RPM_BUILD_ROOT%{_includedir}/GL | |
673 | rm [a-fh-np-wyz]*.h glf*.h | |
674 | cd $RPM_BUILD_ROOT%{_libdir} | |
675 | cd $olddir | |
676 | ||
677 | %if %{with multigl} | |
678 | install -d $RPM_BUILD_ROOT{%{_libdir}/Mesa,%{_sysconfdir}/ld.so.conf.d} | |
679 | ||
680 | mv -f $RPM_BUILD_ROOT%{_libdir}/libGL.so.* $RPM_BUILD_ROOT%{_libdir}/Mesa | |
681 | ln -sf Mesa/libGL.so.1 $RPM_BUILD_ROOT%{_libdir}/libGL.so | |
682 | ||
683 | echo %{_libdir}/Mesa >$RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/Mesa.conf | |
684 | %endif | |
685 | ||
686 | %clean | |
687 | rm -rf $RPM_BUILD_ROOT | |
688 | ||
689 | %post libEGL -p /sbin/ldconfig | |
690 | %postun libEGL -p /sbin/ldconfig | |
691 | ||
692 | %post libGL -p /sbin/ldconfig | |
693 | %postun libGL -p /sbin/ldconfig | |
694 | ||
695 | %post libGLES -p /sbin/ldconfig | |
696 | %postun libGLES -p /sbin/ldconfig | |
697 | ||
698 | %post libGLU -p /sbin/ldconfig | |
699 | %postun libGLU -p /sbin/ldconfig | |
700 | ||
701 | %post libOSMesa -p /sbin/ldconfig | |
702 | %postun libOSMesa -p /sbin/ldconfig | |
703 | ||
704 | %post libOpenVG -p /sbin/ldconfig | |
705 | %postun libOpenVG -p /sbin/ldconfig | |
706 | ||
707 | %if %{with egl} | |
708 | %files libEGL | |
709 | %defattr(644,root,root,755) | |
710 | %attr(755,root,root) %{_libdir}/libEGL.so.*.* | |
711 | %attr(755,root,root) %ghost %{_libdir}/libEGL.so.1 | |
712 | %attr(755,root,root) %{_libdir}/libglapi.so.*.* | |
713 | %attr(755,root,root) %ghost %{_libdir}/libglapi.so.0 | |
714 | %if %{with gallium} | |
715 | %dir %{_libdir}/egl | |
716 | %attr(755,root,root) %{_libdir}/egl/egl_gallium.so | |
717 | %attr(755,root,root) %{_libdir}/egl/st_GL.so | |
718 | %if %{with gallium_radeon} | |
719 | %attr(755,root,root) %{_libdir}/egl/pipe_r300.so | |
720 | %attr(755,root,root) %{_libdir}/egl/pipe_r600.so | |
721 | %endif | |
722 | %if %{with gallium_intel} | |
723 | %attr(755,root,root) %{_libdir}/egl/pipe_i915.so | |
724 | %attr(755,root,root) %{_libdir}/egl/pipe_i965.so | |
725 | %endif | |
726 | %endif | |
727 | ||
728 | %files libEGL-devel | |
729 | %defattr(644,root,root,755) | |
730 | %attr(755,root,root) %{_libdir}/libEGL.so | |
731 | %attr(755,root,root) %{_libdir}/libglapi.so | |
732 | %dir %{_includedir}/EGL | |
733 | %{_includedir}/EGL/egl.h | |
734 | %{_includedir}/EGL/eglext.h | |
735 | %{_includedir}/EGL/eglplatform.h | |
736 | %dir %{_includedir}/KHR | |
737 | %{_includedir}/KHR/khrplatform.h | |
738 | %{_pkgconfigdir}/egl.pc | |
739 | ||
740 | %if %{with static} | |
741 | %files libEGL-static | |
742 | %defattr(644,root,root,755) | |
743 | %{_libdir}/libEGL.a | |
744 | %endif | |
745 | %endif | |
746 | ||
747 | %files libGL | |
748 | %defattr(644,root,root,755) | |
749 | %doc docs/{*.html,README.{3DFX,GGI,MITS,QUAKE,THREADS},RELNOTES*} | |
750 | %if %{with multigl} | |
751 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ld.so.conf.d/Mesa.conf | |
752 | %dir %{_libdir}/Mesa | |
753 | %attr(755,root,root) %{_libdir}/Mesa/libGL.so.*.* | |
754 | %attr(755,root,root) %ghost %{_libdir}/Mesa/libGL.so.1 | |
755 | %else | |
756 | %attr(755,root,root) %{_libdir}/libGL.so.*.* | |
757 | %attr(755,root,root) %ghost %{_libdir}/libGL.so.1 | |
758 | # symlink for binary apps which fail to conform Linux OpenGL ABI | |
759 | # (and dlopen libGL.so instead of libGL.so.1) | |
760 | %attr(755,root,root) %{_libdir}/libGL.so | |
761 | %endif | |
762 | ||
763 | %files libGL-devel | |
764 | %defattr(644,root,root,755) | |
765 | %doc docs/*.spec | |
766 | %if %{with multigl} | |
767 | %attr(755,root,root) %{_libdir}/libGL.so | |
768 | %endif | |
769 | %dir %{_includedir}/GL | |
770 | %{_includedir}/GL/gl.h | |
771 | %{_includedir}/GL/glext.h | |
772 | %{_includedir}/GL/gl_mangle.h | |
773 | %{_includedir}/GL/glx.h | |
774 | %{_includedir}/GL/glxext.h | |
775 | %{_includedir}/GL/glx_mangle.h | |
776 | %dir %{_includedir}/GL/internal | |
777 | %{_includedir}/GL/internal/dri_interface.h | |
778 | %{_pkgconfigdir}/dri.pc | |
779 | %{_pkgconfigdir}/gl.pc | |
780 | ||
781 | %files libGLES | |
782 | %defattr(644,root,root,755) | |
783 | %attr(755,root,root) %{_libdir}/libGLES*.so.*.* | |
784 | %attr(755,root,root) %ghost %{_libdir}/libGLES*.so.[0-9] | |
785 | ||
786 | %files libGLES-devel | |
787 | %defattr(644,root,root,755) | |
788 | %attr(755,root,root) %{_libdir}/libGLES*.so | |
789 | %{_includedir}/GLES | |
790 | %{_includedir}/GLES2 | |
791 | %{_pkgconfigdir}/gles*.pc | |
792 | ||
793 | %if %{with static} | |
794 | %files libGL-static | |
795 | %defattr(644,root,root,755) | |
796 | %{_libdir}/libGL.a | |
797 | %endif | |
798 | ||
799 | %files libGLU | |
800 | %defattr(644,root,root,755) | |
801 | %attr(755,root,root) %{_libdir}/libGLU.so.*.* | |
802 | %attr(755,root,root) %ghost %{_libdir}/libGLU.so.1 | |
803 | ||
804 | %files libGLU-devel | |
805 | %defattr(644,root,root,755) | |
806 | %attr(755,root,root) %{_libdir}/libGLU.so | |
807 | %{_includedir}/GL/glu.h | |
808 | %{_includedir}/GL/glu_mangle.h | |
809 | %{_pkgconfigdir}/glu.pc | |
810 | ||
811 | %if %{with static} | |
812 | %files libGLU-static | |
813 | %defattr(644,root,root,755) | |
814 | %{_libdir}/libGLU.a | |
815 | %endif | |
816 | ||
817 | %if %{with osmesa} | |
818 | %files libOSMesa | |
819 | %defattr(644,root,root,755) | |
820 | %attr(755,root,root) %{_libdir}/libOSMesa*.so.*.* | |
821 | %attr(755,root,root) %ghost %{_libdir}/libOSMesa*.so.7 | |
822 | ||
823 | %files libOSMesa-devel | |
824 | %defattr(644,root,root,755) | |
825 | %attr(755,root,root) %{_libdir}/libOSMesa*.so | |
826 | %{_includedir}/GL/osmesa.h | |
827 | ||
828 | %if %{with static} | |
829 | %files libOSMesa-static | |
830 | %defattr(644,root,root,755) | |
831 | %{_libdir}/libOSMesa*.a | |
832 | %endif | |
833 | %endif | |
834 | ||
835 | %if %{with gallium} | |
836 | %files libOpenVG | |
837 | %defattr(644,root,root,755) | |
838 | %attr(755,root,root) %ghost %{_libdir}/libOpenVG.so.1 | |
839 | %attr(755,root,root) %{_libdir}/libOpenVG.so.1.0.0 | |
840 | ||
841 | %files libOpenVG-devel | |
842 | %defattr(644,root,root,755) | |
843 | %{_includedir}/VG | |
844 | %{_libdir}/libOpenVG.so | |
845 | %{_pkgconfigdir}/vg.pc | |
846 | %endif | |
847 | ||
848 | %files dri-driver-ati-radeon-R100 | |
849 | %defattr(644,root,root,755) | |
850 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/radeon_dri.so | |
851 | ||
852 | %files dri-driver-ati-radeon-R200 | |
853 | %defattr(644,root,root,755) | |
854 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/r200_dri.so | |
855 | ||
856 | %files dri-driver-ati-radeon-R300 | |
857 | %defattr(644,root,root,755) | |
858 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/r300_dri.so | |
859 | ||
860 | %files dri-driver-ati-radeon-R600 | |
861 | %defattr(644,root,root,755) | |
862 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/r600_dri.so | |
863 | ||
864 | # sunffb (sparc only) | |
865 | %ifarch sparc sparcv9 sparc64 | |
866 | %files dri-driver-ffb | |
867 | %defattr(644,root,root,755) | |
868 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/ffb_dri.so | |
869 | %endif | |
870 | ||
871 | # glint (requires update) | |
872 | %if 0 | |
873 | %files dri-driver-glint | |
874 | %defattr(644,root,root,755) | |
875 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/gamma_dri.so | |
876 | %endif | |
877 | ||
878 | %files dri-driver-intel-i915 | |
879 | %defattr(644,root,root,755) | |
880 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/i915_dri.so | |
881 | ||
882 | %files dri-driver-intel-i965 | |
883 | %defattr(644,root,root,755) | |
884 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/i965_dri.so | |
885 | %if %{with gallium_intel} | |
886 | %attr(755,root,root) %{_libdir}/xorg/modules/drivers/i965g_drv.so | |
887 | %endif | |
888 | ||
889 | %if %{with gallium} | |
890 | %if %{with gallium_nouveau} | |
891 | %files dri-driver-nouveau | |
892 | %defattr(644,root,root,755) | |
893 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/nouveau_dri.so | |
894 | %endif | |
895 | %endif | |
896 | ||
897 | %files dri-driver-swrast | |
898 | %defattr(644,root,root,755) | |
899 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/swrast_dri.so | |
900 | ||
901 | %if %{with gallium} | |
902 | %files dri-driver-vmwgfx | |
903 | %defattr(644,root,root,755) | |
904 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/vmwgfx_dri.so | |
905 | %endif | |
906 | ||
907 | %files -n libvdpau-driver-mesa | |
908 | %defattr(644,root,root,755) | |
909 | %attr(755,root,root) %{_libdir}/vdpau/libvdpau_softpipe.so.1.0 | |
910 | # there is no ldconfig here | |
911 | %attr(755,root,root) %{_libdir}/vdpau/libvdpau_softpipe.so.1 | |
912 | %attr(755,root,root) %{_libdir}/vdpau/libvdpau_softpipe.so |