]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # TODO: | |
3 | # - consider: | |
4 | # --enable-shared-dricore | |
5 | # - subpackage with non-dri libGL for use with X-servers with missing GLX extension? | |
6 | # - resurrect static if it's useful | |
7 | # | |
8 | # Conditional build: | |
9 | %bcond_without egl # EGL libraries | |
10 | %bcond_without gallium # gallium drivers | |
11 | %bcond_with gallium_intel # gallium i915 driver (but doesn't work with AIGLX) | |
12 | %bcond_without gallium_nouveau # gallium nouveau driver | |
13 | %bcond_without osmesa # OSMesa libraries | |
14 | %bcond_without gbm # with Graphics Buffer Manager | |
15 | %bcond_with static_libs # 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.30 | |
25 | %define dri2proto_ver 2.6 | |
26 | %define glproto_ver 1.4.14 | |
27 | # | |
28 | Summary: Free OpenGL implementation | |
29 | Summary(pl.UTF-8): Wolnodostępna implementacja standardu OpenGL | |
30 | Name: Mesa | |
31 | Version: 8.0.1 | |
32 | Release: 1 | |
33 | License: MIT (core), SGI (GLU) and others - see license.html file | |
34 | Group: X11/Libraries | |
35 | Source0: ftp://ftp.freedesktop.org/pub/mesa/%{version}/%{name}Lib-%{version}.tar.bz2 | |
36 | # Source0-md5: 24eeebf66971809d8f40775a379b36c9 | |
37 | Patch0: %{name}-realclean.patch | |
38 | URL: http://www.mesa3d.org/ | |
39 | BuildRequires: autoconf >= 2.59 | |
40 | BuildRequires: automake | |
41 | BuildRequires: expat-devel | |
42 | BuildRequires: gcc >= 5:3.3 | |
43 | BuildRequires: libdrm-devel >= %{libdrm_ver} | |
44 | BuildRequires: libselinux-devel | |
45 | BuildRequires: libstdc++-devel >= 5:3.3.0 | |
46 | BuildRequires: libtalloc-devel >= 2:2.0.1 | |
47 | BuildRequires: libtool >= 2:1.4d | |
48 | BuildRequires: libvdpau-devel >= 0.4.1 | |
49 | BuildRequires: llvm-devel >= 2.9 | |
50 | BuildRequires: pixman-devel | |
51 | BuildRequires: pkgconfig | |
52 | BuildRequires: pkgconfig(talloc) >= 2.0.1 | |
53 | BuildRequires: python | |
54 | BuildRequires: python-libxml2 | |
55 | BuildRequires: python-modules | |
56 | BuildRequires: rpmbuild(macros) >= 1.470 | |
57 | BuildRequires: sed >= 4.0 | |
58 | BuildRequires: xorg-lib-libXdamage-devel | |
59 | BuildRequires: xorg-lib-libXext-devel >= 1.0.5 | |
60 | BuildRequires: xorg-lib-libXt-devel | |
61 | BuildRequires: xorg-lib-libXvMC-devel >= 1.0.6 | |
62 | BuildRequires: xorg-lib-libXxf86vm-devel | |
63 | BuildRequires: xorg-proto-dri2proto-devel >= %{dri2proto_ver} | |
64 | BuildRequires: xorg-proto-glproto-devel >= %{glproto_ver} | |
65 | BuildRequires: xorg-util-makedepend | |
66 | BuildRequires: xorg-xserver-server-devel | |
67 | %if %{with egl} | |
68 | BuildRequires: libxcb-devel | |
69 | BuildRequires: udev-devel >= 1:150 | |
70 | %endif | |
71 | %if %{with gallium} | |
72 | BuildRequires: xorg-proto-xextproto-devel >= 7.0.99.1 | |
73 | BuildRequires: xorg-xserver-server-devel >= 1.6.0 | |
74 | %endif | |
75 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
76 | ||
77 | %if %{without gallium} | |
78 | %undefine with_gallium_intel | |
79 | %undefine with_gallium_nouveau | |
80 | %endif | |
81 | ||
82 | %if %{without egl} | |
83 | %undefine with_gbm | |
84 | %endif | |
85 | ||
86 | # _glapi_tls_Dispatch is defined in libglapi, but it's some kind of symbol ldd -r doesn't notice(?) | |
87 | %define skip_post_check_so libGLESv1_CM.so.1.* libGLESv2.so.2.* libGL.so.1.* libXvMCnouveau.so.1.* libXvMCr300.so.1.* libXvMCr600.so.1.* libXvMCsoftpipe.so.1.* libvdpau_nouveau.so.1.* | |
88 | ||
89 | # llvm build broken | |
90 | %define filterout_ld -Wl,--as-needed | |
91 | ||
92 | %description | |
93 | Mesa is a 3-D graphics library with an API which is very similar to | |
94 | that of OpenGL(R). To the extent that Mesa utilizes the OpenGL command | |
95 | syntax or state machine, it is being used with authorization from | |
96 | Silicon Graphics, Inc. However, the author does not possess an OpenGL | |
97 | license from SGI, and makes no claim that Mesa is in any way a | |
98 | compatible replacement for OpenGL or associated with SGI. | |
99 | ||
100 | %description -l pl.UTF-8 | |
101 | Mesa jest biblioteką grafiki 3D z API bardzo podobnym do OpenGL(R). Do | |
102 | tego stopnia, że Mesa używa składni i automatu OpenGL jest używana z | |
103 | autoryzacją Silicon Graphics, Inc. Jednak autor nie posiada licencji | |
104 | OpenGL od SGI i nie twierdzi, że Mesa jest kompatybilnym zamiennikiem | |
105 | OpenGL ani powiązana z SGI. | |
106 | ||
107 | %package libEGL | |
108 | Summary: Mesa implementation of EGL Native Platform Graphics Interface library | |
109 | Summary(pl.UTF-8): Implementacja Mesa biblioteki interfejsu EGL | |
110 | License: MIT | |
111 | Group: Libraries | |
112 | # glx driver in libEGL dlopens libGL.so | |
113 | Requires: OpenGL >= 1.2 | |
114 | Requires: libdrm >= %{libdrm_ver} | |
115 | %if %{with gallium} | |
116 | # for egl_gallium.so | |
117 | Requires: Mesa-libOpenVG = %{version}-%{release} | |
118 | Requires: udev-libs >= 1:150 | |
119 | %endif | |
120 | Provides: EGL = 1.4 | |
121 | ||
122 | %description libEGL | |
123 | This package contains shared libEGL - Mesa implementation of EGL | |
124 | Native Platform Graphics Interface as specified by Khronos Group: | |
125 | <http://www.khronos.org/egl/>. | |
126 | ||
127 | %description libEGL -l pl.UTF-8 | |
128 | Ten pakiet zawiera bibliotekę współdzieloną libEGL - implementację | |
129 | Mesa standardu EGL Native Platform Graphics Interface (interfejsu | |
130 | graficznego platformy natywnej) wg specyfikacji Khronos Group: | |
131 | <http://www.khronos.org/egl/>. | |
132 | ||
133 | %package libEGL-devel | |
134 | Summary: Header files for Mesa implementation of EGL library | |
135 | Summary(pl.UTF-8): Pliki nagłówkowe implementacji Mesa biblioteki EGL | |
136 | License: MIT | |
137 | Group: Development/Libraries | |
138 | Requires: %{name}-libEGL = %{version}-%{release} | |
139 | Requires: libdrm-devel >= %{libdrm_ver} | |
140 | Requires: xorg-lib-libX11-devel | |
141 | Requires: xorg-lib-libXdamage-devel | |
142 | Requires: xorg-lib-libXext-devel | |
143 | Requires: xorg-lib-libXfixes-devel | |
144 | Requires: xorg-lib-libXxf86vm-devel | |
145 | Requires: xorg-proto-dri2proto-devel >= %{dri2proto_ver} | |
146 | Requires: xorg-proto-glproto-devel >= %{glproto_ver} | |
147 | Provides: EGL-devel = 1.4 | |
148 | ||
149 | %description libEGL-devel | |
150 | Header files for Mesa implementation of EGL library. | |
151 | ||
152 | %description libEGL-devel -l pl.UTF-8 | |
153 | Pliki nagłówkowe implementacji Mesa biblioteki EGL. | |
154 | ||
155 | %package libEGL-static | |
156 | Summary: Static Mesa EGL library | |
157 | Summary(pl.UTF-8): Statyczna biblioteka Mesa EGL | |
158 | License: MIT | |
159 | Group: Development/Libraries | |
160 | Requires: %{name}-libEGL-devel = %{version}-%{release} | |
161 | Provides: EGL-static = 1.4 | |
162 | ||
163 | %description libEGL-static | |
164 | Static Mesa EGL library. | |
165 | ||
166 | %description libEGL-static -l pl.UTF-8 | |
167 | Statyczna biblioteka Mesa EGL. | |
168 | ||
169 | %package gbm-driver-i915 | |
170 | Summary: i915 driver for Mesa GBM framework (used by EGL and OpenVG APIs) | |
171 | Summary(pl.UTF-8): Sterownik i915 dla szkieletu Mesa GBM (wykorzystywanego przez API EGL i OpenVG) | |
172 | Group: Libraries | |
173 | Requires: %{name}-libEGL = %{version}-%{release} | |
174 | ||
175 | %description gbm-driver-i915 | |
176 | i915 driver for Mesa Graphics Buffer Manager (used by EGL and OpenVG | |
177 | APIs). It supports Intel 915/945/G33/Q33/Q35/Pineview chips. | |
178 | ||
179 | %description gbm-driver-i915 -l pl.UTF-8 | |
180 | Sterownik i915 dla szkieletu Mesa Graphics Buffer Manager (zarządcy | |
181 | bufora graficznego, wykorzystywanego przez API EGL i OpenVG). | |
182 | Obsługuje układy Intel 915/945/G33/Q33/Q35/Pineview. | |
183 | ||
184 | %package gbm-driver-nouveau | |
185 | Summary: nouveau driver for Mesa GBM framework (used by EGL and OpenVG APIs) | |
186 | Summary(pl.UTF-8): Sterownik nouveau dla szkieletu Mesa GBM (wykorzystywanego przez API EGL i OpenVG) | |
187 | Group: Libraries | |
188 | Requires: %{name}-libEGL = %{version}-%{release} | |
189 | ||
190 | %description gbm-driver-nouveau | |
191 | nouveau driver for Mesa Graphics Buffer Manager (used by EGL and | |
192 | OpenVG APIs). It supports NVidia adapters. | |
193 | ||
194 | %description gbm-driver-nouveau -l pl.UTF-8 | |
195 | Sterownik nouveau dla szkieletu Mesa Graphics Buffer Manager (zarządcy | |
196 | bufora graficznego, wykorzystywanego przez API EGL i OpenVG). | |
197 | Obsługuje karty graficzne firmy NVidia. | |
198 | ||
199 | %package gbm-driver-r300 | |
200 | Summary: r300 driver for Mesa GBM framework (used by EGL and OpenVG APIs) | |
201 | Summary(pl.UTF-8): Sterownik r300 dla szkieletu Mesa GBM (wykorzystywanego przez API EGL i OpenVG) | |
202 | Group: Libraries | |
203 | Requires: %{name}-libEGL = %{version}-%{release} | |
204 | ||
205 | %description gbm-driver-r300 | |
206 | r300 driver for Mesa Graphics Buffer Manager (used by EGL and | |
207 | OpenVG APIs). It supports ATI Radeon adapters based on | |
208 | R300/R400/RS690/R500 chips. | |
209 | ||
210 | %description gbm-driver-r300 -l pl.UTF-8 | |
211 | Sterownik r300 dla szkieletu Mesa Graphics Buffer Manager (zarządcy | |
212 | bufora graficznego, wykorzystywanego przez API EGL i OpenVG). | |
213 | Obsługuje karty graficzne ATI Radeon oparte na układach | |
214 | R300/R400/RS690/R500. | |
215 | ||
216 | %package gbm-driver-r600 | |
217 | Summary: r600 driver for Mesa GBM framework (used by EGL and OpenVG APIs) | |
218 | Summary(pl.UTF-8): Sterownik r600 dla szkieletu Mesa GBM (wykorzystywanego przez API EGL i OpenVG) | |
219 | Group: Libraries | |
220 | Requires: %{name}-libEGL = %{version}-%{release} | |
221 | ||
222 | %description gbm-driver-r600 | |
223 | r600 driver for Mesa Graphics Buffer Manager (used by EGL and | |
224 | OpenVG APIs). It supports ATI Radeon adapters based on R600/R700 | |
225 | chips. | |
226 | ||
227 | %description gbm-driver-r600 -l pl.UTF-8 | |
228 | Sterownik r600 dla szkieletu Mesa Graphics Buffer Manager (zarządcy | |
229 | bufora graficznego, wykorzystywanego przez API EGL i OpenVG). | |
230 | Obsługuje karty graficzne ATI Radeon oparte na układach R600/R700. | |
231 | ||
232 | %package gbm-driver-vmwgfx | |
233 | Summary: vmwgfx driver for Mesa GBM framework (used by EGL and OpenVG APIs) | |
234 | Summary(pl.UTF-8): Sterownik vmwgfx dla szkieletu Mesa GBM (wykorzystywanego przez API EGL i OpenVG) | |
235 | Group: Libraries | |
236 | Requires: %{name}-libEGL = %{version}-%{release} | |
237 | ||
238 | %description gbm-driver-vmwgfx | |
239 | vmwgfx driver for Mesa Graphics Buffer Manager (used by EGL and | |
240 | OpenVG APIs). It supports VMware virtual video adapter. | |
241 | ||
242 | %description gbm-driver-vmwgfx -l pl.UTF-8 | |
243 | Sterownik vmwgfx dla szkieletu Mesa Graphics Buffer Manager (zarządcy | |
244 | bufora graficznego, wykorzystywanego przez API EGL i OpenVG). | |
245 | Obsługuje wirtualną kartę graficzną VMware. | |
246 | ||
247 | %package libGL | |
248 | Summary: Free Mesa3D implementation of libGL OpenGL library | |
249 | Summary(pl.UTF-8): Wolnodostępna implementacja Mesa3D biblioteki libGL ze standardu OpenGL | |
250 | License: MIT | |
251 | Group: X11/Libraries | |
252 | Requires: libdrm >= %{libdrm_ver} | |
253 | Provides: OpenGL = 2.1 | |
254 | Provides: OpenGL-GLX = 1.4 | |
255 | Obsoletes: Mesa | |
256 | Obsoletes: Mesa-dri | |
257 | Obsoletes: X11-OpenGL-libGL < 1:7.0.0 | |
258 | Obsoletes: XFree86-OpenGL-libGL < 1:7.0.0 | |
259 | ||
260 | %description libGL | |
261 | Mesa is a 3-D graphics library with an API which is very similar to | |
262 | that of OpenGL(R). To the extent that Mesa utilizes the OpenGL command | |
263 | syntax or state machine, it is being used with authorization from | |
264 | Silicon Graphics, Inc. However, the author does not possess an OpenGL | |
265 | license from SGI, and makes no claim that Mesa is in any way a | |
266 | compatible replacement for OpenGL or associated with SGI. | |
267 | ||
268 | This package contains libGL which implements OpenGL 1.5 and GLX 1.4 | |
269 | specifications. It uses DRI for rendering. | |
270 | ||
271 | %description libGL -l pl.UTF-8 | |
272 | Mesa jest biblioteką grafiki 3D z API bardzo podobnym do OpenGL(R). Do | |
273 | tego stopnia, że Mesa używa składni i automatu OpenGL jest używana z | |
274 | autoryzacją Silicon Graphics, Inc. Jednak autor nie posiada licencji | |
275 | OpenGL od SGI i nie twierdzi, że Mesa jest kompatybilnym zamiennikiem | |
276 | OpenGL ani powiązana z SGI. | |
277 | ||
278 | Ten pakiet zawiera libGL implementującą specyfikacje OpenGL 1.5 oraz | |
279 | GLX 1.4. Używa DRI do renderowania. | |
280 | ||
281 | %package libGL-devel | |
282 | Summary: Header files for Mesa3D libGL library | |
283 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libGL z projektu Mesa3D | |
284 | License: MIT | |
285 | Group: X11/Development/Libraries | |
286 | # loose dependency on libGL to use with other libGL binaries | |
287 | Requires: OpenGL >= 1.5 | |
288 | Requires: libdrm-devel >= %{libdrm_ver} | |
289 | Requires: xorg-lib-libX11-devel | |
290 | Requires: xorg-lib-libXdamage-devel | |
291 | Requires: xorg-lib-libXext-devel | |
292 | Requires: xorg-lib-libXxf86vm-devel | |
293 | Requires: xorg-proto-dri2proto-devel >= %{dri2proto_ver} | |
294 | Requires: xorg-proto-glproto-devel >= %{glproto_ver} | |
295 | Suggests: OpenGL-doc-man | |
296 | Provides: OpenGL-GLX-devel = 1.4 | |
297 | Provides: OpenGL-devel = 2.1 | |
298 | Obsoletes: Mesa-devel | |
299 | Obsoletes: X11-OpenGL-devel < 1:7.0.0 | |
300 | Obsoletes: X11-OpenGL-devel-base < 1:7.0.0 | |
301 | Obsoletes: XFree86-OpenGL-devel < 1:7.0.0 | |
302 | Obsoletes: XFree86-OpenGL-devel-base < 1:7.0.0 | |
303 | ||
304 | %description libGL-devel | |
305 | Header files for Mesa3D libGL library. | |
306 | ||
307 | %description libGL-devel -l pl.UTF-8 | |
308 | Pliki nagłówkowe biblioteki libGL z projektu Mesa3D. | |
309 | ||
310 | %package libGL-static | |
311 | Summary: Static Mesa3D libGL library | |
312 | Summary(pl.UTF-8): Statyczna biblioteka libGL z projektu Mesa3D | |
313 | License: MIT | |
314 | Group: X11/Development/Libraries | |
315 | Requires: %{name}-libGL-devel = %{version}-%{release} | |
316 | Provides: OpenGL-static = 2.1 | |
317 | Obsoletes: Mesa-static | |
318 | Obsoletes: X11-OpenGL-static < 1:7.0.0 | |
319 | Obsoletes: XFree86-OpenGL-static < 1:7.0.0 | |
320 | ||
321 | %description libGL-static | |
322 | Static Mesa3D libGL library. It uses software renderer. | |
323 | ||
324 | %description libGL-static -l pl.UTF-8 | |
325 | Statyczna biblioteka libGL z projektu Mesa3D. Używa programowego | |
326 | renderingu. | |
327 | ||
328 | %package libGLES | |
329 | Summary: Mesa implementation of GLES (OpenGL ES) libraries | |
330 | Summary(pl.UTF-8): Implementacja Mesa bibliotek GLES (OpenGL ES) | |
331 | Group: Libraries | |
332 | # only for libglapi.so.0 | |
333 | Requires: %{name}-libEGL = %{version}-%{release} | |
334 | ||
335 | %description libGLES | |
336 | This package contains shared libraries of Mesa implementation of GLES | |
337 | (OpenGL ES) - cross-platform API for full-function 2D and 3D graphics | |
338 | on embedded systems. OpenGL ES specification can be found on Khronos | |
339 | Group site: <http://www.khronos.org/opengles/>. Mesa implements OpenGL | |
340 | ES 1.1 and 2.0. | |
341 | ||
342 | %description libGLES -l pl.UTF-8 | |
343 | Ten pakiet zawiera biblioteki współdzielone implementacji Mesa | |
344 | standardu GLES (OpenGL ES) - wieloplatformowego API do w pełni | |
345 | funkcjonalnej grafiki 2D i 3D na systemach wbudowanych. Specyfikację | |
346 | OpenGL ES można znaleźć na stronie Khronos Group: | |
347 | <http://www.khronos.org/opengles/>. Mesa zawiera implementacją OpenGL | |
348 | ES 1.1 i 2.0. | |
349 | ||
350 | %package libGLES-devel | |
351 | Summary: Header files for Mesa GLES libraries | |
352 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Mesa GLES | |
353 | Group: Development/Libraries | |
354 | # EGL for libglapi.so, <KHR/khrplatform.h> always required, <EGL/egl.h> for <GLES/egl.h> | |
355 | Requires: %{name}-libEGL-devel = %{version}-%{release} | |
356 | Requires: %{name}-libGLES = %{version}-%{release} | |
357 | ||
358 | %description libGLES-devel | |
359 | Header files for Mesa GLES libraries. | |
360 | ||
361 | %description libGLES-devel -l pl.UTF-8 | |
362 | Pliki nagłówkowe bibliotek Mesa GLES. | |
363 | ||
364 | %package libGLU | |
365 | Summary: SGI implementation of libGLU OpenGL library | |
366 | Summary(pl.UTF-8): Implementacja SGI biblioteki libGLU ze standardu OpenGL | |
367 | License: SGI Free Software License B v2.0 (MIT-like) | |
368 | Group: Libraries | |
369 | # loose dependency on libGL.so.1 to use with other libGL binaries | |
370 | Requires: OpenGL >= 1.2 | |
371 | Provides: OpenGL-GLU = 1.3 | |
372 | Obsoletes: Mesa-devel | |
373 | Obsoletes: X11-OpenGL-libs < 1:7.0.0 | |
374 | Obsoletes: XFree86-OpenGL-libs < 1:7.0.0 | |
375 | ||
376 | %description libGLU | |
377 | SGI implementation of libGLU OpenGL library. It implements OpenGL GLU | |
378 | 1.3 specifications. | |
379 | ||
380 | %description libGLU -l pl.UTF-8 | |
381 | Implementacja SGI biblioteki libGLU ze standardu OpenGL. Implementuje | |
382 | specyfikację OpenGL GLU 1.3. | |
383 | ||
384 | %package libGLU-devel | |
385 | Summary: Header files for SGI libGLU library | |
386 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SGI libGLU | |
387 | License: SGI Free Software License B v2.0 (MIT-like) | |
388 | Group: Development/Libraries | |
389 | Requires: %{name}-libGLU = %{version}-%{release} | |
390 | Requires: OpenGL-devel >= 1.2 | |
391 | Requires: libstdc++-devel | |
392 | Provides: OpenGL-GLU-devel = 1.3 | |
393 | ||
394 | %description libGLU-devel | |
395 | Header files for SGI libGLU library. | |
396 | ||
397 | %description libGLU-devel -l pl.UTF-8 | |
398 | Pliki nagłówkowe biblioteki SGI libGLU. | |
399 | ||
400 | %package libGLU-static | |
401 | Summary: Static SGI libGLU library | |
402 | Summary(pl.UTF-8): Statyczna biblioteka SGI libGLU | |
403 | License: SGI Free Software License B v2.0 (MIT-like) | |
404 | Group: Development/Libraries | |
405 | Requires: %{name}-libGLU-devel = %{version}-%{release} | |
406 | Provides: OpenGL-GLU-static = 1.3 | |
407 | ||
408 | %description libGLU-static | |
409 | Static SGI libGLU library. | |
410 | ||
411 | %description libGLU-static -l pl.UTF-8 | |
412 | Statyczna biblioteka SGI libGLU. | |
413 | ||
414 | %package libOSMesa | |
415 | Summary: OSMesa (off-screen renderer) library | |
416 | Summary(pl.UTF-8): Biblioteka OSMesa (renderująca bitmapy w pamięci) | |
417 | License: MIT | |
418 | Group: Libraries | |
419 | # doesn't require base | |
420 | ||
421 | %description libOSMesa | |
422 | OSMesa (off-screen renderer) library. | |
423 | ||
424 | %description libOSMesa -l pl.UTF-8 | |
425 | Biblioteka OSMesa (renderująca bitmapy w pamięci). | |
426 | ||
427 | %package libOSMesa-devel | |
428 | Summary: Header file for OSMesa (off-screen renderer) library | |
429 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki OSMesa (renderującej bitmapy w pamięci) | |
430 | License: MIT | |
431 | Group: Development/Libraries | |
432 | Requires: %{name}-libOSMesa = %{version}-%{release} | |
433 | # for <GL/gl.h> only | |
434 | Requires: OpenGL-devel | |
435 | Requires: libselinux-devel | |
436 | ||
437 | %description libOSMesa-devel | |
438 | Header file for OSMesa (off-screen renderer) library. | |
439 | ||
440 | %description libOSMesa-devel -l pl.UTF-8 | |
441 | Plik nagłówkowy biblioteki OSMesa (renderującej bitmapy w pamięci). | |
442 | ||
443 | %package libOSMesa-static | |
444 | Summary: Static OSMesa (off-screen renderer) library | |
445 | Summary(pl.UTF-8): Biblioteka statyczna OSMesa (renderująca bitmapy w pamięci) | |
446 | License: MIT | |
447 | Group: Development/Libraries | |
448 | Requires: %{name}-libOSMesa-devel = %{version}-%{release} | |
449 | # this static build of OSMesa needs static non-dri Mesa implementation | |
450 | Requires: %{name}-libGL-static = %{version}-%{release} | |
451 | ||
452 | %description libOSMesa-static | |
453 | Static OSMesa (off-screen renderer) library. | |
454 | ||
455 | %description libOSMesa-static -l pl.UTF-8 | |
456 | Biblioteka statyczna OSMesa (renderująca bitmapy w pamięci). | |
457 | ||
458 | %package libOpenVG | |
459 | Summary: Mesa implementation of OpenVG (Vector Graphics Accelleration) API | |
460 | Summary(pl.UTF-8): Implementacja Mesa API OpenVG (akceleracji grafiki wektorowej) | |
461 | License: MIT | |
462 | Group: Libraries | |
463 | # doesn't require base | |
464 | ||
465 | %description libOpenVG | |
466 | This package contains Mesa implementation of OpenVG - cross-platform | |
467 | API that provides a low-level hardware acceleration interface for | |
468 | vector graphics libraries such as Flash and SVG. OpenVG specification | |
469 | can be found on Khronos Group site: <http://www.khronos.org/openvg/>. | |
470 | Mesa implements OpenVG 1.1. | |
471 | ||
472 | %description libOpenVG -l pl.UTF-8 | |
473 | Ten pakiet zawiera implementację Mesa standardu OpenVG - | |
474 | wieloplatfomowego API zapewniającego niskopoziomowy interfejs | |
475 | akceleracji sprzętowej dla bibliotek grafiki wektorowej, takiej jak | |
476 | Flash czy SVG. Specyfikację OpenVG można znaleźć na stronie Khronos | |
477 | Group: <http://www.khronos.org/openvg/>. Mesa zawiera implementację | |
478 | OpenVG w wersji 1.1. | |
479 | ||
480 | %package libOpenVG-devel | |
481 | Summary: Header file for Mesa OpenVG library | |
482 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki Mesa OpenVG | |
483 | License: MIT | |
484 | Group: Development/Libraries | |
485 | # EGL headers for <KHR/khrplatform.h> | |
486 | Requires: %{name}-libEGL-devel = %{version}-%{release} | |
487 | Requires: %{name}-libOpenVG = %{version}-%{release} | |
488 | ||
489 | %description libOpenVG-devel | |
490 | Header file for Mesa OpenVG library. | |
491 | ||
492 | %description libOpenVG-devel -l pl.UTF-8 | |
493 | Plik nagłówkowy biblioteki Mesa OpenVG. | |
494 | ||
495 | %package libXvMC-nouveau | |
496 | Summary: Mesa implementation of XvMC API for NVidia adapters | |
497 | Summary(pl.UTF-8): Implementacja Mesa API XvMC dla kart NVidia | |
498 | License: MIT | |
499 | Group: Libraries | |
500 | Requires: libdrm >= %{libdrm_ver} | |
501 | Conflicts: Mesa-libXvMC | |
502 | ||
503 | %description libXvMC-nouveau | |
504 | Mesa implementation of XvMC API for NVidia adapters (NV40-NV96, NVa0). | |
505 | ||
506 | %description libXvMC-nouveau -l pl.UTF-8 | |
507 | Implementacja Mesa API XvMC dla kart NVidia (NV40-NV96, NVa0). | |
508 | ||
509 | %package libXvMC-r300 | |
510 | Summary: Mesa implementation of XvMC API for ATI Radeon R300 series adapters | |
511 | Summary(pl.UTF-8): Implementacja Mesa API XvMC dla kart ATI Radeon z serii R300 | |
512 | License: MIT | |
513 | Group: Libraries | |
514 | Requires: libdrm >= %{libdrm_ver} | |
515 | Conflicts: Mesa-libXvMC | |
516 | ||
517 | %description libXvMC-r300 | |
518 | Mesa implementation of XvMC API for ATI Radeon adapters based on | |
519 | R300/R400/RS690/R500 chips. | |
520 | ||
521 | %description libXvMC-r300 -l pl.UTF-8 | |
522 | Implementacja Mesa API XvMC dla kart ATI Radeon opartych na układach | |
523 | R300/R400/RS690/R500. | |
524 | ||
525 | %package libXvMC-r600 | |
526 | Summary: Mesa implementation of XvMC API for ATI Radeon R600 series adapters | |
527 | Summary(pl.UTF-8): Implementacja Mesa API XvMC dla kart ATI Radeon z serii R600 | |
528 | License: MIT | |
529 | Group: Libraries | |
530 | Requires: libdrm >= %{libdrm_ver} | |
531 | Conflicts: Mesa-libXvMC | |
532 | ||
533 | %description libXvMC-r600 | |
534 | Mesa implementation of XvMC API for ATI Radeon adapters based on | |
535 | R600/R700 chips. | |
536 | ||
537 | %description libXvMC-r600 -l pl.UTF-8 | |
538 | Implementacja Mesa API XvMC dla kart ATI Radeon opartych na układach | |
539 | R600/R700. | |
540 | ||
541 | %package libXvMC-softpipe | |
542 | Summary: Mesa softpipe implementation of XvMC API | |
543 | Summary(pl.UTF-8): Implementacja Mesa softpipe API XvMC | |
544 | License: MIT | |
545 | Group: Libraries | |
546 | Requires: libdrm >= %{libdrm_ver} | |
547 | Conflicts: Mesa-libXvMC | |
548 | ||
549 | %description libXvMC-softpipe | |
550 | Mesa softpipe implementation of XvMC API. | |
551 | ||
552 | %description libXvMC-softpipe -l pl.UTF-8 | |
553 | Implementacja Mesa softpipe API XvMC. | |
554 | ||
555 | %package dri-driver-ati-radeon-R100 | |
556 | Summary: X.org DRI driver for ATI R100 card family | |
557 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R100 | |
558 | License: MIT | |
559 | Group: X11/Libraries | |
560 | Requires: xorg-driver-video-ati | |
561 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
562 | Requires: xorg-xserver-server >= %{xserver_ver} | |
563 | Obsoletes: X11-driver-radeon-dri < 1:7.0.0 | |
564 | ||
565 | %description dri-driver-ati-radeon-R100 | |
566 | X.org DRI driver for ATI R100 card family (Radeon 7000-7500). | |
567 | ||
568 | %description dri-driver-ati-radeon-R100 -l pl.UTF-8 | |
569 | Sterownik X.org DRI dla rodziny kart ATI R100 (Radeon 7000-7500). | |
570 | ||
571 | %package dri-driver-ati-radeon-R200 | |
572 | Summary: X.org DRI driver for ATI R200 card family | |
573 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R200 | |
574 | License: MIT | |
575 | Group: X11/Libraries | |
576 | Requires: xorg-driver-video-ati | |
577 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
578 | Requires: xorg-xserver-server >= %{xserver_ver} | |
579 | Obsoletes: X11-driver-radeon-dri < 1:7.0.0 | |
580 | ||
581 | %description dri-driver-ati-radeon-R200 | |
582 | X.org DRI driver for ATI R200 card family (Radeon 8500-92xx) | |
583 | ||
584 | %description dri-driver-ati-radeon-R200 -l pl.UTF-8 | |
585 | Sterownik X.org DRI dla rodziny kart ATI R200 (Radeon 8500-92xx). | |
586 | ||
587 | %package dri-driver-ati-radeon-R300 | |
588 | Summary: X.org DRI driver for ATI R300 card family | |
589 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R300 | |
590 | License: MIT | |
591 | Group: X11/Libraries | |
592 | Requires: xorg-driver-video-ati | |
593 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
594 | Requires: xorg-xserver-server >= %{xserver_ver} | |
595 | Obsoletes: X11-driver-radeon-dri < 1:7.0.0 | |
596 | ||
597 | %description dri-driver-ati-radeon-R300 | |
598 | X.org DRI driver for ATI R300/R400/RS690/R500 card family. | |
599 | ||
600 | %description dri-driver-ati-radeon-R300 -l pl.UTF-8 | |
601 | Sterownik X.org DRI dla rodziny kart ATI R300/R400/RS690/R500. | |
602 | ||
603 | %package dri-driver-ati-radeon-R600 | |
604 | Summary: X.org DRI driver for ATI R600 card family | |
605 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R600 | |
606 | License: MIT | |
607 | Group: X11/Libraries | |
608 | Requires: radeon-ucode | |
609 | Requires: xorg-driver-video-ati | |
610 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
611 | Requires: xorg-xserver-server >= %{xserver_ver} | |
612 | ||
613 | %description dri-driver-ati-radeon-R600 | |
614 | X.org DRI driver for ATI R600/R700 card family. | |
615 | ||
616 | %description dri-driver-ati-radeon-R600 -l pl.UTF-8 | |
617 | Sterownik X.org DRI dla rodziny kart ATI R600/R700. | |
618 | ||
619 | %package dri-driver-intel-i915 | |
620 | Summary: X.org DRI driver for Intel i915 card family | |
621 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart Intel i915 | |
622 | License: MIT | |
623 | Group: X11/Libraries | |
624 | Requires: xorg-driver-video-intel | |
625 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
626 | Requires: xorg-xserver-server >= %{xserver_ver} | |
627 | Obsoletes: Mesa-dri-driver-intel-i830 | |
628 | Obsoletes: X11-driver-i810-dri < 1:7.0.0 | |
629 | ||
630 | %description dri-driver-intel-i915 | |
631 | X.org DRI driver for Intel i915 card family (915, 945, G33, Q33, Q35, | |
632 | Pineview). | |
633 | ||
634 | %description dri-driver-intel-i915 -l pl.UTF-8 | |
635 | Sterownik X.org DRI dla rodziny kart Intel i915 (915, 945, G33, Q33, | |
636 | Q35, Pineview). | |
637 | ||
638 | %package dri-driver-intel-i965 | |
639 | Summary: X.org DRI driver for Intel i965 card family | |
640 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart Intel i965 | |
641 | License: MIT | |
642 | Group: X11/Libraries | |
643 | Requires: xorg-driver-video-intel | |
644 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
645 | Requires: xorg-xserver-server >= %{xserver_ver} | |
646 | Obsoletes: Mesa-dri-driver-intel-i830 | |
647 | Obsoletes: X11-driver-i810-dri < 1:7.0.0 | |
648 | ||
649 | %description dri-driver-intel-i965 | |
650 | X.org DRI driver for Intel i965 card family (946GZ, 965G, 965Q, 965GM, | |
651 | 965GME, GM45, G41, B43, Q45, G45); | |
652 | ||
653 | %description dri-driver-intel-i965 -l pl.UTF-8 | |
654 | Sterownik X.org DRI dla rodziny kart Intel i965 (946GZ, 965G, 965Q, | |
655 | 965GM, 965GME, GM45, G41, B43, Q45, G45). | |
656 | ||
657 | %package dri-driver-nouveau | |
658 | Summary: X.org DRI driver for NVIDIA card family | |
659 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart NVIDIA | |
660 | License: MIT | |
661 | Group: X11/Libraries | |
662 | Requires: xorg-driver-video-nouveau | |
663 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
664 | Requires: xorg-xserver-server >= %{xserver_ver} | |
665 | ||
666 | %description dri-driver-nouveau | |
667 | X.org DRI drivers for NVIDIA card family. | |
668 | ||
669 | %description dri-driver-nouveau -l pl.UTF-8 | |
670 | Sterowniki X.org DRI dla rodziny kart NVIDIA. | |
671 | ||
672 | %package dri-driver-swrast | |
673 | Summary: X.org DRI software rasterizer driver | |
674 | Summary(pl.UTF-8): Sterownik X.org DRI obsługujący rysowanie programowe | |
675 | License: MIT | |
676 | Group: X11/Libraries | |
677 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
678 | Requires: xorg-xserver-server >= %{xserver_ver} | |
679 | ||
680 | %description dri-driver-swrast | |
681 | X.org DRI software rasterizer driver. | |
682 | ||
683 | %description dri-driver-swrast -l pl.UTF-8 | |
684 | Sterownik X.org DRI obsługujący rysowanie programowe. | |
685 | ||
686 | %package dri-driver-vmwgfx | |
687 | Summary: X.org DRI driver for VMware | |
688 | Summary(pl.UTF-8): Sterownik X.org DRI dla VMware | |
689 | License: MIT | |
690 | Group: X11/Libraries | |
691 | Requires: xorg-driver-video-vmware | |
692 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
693 | Requires: xorg-xserver-server >= %{xserver_ver} | |
694 | ||
695 | %description dri-driver-vmwgfx | |
696 | X.org DRI driver for VMWare. | |
697 | ||
698 | %description dri-driver-vmwgfx -l pl.UTF-8 | |
699 | Sterownik X.org DRI dla VMware. | |
700 | ||
701 | %package -n libvdpau-driver-mesa-nouveau | |
702 | Summary: Mesa nouveau driver for the vdpau API | |
703 | Summary(pl.UTF-8): Sterownik Mesa nouveau dla API vdpau | |
704 | License: MIT | |
705 | Group: X11/Libraries | |
706 | Requires: libdrm >= %{libdrm_ver} | |
707 | Requires: libvdpau >= 0.4.1 | |
708 | Conflicts: libvdpau-driver-mesa | |
709 | ||
710 | %description -n libvdpau-driver-mesa-nouveau | |
711 | Mesa nouveau driver for the vdpau API. It supports NVidia adapters | |
712 | (NV40-NV96, NVa0). | |
713 | ||
714 | %description -n libvdpau-driver-mesa-nouveau -l pl.UTF-8 | |
715 | Sterownik Mesa nouveau dla API vdpau. Obsługuje karty NVidia | |
716 | (NV40-NV96, NVa0). | |
717 | ||
718 | %package -n libvdpau-driver-mesa-r300 | |
719 | Summary: Mesa r300 driver for the vdpau API | |
720 | Summary(pl.UTF-8): Sterownik Mesa r300 dla API vdpau | |
721 | License: MIT | |
722 | Group: X11/Libraries | |
723 | Requires: libdrm >= %{libdrm_ver} | |
724 | Requires: libvdpau >= 0.4.1 | |
725 | Conflicts: libvdpau-driver-mesa | |
726 | ||
727 | %description -n libvdpau-driver-mesa-r300 | |
728 | Mesa r300 driver for the vdpau API. It supports ATI Radeon adapters | |
729 | based on R300/R400/RS690/R500 chips. | |
730 | ||
731 | %description -n libvdpau-driver-mesa-r300 -l pl.UTF-8 | |
732 | Sterownik Mesa r300 dla API vdpau. Obsługuje karty ATI Radeon oparte | |
733 | na układach R300/R400/RS690/R500. | |
734 | ||
735 | %package -n libvdpau-driver-mesa-r600 | |
736 | Summary: Mesa r600 driver for the vdpau API | |
737 | Summary(pl.UTF-8): Sterownik Mesa r600 dla API vdpau | |
738 | License: MIT | |
739 | Group: X11/Libraries | |
740 | Requires: libdrm >= %{libdrm_ver} | |
741 | Requires: libvdpau >= 0.4.1 | |
742 | Conflicts: libvdpau-driver-mesa | |
743 | ||
744 | %description -n libvdpau-driver-mesa-r600 | |
745 | Mesa r600 driver for the vdpau API. It supports ATI Radeon adapters | |
746 | based on R600/R700 chips. | |
747 | ||
748 | %description -n libvdpau-driver-mesa-r600 -l pl.UTF-8 | |
749 | Sterownik Mesa r600 dla API vdpau. Obsługuje karty ATI Radeon oparte | |
750 | na układach R600/R700. | |
751 | ||
752 | %package -n libvdpau-driver-mesa-softpipe | |
753 | Summary: Mesa softpipe driver for the vdpau API | |
754 | Summary(pl.UTF-8): Sterownik Mesa softpipe dla API vdpau | |
755 | License: MIT | |
756 | Group: X11/Libraries | |
757 | Requires: libdrm >= %{libdrm_ver} | |
758 | Requires: libvdpau >= 0.4.1 | |
759 | Conflicts: libvdpau-driver-mesa | |
760 | ||
761 | %description -n libvdpau-driver-mesa-softpipe | |
762 | Mesa softpipe driver for the vdpau API. | |
763 | ||
764 | %description -n libvdpau-driver-mesa-softpipe -l pl.UTF-8 | |
765 | Sterownik Mesa softpipe dla API vdpau. | |
766 | ||
767 | %prep | |
768 | %setup -q | |
769 | %patch0 -p0 | |
770 | ||
771 | %build | |
772 | %{__aclocal} | |
773 | %{__autoconf} | |
774 | ||
775 | dri_drivers="r200 radeon \ | |
776 | %if %{without gallium_intel} | |
777 | i915 \ | |
778 | %endif | |
779 | i965 | |
780 | %ifarch sparc sparcv9 sparc64 | |
781 | ffb \ | |
782 | %endif | |
783 | swrast" | |
784 | ||
785 | dri_drivers=$(echo $dri_drivers | xargs | tr ' ' ',') | |
786 | ||
787 | gallium_drivers="svga swrast \ | |
788 | %if %{with gallium_intel} | |
789 | i915 \ | |
790 | %endif | |
791 | r300 \ | |
792 | r600 \ | |
793 | %if %{with gallium_nouveau} | |
794 | nouveau \ | |
795 | %endif | |
796 | " | |
797 | ||
798 | gallium_drivers=$(echo $gallium_drivers | xargs | tr ' ' ',') | |
799 | ||
800 | common_flags="\ | |
801 | --enable-shared \ | |
802 | --enable-glx-tls \ | |
803 | --enable-pic \ | |
804 | --enable-selinux \ | |
805 | %{?with_static_libs:--enable-static} \ | |
806 | " | |
807 | ||
808 | osmesa_common_flags="\ | |
809 | --with-driver=osmesa \ | |
810 | --disable-asm \ | |
811 | --disable-egl \ | |
812 | --disable-glu" | |
813 | ||
814 | %if %{with osmesa} | |
815 | %configure $common_flags $osmesa_common_flags \ | |
816 | --with-osmesa-bits=8 | |
817 | %{__make} | |
818 | %{__make} -C src/mesa osmesa.pc | |
819 | mv %{_lib} osmesa8 | |
820 | cp -p src/mesa/osmesa.pc osmesa8 | |
821 | %{__make} clean | |
822 | %endif | |
823 | ||
824 | %configure $common_flags \ | |
825 | %{__enable gbm} \ | |
826 | --enable-shared-glapi \ | |
827 | %if %{with egl} | |
828 | --enable-egl \ | |
829 | --enable-gles1 \ | |
830 | --enable-gles2 \ | |
831 | %endif | |
832 | %if %{with gallium} | |
833 | --enable-gallium-llvm \ | |
834 | %{__enable egl gallium-egl} \ | |
835 | %{__enable gbm gallium-gbm} \ | |
836 | --enable-openvg \ | |
837 | --enable-vdpau \ | |
838 | --enable-xvmc \ | |
839 | --with-gallium-drivers=${gallium_drivers} \ | |
840 | %else | |
841 | --without-gallium-drivers \ | |
842 | %endif | |
843 | --with-driver=dri \ | |
844 | --with-dri-drivers=${dri_drivers} \ | |
845 | --with-dri-driverdir=%{_libdir}/xorg/modules/dri | |
846 | ||
847 | %{__make} | |
848 | ||
849 | %install | |
850 | rm -rf $RPM_BUILD_ROOT | |
851 | ||
852 | %{__make} install \ | |
853 | DESTDIR=$RPM_BUILD_ROOT | |
854 | ||
855 | %if %{with osmesa} | |
856 | cp -dp osmesa8/libOSMesa* $RPM_BUILD_ROOT%{_libdir} | |
857 | cp -p osmesa8/osmesa.pc $RPM_BUILD_ROOT%{_pkgconfigdir} | |
858 | %endif | |
859 | ||
860 | # strip out undesirable headers | |
861 | %{__rm} $RPM_BUILD_ROOT%{_includedir}/GL/{vms_x_fix,wglext,wmesa}.h | |
862 | # dlopened by soname | |
863 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libXvMC*.so | |
864 | ||
865 | # remove "OS ABI: Linux 2.4.20" tag, so private copies (nvidia or fglrx), | |
866 | # set up via /etc/ld.so.conf.d/*.conf will be preferred over this | |
867 | strip -R .note.ABI-tag $RPM_BUILD_ROOT%{_libdir}/libGL.so.*.* | |
868 | ||
869 | %clean | |
870 | rm -rf $RPM_BUILD_ROOT | |
871 | ||
872 | %post libEGL -p /sbin/ldconfig | |
873 | %postun libEGL -p /sbin/ldconfig | |
874 | ||
875 | %post libGL -p /sbin/ldconfig | |
876 | %postun libGL -p /sbin/ldconfig | |
877 | ||
878 | %post libGLES -p /sbin/ldconfig | |
879 | %postun libGLES -p /sbin/ldconfig | |
880 | ||
881 | %post libGLU -p /sbin/ldconfig | |
882 | %postun libGLU -p /sbin/ldconfig | |
883 | ||
884 | %post libOSMesa -p /sbin/ldconfig | |
885 | %postun libOSMesa -p /sbin/ldconfig | |
886 | ||
887 | %post libOpenVG -p /sbin/ldconfig | |
888 | %postun libOpenVG -p /sbin/ldconfig | |
889 | ||
890 | %post libXvMC-nouveau -p /sbin/ldconfig | |
891 | %postun libXvMC-nouveau -p /sbin/ldconfig | |
892 | %post libXvMC-r300 -p /sbin/ldconfig | |
893 | %postun libXvMC-r300 -p /sbin/ldconfig | |
894 | %post libXvMC-r600 -p /sbin/ldconfig | |
895 | %postun libXvMC-r600 -p /sbin/ldconfig | |
896 | %post libXvMC-softpipe -p /sbin/ldconfig | |
897 | %postun libXvMC-softpipe -p /sbin/ldconfig | |
898 | ||
899 | %if %{with egl} | |
900 | %files libEGL | |
901 | %defattr(644,root,root,755) | |
902 | %attr(755,root,root) %{_libdir}/libEGL.so.*.* | |
903 | %attr(755,root,root) %ghost %{_libdir}/libEGL.so.1 | |
904 | %attr(755,root,root) %{_libdir}/libglapi.so.*.* | |
905 | %attr(755,root,root) %ghost %{_libdir}/libglapi.so.0 | |
906 | %if %{with gbm} | |
907 | %attr(755,root,root) %{_libdir}/libgbm.so.*.* | |
908 | %attr(755,root,root) %ghost %{_libdir}/libgbm.so.1 | |
909 | %endif | |
910 | %if %{with gallium} | |
911 | %dir %{_libdir}/egl | |
912 | %attr(755,root,root) %{_libdir}/egl/egl_gallium.so | |
913 | %if %{with gbm} | |
914 | %dir %{_libdir}/gbm | |
915 | %attr(755,root,root) %{_libdir}/gbm/gbm_gallium_drm.so | |
916 | %endif | |
917 | %endif | |
918 | ||
919 | %files libEGL-devel | |
920 | %defattr(644,root,root,755) | |
921 | %attr(755,root,root) %{_libdir}/libEGL.so | |
922 | %attr(755,root,root) %{_libdir}/libglapi.so | |
923 | %dir %{_includedir}/EGL | |
924 | %{_includedir}/EGL/egl.h | |
925 | %{_includedir}/EGL/eglext.h | |
926 | %{_includedir}/EGL/eglmesaext.h | |
927 | %{_includedir}/EGL/eglplatform.h | |
928 | %dir %{_includedir}/KHR | |
929 | %{_includedir}/KHR/khrplatform.h | |
930 | %{_pkgconfigdir}/egl.pc | |
931 | %if %{with gbm} | |
932 | %attr(755,root,root) %{_libdir}/libgbm.so | |
933 | %{_includedir}/gbm.h | |
934 | %{_pkgconfigdir}/gbm.pc | |
935 | %endif | |
936 | ||
937 | %if %{with static_libs} | |
938 | %files libEGL-static | |
939 | %defattr(644,root,root,755) | |
940 | %{_libdir}/libEGL.a | |
941 | %endif | |
942 | %endif | |
943 | ||
944 | %if %{with gallium} | |
945 | %if %{with gallium_intel} | |
946 | %files gbm-driver-i915 | |
947 | %defattr(644,root,root,755) | |
948 | %attr(755,root,root) %{_libdir}/gbm/pipe_i915.so | |
949 | %endif | |
950 | ||
951 | %if %{with gallium_nouveau} | |
952 | %files gbm-driver-nouveau | |
953 | %defattr(644,root,root,755) | |
954 | %attr(755,root,root) %{_libdir}/gbm/pipe_nouveau.so | |
955 | %endif | |
956 | ||
957 | %files gbm-driver-r300 | |
958 | %defattr(644,root,root,755) | |
959 | %attr(755,root,root) %{_libdir}/gbm/pipe_r300.so | |
960 | ||
961 | %files gbm-driver-r600 | |
962 | %defattr(644,root,root,755) | |
963 | %attr(755,root,root) %{_libdir}/gbm/pipe_r600.so | |
964 | ||
965 | %files gbm-driver-vmwgfx | |
966 | %defattr(644,root,root,755) | |
967 | %attr(755,root,root) %{_libdir}/gbm/pipe_vmwgfx.so | |
968 | %endif | |
969 | ||
970 | %files libGL | |
971 | %defattr(644,root,root,755) | |
972 | %doc docs/{*.html,README.{MITS,QUAKE,THREADS},RELNOTES*} | |
973 | %attr(755,root,root) %{_libdir}/libGL.so.*.* | |
974 | %attr(755,root,root) %ghost %{_libdir}/libGL.so.1 | |
975 | # symlink for binary apps which fail to conform Linux OpenGL ABI | |
976 | # (and dlopen libGL.so instead of libGL.so.1; the same does Mesa libEGL) | |
977 | %attr(755,root,root) %{_libdir}/libGL.so | |
978 | ||
979 | %files libGL-devel | |
980 | %defattr(644,root,root,755) | |
981 | %doc docs/*.spec | |
982 | %dir %{_includedir}/GL | |
983 | %{_includedir}/GL/gl.h | |
984 | %{_includedir}/GL/glext.h | |
985 | %{_includedir}/GL/gl_mangle.h | |
986 | %{_includedir}/GL/glx.h | |
987 | %{_includedir}/GL/glxext.h | |
988 | %{_includedir}/GL/glx_mangle.h | |
989 | %dir %{_includedir}/GL/internal | |
990 | %{_includedir}/GL/internal/dri_interface.h | |
991 | %{_pkgconfigdir}/dri.pc | |
992 | %{_pkgconfigdir}/gl.pc | |
993 | ||
994 | %if %{with static_libs} | |
995 | %files libGL-static | |
996 | %defattr(644,root,root,755) | |
997 | %{_libdir}/libGL.a | |
998 | %endif | |
999 | ||
1000 | %files libGLES | |
1001 | %defattr(644,root,root,755) | |
1002 | %attr(755,root,root) %{_libdir}/libGLESv1_CM.so.*.*.* | |
1003 | %attr(755,root,root) %ghost %{_libdir}/libGLESv1_CM.so.1 | |
1004 | %attr(755,root,root) %{_libdir}/libGLESv2.so.*.* | |
1005 | %attr(755,root,root) %ghost %{_libdir}/libGLESv2.so.2 | |
1006 | ||
1007 | %files libGLES-devel | |
1008 | %defattr(644,root,root,755) | |
1009 | %attr(755,root,root) %{_libdir}/libGLESv1_CM.so | |
1010 | %attr(755,root,root) %{_libdir}/libGLESv2.so | |
1011 | %{_includedir}/GLES | |
1012 | %{_includedir}/GLES2 | |
1013 | %{_pkgconfigdir}/glesv1_cm.pc | |
1014 | %{_pkgconfigdir}/glesv2.pc | |
1015 | ||
1016 | %files libGLU | |
1017 | %defattr(644,root,root,755) | |
1018 | %attr(755,root,root) %{_libdir}/libGLU.so.*.* | |
1019 | %attr(755,root,root) %ghost %{_libdir}/libGLU.so.1 | |
1020 | ||
1021 | %files libGLU-devel | |
1022 | %defattr(644,root,root,755) | |
1023 | %attr(755,root,root) %{_libdir}/libGLU.so | |
1024 | %{_includedir}/GL/glu.h | |
1025 | %{_includedir}/GL/glu_mangle.h | |
1026 | %{_pkgconfigdir}/glu.pc | |
1027 | ||
1028 | %if %{with static_libs} | |
1029 | %files libGLU-static | |
1030 | %defattr(644,root,root,755) | |
1031 | %{_libdir}/libGLU.a | |
1032 | %endif | |
1033 | ||
1034 | %if %{with osmesa} | |
1035 | %files libOSMesa | |
1036 | %defattr(644,root,root,755) | |
1037 | %attr(755,root,root) %{_libdir}/libOSMesa.so.*.* | |
1038 | %attr(755,root,root) %ghost %{_libdir}/libOSMesa.so.8 | |
1039 | ||
1040 | %files libOSMesa-devel | |
1041 | %defattr(644,root,root,755) | |
1042 | %attr(755,root,root) %{_libdir}/libOSMesa.so | |
1043 | %{_includedir}/GL/osmesa.h | |
1044 | %{_pkgconfigdir}/osmesa.pc | |
1045 | ||
1046 | %if %{with static_libs} | |
1047 | %files libOSMesa-static | |
1048 | %defattr(644,root,root,755) | |
1049 | %{_libdir}/libOSMesa.a | |
1050 | %endif | |
1051 | %endif | |
1052 | ||
1053 | %if %{with gallium} | |
1054 | %files libOpenVG | |
1055 | %defattr(644,root,root,755) | |
1056 | %attr(755,root,root) %{_libdir}/libOpenVG.so.*.*.* | |
1057 | %attr(755,root,root) %ghost %{_libdir}/libOpenVG.so.1 | |
1058 | ||
1059 | %files libOpenVG-devel | |
1060 | %defattr(644,root,root,755) | |
1061 | %attr(755,root,root) %{_libdir}/libOpenVG.so | |
1062 | %{_includedir}/VG | |
1063 | %{_pkgconfigdir}/vg.pc | |
1064 | %endif | |
1065 | ||
1066 | %if %{with gallium} | |
1067 | %if %{with gallium_nouveau} | |
1068 | %files libXvMC-nouveau | |
1069 | %defattr(644,root,root,755) | |
1070 | %attr(755,root,root) %{_libdir}/libXvMCnouveau.so.1.0 | |
1071 | %attr(755,root,root) %ghost %{_libdir}/libXvMCnouveau.so.1 | |
1072 | %endif | |
1073 | ||
1074 | %files libXvMC-r300 | |
1075 | %defattr(644,root,root,755) | |
1076 | %attr(755,root,root) %{_libdir}/libXvMCr300.so.1.0 | |
1077 | %attr(755,root,root) %ghost %{_libdir}/libXvMCr300.so.1 | |
1078 | ||
1079 | %files libXvMC-r600 | |
1080 | %defattr(644,root,root,755) | |
1081 | %attr(755,root,root) %{_libdir}/libXvMCr600.so.1.0 | |
1082 | %attr(755,root,root) %ghost %{_libdir}/libXvMCr600.so.1 | |
1083 | ||
1084 | %files libXvMC-softpipe | |
1085 | %defattr(644,root,root,755) | |
1086 | %attr(755,root,root) %{_libdir}/libXvMCsoftpipe.so.1.0 | |
1087 | %attr(755,root,root) %ghost %{_libdir}/libXvMCsoftpipe.so.1 | |
1088 | %endif | |
1089 | ||
1090 | %files dri-driver-ati-radeon-R100 | |
1091 | %defattr(644,root,root,755) | |
1092 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/radeon_dri.so | |
1093 | ||
1094 | %files dri-driver-ati-radeon-R200 | |
1095 | %defattr(644,root,root,755) | |
1096 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/r200_dri.so | |
1097 | ||
1098 | %if %{with gallium} | |
1099 | %files dri-driver-ati-radeon-R300 | |
1100 | %defattr(644,root,root,755) | |
1101 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/r300_dri.so | |
1102 | ||
1103 | %files dri-driver-ati-radeon-R600 | |
1104 | %defattr(644,root,root,755) | |
1105 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/r600_dri.so | |
1106 | ||
1107 | %files dri-driver-intel-i915 | |
1108 | %defattr(644,root,root,755) | |
1109 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/i915_dri.so | |
1110 | ||
1111 | %files dri-driver-intel-i965 | |
1112 | %defattr(644,root,root,755) | |
1113 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/i965_dri.so | |
1114 | ||
1115 | %if %{with gallium_nouveau} | |
1116 | %files dri-driver-nouveau | |
1117 | %defattr(644,root,root,755) | |
1118 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/nouveau_dri.so | |
1119 | %endif | |
1120 | %endif | |
1121 | ||
1122 | %files dri-driver-swrast | |
1123 | %defattr(644,root,root,755) | |
1124 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/swrast_dri.so | |
1125 | ||
1126 | %if %{with gallium} | |
1127 | %files dri-driver-vmwgfx | |
1128 | %defattr(644,root,root,755) | |
1129 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/vmwgfx_dri.so | |
1130 | %endif | |
1131 | ||
1132 | %if %{with gallium} | |
1133 | # ldconfig is not used in vdpau tree, so package all symlinks | |
1134 | %if %{with gallium_nouveau} | |
1135 | %files -n libvdpau-driver-mesa-nouveau | |
1136 | %defattr(644,root,root,755) | |
1137 | %attr(755,root,root) %{_libdir}/vdpau/libvdpau_nouveau.so.1.0 | |
1138 | %attr(755,root,root) %{_libdir}/vdpau/libvdpau_nouveau.so.1 | |
1139 | %attr(755,root,root) %{_libdir}/vdpau/libvdpau_nouveau.so | |
1140 | %endif | |
1141 | ||
1142 | %files -n libvdpau-driver-mesa-r300 | |
1143 | %defattr(644,root,root,755) | |
1144 | %attr(755,root,root) %{_libdir}/vdpau/libvdpau_r300.so.1.0 | |
1145 | %attr(755,root,root) %{_libdir}/vdpau/libvdpau_r300.so.1 | |
1146 | %attr(755,root,root) %{_libdir}/vdpau/libvdpau_r300.so | |
1147 | ||
1148 | %files -n libvdpau-driver-mesa-r600 | |
1149 | %defattr(644,root,root,755) | |
1150 | %attr(755,root,root) %{_libdir}/vdpau/libvdpau_r600.so.1.0 | |
1151 | %attr(755,root,root) %{_libdir}/vdpau/libvdpau_r600.so.1 | |
1152 | %attr(755,root,root) %{_libdir}/vdpau/libvdpau_r600.so | |
1153 | ||
1154 | %files -n libvdpau-driver-mesa-softpipe | |
1155 | %defattr(644,root,root,755) | |
1156 | %attr(755,root,root) %{_libdir}/vdpau/libvdpau_softpipe.so.1.0 | |
1157 | %attr(755,root,root) %{_libdir}/vdpau/libvdpau_softpipe.so.1 | |
1158 | %attr(755,root,root) %{_libdir}/vdpau/libvdpau_softpipe.so | |
1159 | %endif |