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