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