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