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