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