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