]> git.pld-linux.org Git - packages/Mesa.git/blob - Mesa.spec
- updated libdrm (2.4.46 required by radeon driver) and udev version
[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-opencl-driver-r600
579
580 %description gbm-driver-r600
581 r600 driver for Mesa Graphics Buffer Manager. It supports ATI Radeon
582 adapters based on R600/R700 chips.
583
584 %description gbm-driver-r600 -l pl.UTF-8
585 Sterownik r600 dla szkieletu Mesa Graphics Buffer Manager (zarządcy
586 bufora graficznego). Obsługuje karty graficzne ATI Radeon oparte na
587 układach R600/R700.
588
589 %package gbm-driver-radeonsi
590 Summary:        radeonsi driver for Mesa GBM framework
591 Summary(pl.UTF-8):      Sterownik radeonsi dla szkieletu Mesa GBM
592 Group:          Libraries
593 Requires:       %{name}-libgbm = %{version}-%{release}
594 Obsoletes:      Mesa-opencl-driver-radeonsi
595 Obsoletes:      Mesa-libllvmradeon
596
597 %description gbm-driver-radeonsi
598 radeonsi driver for Mesa Graphics Buffer Manager. It supports ATI
599 Radeon adapters based on Southern Islands chips.
600
601 %description gbm-driver-radeonsi -l pl.UTF-8
602 Sterownik radeonsi dla szkieletu Mesa Graphics Buffer Manager
603 (zarządcy bufora graficznego). Obsługuje karty graficzne ATI Radeon
604 oparte na układach Southern Islands.
605
606 %package gbm-driver-swrast
607 Summary:        Software (swrast) driver for Mesa GBM framework
608 Summary(pl.UTF-8):      Sterownik programowy (swrast) dla szkieletu Mesa GBM
609 Group:          Libraries
610 Requires:       %{name}-libgbm = %{version}-%{release}
611 Obsoletes:      Mesa-opencl-driver-swrast
612
613 %description gbm-driver-swrast
614 Software (swrast) driver for Mesa Graphics Buffer Manager.
615
616 %description gbm-driver-swrast -l pl.UTF-8
617 Sterownik programowy (swrast) dla szkieletu Mesa Graphics Buffer
618 Manager (zarządcy bufora graficznego).
619
620 %package gbm-driver-vmwgfx
621 Summary:        vmwgfx driver for Mesa GBM framework
622 Summary(pl.UTF-8):      Sterownik vmwgfx dla szkieletu Mesa GBM
623 Group:          Libraries
624 Requires:       %{name}-libgbm = %{version}-%{release}
625 Obsoletes:      Mesa-opencl-driver-vmwgfx
626
627 %description gbm-driver-vmwgfx
628 vmwgfx driver for Mesa Graphics Buffer Manager. It supports VMware
629 virtual video adapter.
630
631 %description gbm-driver-vmwgfx -l pl.UTF-8
632 Sterownik vmwgfx dla szkieletu Mesa Graphics Buffer Manager (zarządcy
633 bufora graficznego). Obsługuje wirtualną kartę graficzną VMware.
634
635 %package libglapi
636 Summary:        Mesa GL API shared library
637 Summary(pl.UTF-8):      Biblioteka współdzielona Mesa GL API
638 Group:          Libraries
639 Conflicts:      Mesa-libEGL < 8.0.1-2
640
641 %description libglapi
642 Mesa GL API shared library, common for various APIs (EGL, GL, GLES).
643
644 %description libglapi -l pl.UTF-8
645 Biblioteka współdzielona Mesa GL API, wspólna dla różnych API (EGL,
646 GL, GLES).
647
648 %package libwayland-egl
649 Summary:        Wayland EGL library
650 Summary(pl.UTF-8):      Biblioteka Wayland EGL
651 Group:          Libraries
652 Requires:       libdrm >= %{libdrm_ver}
653
654 %description libwayland-egl
655 Wayland EGL platform library.
656
657 %description libwayland-egl -l pl.UTF-8
658 Biblioteka platformy EGL Wayland.
659
660 %package libwayland-egl-devel
661 Summary:        Development files for Wayland EGL library
662 Summary(pl.UTF-8):      Pliki programistyczne biblioteki Wayland EGL
663 Group:          Development/Libraries
664 Requires:       %{name}-libwayland-egl = %{version}-%{release}
665 Requires:       libdrm-devel >= %{libdrm_ver}
666
667 %description libwayland-egl-devel
668 Development files for Wayland EGL platform library.
669
670 %description libwayland-egl-devel -l pl.UTF-8
671 Pliki programistyczne biblioteki platformy EGL Wayland.
672
673 %package libxatracker
674 Summary:        Xorg Gallium3D accelleration library
675 Summary(pl.UTF-8):      Biblioteka akceleracji Gallium3D dla Xorg
676 Group:          X11/Libraries
677 Requires:       libdrm >= %{libdrm_ver}
678
679 %description libxatracker
680 Xorg Gallium3D accelleration library (used by new vmwgfx driver).
681
682 %description libxatracker -l pl.UTF-8
683 Biblioteka akceleracji Gallium3D dla Xorg (używana przez nowy
684 sterownik vmwgfx).
685
686 %package libxatracker-devel
687 Summary:        Header files for Xorg Gallium3D accelleration library
688 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki akceleracji Gallium3D dla Xorg
689 Group:          X11/Development/Libraries
690 Requires:       %{name}-libxatracker = %{version}-%{release}
691 Requires:       libdrm-devel >= %{libdrm_ver}
692
693 %description libxatracker-devel
694 Header files for Xorg Gallium3D accelleration library.
695
696 %description libxatracker-devel -l pl.UTF-8
697 Pliki nagłówkowe biblioteki akceleracji Gallium3D dla Xorg.
698
699 %package khrplatform-devel
700 Summary:        Khronos platform header file
701 Summary(pl.UTF-8):      Plik nagłówkowy platformy Khronos
702 Group:          Development/Libraries
703 Conflicts:      Mesa-libEGL-devel < 8.0.1-2
704
705 %description khrplatform-devel
706 Khronos platform header file.
707
708 %description khrplatform-devel -l pl.UTF-8
709 Plik nagłówkowy platformy Khronos.
710
711 %package dri-core
712 Summary:        X.org DRI core library
713 Summary(pl.UTF-8):      Biblioteka X.org DRI core
714 License:        MIT
715 Group:          X11/Libraries
716 Requires:       xorg-xserver-libglx(glapi) = %{glapi_ver}
717 Requires:       xorg-xserver-server >= %{xserver_ver}
718
719 %description dri-core
720 X.org DRI core library.
721
722 %description dri-core -l pl.UTF-8
723 Biblioteka X.org DRI core.
724
725 %package dri-driver-ati-radeon-R100
726 Summary:        X.org DRI driver for ATI R100 card family
727 Summary(pl.UTF-8):      Sterownik X.org DRI dla rodziny kart ATI R100
728 License:        MIT
729 Group:          X11/Libraries
730 Requires:       %{name}-dri-core = %{version}-%{release}
731 Requires:       xorg-driver-video-ati
732 Requires:       xorg-xserver-libglx(glapi) = %{glapi_ver}
733 Requires:       xorg-xserver-server >= %{xserver_ver}
734 Obsoletes:      X11-driver-radeon-dri < 1:7.0.0
735
736 %description dri-driver-ati-radeon-R100
737 X.org DRI driver for ATI R100 card family (Radeon 7000-7500).
738
739 %description dri-driver-ati-radeon-R100 -l pl.UTF-8
740 Sterownik X.org DRI dla rodziny kart ATI R100 (Radeon 7000-7500).
741
742 %package dri-driver-ati-radeon-R200
743 Summary:        X.org DRI driver for ATI R200 card family
744 Summary(pl.UTF-8):      Sterownik X.org DRI dla rodziny kart ATI R200
745 License:        MIT
746 Group:          X11/Libraries
747 Requires:       %{name}-dri-core = %{version}-%{release}
748 Requires:       xorg-driver-video-ati
749 Requires:       xorg-xserver-libglx(glapi) = %{glapi_ver}
750 Requires:       xorg-xserver-server >= %{xserver_ver}
751 Obsoletes:      X11-driver-radeon-dri < 1:7.0.0
752
753 %description dri-driver-ati-radeon-R200
754 X.org DRI driver for ATI R200 card family (Radeon 8500-92xx)
755
756 %description dri-driver-ati-radeon-R200 -l pl.UTF-8
757 Sterownik X.org DRI dla rodziny kart ATI R200 (Radeon 8500-92xx).
758
759 %package dri-driver-ati-radeon-R300
760 Summary:        X.org DRI driver for ATI R300 card family
761 Summary(pl.UTF-8):      Sterownik X.org DRI dla rodziny kart ATI R300
762 License:        MIT
763 Group:          X11/Libraries
764 Requires:       xorg-driver-video-ati
765 Requires:       xorg-xserver-libglx(glapi) = %{glapi_ver}
766 Requires:       xorg-xserver-server >= %{xserver_ver}
767 Obsoletes:      X11-driver-radeon-dri < 1:7.0.0
768
769 %description dri-driver-ati-radeon-R300
770 X.org DRI driver for ATI R300/R400/RS690/R500 card family.
771
772 %description dri-driver-ati-radeon-R300 -l pl.UTF-8
773 Sterownik X.org DRI dla rodziny kart ATI R300/R400/RS690/R500.
774
775 %package dri-driver-ati-radeon-R600
776 Summary:        X.org DRI driver for ATI R600 card family
777 Summary(pl.UTF-8):      Sterownik X.org DRI dla rodziny kart ATI R600
778 License:        MIT
779 Group:          X11/Libraries
780 Requires:       radeon-ucode
781 Requires:       xorg-driver-video-ati
782 Requires:       xorg-xserver-libglx(glapi) = %{glapi_ver}
783 Requires:       xorg-xserver-server >= %{xserver_ver}
784
785 %description dri-driver-ati-radeon-R600
786 X.org DRI driver for ATI R600/R700 card family.
787
788 %description dri-driver-ati-radeon-R600 -l pl.UTF-8
789 Sterownik X.org DRI dla rodziny kart ATI R600/R700.
790
791 %package dri-driver-ati-radeon-SI
792 Summary:        X.org DRI driver for ATI Southern Islands card family
793 Summary(pl.UTF-8):      Sterownik X.org DRI dla rodziny kart ATI Southern Islands
794 License:        MIT
795 Group:          X11/Libraries
796 Requires:       radeon-ucode
797 Requires:       xorg-driver-video-ati
798 Requires:       xorg-xserver-libglx(glapi) = %{glapi_ver}
799 Requires:       xorg-xserver-server >= %{xserver_ver}
800
801 %description dri-driver-ati-radeon-SI
802 X.org DRI driver for ATI Southern Islands card family.
803
804 %description dri-driver-ati-radeon-SI -l pl.UTF-8
805 Sterownik X.org DRI dla rodziny kart ATI Southern Islands.
806
807 %package dri-driver-intel-i915
808 Summary:        X.org DRI driver for Intel i915 card family
809 Summary(pl.UTF-8):      Sterownik X.org DRI dla rodziny kart Intel i915
810 License:        MIT
811 Group:          X11/Libraries
812 %if %{without gallium_intel}
813 Requires:       %{name}-dri-core = %{version}-%{release}
814 %endif
815 Requires:       xorg-driver-video-intel
816 Requires:       xorg-xserver-libglx(glapi) = %{glapi_ver}
817 Requires:       xorg-xserver-server >= %{xserver_ver}
818 Obsoletes:      Mesa-dri-driver-intel-i830
819 Obsoletes:      X11-driver-i810-dri < 1:7.0.0
820
821 %description dri-driver-intel-i915
822 X.org DRI driver for Intel i915 card family (915, 945, G33, Q33, Q35,
823 Pineview).
824
825 %description dri-driver-intel-i915 -l pl.UTF-8
826 Sterownik X.org DRI dla rodziny kart Intel i915 (915, 945, G33, Q33,
827 Q35, Pineview).
828
829 %package dri-driver-intel-i965
830 Summary:        X.org DRI driver for Intel i965 card family
831 Summary(pl.UTF-8):      Sterownik X.org DRI dla rodziny kart Intel i965
832 License:        MIT
833 Group:          X11/Libraries
834 Requires:       %{name}-dri-core = %{version}-%{release}
835 Requires:       xorg-driver-video-intel
836 Requires:       xorg-xserver-libglx(glapi) = %{glapi_ver}
837 Requires:       xorg-xserver-server >= %{xserver_ver}
838 Obsoletes:      Mesa-dri-driver-intel-i830
839 Obsoletes:      X11-driver-i810-dri < 1:7.0.0
840
841 %description dri-driver-intel-i965
842 X.org DRI driver for Intel i965 card family (946GZ, 965G, 965Q, 965GM,
843 965GME, GM45, G41, B43, Q45, G45);
844
845 %description dri-driver-intel-i965 -l pl.UTF-8
846 Sterownik X.org DRI dla rodziny kart Intel i965 (946GZ, 965G, 965Q,
847 965GM, 965GME, GM45, G41, B43, Q45, G45).
848
849 %package dri-driver-nouveau
850 Summary:        X.org DRI driver for NVIDIA card family
851 Summary(pl.UTF-8):      Sterownik X.org DRI dla rodziny kart NVIDIA
852 License:        MIT
853 Group:          X11/Libraries
854 Requires:       %{name}-dri-core = %{version}-%{release}
855 Requires:       xorg-driver-video-nouveau
856 Requires:       xorg-xserver-libglx(glapi) = %{glapi_ver}
857 Requires:       xorg-xserver-server >= %{xserver_ver}
858
859 %description dri-driver-nouveau
860 X.org DRI drivers for NVIDIA card family.
861
862 %description dri-driver-nouveau -l pl.UTF-8
863 Sterowniki X.org DRI dla rodziny kart NVIDIA.
864
865 %package dri-driver-swrast
866 Summary:        X.org DRI software rasterizer driver
867 Summary(pl.UTF-8):      Sterownik X.org DRI obsługujący rysowanie programowe
868 License:        MIT
869 Group:          X11/Libraries
870 Requires:       %{name}-dri-core = %{version}-%{release}
871 Requires:       xorg-xserver-libglx(glapi) = %{glapi_ver}
872 Requires:       xorg-xserver-server >= %{xserver_ver}
873
874 %description dri-driver-swrast
875 X.org DRI software rasterizer driver.
876
877 %description dri-driver-swrast -l pl.UTF-8
878 Sterownik X.org DRI obsługujący rysowanie programowe.
879
880 %package dri-driver-vmwgfx
881 Summary:        X.org DRI driver for VMware
882 Summary(pl.UTF-8):      Sterownik X.org DRI dla VMware
883 License:        MIT
884 Group:          X11/Libraries
885 Requires:       xorg-driver-video-vmware
886 Requires:       xorg-xserver-libglx(glapi) = %{glapi_ver}
887 Requires:       xorg-xserver-server >= %{xserver_ver}
888
889 %description dri-driver-vmwgfx
890 X.org DRI driver for VMWare.
891
892 %description dri-driver-vmwgfx -l pl.UTF-8
893 Sterownik X.org DRI dla VMware.
894
895 %package -n libvdpau-driver-mesa-nouveau
896 Summary:        Mesa nouveau driver for the vdpau API
897 Summary(pl.UTF-8):      Sterownik Mesa nouveau dla API vdpau
898 License:        MIT
899 Group:          X11/Libraries
900 Requires:       libdrm >= %{libdrm_ver}
901 Requires:       libvdpau >= 0.4.1
902 Conflicts:      libvdpau-driver-mesa
903
904 %description -n libvdpau-driver-mesa-nouveau
905 Mesa nouveau driver for the vdpau API. It supports NVidia adapters
906 (NV40-NV96, NVa0).
907
908 %description -n libvdpau-driver-mesa-nouveau -l pl.UTF-8
909 Sterownik Mesa nouveau dla API vdpau. Obsługuje karty NVidia
910 (NV40-NV96, NVa0).
911
912 %package -n libvdpau-driver-mesa-r300
913 Summary:        Mesa r300 driver for the vdpau API
914 Summary(pl.UTF-8):      Sterownik Mesa r300 dla API vdpau
915 License:        MIT
916 Group:          X11/Libraries
917 Requires:       libdrm >= %{libdrm_ver}
918 Requires:       libvdpau >= 0.4.1
919 Conflicts:      libvdpau-driver-mesa
920
921 %description -n libvdpau-driver-mesa-r300
922 Mesa r300 driver for the vdpau API. It supports ATI Radeon adapters
923 based on R300/R400/RS690/R500 chips.
924
925 %description -n libvdpau-driver-mesa-r300 -l pl.UTF-8
926 Sterownik Mesa r300 dla API vdpau. Obsługuje karty ATI Radeon oparte
927 na układach R300/R400/RS690/R500.
928
929 %package -n libvdpau-driver-mesa-r600
930 Summary:        Mesa r600 driver for the vdpau API
931 Summary(pl.UTF-8):      Sterownik Mesa r600 dla API vdpau
932 License:        MIT
933 Group:          X11/Libraries
934 Requires:       libdrm >= %{libdrm_ver}
935 Requires:       libvdpau >= 0.4.1
936 Conflicts:      libvdpau-driver-mesa
937
938 %description -n libvdpau-driver-mesa-r600
939 Mesa r600 driver for the vdpau API. It supports ATI Radeon adapters
940 based on R600/R700 chips.
941
942 %description -n libvdpau-driver-mesa-r600 -l pl.UTF-8
943 Sterownik Mesa r600 dla API vdpau. Obsługuje karty ATI Radeon oparte
944 na układach R600/R700.
945
946 %package -n libvdpau-driver-mesa-radeonsi
947 Summary:        Mesa radeonsi driver for the vdpau API
948 Summary(pl.UTF-8):      Sterownik Mesa radeonsi dla API vdpau
949 License:        MIT
950 Group:          X11/Libraries
951 Requires:       libdrm >= %{libdrm_ver}
952 Requires:       libvdpau >= 0.4.1
953 Conflicts:      libvdpau-driver-mesa
954 Obsoletes:      Mesa-libllvmradeon
955
956 %description -n libvdpau-driver-mesa-radeonsi
957 Mesa radeonsi driver for the vdpau API. It supports ATI Radeon
958 adapters based on Southern Islands chips.
959
960 %description -n libvdpau-driver-mesa-radeonsi -l pl.UTF-8
961 Sterownik Mesa radeonsi dla API vdpau. Obsługuje karty ATI Radeon
962 oparte na układach Southern Islands.
963
964 %package -n libvdpau-driver-mesa-softpipe
965 Summary:        Mesa softpipe driver for the vdpau API
966 Summary(pl.UTF-8):      Sterownik Mesa softpipe dla API vdpau
967 License:        MIT
968 Group:          X11/Libraries
969 Requires:       libdrm >= %{libdrm_ver}
970 Requires:       libvdpau >= 0.4.1
971 Conflicts:      libvdpau-driver-mesa
972
973 %description -n libvdpau-driver-mesa-softpipe
974 Mesa softpipe driver for the vdpau API.
975
976 %description -n libvdpau-driver-mesa-softpipe -l pl.UTF-8
977 Sterownik Mesa softpipe dla API vdpau.
978
979 %prep
980 %setup -q
981 %patch0 -p1
982
983 %build
984 %{__libtoolize}
985 %{__aclocal} -I m4
986 %{__autoconf}
987 %{__automake}
988
989 dri_drivers="r200 radeon \
990 %if %{without gallium_intel}
991 i915 \
992 %endif
993 i965 \
994 nouveau \
995 %ifarch sparc sparcv9 sparc64
996 ffb \
997 %endif
998 swrast"
999
1000 dri_drivers=$(echo $dri_drivers | xargs | tr ' ' ',')
1001
1002 gallium_drivers="svga swrast \
1003 %if %{with gallium_intel}
1004 i915 \
1005 %endif
1006 r300 \
1007 r600 \
1008 radeonsi \
1009 %if %{with gallium_nouveau}
1010 nouveau
1011 %endif
1012 "
1013
1014 gallium_drivers=$(echo $gallium_drivers | xargs | tr ' ' ',')
1015
1016 %configure \
1017         --disable-silent-rules \
1018         --enable-shared \
1019         --enable-glx-tls \
1020         --enable-selinux \
1021         %{?with_static_libs:--enable-static} \
1022         %{__enable gbm} \
1023         --enable-osmesa \
1024         --enable-shared-glapi \
1025 %if %{with egl}
1026         --enable-egl \
1027         --enable-gles1 \
1028         --enable-gles2 \
1029         --with-egl-platforms=x11%{?with_gbm:,drm}%{?with_wayland:,wayland} \
1030 %endif
1031 %if %{with gallium}
1032         --enable-gallium-llvm \
1033         --with-llvm-shared-libs \
1034         %{__enable egl gallium-egl} \
1035         %{__enable gbm gallium-gbm} \
1036         %{?with_opencl:--enable-opencl} \
1037         %{?with_egl:--enable-openvg} \
1038         --enable-vdpau \
1039         %{?with_xa:--enable-xa} \
1040         --enable-xvmc \
1041         --with-gallium-drivers=${gallium_drivers} \
1042 %else
1043         --without-gallium-drivers \
1044 %endif
1045         --with-dri-drivers=${dri_drivers} \
1046         --with-dri-driverdir=%{_libdir}/xorg/modules/dri
1047
1048 %{__make}
1049
1050 %install
1051 rm -rf $RPM_BUILD_ROOT
1052
1053 %{__make} install \
1054         DESTDIR=$RPM_BUILD_ROOT
1055
1056 # strip out undesirable headers
1057 %{__rm} $RPM_BUILD_ROOT%{_includedir}/GL/{wglext,wmesa}.h
1058 # dlopened by soname
1059 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libXvMC*.so
1060 # not used externally
1061 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib{dricore%{int_sover},glapi}.so
1062 # dlopened
1063 %{__rm} $RPM_BUILD_ROOT%{_libdir}/egl/egl_*.la
1064 %{__rm} $RPM_BUILD_ROOT%{_libdir}/gallium-pipe/pipe_*.la
1065 %{__rm} $RPM_BUILD_ROOT%{_libdir}/gbm/gbm_*.la
1066 %{__rm} $RPM_BUILD_ROOT%{_libdir}/vdpau/libvdpau_*.la
1067 %{__rm} $RPM_BUILD_ROOT%{_libdir}/xorg/modules/dri/*.la
1068 # not defined by standards; and not needed, there is pkg-config support
1069 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
1070
1071 # remove "OS ABI: Linux 2.4.20" tag, so private copies (nvidia or fglrx),
1072 # set up via /etc/ld.so.conf.d/*.conf will be preferred over this
1073 strip -R .note.ABI-tag $RPM_BUILD_ROOT%{_libdir}/libGL.so.*.*
1074
1075 %clean
1076 rm -rf $RPM_BUILD_ROOT
1077
1078 %post   libEGL -p /sbin/ldconfig
1079 %postun libEGL -p /sbin/ldconfig
1080
1081 %post   libGL -p /sbin/ldconfig
1082 %postun libGL -p /sbin/ldconfig
1083
1084 %post   libGLES -p /sbin/ldconfig
1085 %postun libGLES -p /sbin/ldconfig
1086
1087 %post   libOSMesa -p /sbin/ldconfig
1088 %postun libOSMesa -p /sbin/ldconfig
1089
1090 %post   libOpenCL -p /sbin/ldconfig
1091 %postun libOpenCL -p /sbin/ldconfig
1092
1093 %post   libOpenVG -p /sbin/ldconfig
1094 %postun libOpenVG -p /sbin/ldconfig
1095
1096 %post   libXvMC-nouveau -p /sbin/ldconfig
1097 %postun libXvMC-nouveau -p /sbin/ldconfig
1098 %post   libXvMC-r300 -p /sbin/ldconfig
1099 %postun libXvMC-r300 -p /sbin/ldconfig
1100 %post   libXvMC-r600 -p /sbin/ldconfig
1101 %postun libXvMC-r600 -p /sbin/ldconfig
1102 %post   libXvMC-softpipe -p /sbin/ldconfig
1103 %postun libXvMC-softpipe -p /sbin/ldconfig
1104
1105 %post   libgbm -p /sbin/ldconfig
1106 %postun libgbm -p /sbin/ldconfig
1107
1108 %post   libglapi -p /sbin/ldconfig
1109 %postun libglapi -p /sbin/ldconfig
1110
1111 %post   libwayland-egl -p /sbin/ldconfig
1112 %postun libwayland-egl -p /sbin/ldconfig
1113
1114 %post   libxatracker -p /sbin/ldconfig
1115 %postun libxatracker -p /sbin/ldconfig
1116
1117 %post   dri-core -p /sbin/ldconfig
1118 %postun dri-core -p /sbin/ldconfig
1119
1120 %if %{with egl}
1121 %files libEGL
1122 %defattr(644,root,root,755)
1123 %attr(755,root,root) %{_libdir}/libEGL.so.*.*
1124 %attr(755,root,root) %ghost %{_libdir}/libEGL.so.1
1125 %if %{with gallium}
1126 %dir %{_libdir}/egl
1127 %attr(755,root,root) %{_libdir}/egl/egl_gallium.so
1128 %endif
1129
1130 %files libEGL-devel
1131 %defattr(644,root,root,755)
1132 %attr(755,root,root) %{_libdir}/libEGL.so
1133 %dir %{_includedir}/EGL
1134 %{_includedir}/EGL/egl.h
1135 %{_includedir}/EGL/eglext.h
1136 %{_includedir}/EGL/eglmesaext.h
1137 %{_includedir}/EGL/eglplatform.h
1138 %{_pkgconfigdir}/egl.pc
1139
1140 %if %{with static_libs}
1141 %files libEGL-static
1142 %defattr(644,root,root,755)
1143 %{_libdir}/libEGL.a
1144 %endif
1145 %endif
1146
1147 %files libGL
1148 %defattr(644,root,root,755)
1149 %doc docs/{*.html,README.{MITS,QUAKE,THREADS,UVD},relnotes/*.html}
1150 %attr(755,root,root) %{_libdir}/libGL.so.*.*
1151 %attr(755,root,root) %ghost %{_libdir}/libGL.so.1
1152 # symlink for binary apps which fail to conform Linux OpenGL ABI
1153 # (and dlopen libGL.so instead of libGL.so.1; the same does Mesa libEGL)
1154 %attr(755,root,root) %{_libdir}/libGL.so
1155
1156 %files libGL-devel
1157 %defattr(644,root,root,755)
1158 %doc docs/specs/*
1159 %dir %{_includedir}/GL
1160 %{_includedir}/GL/gl.h
1161 %{_includedir}/GL/glext.h
1162 %{_includedir}/GL/gl_mangle.h
1163 %{_includedir}/GL/glx.h
1164 %{_includedir}/GL/glxext.h
1165 %{_includedir}/GL/glx_mangle.h
1166 %dir %{_includedir}/GL/internal
1167 %{_includedir}/GL/internal/dri_interface.h
1168 %{_pkgconfigdir}/dri.pc
1169 %{_pkgconfigdir}/gl.pc
1170
1171 %if %{with static_libs}
1172 %files libGL-static
1173 %defattr(644,root,root,755)
1174 %{_libdir}/libGL.a
1175 %endif
1176
1177 %files libGLES
1178 %defattr(644,root,root,755)
1179 %attr(755,root,root) %{_libdir}/libGLESv1_CM.so.*.*.*
1180 %attr(755,root,root) %ghost %{_libdir}/libGLESv1_CM.so.1
1181 %attr(755,root,root) %{_libdir}/libGLESv2.so.*.*
1182 %attr(755,root,root) %ghost %{_libdir}/libGLESv2.so.2
1183
1184 %files libGLES-devel
1185 %defattr(644,root,root,755)
1186 %attr(755,root,root) %{_libdir}/libGLESv1_CM.so
1187 %attr(755,root,root) %{_libdir}/libGLESv2.so
1188 %{_includedir}/GLES
1189 %{_includedir}/GLES2
1190 %{_includedir}/GLES3
1191 %{_pkgconfigdir}/glesv1_cm.pc
1192 %{_pkgconfigdir}/glesv2.pc
1193
1194 %files libOSMesa
1195 %defattr(644,root,root,755)
1196 %attr(755,root,root) %{_libdir}/libOSMesa.so.*.*
1197 %attr(755,root,root) %ghost %{_libdir}/libOSMesa.so.8
1198
1199 %files libOSMesa-devel
1200 %defattr(644,root,root,755)
1201 %attr(755,root,root) %{_libdir}/libOSMesa.so
1202 %{_includedir}/GL/osmesa.h
1203 %{_pkgconfigdir}/osmesa.pc
1204
1205 %if %{with static_libs}
1206 %files libOSMesa-static
1207 %defattr(644,root,root,755)
1208 %{_libdir}/libOSMesa.a
1209 %endif
1210
1211 %if %{with opencl}
1212 %files libOpenCL
1213 %defattr(644,root,root,755)
1214 %attr(755,root,root) %{_libdir}/libOpenCL.so.*.*.*
1215 %attr(755,root,root) %ghost %{_libdir}/libOpenCL.so.1
1216
1217 %files libOpenCL-devel
1218 %defattr(644,root,root,755)
1219 %attr(755,root,root) %{_libdir}/libOpenCL.so
1220 %{_includedir}/CL
1221 %endif
1222
1223 %if %{with egl} && %{with gallium}
1224 %files libOpenVG
1225 %defattr(644,root,root,755)
1226 %attr(755,root,root) %{_libdir}/libOpenVG.so.*.*.*
1227 %attr(755,root,root) %ghost %{_libdir}/libOpenVG.so.1
1228
1229 %files libOpenVG-devel
1230 %defattr(644,root,root,755)
1231 %attr(755,root,root) %{_libdir}/libOpenVG.so
1232 %{_includedir}/VG
1233 %{_pkgconfigdir}/vg.pc
1234 %endif
1235
1236 %if %{with gallium}
1237 %if %{with gallium_nouveau}
1238 %files libXvMC-nouveau
1239 %defattr(644,root,root,755)
1240 %attr(755,root,root) %{_libdir}/libXvMCnouveau.so.1.0.0
1241 %attr(755,root,root) %ghost %{_libdir}/libXvMCnouveau.so.1
1242 %endif
1243
1244 %files libXvMC-r300
1245 %defattr(644,root,root,755)
1246 %attr(755,root,root) %{_libdir}/libXvMCr300.so.1.0.0
1247 %attr(755,root,root) %ghost %{_libdir}/libXvMCr300.so.1
1248
1249 %files libXvMC-r600
1250 %defattr(644,root,root,755)
1251 %attr(755,root,root) %{_libdir}/libXvMCr600.so.1.0.0
1252 %attr(755,root,root) %ghost %{_libdir}/libXvMCr600.so.1
1253
1254 %files libXvMC-softpipe
1255 %defattr(644,root,root,755)
1256 %attr(755,root,root) %{_libdir}/libXvMCsoftpipe.so.1.0.0
1257 %attr(755,root,root) %ghost %{_libdir}/libXvMCsoftpipe.so.1
1258 %endif
1259
1260 %if %{with gbm}
1261 %files libgbm
1262 %defattr(644,root,root,755)
1263 %attr(755,root,root) %{_libdir}/libgbm.so.*.*
1264 %attr(755,root,root) %ghost %{_libdir}/libgbm.so.1
1265 %if %{with gallium}
1266 %dir %{_libdir}/gbm
1267 %dir %{_libdir}/gallium-pipe
1268 %attr(755,root,root) %{_libdir}/gbm/gbm_gallium_drm.so
1269 %endif
1270
1271 %files libgbm-devel
1272 %defattr(644,root,root,755)
1273 %attr(755,root,root) %{_libdir}/libgbm.so
1274 %{_includedir}/gbm.h
1275 %{_pkgconfigdir}/gbm.pc
1276 %endif
1277
1278 %if %{with gallium}
1279 %if %{with gallium_intel}
1280 %files gbm-driver-i915
1281 %defattr(644,root,root,755)
1282 %attr(755,root,root) %{_libdir}/gallium-pipe/pipe_i915.so
1283 %endif
1284
1285 %if %{with gallium_nouveau}
1286 %files gbm-driver-nouveau
1287 %defattr(644,root,root,755)
1288 %attr(755,root,root) %{_libdir}/gallium-pipe/pipe_nouveau.so
1289 %endif
1290
1291 %files gbm-driver-r300
1292 %defattr(644,root,root,755)
1293 %attr(755,root,root) %{_libdir}/gallium-pipe/pipe_r300.so
1294
1295 %files gbm-driver-r600
1296 %defattr(644,root,root,755)
1297 %attr(755,root,root) %{_libdir}/gallium-pipe/pipe_r600.so
1298
1299 %files gbm-driver-radeonsi
1300 %defattr(644,root,root,755)
1301 %attr(755,root,root) %{_libdir}/gallium-pipe/pipe_radeonsi.so
1302
1303 %files gbm-driver-swrast
1304 %defattr(644,root,root,755)
1305 %attr(755,root,root) %{_libdir}/gallium-pipe/pipe_swrast.so
1306
1307 %files gbm-driver-vmwgfx
1308 %defattr(644,root,root,755)
1309 %attr(755,root,root) %{_libdir}/gallium-pipe/pipe_vmwgfx.so
1310 %endif
1311
1312 %files libglapi
1313 %defattr(644,root,root,755)
1314 %attr(755,root,root) %{_libdir}/libglapi.so.*.*
1315 %attr(755,root,root) %ghost %{_libdir}/libglapi.so.0
1316 # libglapi-devel? nothing seems to need it atm.
1317 #%attr(755,root,root) %{_libdir}/libglapi.so
1318
1319 %if %{with wayland}
1320 %files libwayland-egl
1321 %defattr(644,root,root,755)
1322 %attr(755,root,root) %{_libdir}/libwayland-egl.so.*.*
1323 %attr(755,root,root) %ghost %{_libdir}/libwayland-egl.so.1
1324
1325 %files libwayland-egl-devel
1326 %defattr(644,root,root,755)
1327 %attr(755,root,root) %{_libdir}/libwayland-egl.so
1328 %{_pkgconfigdir}/wayland-egl.pc
1329 %endif
1330
1331 %if %{with xa}
1332 %files libxatracker
1333 %defattr(644,root,root,755)
1334 %attr(755,root,root) %{_libdir}/libxatracker.so.*.*
1335 %attr(755,root,root) %ghost %{_libdir}/libxatracker.so.1
1336
1337 %files libxatracker-devel
1338 %defattr(644,root,root,755)
1339 %attr(755,root,root) %{_libdir}/libxatracker.so
1340 %{_includedir}/xa_composite.h
1341 %{_includedir}/xa_context.h
1342 %{_includedir}/xa_tracker.h
1343 %{_pkgconfigdir}/xatracker.pc
1344 %endif
1345
1346 %if %{with egl}
1347 %files khrplatform-devel
1348 %defattr(644,root,root,755)
1349 %dir %{_includedir}/KHR
1350 %{_includedir}/KHR/khrplatform.h
1351 %endif
1352
1353 %files dri-core
1354 %defattr(644,root,root,755)
1355 %attr(755,root,root) %{_libdir}/libdricore%{int_sover}.so.*.*
1356 %attr(755,root,root) %ghost %{_libdir}/libdricore%{int_sover}.so.1
1357 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/drirc
1358
1359 %files dri-driver-ati-radeon-R100
1360 %defattr(644,root,root,755)
1361 %attr(755,root,root) %{_libdir}/xorg/modules/dri/radeon_dri.so
1362
1363 %files dri-driver-ati-radeon-R200
1364 %defattr(644,root,root,755)
1365 %attr(755,root,root) %{_libdir}/xorg/modules/dri/r200_dri.so
1366
1367 %if %{with gallium}
1368 %files dri-driver-ati-radeon-R300
1369 %defattr(644,root,root,755)
1370 %attr(755,root,root) %{_libdir}/xorg/modules/dri/r300_dri.so
1371
1372 %files dri-driver-ati-radeon-R600
1373 %defattr(644,root,root,755)
1374 %attr(755,root,root) %{_libdir}/xorg/modules/dri/r600_dri.so
1375 %endif
1376
1377 %files dri-driver-ati-radeon-SI
1378 %defattr(644,root,root,755)
1379 %attr(755,root,root) %{_libdir}/xorg/modules/dri/radeonsi_dri.so
1380
1381 %files dri-driver-intel-i915
1382 %defattr(644,root,root,755)
1383 %attr(755,root,root) %{_libdir}/xorg/modules/dri/i915_dri.so
1384
1385 %files dri-driver-intel-i965
1386 %defattr(644,root,root,755)
1387 %attr(755,root,root) %{_libdir}/xorg/modules/dri/i965_dri.so
1388
1389 %files dri-driver-nouveau
1390 %defattr(644,root,root,755)
1391 %attr(755,root,root) %{_libdir}/xorg/modules/dri/nouveau_vieux_dri.so
1392 %if %{with gallium_nouveau}
1393 %attr(755,root,root) %{_libdir}/xorg/modules/dri/nouveau_dri.so
1394 %endif
1395
1396 %files dri-driver-swrast
1397 %defattr(644,root,root,755)
1398 %attr(755,root,root) %{_libdir}/xorg/modules/dri/swrast_dri.so
1399
1400 %if %{with gallium}
1401 %files dri-driver-vmwgfx
1402 %defattr(644,root,root,755)
1403 %attr(755,root,root) %{_libdir}/xorg/modules/dri/vmwgfx_dri.so
1404 %endif
1405
1406 %if %{with gallium}
1407 # ldconfig is not used in vdpau tree, so package all symlinks
1408 %if %{with gallium_nouveau}
1409 %files -n libvdpau-driver-mesa-nouveau
1410 %defattr(644,root,root,755)
1411 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_nouveau.so.1.0.0
1412 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_nouveau.so.1
1413 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_nouveau.so
1414 %endif
1415
1416 %files -n libvdpau-driver-mesa-r300
1417 %defattr(644,root,root,755)
1418 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_r300.so.1.0.0
1419 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_r300.so.1
1420 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_r300.so
1421
1422 %files -n libvdpau-driver-mesa-r600
1423 %defattr(644,root,root,755)
1424 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_r600.so.1.0.0
1425 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_r600.so.1
1426 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_r600.so
1427
1428 %files -n libvdpau-driver-mesa-radeonsi
1429 %defattr(644,root,root,755)
1430 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_radeonsi.so.1.0.0
1431 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_radeonsi.so.1
1432 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_radeonsi.so
1433
1434 %files -n libvdpau-driver-mesa-softpipe
1435 %defattr(644,root,root,755)
1436 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_softpipe.so.1.0.0
1437 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_softpipe.so.1
1438 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_softpipe.so
1439 %endif
This page took 1.636463 seconds and 4 git commands to generate.