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