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