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