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