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