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