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