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