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