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