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