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