]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # TODO: | |
3 | # - subpackage with non-dri libGL for use with X-servers with missing GLX extension? | |
4 | # - package OpenGL man pages (from monolith or SGI) somewhere | |
5 | # | |
6 | # Conditional build: | |
7 | %bcond_without motif # build static libGLw without Motif interface | |
8 | %bcond_with multigl # package libGL in a way allowing concurrent install with nvidia/fglrx drivers | |
9 | %bcond_with nouveau # build nouveau DRI driver | |
10 | # | |
11 | Summary: Free OpenGL implementation | |
12 | Summary(pl.UTF-8): Wolnodostępna implementacja standardu OpenGL | |
13 | Name: Mesa | |
14 | Version: 7.0.3 | |
15 | Release: 2%{?with_multigl:.mgl} | |
16 | License: MIT (core), SGI (GLU,libGLw) and others - see license.html file | |
17 | Group: X11/Libraries | |
18 | Source0: http://dl.sourceforge.net/mesa3d/%{name}Lib-%{version}.tar.bz2 | |
19 | # Source0-md5: e6e6379d7793af40a6bc3ce1bace572e | |
20 | Source1: http://dl.sourceforge.net/mesa3d/%{name}Demos-%{version}.tar.bz2 | |
21 | # Source1-md5: 47fd6863621d3c9c7dbb870ab7f0c303 | |
22 | Source2: nouveau_drm.h | |
23 | Patch0: %{name}-realclean.patch | |
24 | URL: http://www.mesa3d.org/ | |
25 | BuildRequires: expat-devel | |
26 | #%if %{with nouveau} | |
27 | # needs nouveau_drm.h patchlevel=6 and matching kernel driver | |
28 | #BuildRequires: libdrm-devel = 2.3.1.xxxxxxxx | |
29 | #%else | |
30 | BuildRequires: libdrm-devel >= 2.3.0 | |
31 | #%endif | |
32 | BuildRequires: libstdc++-devel | |
33 | BuildRequires: libtool >= 2:1.4d | |
34 | %{?with_motif:BuildRequires: motif-devel} | |
35 | BuildRequires: sed >= 4.0 | |
36 | BuildRequires: xorg-lib-libXdamage-devel | |
37 | BuildRequires: xorg-lib-libXt-devel | |
38 | BuildRequires: xorg-lib-libXxf86vm-devel | |
39 | BuildRequires: xorg-proto-glproto-devel | |
40 | BuildRequires: xorg-proto-printproto-devel | |
41 | BuildRequires: xorg-util-makedepend | |
42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
43 | ||
44 | %description | |
45 | Mesa is a 3-D graphics library with an API which is very similar to | |
46 | that of OpenGL(R). To the extent that Mesa utilizes the OpenGL command | |
47 | syntax or state machine, it is being used with authorization from | |
48 | Silicon Graphics, Inc. However, the author does not possess an OpenGL | |
49 | license from SGI, and makes no claim that Mesa is in any way a | |
50 | compatible replacement for OpenGL or associated with SGI. | |
51 | ||
52 | %description -l pl.UTF-8 | |
53 | Mesa jest biblioteką grafiki 3D z API bardzo podobnym do OpenGL(R). Do | |
54 | tego stopnia, że Mesa używa składni i automatu OpenGL jest używana z | |
55 | autoryzacją Silicon Graphics, Inc. Jednak autor nie posiada licencji | |
56 | OpenGL od SGI i nie twierdzi, że Mesa jest kompatybilnym zamiennikiem | |
57 | OpenGL ani powiązana z SGI. | |
58 | ||
59 | %package libGL | |
60 | Summary: Free Mesa3D implementation of libGL OpenGL library | |
61 | Summary(pl.UTF-8): Wolnodostępna implementacja Mesa3D biblioteki libGL ze standardu OpenGL | |
62 | License: MIT | |
63 | Group: X11/Libraries | |
64 | Requires: libdrm >= 2.2.0 | |
65 | Provides: OpenGL = 2.1 | |
66 | # reports version 1.3, but supports glXGetProcAddress() from 1.4 | |
67 | Provides: OpenGL-GLX = 1.4 | |
68 | Obsoletes: Mesa | |
69 | Obsoletes: Mesa-dri | |
70 | Obsoletes: X11-OpenGL-libGL < 1:7.0.0 | |
71 | Obsoletes: XFree86-OpenGL-libGL < 1:7.0.0 | |
72 | ||
73 | %description libGL | |
74 | Mesa is a 3-D graphics library with an API which is very similar to | |
75 | that of OpenGL(R). To the extent that Mesa utilizes the OpenGL command | |
76 | syntax or state machine, it is being used with authorization from | |
77 | Silicon Graphics, Inc. However, the author does not possess an OpenGL | |
78 | license from SGI, and makes no claim that Mesa is in any way a | |
79 | compatible replacement for OpenGL or associated with SGI. | |
80 | ||
81 | This package contains libGL which implements OpenGL 1.5 and GLX 1.4 | |
82 | specifications. It uses DRI for rendering. | |
83 | ||
84 | %description libGL -l pl.UTF-8 | |
85 | Mesa jest biblioteką grafiki 3D z API bardzo podobnym do OpenGL(R). Do | |
86 | tego stopnia, że Mesa używa składni i automatu OpenGL jest używana z | |
87 | autoryzacją Silicon Graphics, Inc. Jednak autor nie posiada licencji | |
88 | OpenGL od SGI i nie twierdzi, że Mesa jest kompatybilnym zamiennikiem | |
89 | OpenGL ani powiązana z SGI. | |
90 | ||
91 | Ten pakiet zawiera libGL implementującą specyfikacje OpenGL 1.5 oraz | |
92 | GLX 1.4. Używa DRI do renderowania. | |
93 | ||
94 | %package libGL-devel | |
95 | Summary: Header files for Mesa3D libGL library | |
96 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libGL z projektu Mesa3D | |
97 | License: MIT | |
98 | Group: X11/Development/Libraries | |
99 | # loose dependency on libGL to use with other libGL binaries | |
100 | Requires: OpenGL >= 1.5 | |
101 | Requires: xorg-lib-libX11-devel | |
102 | Provides: OpenGL-devel = 2.1 | |
103 | Provides: OpenGL-GLX-devel = 1.4 | |
104 | Obsoletes: Mesa-devel | |
105 | Obsoletes: X11-OpenGL-devel < 1:7.0.0 | |
106 | Obsoletes: X11-OpenGL-devel-base < 1:7.0.0 | |
107 | Obsoletes: XFree86-OpenGL-devel < 1:7.0.0 | |
108 | Obsoletes: XFree86-OpenGL-devel-base < 1:7.0.0 | |
109 | ||
110 | %description libGL-devel | |
111 | Header files for Mesa3D libGL library. | |
112 | ||
113 | %description libGL-devel -l pl.UTF-8 | |
114 | Pliki nagłówkowe biblioteki libGL z projektu Mesa3D. | |
115 | ||
116 | %package libGL-static | |
117 | Summary: Static Mesa3D libGL library | |
118 | Summary(pl.UTF-8): Statyczna biblioteka libGL z projektu Mesa3D | |
119 | License: MIT | |
120 | Group: X11/Development/Libraries | |
121 | Requires: %{name}-libGL-devel = %{version}-%{release} | |
122 | Provides: OpenGL-static = 2.1 | |
123 | Obsoletes: Mesa-static | |
124 | Obsoletes: X11-OpenGL-static < 1:7.0.0 | |
125 | Obsoletes: XFree86-OpenGL-static < 1:7.0.0 | |
126 | ||
127 | %description libGL-static | |
128 | Static Mesa3D libGL library. It uses software renderer. | |
129 | ||
130 | %description libGL-static -l pl.UTF-8 | |
131 | Statyczna biblioteka libGL z projektu Mesa3D. Używa programowego | |
132 | renderingu. | |
133 | ||
134 | %package libGLU | |
135 | Summary: SGI implementation of libGLU OpenGL library | |
136 | Summary(pl.UTF-8): Implementacja SGI biblioteki libGLU ze standardu OpenGL | |
137 | License: SGI Free Software License B v1.1 | |
138 | Group: Libraries | |
139 | # loose dependency on libGL.so.1 to use with other libGL binaries | |
140 | Requires: OpenGL >= 1.2 | |
141 | Provides: OpenGL-GLU = 1.3 | |
142 | Obsoletes: Mesa-devel | |
143 | Obsoletes: X11-OpenGL-libs < 1:7.0.0 | |
144 | Obsoletes: XFree86-OpenGL-libs < 1:7.0.0 | |
145 | ||
146 | %description libGLU | |
147 | SGI implementation of libGLU OpenGL library. It implements OpenGL GLU | |
148 | 1.3 specifications. | |
149 | ||
150 | %description libGLU -l pl.UTF-8 | |
151 | Implementacja SGI biblioteki libGLU ze standardu OpenGL. Implementuje | |
152 | specyfikację OpenGL GLU 1.3. | |
153 | ||
154 | %package libGLU-devel | |
155 | Summary: Header files for SGI libGLU library | |
156 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SGI libGLU | |
157 | License: SGI Free Software License B v1.1 | |
158 | Group: Development/Libraries | |
159 | Requires: %{name}-libGLU = %{version}-%{release} | |
160 | Requires: OpenGL-devel >= 1.2 | |
161 | Requires: libstdc++-devel | |
162 | Provides: OpenGL-GLU-devel = 1.3 | |
163 | ||
164 | %description libGLU-devel | |
165 | Header files for SGI libGLU library. | |
166 | ||
167 | %description libGLU-devel -l pl.UTF-8 | |
168 | Pliki nagłówkowe biblioteki SGI libGLU. | |
169 | ||
170 | %package libGLU-static | |
171 | Summary: Static SGI libGLU library | |
172 | Summary(pl.UTF-8): Statyczna biblioteka SGI libGLU | |
173 | License: SGI Free Software License B v1.1 | |
174 | Group: Development/Libraries | |
175 | Requires: %{name}-libGLU-devel = %{version}-%{release} | |
176 | Provides: OpenGL-GLU-static = 1.3 | |
177 | ||
178 | %description libGLU-static | |
179 | Static SGI libGLU library. | |
180 | ||
181 | %description libGLU-static -l pl.UTF-8 | |
182 | Statyczna biblioteka SGI libGLU. | |
183 | ||
184 | %package libGLw | |
185 | Summary: SGI OpenGL Xt widgets library | |
186 | Summary(pl.UTF-8): Biblioteka SGI widgetów Xt dla OpenGL-a | |
187 | License: SGI MIT-like | |
188 | Group: Libraries | |
189 | # loose dependency on libGL.so.1 to use with other libGL binaries | |
190 | Requires: OpenGL >= 1.1 | |
191 | Provides: OpenGL-GLw | |
192 | ||
193 | %description libGLw | |
194 | SGI OpenGL Xt widgets library. | |
195 | ||
196 | %description libGLU -l pl.UTF-8 | |
197 | Biblioteka SGI widgetów Xt dla OpenGL-a. | |
198 | ||
199 | %package libGLw-devel | |
200 | Summary: Header files for SGI libGLw library | |
201 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SGI libGLw | |
202 | License: SGI MIT-like | |
203 | Group: Development/Libraries | |
204 | Requires: %{name}-libGLw = %{version}-%{release} | |
205 | Requires: OpenGL-devel >= 1.2 | |
206 | Provides: OpenGL-GLw-devel | |
207 | ||
208 | %description libGLw-devel | |
209 | Header files for SGI libGLw library. | |
210 | ||
211 | %description libGLw-devel -l pl.UTF-8 | |
212 | Pliki nagłówkowe biblioteki SGI libGLw. | |
213 | ||
214 | %package libGLw-static | |
215 | Summary: Static SGI libGLw library | |
216 | Summary(pl.UTF-8): Statyczna biblioteka SGI libGLw | |
217 | License: SGI MIT-like | |
218 | Group: Development/Libraries | |
219 | Requires: %{name}-libGLw-devel = %{version}-%{release} | |
220 | Provides: OpenGL-GLw-static | |
221 | ||
222 | %description libGLw-static | |
223 | Static SGI libGLw library. | |
224 | ||
225 | %description libGLw-static -l pl.UTF-8 | |
226 | Statyczna biblioteka SGI libGLw. | |
227 | ||
228 | %package libOSMesa | |
229 | Summary: OSMesa (off-screen renderer) library | |
230 | Summary(pl.UTF-8): Biblioteka OSMesa (renderująca bitmapy w pamięci) | |
231 | License: MIT | |
232 | Group: Libraries | |
233 | # doesn't require base | |
234 | ||
235 | %description libOSMesa | |
236 | OSMesa (off-screen renderer) library. | |
237 | ||
238 | %description libOSMesa -l pl.UTF-8 | |
239 | Biblioteka OSMesa (renderująca bitmapy w pamięci). | |
240 | ||
241 | %package libOSMesa-devel | |
242 | Summary: Header file for OSMesa (off-screen renderer) library | |
243 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki OSMesa (renderującej bitmapy w pamięci) | |
244 | License: MIT | |
245 | Group: Development/Libraries | |
246 | Requires: %{name}-libOSMesa = %{version}-%{release} | |
247 | # for <GL/gl.h> only | |
248 | Requires: OpenGL-devel | |
249 | ||
250 | %description libOSMesa-devel | |
251 | Header file for OSMesa (off-screen renderer) library. | |
252 | ||
253 | %description libOSMesa-devel -l pl.UTF-8 | |
254 | Plik nagłówkowy biblioteki OSMesa (renderującej bitmapy w pamięci). | |
255 | ||
256 | %package libOSMesa-static | |
257 | Summary: Static OSMesa (off-screen renderer) library | |
258 | Summary(pl.UTF-8): Biblioteka statyczna OSMesa (renderująca bitmapy w pamięci) | |
259 | License: MIT | |
260 | Group: Development/Libraries | |
261 | Requires: %{name}-libOSMesa-devel = %{version}-%{release} | |
262 | # this static build of OSMesa needs static non-dri Mesa implementation | |
263 | Requires: %{name}-libGL-static = %{version}-%{release} | |
264 | ||
265 | %description libOSMesa-static | |
266 | Static OSMesa (off-screen renderer) library. | |
267 | ||
268 | %description libOSMesa-static -l pl.UTF-8 | |
269 | Biblioteka statyczna OSMesa (renderująca bitmapy w pamięci). | |
270 | ||
271 | %package utils | |
272 | Summary: OpenGL utilities from Mesa3D | |
273 | Summary(pl.UTF-8): Programy narzędziowe OpenGL z projektu Mesa3D | |
274 | License: MIT | |
275 | Group: X11/Applications/Graphics | |
276 | # loose deps on libGL/libGLU | |
277 | ||
278 | %description utils | |
279 | OpenGL utilities from Mesa3D: glxgears and glxinfo. | |
280 | ||
281 | %description utils -l pl.UTF-8 | |
282 | Programy narzędziowe OpenGL z projektu Mesa3D: glxgears i glxinfo. | |
283 | ||
284 | %package demos | |
285 | Summary: Mesa Demos source code | |
286 | Summary(pl.UTF-8): Kod źródłowy programów demonstrujących dla bibliotek Mesa | |
287 | License: various (MIT, SGI, GPL - see copyright notes in sources) | |
288 | Group: Development/Libraries | |
289 | Requires: OpenGL-devel | |
290 | ||
291 | %description demos | |
292 | Demonstration programs for the Mesa libraries in source code form. | |
293 | ||
294 | %description demos -l pl.UTF-8 | |
295 | Kod źródłowy programów demonstracyjnych dla bibliotek Mesa. | |
296 | ||
297 | %package dri-driver-ati-mach64 | |
298 | Summary: X.org DRI drivers | |
299 | Summary(pl.UTF-8): Sterowniki DRI dla X.org | |
300 | License: MIT | |
301 | Group: X11/Libraries | |
302 | Requires: xorg-driver-video-ati | |
303 | Requires: xorg-xserver-libglx(glapi) = %{version} | |
304 | Requires: xorg-xserver-server | |
305 | ||
306 | %description dri-driver-ati-mach64 | |
307 | X.org DRI drivers for ATI mach64 card family. | |
308 | ||
309 | %description dri-driver-ati-mach64 -l pl.UTF-8 | |
310 | Sterowniki X.org DRI dla rodziny kart ATI mach64. | |
311 | ||
312 | %package dri-driver-ati-radeon-R100 | |
313 | Summary: X.org DRI drivers | |
314 | Summary(pl.UTF-8): Sterowniki DRI dla X.org | |
315 | License: MIT | |
316 | Group: X11/Libraries | |
317 | Requires: xorg-driver-video-ati | |
318 | Requires: xorg-xserver-libglx(glapi) = %{version} | |
319 | Requires: xorg-xserver-server | |
320 | Obsoletes: X11-driver-radeon-dri < 1:7.0.0 | |
321 | ||
322 | %description dri-driver-ati-radeon-R100 | |
323 | X.org DRI drivers for ATI R100 card family (Radeon 7000-7500). | |
324 | ||
325 | %description dri-driver-ati-radeon-R100 -l pl.UTF-8 | |
326 | Sterowniki X.org DRI dla rodziny kart ATI R100 (Radeon 7000-7500). | |
327 | ||
328 | %package dri-driver-ati-radeon-R200 | |
329 | Summary: X.org DRI drivers | |
330 | Summary(pl.UTF-8): Sterowniki DRI dla X.org | |
331 | License: MIT | |
332 | Group: X11/Libraries | |
333 | Requires: xorg-driver-video-ati | |
334 | Requires: xorg-xserver-libglx(glapi) = %{version} | |
335 | Requires: xorg-xserver-server | |
336 | Obsoletes: X11-driver-radeon-dri < 1:7.0.0 | |
337 | ||
338 | %description dri-driver-ati-radeon-R200 | |
339 | X.org DRI drivers for ATI R200 card family (Radeon 8500-92xx) | |
340 | ||
341 | %description dri-driver-ati-radeon-R200 -l pl.UTF-8 | |
342 | Sterowniki X.org DRI dla rodziny kart ATI R200 (Radeon 8500-92xx). | |
343 | ||
344 | %package dri-driver-ati-radeon-R300 | |
345 | Summary: X.org DRI drivers | |
346 | Summary(pl.UTF-8): Sterowniki DRI dla X.org | |
347 | License: MIT | |
348 | Group: X11/Libraries | |
349 | Requires: xorg-driver-video-ati | |
350 | Requires: xorg-xserver-libglx(glapi) = %{version} | |
351 | Requires: xorg-xserver-server | |
352 | Obsoletes: X11-driver-radeon-dri < 1:7.0.0 | |
353 | ||
354 | %description dri-driver-ati-radeon-R300 | |
355 | X.org DRI drivers for ATI R300 card family. | |
356 | ||
357 | %description dri-driver-ati-radeon-R300 -l pl.UTF-8 | |
358 | Sterowniki X.org DRI dla rodziny kart ATI R300. | |
359 | ||
360 | %package dri-driver-ati-rage128 | |
361 | Summary: X.org DRI drivers | |
362 | Summary(pl.UTF-8): Sterowniki DRI dla X.org | |
363 | License: MIT | |
364 | Group: X11/Libraries | |
365 | Requires: xorg-driver-video-ati | |
366 | Requires: xorg-xserver-libglx(glapi) = %{version} | |
367 | Requires: xorg-xserver-server | |
368 | Obsoletes: X11-driver-r128-dri < 1:7.0.0 | |
369 | ||
370 | %description dri-driver-ati-rage128 | |
371 | X.org DRI drivers for ATI rage128 card family. | |
372 | ||
373 | %description dri-driver-ati-rage128 -l pl.UTF-8 | |
374 | Sterowniki X.org DRI dla rodziny kart ATI rage128. | |
375 | ||
376 | %package dri-driver-ffb | |
377 | Summary: X.org DRI drivers | |
378 | Summary(pl.UTF-8): Sterowniki DRI dla X.org | |
379 | License: MIT | |
380 | Group: X11/Libraries | |
381 | Requires: xorg-driver-video-sunffb | |
382 | Requires: xorg-xserver-libglx(glapi) = %{version} | |
383 | Requires: xorg-xserver-server | |
384 | ||
385 | %description dri-driver-ffb | |
386 | X.org DRI drivers for SUN Creator3D and Elite3D card family. | |
387 | ||
388 | %description dri-driver-ffb -l pl.UTF-8 | |
389 | Sterowniki X.org DRI dla rodziny kart SUN Creator3D and Elite3D. | |
390 | ||
391 | %package dri-driver-glint | |
392 | Summary: X.org DRI drivers | |
393 | Summary(pl.UTF-8): Sterowniki DRI dla X.org | |
394 | License: MIT | |
395 | Group: X11/Libraries | |
396 | Requires: xorg-driver-video-glint | |
397 | Requires: xorg-xserver-libglx(glapi) = %{version} | |
398 | Requires: xorg-xserver-server | |
399 | Obsoletes: X11-driver-glint-dri < 1:7.0.0 | |
400 | ||
401 | %description dri-driver-glint | |
402 | X.org DRI drivers for GLINT/Permedia card family. | |
403 | ||
404 | %description dri-driver-glint -l pl.UTF-8 | |
405 | Sterowniki X.org DRI dla rodziny kart GLINT/Permedia. | |
406 | ||
407 | %package dri-driver-intel-i810 | |
408 | Summary: X.org DRI drivers | |
409 | Summary(pl.UTF-8): Sterowniki DRI dla X.org | |
410 | License: MIT | |
411 | Group: X11/Libraries | |
412 | Requires: xorg-driver-video-i810 | |
413 | Requires: xorg-xserver-libglx(glapi) = %{version} | |
414 | Requires: xorg-xserver-server | |
415 | Obsoletes: X11-driver-i810-dri < 1:7.0.0 | |
416 | ||
417 | %description dri-driver-intel-i810 | |
418 | X.org DRI drivers for Intel i810 card family. | |
419 | ||
420 | %description dri-driver-intel-i810 -l pl.UTF-8 | |
421 | Sterowniki X.org DRI dla rodziny kart i810. | |
422 | ||
423 | %package dri-driver-intel-i915 | |
424 | Summary: X.org DRI drivers | |
425 | Summary(pl.UTF-8): Sterowniki DRI dla X.org | |
426 | License: MIT | |
427 | Group: X11/Libraries | |
428 | Requires: xorg-driver-video-i810 | |
429 | Requires: xorg-xserver-libglx(glapi) = %{version} | |
430 | Requires: xorg-xserver-server | |
431 | Obsoletes: Mesa-dri-driver-intel-i830 | |
432 | Obsoletes: X11-driver-i810-dri < 1:7.0.0 | |
433 | ||
434 | %description dri-driver-intel-i915 | |
435 | X.org DRI drivers for Intel i915 card family. | |
436 | ||
437 | %description dri-driver-intel-i915 -l pl.UTF-8 | |
438 | Sterowniki X.org DRI dla rodziny kart i915. | |
439 | ||
440 | %package dri-driver-intel-i965 | |
441 | Summary: X.org DRI drivers | |
442 | Summary(pl.UTF-8): Sterowniki DRI dla X.org | |
443 | License: MIT | |
444 | Group: X11/Libraries | |
445 | Requires: xorg-driver-video-i810 | |
446 | Requires: xorg-xserver-libglx(glapi) = %{version} | |
447 | Requires: xorg-xserver-server | |
448 | Obsoletes: Mesa-dri-driver-intel-i830 | |
449 | Obsoletes: X11-driver-i810-dri < 1:7.0.0 | |
450 | ||
451 | %description dri-driver-intel-i965 | |
452 | X.org DRI drivers for Intel i965 card family. | |
453 | ||
454 | %description dri-driver-intel-i965 -l pl.UTF-8 | |
455 | Sterowniki X.org DRI dla rodziny kart i965. | |
456 | ||
457 | %package dri-driver-matrox | |
458 | Summary: X.org DRI drivers | |
459 | Summary(pl.UTF-8): Sterowniki DRI dla X.org | |
460 | License: MIT | |
461 | Group: X11/Libraries | |
462 | Requires: xorg-driver-video-mga | |
463 | Requires: xorg-xserver-libglx(glapi) = %{version} | |
464 | Requires: xorg-xserver-server | |
465 | Obsoletes: X11-driver-mga-dri < 1:7.0.0 | |
466 | ||
467 | %description dri-driver-matrox | |
468 | X.org DRI drivers for Matrox G card family. | |
469 | ||
470 | %description dri-driver-matrox -l pl.UTF-8 | |
471 | Sterowniki X.org DRI dla rodziny kart Matrox G. | |
472 | ||
473 | %package dri-driver-nouveau | |
474 | Summary: X.org DRI drivers | |
475 | Summary(pl.UTF-8): Sterowniki DRI dla X.org | |
476 | License: MIT | |
477 | Group: X11/Libraries | |
478 | Requires: xorg-driver-video-nouveau | |
479 | Requires: xorg-xserver-libglx(glapi) = %{version} | |
480 | Requires: xorg-xserver-server | |
481 | ||
482 | %description dri-driver-nouveau | |
483 | X.org DRI drivers for NVidia adapters. | |
484 | ||
485 | %description dri-driver-nouveau -l pl.UTF-8 | |
486 | Sterowniki X.org DRI dla kart NVidia. | |
487 | ||
488 | %package dri-driver-s3virge | |
489 | Summary: X.org DRI drivers | |
490 | Summary(pl.UTF-8): Sterowniki DRI dla X.org | |
491 | License: MIT | |
492 | Group: X11/Libraries | |
493 | Requires: xorg-driver-video-s3virge | |
494 | Requires: xorg-xserver-libglx(glapi) = %{version} | |
495 | Requires: xorg-xserver-server | |
496 | ||
497 | %description dri-driver-s3virge | |
498 | X.org DRI drivers for S3 Virge card family. | |
499 | ||
500 | %description dri-driver-s3virge -l pl.UTF-8 | |
501 | Sterowniki X.org DRI dla rodziny kart S3 Virge. | |
502 | ||
503 | %package dri-driver-savage | |
504 | Summary: X.org DRI drivers | |
505 | Summary(pl.UTF-8): Sterowniki DRI dla X.org | |
506 | License: MIT | |
507 | Group: X11/Libraries | |
508 | Requires: xorg-driver-video-savage | |
509 | Requires: xorg-xserver-libglx(glapi) = %{version} | |
510 | Requires: xorg-xserver-server | |
511 | ||
512 | %description dri-driver-savage | |
513 | X.org DRI drivers for S3 Savage card family. | |
514 | ||
515 | %description dri-driver-savage -l pl.UTF-8 | |
516 | Sterowniki X.org DRI dla rodziny kart S3 Savage. | |
517 | ||
518 | %package dri-driver-sis | |
519 | Summary: X.org DRI drivers | |
520 | Summary(pl.UTF-8): Sterowniki DRI dla X.org | |
521 | License: MIT | |
522 | Group: X11/Libraries | |
523 | Requires: xorg-driver-video-sis | |
524 | Requires: xorg-xserver-libglx(glapi) = %{version} | |
525 | Requires: xorg-xserver-server | |
526 | Obsoletes: X11-driver-sis-dri < 1:7.0.0 | |
527 | ||
528 | %description dri-driver-sis | |
529 | X.org DRI drivers for SiS card family. | |
530 | ||
531 | %description dri-driver-sis -l pl.UTF-8 | |
532 | Sterowniki X.org DRI dla rodziny kart SiS. | |
533 | ||
534 | %package dri-driver-tdfx | |
535 | Summary: X.org DRI drivers | |
536 | Summary(pl.UTF-8): Sterowniki DRI dla X.org | |
537 | License: MIT | |
538 | Group: X11/Libraries | |
539 | Requires: Glide3-DRI | |
540 | Requires: xorg-driver-video-tdfx | |
541 | Requires: xorg-xserver-libglx(glapi) = %{version} | |
542 | Requires: xorg-xserver-server | |
543 | Obsoletes: X11-driver-tdfx-dri < 1:7.0.0 | |
544 | ||
545 | %description dri-driver-tdfx | |
546 | X.org DRI drivers for 3DFX Voodoo card family (Voodoo 3,4,5, Banshee | |
547 | and Velocity 100/200). | |
548 | ||
549 | %description dri-driver-tdfx -l pl.UTF-8 | |
550 | Sterowniki X.org DRI dla rodziny kart 3DFX Voodoo. (Voodoo 3,4,5, | |
551 | Banshee and Velocity 100/200). | |
552 | ||
553 | %package dri-driver-trident | |
554 | Summary: X.org DRI drivers | |
555 | Summary(pl.UTF-8): Sterowniki DRI dla X.org | |
556 | License: MIT | |
557 | Group: X11/Libraries | |
558 | Requires: xorg-driver-video-trident | |
559 | Requires: xorg-xserver-libglx(glapi) = %{version} | |
560 | Requires: xorg-xserver-server | |
561 | ||
562 | %description dri-driver-trident | |
563 | X.org DRI drivers for Trident card family. | |
564 | ||
565 | %description dri-driver-trident -l pl.UTF-8 | |
566 | Sterowniki X.org DRI dla rodziny kart Trident. | |
567 | ||
568 | %package dri-driver-via-unichrome | |
569 | Summary: X.org DRI drivers | |
570 | Summary(pl.UTF-8): Sterowniki DRI dla X.org | |
571 | License: MIT | |
572 | Group: X11/Libraries | |
573 | Requires: xorg-driver-video-via | |
574 | Requires: xorg-xserver-libglx(glapi) = %{version} | |
575 | Requires: xorg-xserver-server | |
576 | ||
577 | %description dri-driver-via-unichrome | |
578 | X.org DRI drivers for VIA Unichrome card family. | |
579 | ||
580 | %description dri-driver-via-unichrome -l pl.UTF-8 | |
581 | Sterowniki X.org DRI dla rodziny kart VIA Unichrome. | |
582 | ||
583 | %prep | |
584 | %setup -q -b1 | |
585 | %patch0 -p0 | |
586 | ||
587 | # until new libdrm release and Mesa update for nouveau_drm patchlevel | |
588 | cp %{SOURCE2} src/mesa/drivers/dri/nouveau | |
589 | ||
590 | # fix demos | |
591 | find progs -type f|xargs sed -i -e "s,\.\./images/,%{_examplesdir}/%{name}-%{version}/images/,g" | |
592 | ||
593 | # s3v, sis, trident missing there - don't override list from linux-dri | |
594 | sed -i -e '/^DRI_DIRS/d' configs/linux-dri-x86-64 | |
595 | ||
596 | %if %{with nouveau} | |
597 | sed -i -e 's/ ffb$/ ffb nouveau/' configs/linux-dri | |
598 | %endif | |
599 | ||
600 | %ifnarch sparc sparcv9 sparc64 | |
601 | # for sunffb driver - useful on sparc only | |
602 | sed -i -e 's/ ffb\>//' configs/linux-dri | |
603 | %endif | |
604 | ||
605 | %ifnarch %{ix86} %{x8664} | |
606 | # sis needs write-memory barrier | |
607 | sed -i -e 's/ sis / /' configs/linux-dri | |
608 | %endif | |
609 | ||
610 | %build | |
611 | # use $lib, not %{_lib} as Mesa uses lib64 only for *-x86-64* targets | |
612 | %ifarch %{x8664} | |
613 | targ=-x86-64 | |
614 | lib=lib64 | |
615 | %else | |
616 | lib=lib | |
617 | %ifarch %{ix86} | |
618 | targ=-x86 | |
619 | %else | |
620 | targ="" | |
621 | %endif | |
622 | %endif | |
623 | ||
624 | %{__make} linux${targ}-static \ | |
625 | CC="%{__cc}" \ | |
626 | CXX="%{__cxx}" \ | |
627 | OPT_FLAGS="%{rpmcflags} -fno-strict-aliasing" \ | |
628 | XLIB_DIR=%{_libdir} \ | |
629 | GLW_SOURCES="GLwDrawA.c%{?with_motif: GLwMDrawA.c}" \ | |
630 | SRC_DIRS="mesa glu glw" \ | |
631 | PROGRAM_DIRS= | |
632 | mv -f ${lib} lib-static | |
633 | %{__make} realclean | |
634 | ||
635 | %{__make} linux-osmesa \ | |
636 | CC="%{__cc}" \ | |
637 | CXX="%{__cxx}" \ | |
638 | OPT_FLAGS="%{rpmcflags} -fno-strict-aliasing" \ | |
639 | XLIB_DIR=%{_libdir} \ | |
640 | SRC_DIRS="mesa" \ | |
641 | PROGRAM_DIRS= | |
642 | mv -f lib lib-osmesa | |
643 | %{__make} realclean | |
644 | ||
645 | %{__make} linux-dri${targ} \ | |
646 | CC="%{__cc}" \ | |
647 | CXX="%{__cxx}" \ | |
648 | MKDEP=makedepend \ | |
649 | OPT_FLAGS="%{rpmcflags} -fno-strict-aliasing" \ | |
650 | XLIB_DIR=%{_libdir} \ | |
651 | DRI_DRIVER_SEARCH_DIR=%{_libdir}/xorg/modules/dri \ | |
652 | SRC_DIRS="glx/x11 mesa glu glw" \ | |
653 | PROGRAM_DIRS= | |
654 | ||
655 | %{__make} -C progs/xdemos \ | |
656 | CC="%{__cc}" \ | |
657 | CXX="%{__cxx}" \ | |
658 | OPT_FLAGS="%{rpmcflags}" \ | |
659 | XLIB_DIR=%{_libdir} \ | |
660 | PROGS="glxgears" \ | |
661 | APP_LIB_DEPS="-L../../${lib} -lGL" | |
662 | ||
663 | %{__make} -C progs/xdemos \ | |
664 | CC="%{__cc}" \ | |
665 | CXX="%{__cxx}" \ | |
666 | OPT_FLAGS="%{rpmcflags}" \ | |
667 | XLIB_DIR=%{_libdir} \ | |
668 | PROGS="glxinfo" \ | |
669 | APP_LIB_DEPS="-L../../${lib} -lGL -lGLU" | |
670 | ||
671 | mv -f ${lib} lib-dri | |
672 | ||
673 | for d in mesa glu glw ; do | |
674 | %{__make} -C src/$d `basename src/$d/*.pc.in .in` \ | |
675 | INSTALL_DIR=%{_prefix} \ | |
676 | LIB_DIR=%{_lib} | |
677 | done | |
678 | ||
679 | %install | |
680 | rm -rf $RPM_BUILD_ROOT | |
681 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir}/GL,%{_pkgconfigdir},%{_examplesdir}/%{name}-%{version}} | |
682 | install -d $RPM_BUILD_ROOT%{_libdir}/xorg/modules/dri | |
683 | ||
684 | cp -df lib-static/lib* $RPM_BUILD_ROOT%{_libdir} | |
685 | cp -df lib-osmesa/libOSMesa* $RPM_BUILD_ROOT%{_libdir} | |
686 | cp -df lib-dri/lib* $RPM_BUILD_ROOT%{_libdir} | |
687 | cp -rf include/GL/{gl[!f]*,osmesa.h,xmesa*} src/glw/GLw*.h $RPM_BUILD_ROOT%{_includedir}/GL | |
688 | cp -df lib-dri/*_dri.so $RPM_BUILD_ROOT%{_libdir}/xorg/modules/dri | |
689 | ||
690 | install src/mesa/gl.pc $RPM_BUILD_ROOT%{_pkgconfigdir} | |
691 | install src/glu/glu.pc $RPM_BUILD_ROOT%{_pkgconfigdir} | |
692 | install src/glw/glw.pc $RPM_BUILD_ROOT%{_pkgconfigdir} | |
693 | ||
694 | install progs/xdemos/{glxgears,glxinfo} $RPM_BUILD_ROOT%{_bindir} | |
695 | # work on copy to keep -bi --short-circuit working | |
696 | rm -rf progs-clean | |
697 | install -d progs-clean | |
698 | for l in demos glsl osdemos redbook samples xdemos ; do | |
699 | cp -a progs/$l progs-clean/$l | |
700 | %{__make} -C progs-clean/$l clean | |
701 | cp -Rf progs-clean/$l $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/$l | |
702 | done | |
703 | rm -rf progs-clean | |
704 | for l in util images ; do | |
705 | cp -Rf progs/$l $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/$l | |
706 | done | |
707 | rm -rf $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/*/{.deps,CVS,Makefile.{BeOS*,win,cygnus,DJ,dja}} | |
708 | ||
709 | %if %{with multigl} | |
710 | install -d $RPM_BUILD_ROOT{%{_libdir}/Mesa,%{_sysconfdir}/ld.so.conf.d} | |
711 | ||
712 | mv -f $RPM_BUILD_ROOT%{_libdir}/libGL.so.* $RPM_BUILD_ROOT%{_libdir}/Mesa | |
713 | ln -sf Mesa/libGL.so.1 $RPM_BUILD_ROOT%{_libdir}/libGL.so | |
714 | ||
715 | echo %{_libdir}/Mesa >$RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/Mesa.conf | |
716 | %endif | |
717 | ||
718 | %clean | |
719 | rm -rf $RPM_BUILD_ROOT | |
720 | ||
721 | %post libGL -p /sbin/ldconfig | |
722 | %postun libGL -p /sbin/ldconfig | |
723 | ||
724 | %post libGLU -p /sbin/ldconfig | |
725 | %postun libGLU -p /sbin/ldconfig | |
726 | ||
727 | %post libGLw -p /sbin/ldconfig | |
728 | %postun libGLw -p /sbin/ldconfig | |
729 | ||
730 | %files libGL | |
731 | %defattr(644,root,root,755) | |
732 | %doc docs/{*.html,README.{3DFX,GGI,MITS,QUAKE,THREADS},RELNOTES*} | |
733 | %if %{with multigl} | |
734 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ld.so.conf.d/Mesa.conf | |
735 | %dir %{_libdir}/Mesa | |
736 | %attr(755,root,root) %{_libdir}/Mesa/libGL.so.*.* | |
737 | %attr(755,root,root) %ghost %{_libdir}/Mesa/libGL.so.1 | |
738 | %else | |
739 | %attr(755,root,root) %{_libdir}/libGL.so.*.* | |
740 | %attr(755,root,root) %ghost %{_libdir}/libGL.so.1 | |
741 | # symlink for binary apps which fail to conform Linux OpenGL ABI | |
742 | # (and dlopen libGL.so instead of libGL.so.1) | |
743 | %attr(755,root,root) %{_libdir}/libGL.so | |
744 | %endif | |
745 | ||
746 | %files libGL-devel | |
747 | %defattr(644,root,root,755) | |
748 | %doc docs/*.spec | |
749 | %if %{with multigl} | |
750 | %attr(755,root,root) %{_libdir}/libGL.so | |
751 | %endif | |
752 | %dir %{_includedir}/GL | |
753 | %{_includedir}/GL/gl.h | |
754 | %{_includedir}/GL/glext.h | |
755 | %{_includedir}/GL/gl_mangle.h | |
756 | %{_includedir}/GL/glx.h | |
757 | %{_includedir}/GL/glxext.h | |
758 | %{_includedir}/GL/glx_mangle.h | |
759 | %{_pkgconfigdir}/gl.pc | |
760 | ||
761 | %files libGL-static | |
762 | %defattr(644,root,root,755) | |
763 | %{_libdir}/libGL.a | |
764 | # x11 (non-dri) Mesa API | |
765 | %{_includedir}/GL/xmesa.h | |
766 | %{_includedir}/GL/xmesa_x.h | |
767 | %{_includedir}/GL/xmesa_xf86.h | |
768 | ||
769 | %files libGLU | |
770 | %defattr(644,root,root,755) | |
771 | %attr(755,root,root) %{_libdir}/libGLU.so.*.* | |
772 | %attr(755,root,root) %ghost %{_libdir}/libGLU.so.1 | |
773 | ||
774 | %files libGLU-devel | |
775 | %defattr(644,root,root,755) | |
776 | %attr(755,root,root) %{_libdir}/libGLU.so | |
777 | %{_includedir}/GL/glu.h | |
778 | %{_includedir}/GL/glu_mangle.h | |
779 | %{_pkgconfigdir}/glu.pc | |
780 | ||
781 | %files libGLU-static | |
782 | %defattr(644,root,root,755) | |
783 | %{_libdir}/libGLU.a | |
784 | ||
785 | %files libGLw | |
786 | %defattr(644,root,root,755) | |
787 | %attr(755,root,root) %{_libdir}/libGLw.so.*.* | |
788 | %attr(755,root,root) %ghost %{_libdir}/libGLw.so.1 | |
789 | ||
790 | %files libGLw-devel | |
791 | %defattr(644,root,root,755) | |
792 | %attr(755,root,root) %{_libdir}/libGLw.so | |
793 | %{_includedir}/GL/GLwDrawA.h | |
794 | %{_includedir}/GL/GLwDrawAP.h | |
795 | %{_includedir}/GL/GLwMDrawA.h | |
796 | %{_includedir}/GL/GLwMDrawAP.h | |
797 | %{_pkgconfigdir}/glw.pc | |
798 | ||
799 | %files libGLw-static | |
800 | %defattr(644,root,root,755) | |
801 | %{_libdir}/libGLw.a | |
802 | ||
803 | %files libOSMesa | |
804 | %defattr(644,root,root,755) | |
805 | %attr(755,root,root) %{_libdir}/libOSMesa.so.*.* | |
806 | %attr(755,root,root) %ghost %{_libdir}/libOSMesa.so.6 | |
807 | ||
808 | %files libOSMesa-devel | |
809 | %defattr(644,root,root,755) | |
810 | %attr(755,root,root) %{_libdir}/libOSMesa.so | |
811 | %{_includedir}/GL/osmesa.h | |
812 | ||
813 | %files libOSMesa-static | |
814 | %defattr(644,root,root,755) | |
815 | %{_libdir}/libOSMesa.a | |
816 | ||
817 | %files utils | |
818 | %defattr(644,root,root,755) | |
819 | %attr(755,root,root) %{_bindir}/glxgears | |
820 | %attr(755,root,root) %{_bindir}/glxinfo | |
821 | ||
822 | %files dri-driver-ati-mach64 | |
823 | %defattr(644,root,root,755) | |
824 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/mach64_dri.so | |
825 | ||
826 | %files dri-driver-ati-radeon-R100 | |
827 | %defattr(644,root,root,755) | |
828 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/radeon_dri.so | |
829 | ||
830 | %files dri-driver-ati-radeon-R200 | |
831 | %defattr(644,root,root,755) | |
832 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/r200_dri.so | |
833 | ||
834 | %files dri-driver-ati-radeon-R300 | |
835 | %defattr(644,root,root,755) | |
836 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/r300_dri.so | |
837 | ||
838 | %files dri-driver-ati-rage128 | |
839 | %defattr(644,root,root,755) | |
840 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/r128_dri.so | |
841 | ||
842 | # sunffb (sparc only) | |
843 | %ifarch sparc sparcv9 sparc64 | |
844 | %files dri-driver-ffb | |
845 | %defattr(644,root,root,755) | |
846 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/ffb_dri.so | |
847 | %endif | |
848 | ||
849 | # glint (requires update) | |
850 | %if 0 | |
851 | %files dri-driver-glint | |
852 | %defattr(644,root,root,755) | |
853 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/gamma_dri.so | |
854 | %endif | |
855 | ||
856 | %files dri-driver-intel-i810 | |
857 | %defattr(644,root,root,755) | |
858 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/i810_dri.so | |
859 | ||
860 | %files dri-driver-intel-i915 | |
861 | %defattr(644,root,root,755) | |
862 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/i915_dri.so | |
863 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/i915tex_dri.so | |
864 | ||
865 | %files dri-driver-intel-i965 | |
866 | %defattr(644,root,root,755) | |
867 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/i965_dri.so | |
868 | ||
869 | %files dri-driver-matrox | |
870 | %defattr(644,root,root,755) | |
871 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/mga_dri.so | |
872 | ||
873 | %if %{with nouveau} | |
874 | %files dri-driver-nouveau | |
875 | %defattr(644,root,root,755) | |
876 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/nouveau_dri.so | |
877 | %endif | |
878 | ||
879 | %files dri-driver-s3virge | |
880 | %defattr(644,root,root,755) | |
881 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/s3v_dri.so | |
882 | ||
883 | %files dri-driver-savage | |
884 | %defattr(644,root,root,755) | |
885 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/savage_dri.so | |
886 | ||
887 | %ifarch %{ix86} %{x8664} | |
888 | %files dri-driver-sis | |
889 | %defattr(644,root,root,755) | |
890 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/sis_dri.so | |
891 | %endif | |
892 | ||
893 | %files dri-driver-tdfx | |
894 | %defattr(644,root,root,755) | |
895 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/tdfx_dri.so | |
896 | ||
897 | %files dri-driver-trident | |
898 | %defattr(644,root,root,755) | |
899 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/trident_dri.so | |
900 | ||
901 | %files dri-driver-via-unichrome | |
902 | %defattr(644,root,root,755) | |
903 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/unichrome_dri.so | |
904 | ||
905 | %files demos | |
906 | %defattr(644,root,root,755) | |
907 | %{_examplesdir}/%{name}-%{version} |