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