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