]> git.pld-linux.org Git - packages/Mesa.git/blame - Mesa.spec
- gallium i965 has been dropped
[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?
59f12de8 6# - resurrect static if it's useful
0cb33a09 7#
6299b3cd 8# Conditional build:
5eb992a8
JB
9%bcond_without egl # EGL libraries
10%bcond_without gallium # gallium drivers
be7de8ed 11%bcond_with gallium_intel # gallium i915 driver (but doesn't work with AIGLX)
be7de8ed 12%bcond_without gallium_nouveau # gallium nouveau driver
5eb992a8
JB
13%bcond_without osmesa # OSMesa libraries
14%bcond_without gbm # with Graphics Buffer Manager
c885f99e 15%bcond_with static_libs # static libraries
d70abe90
JB
16#
17# minimal supported xserver version
18%define xserver_ver 1.5.0
19# glapi version (glapi tables in dri drivers and libglx must be in sync);
20# set to current Mesa version on ABI break, when xserver tables get regenerated
21# (until they start to be somehow versioned themselves)
57ae29d5 22%define glapi_ver 7.1.0
797c6091 23#
9bfb354d 24%define libdrm_ver 2.4.30
c1d2b5e2 25%define dri2proto_ver 2.6
8eb275e9 26%define glproto_ver 1.4.14
41aca213 27#
e1833810 28Summary: Free OpenGL implementation
54181d82 29Summary(pl.UTF-8): Wolnodostępna implementacja standardu OpenGL
e9b3ff7a 30Name: Mesa
fd5942b2 31Version: 8.0.1
9bfb354d
AM
32Release: 1
33License: MIT (core), SGI (GLU) and others - see license.html file
e9b3ff7a 34Group: X11/Libraries
17c01040 35Source0: ftp://ftp.freedesktop.org/pub/mesa/%{version}/%{name}Lib-%{version}.tar.bz2
fd5942b2 36# Source0-md5: 24eeebf66971809d8f40775a379b36c9
6f53c8ab 37Patch0: %{name}-realclean.patch
50e22bbf 38URL: http://www.mesa3d.org/
54147717 39BuildRequires: autoconf >= 2.59
a6c5fc6c 40BuildRequires: automake
0cb33a09 41BuildRequires: expat-devel
686d3d0d 42BuildRequires: gcc >= 5:3.3
41aca213 43BuildRequires: libdrm-devel >= %{libdrm_ver}
59f12de8 44BuildRequires: libselinux-devel
3c26b076 45BuildRequires: libstdc++-devel >= 5:3.3.0
54147717 46BuildRequires: libtalloc-devel >= 2:2.0.1
6b372055 47BuildRequires: libtool >= 2:1.4d
8eb275e9 48BuildRequires: libvdpau-devel >= 0.4.1
c1d2b5e2 49BuildRequires: llvm-devel >= 2.9
f35aa06e 50BuildRequires: pixman-devel
a6c5fc6c 51BuildRequires: pkgconfig
c1d2b5e2 52BuildRequires: pkgconfig(talloc) >= 2.0.1
7eda8496 53BuildRequires: python
11f03809 54BuildRequires: python-libxml2
d9fd49b8 55BuildRequires: python-modules
f6afd89c 56BuildRequires: rpmbuild(macros) >= 1.470
7cbe00f8 57BuildRequires: sed >= 4.0
cd8f367a 58BuildRequires: xorg-lib-libXdamage-devel
994fa6a5 59BuildRequires: xorg-lib-libXext-devel >= 1.0.5
1b597036 60BuildRequires: xorg-lib-libXt-devel
8eb275e9 61BuildRequires: xorg-lib-libXvMC-devel >= 1.0.6
9850656e 62BuildRequires: xorg-lib-libXxf86vm-devel
41aca213 63BuildRequires: xorg-proto-dri2proto-devel >= %{dri2proto_ver}
b8e51e7a 64BuildRequires: xorg-proto-glproto-devel >= %{glproto_ver}
9850656e 65BuildRequires: xorg-util-makedepend
bb686270 66BuildRequires: xorg-xserver-server-devel
54147717
JB
67%if %{with egl}
68BuildRequires: libxcb-devel
8eb275e9 69BuildRequires: udev-devel >= 1:150
54147717
JB
70%endif
71%if %{with gallium}
72BuildRequires: xorg-proto-xextproto-devel >= 7.0.99.1
73BuildRequires: xorg-xserver-server-devel >= 1.6.0
74%endif
ddde5931 75BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
a0b2836a 76
8060076f
AM
77%if %{without gallium}
78%undefine with_gallium_intel
13f5098f 79%undefine with_gallium_nouveau
9bfb354d
AM
80%endif
81
82%if %{without egl}
83%undefine with_gbm
8060076f
AM
84%endif
85
bf8d2f73 86# _glapi_tls_Dispatch is defined in libglapi, but it's some kind of symbol ldd -r doesn't notice(?)
9bfb354d 87%define skip_post_check_so libGLESv1_CM.so.1.* libGLESv2.so.2.* libGL.so.1.* libXvMCnouveau.so.1.* libXvMCr300.so.1.* libXvMCr600.so.1.* libXvMCsoftpipe.so.1.* libvdpau_nouveau.so.1.*
c1d2b5e2 88
a0b2836a 89%description
a70fde83 90Mesa is a 3-D graphics library with an API which is very similar to
a5e5e963 91that of OpenGL(R). To the extent that Mesa utilizes the OpenGL command
a70fde83 92syntax or state machine, it is being used with authorization from
a5e5e963
JB
93Silicon Graphics, Inc. However, the author does not possess an OpenGL
94license from SGI, and makes no claim that Mesa is in any way a
95compatible replacement for OpenGL or associated with SGI.
a0b2836a 96
f77f03b8
JR
97%description -l pl.UTF-8
98Mesa jest biblioteką grafiki 3D z API bardzo podobnym do OpenGL(R). Do
99tego stopnia, że Mesa używa składni i automatu OpenGL jest używana z
100autoryzacją Silicon Graphics, Inc. Jednak autor nie posiada licencji
101OpenGL od SGI i nie twierdzi, że Mesa jest kompatybilnym zamiennikiem
102OpenGL ani powiązana z SGI.
a0b2836a 103
bb686270 104%package libEGL
ae79139b
JB
105Summary: Mesa implementation of EGL Native Platform Graphics Interface library
106Summary(pl.UTF-8): Implementacja Mesa biblioteki interfejsu EGL
107License: MIT
bb686270 108Group: Libraries
bf8d2f73 109# glx driver in libEGL dlopens libGL.so
bb686270 110Requires: OpenGL >= 1.2
bf8d2f73
JB
111Requires: libdrm >= %{libdrm_ver}
112%if %{with gallium}
113# for egl_gallium.so
114Requires: Mesa-libOpenVG = %{version}-%{release}
8eb275e9 115Requires: udev-libs >= 1:150
bf8d2f73 116%endif
ae79139b 117Provides: EGL = 1.4
bb686270
AM
118
119%description libEGL
ae79139b
JB
120This package contains shared libEGL - Mesa implementation of EGL
121Native Platform Graphics Interface as specified by Khronos Group:
122<http://www.khronos.org/egl/>.
bb686270
AM
123
124%description libEGL -l pl.UTF-8
ae79139b
JB
125Ten pakiet zawiera bibliotekę współdzieloną libEGL - implementację
126Mesa standardu EGL Native Platform Graphics Interface (interfejsu
127graficznego platformy natywnej) wg specyfikacji Khronos Group:
128<http://www.khronos.org/egl/>.
bb686270
AM
129
130%package libEGL-devel
ae79139b
JB
131Summary: Header files for Mesa implementation of EGL library
132Summary(pl.UTF-8): Pliki nagłówkowe implementacji Mesa biblioteki EGL
133License: MIT
bb686270
AM
134Group: Development/Libraries
135Requires: %{name}-libEGL = %{version}-%{release}
bf8d2f73
JB
136Requires: libdrm-devel >= %{libdrm_ver}
137Requires: xorg-lib-libX11-devel
138Requires: xorg-lib-libXdamage-devel
139Requires: xorg-lib-libXext-devel
140Requires: xorg-lib-libXfixes-devel
141Requires: xorg-lib-libXxf86vm-devel
142Requires: xorg-proto-dri2proto-devel >= %{dri2proto_ver}
143Requires: xorg-proto-glproto-devel >= %{glproto_ver}
ae79139b 144Provides: EGL-devel = 1.4
bb686270
AM
145
146%description libEGL-devel
ae79139b 147Header files for Mesa implementation of EGL library.
bb686270
AM
148
149%description libEGL-devel -l pl.UTF-8
ae79139b 150Pliki nagłówkowe implementacji Mesa biblioteki EGL.
bb686270
AM
151
152%package libEGL-static
278406ce
JB
153Summary: Static Mesa EGL library
154Summary(pl.UTF-8): Statyczna biblioteka Mesa EGL
ae79139b 155License: MIT
bb686270
AM
156Group: Development/Libraries
157Requires: %{name}-libEGL-devel = %{version}-%{release}
ae79139b 158Provides: EGL-static = 1.4
bb686270
AM
159
160%description libEGL-static
278406ce 161Static Mesa EGL library.
bb686270
AM
162
163%description libEGL-static -l pl.UTF-8
278406ce 164Statyczna biblioteka Mesa EGL.
c1d2b5e2 165
f445ed6c
JB
166%package libGL
167Summary: Free Mesa3D implementation of libGL OpenGL library
54181d82 168Summary(pl.UTF-8): Wolnodostępna implementacja Mesa3D biblioteki libGL ze standardu OpenGL
f445ed6c
JB
169License: MIT
170Group: X11/Libraries
38a2434c 171Requires: libdrm >= %{libdrm_ver}
237cb2a3 172Provides: OpenGL = 2.1
f445ed6c 173Provides: OpenGL-GLX = 1.4
b7a76370 174Obsoletes: Mesa
884f6d35 175Obsoletes: Mesa-dri
b18f0f46
AM
176Obsoletes: X11-OpenGL-libGL < 1:7.0.0
177Obsoletes: XFree86-OpenGL-libGL < 1:7.0.0
f445ed6c
JB
178
179%description libGL
180Mesa is a 3-D graphics library with an API which is very similar to
181that of OpenGL(R). To the extent that Mesa utilizes the OpenGL command
182syntax or state machine, it is being used with authorization from
183Silicon Graphics, Inc. However, the author does not possess an OpenGL
184license from SGI, and makes no claim that Mesa is in any way a
185compatible replacement for OpenGL or associated with SGI.
186
187This package contains libGL which implements OpenGL 1.5 and GLX 1.4
188specifications. It uses DRI for rendering.
189
f77f03b8
JR
190%description libGL -l pl.UTF-8
191Mesa jest biblioteką grafiki 3D z API bardzo podobnym do OpenGL(R). Do
192tego stopnia, że Mesa używa składni i automatu OpenGL jest używana z
193autoryzacją Silicon Graphics, Inc. Jednak autor nie posiada licencji
194OpenGL od SGI i nie twierdzi, że Mesa jest kompatybilnym zamiennikiem
195OpenGL ani powiązana z SGI.
f445ed6c 196
f77f03b8
JR
197Ten pakiet zawiera libGL implementującą specyfikacje OpenGL 1.5 oraz
198GLX 1.4. Używa DRI do renderowania.
f445ed6c
JB
199
200%package libGL-devel
201Summary: Header files for Mesa3D libGL library
54181d82 202Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libGL z projektu Mesa3D
f445ed6c
JB
203License: MIT
204Group: X11/Development/Libraries
205# loose dependency on libGL to use with other libGL binaries
206Requires: OpenGL >= 1.5
41aca213 207Requires: libdrm-devel >= %{libdrm_ver}
875da849 208Requires: xorg-lib-libX11-devel
9489410a 209Requires: xorg-lib-libXdamage-devel
210Requires: xorg-lib-libXext-devel
41aca213 211Requires: xorg-lib-libXxf86vm-devel
212Requires: xorg-proto-dri2proto-devel >= %{dri2proto_ver}
b8e51e7a 213Requires: xorg-proto-glproto-devel >= %{glproto_ver}
e261c0c1 214Suggests: OpenGL-doc-man
6299b3cd 215Provides: OpenGL-GLX-devel = 1.4
3e88bc92 216Provides: OpenGL-devel = 2.1
f445ed6c 217Obsoletes: Mesa-devel
b18f0f46
AM
218Obsoletes: X11-OpenGL-devel < 1:7.0.0
219Obsoletes: X11-OpenGL-devel-base < 1:7.0.0
220Obsoletes: XFree86-OpenGL-devel < 1:7.0.0
221Obsoletes: XFree86-OpenGL-devel-base < 1:7.0.0
a0b2836a 222
f445ed6c
JB
223%description libGL-devel
224Header files for Mesa3D libGL library.
a0b2836a 225
f77f03b8
JR
226%description libGL-devel -l pl.UTF-8
227Pliki nagłówkowe biblioteki libGL z projektu Mesa3D.
e31e9d24 228
f445ed6c
JB
229%package libGL-static
230Summary: Static Mesa3D libGL library
54181d82 231Summary(pl.UTF-8): Statyczna biblioteka libGL z projektu Mesa3D
f445ed6c
JB
232License: MIT
233Group: X11/Development/Libraries
234Requires: %{name}-libGL-devel = %{version}-%{release}
237cb2a3 235Provides: OpenGL-static = 2.1
f445ed6c 236Obsoletes: Mesa-static
b18f0f46
AM
237Obsoletes: X11-OpenGL-static < 1:7.0.0
238Obsoletes: XFree86-OpenGL-static < 1:7.0.0
f445ed6c
JB
239
240%description libGL-static
241Static Mesa3D libGL library. It uses software renderer.
242
f77f03b8
JR
243%description libGL-static -l pl.UTF-8
244Statyczna biblioteka libGL z projektu Mesa3D. Używa programowego
f445ed6c
JB
245renderingu.
246
278406ce
JB
247%package libGLES
248Summary: Mesa implementation of GLES (OpenGL ES) libraries
249Summary(pl.UTF-8): Implementacja Mesa bibliotek GLES (OpenGL ES)
250Group: Libraries
bf8d2f73
JB
251# only for libglapi.so.0
252Requires: %{name}-libEGL = %{version}-%{release}
278406ce
JB
253
254%description libGLES
255This package contains shared libraries of Mesa implementation of GLES
256(OpenGL ES) - cross-platform API for full-function 2D and 3D graphics
257on embedded systems. OpenGL ES specification can be found on Khronos
cc59a107
JB
258Group site: <http://www.khronos.org/opengles/>. Mesa implements OpenGL
259ES 1.1 and 2.0.
278406ce
JB
260
261%description libGLES -l pl.UTF-8
262Ten pakiet zawiera biblioteki współdzielone implementacji Mesa
263standardu GLES (OpenGL ES) - wieloplatformowego API do w pełni
264funkcjonalnej grafiki 2D i 3D na systemach wbudowanych. Specyfikację
265OpenGL ES można znaleźć na stronie Khronos Group:
cc59a107
JB
266<http://www.khronos.org/opengles/>. Mesa zawiera implementacją OpenGL
267ES 1.1 i 2.0.
278406ce
JB
268
269%package libGLES-devel
270Summary: Header files for Mesa GLES libraries
271Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Mesa GLES
272Group: Development/Libraries
bf8d2f73
JB
273# EGL for libglapi.so, <KHR/khrplatform.h> always required, <EGL/egl.h> for <GLES/egl.h>
274Requires: %{name}-libEGL-devel = %{version}-%{release}
278406ce
JB
275Requires: %{name}-libGLES = %{version}-%{release}
276
277%description libGLES-devel
278Header files for Mesa GLES libraries.
279
280%description libGLES-devel -l pl.UTF-8
281Pliki nagłówkowe bibliotek Mesa GLES.
282
f445ed6c
JB
283%package libGLU
284Summary: SGI implementation of libGLU OpenGL library
54181d82 285Summary(pl.UTF-8): Implementacja SGI biblioteki libGLU ze standardu OpenGL
9ae30a4c 286License: SGI Free Software License B v2.0 (MIT-like)
f445ed6c
JB
287Group: Libraries
288# loose dependency on libGL.so.1 to use with other libGL binaries
289Requires: OpenGL >= 1.2
290Provides: OpenGL-GLU = 1.3
291Obsoletes: Mesa-devel
b18f0f46
AM
292Obsoletes: X11-OpenGL-libs < 1:7.0.0
293Obsoletes: XFree86-OpenGL-libs < 1:7.0.0
f445ed6c
JB
294
295%description libGLU
296SGI implementation of libGLU OpenGL library. It implements OpenGL GLU
2971.3 specifications.
298
f77f03b8 299%description libGLU -l pl.UTF-8
f445ed6c 300Implementacja SGI biblioteki libGLU ze standardu OpenGL. Implementuje
f77f03b8 301specyfikację OpenGL GLU 1.3.
f445ed6c
JB
302
303%package libGLU-devel
304Summary: Header files for SGI libGLU library
54181d82 305Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SGI libGLU
9ae30a4c 306License: SGI Free Software License B v2.0 (MIT-like)
f445ed6c
JB
307Group: Development/Libraries
308Requires: %{name}-libGLU = %{version}-%{release}
309Requires: OpenGL-devel >= 1.2
310Requires: libstdc++-devel
311Provides: OpenGL-GLU-devel = 1.3
312
313%description libGLU-devel
314Header files for SGI libGLU library.
315
f77f03b8
JR
316%description libGLU-devel -l pl.UTF-8
317Pliki nagłówkowe biblioteki SGI libGLU.
f445ed6c
JB
318
319%package libGLU-static
320Summary: Static SGI libGLU library
54181d82 321Summary(pl.UTF-8): Statyczna biblioteka SGI libGLU
9ae30a4c 322License: SGI Free Software License B v2.0 (MIT-like)
f445ed6c
JB
323Group: Development/Libraries
324Requires: %{name}-libGLU-devel = %{version}-%{release}
6299b3cd 325Provides: OpenGL-GLU-static = 1.3
e31e9d24 326
f445ed6c
JB
327%description libGLU-static
328Static SGI libGLU library.
329
f77f03b8 330%description libGLU-static -l pl.UTF-8
f445ed6c
JB
331Statyczna biblioteka SGI libGLU.
332
f4a8c5f6
JB
333%package libOSMesa
334Summary: OSMesa (off-screen renderer) library
335Summary(pl.UTF-8): Biblioteka OSMesa (renderująca bitmapy w pamięci)
336License: MIT
337Group: Libraries
338# doesn't require base
339
340%description libOSMesa
341OSMesa (off-screen renderer) library.
342
343%description libOSMesa -l pl.UTF-8
344Biblioteka OSMesa (renderująca bitmapy w pamięci).
345
346%package libOSMesa-devel
347Summary: Header file for OSMesa (off-screen renderer) library
348Summary(pl.UTF-8): Plik nagłówkowy biblioteki OSMesa (renderującej bitmapy w pamięci)
349License: MIT
350Group: Development/Libraries
351Requires: %{name}-libOSMesa = %{version}-%{release}
352# for <GL/gl.h> only
353Requires: OpenGL-devel
bf8d2f73 354Requires: libselinux-devel
f4a8c5f6
JB
355
356%description libOSMesa-devel
357Header file for OSMesa (off-screen renderer) library.
358
359%description libOSMesa-devel -l pl.UTF-8
360Plik nagłówkowy biblioteki OSMesa (renderującej bitmapy w pamięci).
361
362%package libOSMesa-static
363Summary: Static OSMesa (off-screen renderer) library
364Summary(pl.UTF-8): Biblioteka statyczna OSMesa (renderująca bitmapy w pamięci)
365License: MIT
366Group: Development/Libraries
367Requires: %{name}-libOSMesa-devel = %{version}-%{release}
368# this static build of OSMesa needs static non-dri Mesa implementation
369Requires: %{name}-libGL-static = %{version}-%{release}
370
371%description libOSMesa-static
372Static OSMesa (off-screen renderer) library.
373
374%description libOSMesa-static -l pl.UTF-8
375Biblioteka statyczna OSMesa (renderująca bitmapy w pamięci).
376
c1d2b5e2 377%package libOpenVG
278406ce
JB
378Summary: Mesa implementation of OpenVG (Vector Graphics Accelleration) API
379Summary(pl.UTF-8): Implementacja Mesa API OpenVG (akceleracji grafiki wektorowej)
c1d2b5e2
AM
380License: MIT
381Group: Libraries
382# doesn't require base
383
384%description libOpenVG
278406ce
JB
385This package contains Mesa implementation of OpenVG - cross-platform
386API that provides a low-level hardware acceleration interface for
387vector graphics libraries such as Flash and SVG. OpenVG specification
388can be found on Khronos Group site: <http://www.khronos.org/openvg/>.
cc59a107 389Mesa implements OpenVG 1.1.
c1d2b5e2
AM
390
391%description libOpenVG -l pl.UTF-8
278406ce
JB
392Ten pakiet zawiera implementację Mesa standardu OpenVG -
393wieloplatfomowego API zapewniającego niskopoziomowy interfejs
9bfb354d
AM
394akceleracji sprzętowej dla bibliotek grafiki wektorowej, takiej jak
395Flash czy SVG. Specyfikację OpenVG można znaleźć na stronie Khronos
396Group: <http://www.khronos.org/openvg/>. Mesa zawiera implementację
397OpenVG w wersji 1.1.
c1d2b5e2
AM
398
399%package libOpenVG-devel
278406ce
JB
400Summary: Header file for Mesa OpenVG library
401Summary(pl.UTF-8): Plik nagłówkowy biblioteki Mesa OpenVG
c1d2b5e2
AM
402License: MIT
403Group: Development/Libraries
bf8d2f73 404# EGL headers for <KHR/khrplatform.h>
c1d2b5e2
AM
405Requires: %{name}-libEGL-devel = %{version}-%{release}
406Requires: %{name}-libOpenVG = %{version}-%{release}
407
408%description libOpenVG-devel
278406ce 409Header file for Mesa OpenVG library.
c1d2b5e2
AM
410
411%description libOpenVG-devel -l pl.UTF-8
278406ce 412Plik nagłówkowy biblioteki Mesa OpenVG.
c1d2b5e2 413
9bfb354d 414%package libXvMC
a03101e6
JB
415Summary: Mesa implementations of XvMC API
416Summary(pl.UTF-8): Implementacje Mesa API XvMC
f4a8c5f6 417License: MIT
9bfb354d 418Group: Libraries
8eb275e9 419Requires: libdrm >= %{libdrm_ver}
9bfb354d 420# doesn't require base
875da849 421
9bfb354d 422%description libXvMC
a03101e6 423Mesa implementations of XvMC API.
875da849 424
9bfb354d 425%description libXvMC -l pl.UTF-8
a03101e6 426Implementacje Mesa API XvMC.
875da849 427
afe33c03 428%package dri-driver-ati-radeon-R100
362c6f99
JB
429Summary: X.org DRI driver for ATI R100 card family
430Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R100
f4a8c5f6 431License: MIT
18da5046 432Group: X11/Libraries
83c21438 433Requires: xorg-driver-video-ati
d70abe90
JB
434Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
435Requires: xorg-xserver-server >= %{xserver_ver}
8e26093b 436Obsoletes: X11-driver-radeon-dri < 1:7.0.0
afe33c03 437
438%description dri-driver-ati-radeon-R100
362c6f99 439X.org DRI driver for ATI R100 card family (Radeon 7000-7500).
afe33c03 440
f77f03b8 441%description dri-driver-ati-radeon-R100 -l pl.UTF-8
362c6f99 442Sterownik X.org DRI dla rodziny kart ATI R100 (Radeon 7000-7500).
afe33c03 443
444%package dri-driver-ati-radeon-R200
362c6f99
JB
445Summary: X.org DRI driver for ATI R200 card family
446Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R200
f4a8c5f6 447License: MIT
18da5046 448Group: X11/Libraries
83c21438 449Requires: xorg-driver-video-ati
d70abe90
JB
450Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
451Requires: xorg-xserver-server >= %{xserver_ver}
8e26093b 452Obsoletes: X11-driver-radeon-dri < 1:7.0.0
afe33c03 453
454%description dri-driver-ati-radeon-R200
362c6f99 455X.org DRI driver for ATI R200 card family (Radeon 8500-92xx)
afe33c03 456
f77f03b8 457%description dri-driver-ati-radeon-R200 -l pl.UTF-8
362c6f99 458Sterownik X.org DRI dla rodziny kart ATI R200 (Radeon 8500-92xx).
afe33c03 459
460%package dri-driver-ati-radeon-R300
362c6f99
JB
461Summary: X.org DRI driver for ATI R300 card family
462Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R300
f4a8c5f6 463License: MIT
18da5046 464Group: X11/Libraries
83c21438 465Requires: xorg-driver-video-ati
d70abe90
JB
466Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
467Requires: xorg-xserver-server >= %{xserver_ver}
8e26093b 468Obsoletes: X11-driver-radeon-dri < 1:7.0.0
afe33c03 469
470%description dri-driver-ati-radeon-R300
362c6f99 471X.org DRI driver for ATI R300 card family.
afe33c03 472
f77f03b8 473%description dri-driver-ati-radeon-R300 -l pl.UTF-8
362c6f99 474Sterownik X.org DRI dla rodziny kart ATI R300.
afe33c03 475
e68936d0
AM
476%package dri-driver-ati-radeon-R600
477Summary: X.org DRI driver for ATI R600 card family
478Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R600
479License: MIT
480Group: X11/Libraries
481Requires: radeon-ucode
482Requires: xorg-driver-video-ati
483Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
484Requires: xorg-xserver-server >= %{xserver_ver}
485
486%description dri-driver-ati-radeon-R600
487X.org DRI driver for ATI R600 card family.
488
489%description dri-driver-ati-radeon-R600 -l pl.UTF-8
490Sterownik X.org DRI dla rodziny kart ATI R600.
491
afe33c03 492%package dri-driver-intel-i915
362c6f99
JB
493Summary: X.org DRI driver for Intel i915 card family
494Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart Intel i915
f4a8c5f6 495License: MIT
18da5046 496Group: X11/Libraries
d70abe90
JB
497Requires: xorg-driver-video-intel
498Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
499Requires: xorg-xserver-server >= %{xserver_ver}
2db432a2 500Obsoletes: Mesa-dri-driver-intel-i830
8e26093b 501Obsoletes: X11-driver-i810-dri < 1:7.0.0
afe33c03 502
503%description dri-driver-intel-i915
362c6f99 504X.org DRI driver for Intel i915 card family.
afe33c03 505
f77f03b8 506%description dri-driver-intel-i915 -l pl.UTF-8
362c6f99 507Sterownik X.org DRI dla rodziny kart Intel i915.
afe33c03 508
b360f4f6 509%package dri-driver-intel-i965
362c6f99
JB
510Summary: X.org DRI driver for Intel i965 card family
511Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart Intel i965
f4a8c5f6 512License: MIT
b360f4f6 513Group: X11/Libraries
d70abe90
JB
514Requires: xorg-driver-video-intel
515Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
516Requires: xorg-xserver-server >= %{xserver_ver}
b360f4f6 517Obsoletes: Mesa-dri-driver-intel-i830
8e26093b 518Obsoletes: X11-driver-i810-dri < 1:7.0.0
b360f4f6 519
520%description dri-driver-intel-i965
362c6f99 521X.org DRI driver for Intel i965 card family.
b360f4f6 522
f77f03b8 523%description dri-driver-intel-i965 -l pl.UTF-8
362c6f99 524Sterownik X.org DRI dla rodziny kart Intel i965.
b360f4f6 525
3e88bc92
AM
526%package dri-driver-nouveau
527Summary: X.org DRI driver for NVIDIA card family
528Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart NVIDIA
529License: MIT
530Group: X11/Libraries
531Requires: xorg-driver-video-nouveau
532Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
533Requires: xorg-xserver-server >= %{xserver_ver}
534
535%description dri-driver-nouveau
536X.org DRI drivers for NVIDIA card family.
537
538%description dri-driver-nouveau -l pl.UTF-8
539Sterowniki X.org DRI dla rodziny kart NVIDIA.
540
f3606317 541%package dri-driver-swrast
362c6f99
JB
542Summary: X.org DRI software rasterizer driver
543Summary(pl.UTF-8): Sterownik X.org DRI obsługujący rysowanie programowe
f3606317
AM
544License: MIT
545Group: X11/Libraries
d70abe90
JB
546Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
547Requires: xorg-xserver-server >= %{xserver_ver}
f3606317
AM
548
549%description dri-driver-swrast
362c6f99 550X.org DRI software rasterizer driver.
f3606317
AM
551
552%description dri-driver-swrast -l pl.UTF-8
362c6f99 553Sterownik X.org DRI obsługujący rysowanie programowe.
f3606317 554
e68936d0
AM
555%package dri-driver-vmwgfx
556Summary: X.org DRI driver for VMware
557Summary(pl.UTF-8): Sterownik X.org DRI dla VMware
558License: MIT
559Group: X11/Libraries
0f9ae6ae 560Requires: xorg-driver-video-vmware
e68936d0
AM
561Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
562Requires: xorg-xserver-server >= %{xserver_ver}
563
564%description dri-driver-vmwgfx
565X.org DRI driver for VMWare.
566
567%description dri-driver-vmwgfx -l pl.UTF-8
568Sterownik X.org DRI dla VMware.
569
9bfb354d 570%package -n libvdpau-driver-mesa
a03101e6
JB
571Summary: Mesa drivers for the vdpau API
572Summary(pl.UTF-8): Sterowniki Mesa dla API vdpau
9bfb354d
AM
573License: MIT
574Group: X11/Libraries
8eb275e9
JB
575Requires: libdrm >= %{libdrm_ver}
576Requires: libvdpau >= 0.4.1
9bfb354d
AM
577
578%description -n libvdpau-driver-mesa
a03101e6 579Mesa drivers for the vdpau API.
9bfb354d
AM
580
581%description -n libvdpau-driver-mesa -l pl.UTF-8
a03101e6 582Sterowniki Mesa dla API vdpau.
9bfb354d 583
3d879b5c
AM
584# llvm build broken
585%define filterout_ld -Wl,--as-needed
586
a0b2836a 587%prep
bb686270 588%setup -q
6f53c8ab 589%patch0 -p0
a0b2836a 590
591%build
bb686270
AM
592%{__aclocal}
593%{__autoconf}
a5afae62 594
9bfb354d 595dri_drivers="r200 radeon \
8060076f 596%if %{without gallium_intel}
c1d2b5e2 597i915 i965 \
a5afae62 598%endif
59f12de8
AM
599%ifarch sparc sparcv9 sparc64
600ffb \
6299b3cd 601%endif
9bfb354d 602swrast"
59f12de8
AM
603
604dri_drivers=$(echo $dri_drivers | xargs | tr ' ' ',')
605
c1d2b5e2
AM
606gallium_drivers="svga swrast \
607%if %{with gallium_intel}
608i915 \
c1d2b5e2 609%endif
b8e6b6d7 610r300 \
c1d2b5e2 611r600 \
c1d2b5e2
AM
612%if %{with gallium_nouveau}
613nouveau \
614%endif
615"
616
617gallium_drivers=$(echo $gallium_drivers | xargs | tr ' ' ',')
618
59f12de8 619common_flags="\
9bfb354d 620 --enable-shared \
b4a5c074 621 --enable-glx-tls \
c885f99e
JB
622 --enable-pic \
623 --enable-selinux \
624 %{?with_static_libs:--enable-static} \
c1d2b5e2 625"
59f12de8 626
74a7a0e1 627osmesa_common_flags="\
59f12de8
AM
628 --with-driver=osmesa \
629 --disable-asm \
bf8d2f73
JB
630 --disable-egl \
631 --disable-glu"
74a7a0e1
AM
632
633%if %{with osmesa}
74a7a0e1 634%configure $common_flags $osmesa_common_flags \
59f12de8 635 --with-osmesa-bits=8
74a7a0e1 636%{__make}
bf8d2f73 637%{__make} -C src/mesa osmesa.pc
59f12de8 638mv %{_lib} osmesa8
bf8d2f73 639cp -p src/mesa/osmesa.pc osmesa8
59f12de8 640%{__make} clean
cb97a1c3 641%endif
59f12de8
AM
642
643%configure $common_flags \
9bfb354d 644 %{__enable gbm} \
f566cdfa 645 --enable-shared-glapi \
c885f99e
JB
646%if %{with egl}
647 --enable-egl \
648 --enable-gles1 \
649 --enable-gles2 \
650%endif
5f574b4b 651%if %{with gallium}
9bfb354d
AM
652 --enable-gallium-llvm \
653 %{__enable egl gallium-egl} \
654 %{__enable gbm gallium-gbm} \
f566cdfa 655 --enable-openvg \
9bfb354d
AM
656 --enable-vdpau \
657 --enable-xvmc \
c1d2b5e2 658 --with-gallium-drivers=${gallium_drivers} \
5f574b4b 659%else
5eb992a8 660 --without-gallium-drivers \
5f574b4b 661%endif
59f12de8
AM
662 --with-driver=dri \
663 --with-dri-drivers=${dri_drivers} \
664 --with-dri-driverdir=%{_libdir}/xorg/modules/dri
665
666%{__make}
59f12de8 667
a0b2836a 668%install
f5543b17 669rm -rf $RPM_BUILD_ROOT
ddde5931 670
59f12de8
AM
671%{__make} install \
672 DESTDIR=$RPM_BUILD_ROOT
ddde5931 673
cb97a1c3 674%if %{with osmesa}
f566cdfa 675cp -dp osmesa8/libOSMesa* $RPM_BUILD_ROOT%{_libdir}
bf8d2f73 676cp -p osmesa8/osmesa.pc $RPM_BUILD_ROOT%{_pkgconfigdir}
cb97a1c3 677%endif
f4a8c5f6 678
59f12de8 679# strip out undesirable headers
9bfb354d 680%{__rm} $RPM_BUILD_ROOT%{_includedir}/GL/{vms_x_fix,wglext,wmesa}.h
c1d2b5e2 681
f56e1323
JR
682# remove "OS ABI: Linux 2.4.20" tag, so private copies (nvidia or fglrx),
683# set up via /etc/ld.so.conf.d/*.conf will be preferred over this
684strip -R .note.ABI-tag $RPM_BUILD_ROOT%{_libdir}/libGL.so.*.*
685
abc9e15f
JB
686%clean
687rm -rf $RPM_BUILD_ROOT
688
bb686270
AM
689%post libEGL -p /sbin/ldconfig
690%postun libEGL -p /sbin/ldconfig
691
f445ed6c
JB
692%post libGL -p /sbin/ldconfig
693%postun libGL -p /sbin/ldconfig
694
c1d2b5e2
AM
695%post libGLES -p /sbin/ldconfig
696%postun libGLES -p /sbin/ldconfig
697
f445ed6c
JB
698%post libGLU -p /sbin/ldconfig
699%postun libGLU -p /sbin/ldconfig
700
c1d2b5e2
AM
701%post libOSMesa -p /sbin/ldconfig
702%postun libOSMesa -p /sbin/ldconfig
703
704%post libOpenVG -p /sbin/ldconfig
705%postun libOpenVG -p /sbin/ldconfig
706
9bfb354d
AM
707%post libXvMC -p /sbin/ldconfig
708%postun libXvMC -p /sbin/ldconfig
709
bb686270
AM
710%if %{with egl}
711%files libEGL
712%defattr(644,root,root,755)
713%attr(755,root,root) %{_libdir}/libEGL.so.*.*
c794b508 714%attr(755,root,root) %ghost %{_libdir}/libEGL.so.1
c1d2b5e2
AM
715%attr(755,root,root) %{_libdir}/libglapi.so.*.*
716%attr(755,root,root) %ghost %{_libdir}/libglapi.so.0
9bfb354d 717%if %{with gbm}
9bfb354d
AM
718%attr(755,root,root) %{_libdir}/libgbm.so.*.*
719%attr(755,root,root) %ghost %{_libdir}/libgbm.so.1
720%endif
c1d2b5e2 721%if %{with gallium}
bb686270 722%dir %{_libdir}/egl
c1d2b5e2 723%attr(755,root,root) %{_libdir}/egl/egl_gallium.so
9bfb354d 724%if %{with gbm}
c3f739d4 725%dir %{_libdir}/gbm
9bfb354d 726%attr(755,root,root) %{_libdir}/gbm/gbm_gallium_drm.so
f566cdfa
JB
727%attr(755,root,root) %{_libdir}/gbm/pipe_r300.so
728%attr(755,root,root) %{_libdir}/gbm/pipe_r600.so
9bfb354d 729%attr(755,root,root) %{_libdir}/gbm/pipe_vmwgfx.so
13f5098f
JB
730%if %{with gallium_intel}
731%attr(755,root,root) %{_libdir}/gbm/pipe_i915.so
732%endif
9bfb354d
AM
733%if %{with gallium_nouveau}
734%attr(755,root,root) %{_libdir}/gbm/pipe_nouveau.so
735%endif
c1d2b5e2 736%endif
9bfb354d 737%endif
bb686270
AM
738
739%files libEGL-devel
740%defattr(644,root,root,755)
741%attr(755,root,root) %{_libdir}/libEGL.so
c1d2b5e2 742%attr(755,root,root) %{_libdir}/libglapi.so
bb686270
AM
743%dir %{_includedir}/EGL
744%{_includedir}/EGL/egl.h
745%{_includedir}/EGL/eglext.h
9bfb354d 746%{_includedir}/EGL/eglmesaext.h
bb686270
AM
747%{_includedir}/EGL/eglplatform.h
748%dir %{_includedir}/KHR
749%{_includedir}/KHR/khrplatform.h
750%{_pkgconfigdir}/egl.pc
9bfb354d
AM
751%if %{with gbm}
752%attr(755,root,root) %{_libdir}/libgbm.so
753%{_includedir}/gbm.h
754%{_pkgconfigdir}/gbm.pc
755%endif
bb686270 756
c885f99e 757%if %{with static_libs}
bb686270
AM
758%files libEGL-static
759%defattr(644,root,root,755)
760%{_libdir}/libEGL.a
761%endif
762%endif
763
f445ed6c 764%files libGL
e9b3ff7a 765%defattr(644,root,root,755)
9bfb354d 766%doc docs/{*.html,README.{MITS,QUAKE,THREADS},RELNOTES*}
9b0e6ebb
JB
767%attr(755,root,root) %{_libdir}/libGL.so.*.*
768%attr(755,root,root) %ghost %{_libdir}/libGL.so.1
0cb33a09 769# symlink for binary apps which fail to conform Linux OpenGL ABI
bf8d2f73 770# (and dlopen libGL.so instead of libGL.so.1; the same does Mesa libEGL)
0cb33a09 771%attr(755,root,root) %{_libdir}/libGL.so
a0b2836a 772
f445ed6c 773%files libGL-devel
e9b3ff7a 774%defattr(644,root,root,755)
ddde5931 775%doc docs/*.spec
debcd977 776%dir %{_includedir}/GL
d3dd48bf 777%{_includedir}/GL/gl.h
e1833810 778%{_includedir}/GL/glext.h
d3dd48bf 779%{_includedir}/GL/gl_mangle.h
d3dd48bf 780%{_includedir}/GL/glx.h
abc9e15f 781%{_includedir}/GL/glxext.h
d3dd48bf 782%{_includedir}/GL/glx_mangle.h
1ec0796e
AM
783%dir %{_includedir}/GL/internal
784%{_includedir}/GL/internal/dri_interface.h
59f12de8 785%{_pkgconfigdir}/dri.pc
f4a8c5f6 786%{_pkgconfigdir}/gl.pc
a0b2836a 787
c885f99e 788%if %{with static_libs}
278406ce
JB
789%files libGL-static
790%defattr(644,root,root,755)
791%{_libdir}/libGL.a
792%endif
793
c1d2b5e2
AM
794%files libGLES
795%defattr(644,root,root,755)
cc59a107
JB
796%attr(755,root,root) %{_libdir}/libGLESv1_CM.so.*.*.*
797%attr(755,root,root) %ghost %{_libdir}/libGLESv1_CM.so.1
798%attr(755,root,root) %{_libdir}/libGLESv2.so.*.*
799%attr(755,root,root) %ghost %{_libdir}/libGLESv2.so.2
c1d2b5e2
AM
800
801%files libGLES-devel
802%defattr(644,root,root,755)
cc59a107
JB
803%attr(755,root,root) %{_libdir}/libGLESv1_CM.so
804%attr(755,root,root) %{_libdir}/libGLESv2.so
c1d2b5e2
AM
805%{_includedir}/GLES
806%{_includedir}/GLES2
cc59a107
JB
807%{_pkgconfigdir}/glesv1_cm.pc
808%{_pkgconfigdir}/glesv2.pc
c1d2b5e2 809
f445ed6c
JB
810%files libGLU
811%defattr(644,root,root,755)
9b0e6ebb 812%attr(755,root,root) %{_libdir}/libGLU.so.*.*
c794b508 813%attr(755,root,root) %ghost %{_libdir}/libGLU.so.1
f445ed6c
JB
814
815%files libGLU-devel
816%defattr(644,root,root,755)
817%attr(755,root,root) %{_libdir}/libGLU.so
818%{_includedir}/GL/glu.h
819%{_includedir}/GL/glu_mangle.h
f4a8c5f6 820%{_pkgconfigdir}/glu.pc
f445ed6c 821
c885f99e 822%if %{with static_libs}
f445ed6c
JB
823%files libGLU-static
824%defattr(644,root,root,755)
11062ced 825%{_libdir}/libGLU.a
59f12de8 826%endif
f445ed6c 827
cb97a1c3 828%if %{with osmesa}
f4a8c5f6
JB
829%files libOSMesa
830%defattr(644,root,root,755)
cc59a107 831%attr(755,root,root) %{_libdir}/libOSMesa.so.*.*
9bfb354d 832%attr(755,root,root) %ghost %{_libdir}/libOSMesa.so.8
f4a8c5f6
JB
833
834%files libOSMesa-devel
835%defattr(644,root,root,755)
cc59a107 836%attr(755,root,root) %{_libdir}/libOSMesa.so
f4a8c5f6 837%{_includedir}/GL/osmesa.h
bf8d2f73 838%{_pkgconfigdir}/osmesa.pc
f4a8c5f6 839
c885f99e 840%if %{with static_libs}
f4a8c5f6
JB
841%files libOSMesa-static
842%defattr(644,root,root,755)
cc59a107 843%{_libdir}/libOSMesa.a
59f12de8 844%endif
cb97a1c3 845%endif
f4a8c5f6 846
c1d2b5e2
AM
847%if %{with gallium}
848%files libOpenVG
849%defattr(644,root,root,755)
cc59a107 850%attr(755,root,root) %{_libdir}/libOpenVG.so.*.*.*
278406ce 851%attr(755,root,root) %ghost %{_libdir}/libOpenVG.so.1
c1d2b5e2
AM
852
853%files libOpenVG-devel
854%defattr(644,root,root,755)
278406ce 855%attr(755,root,root) %{_libdir}/libOpenVG.so
c1d2b5e2 856%{_includedir}/VG
c1d2b5e2
AM
857%{_pkgconfigdir}/vg.pc
858%endif
859
c3f739d4 860%if %{with gallium}
9bfb354d 861%files libXvMC
875da849 862%defattr(644,root,root,755)
9bfb354d
AM
863%attr(755,root,root) %ghost %{_libdir}/libXvMCnouveau.so.1
864%attr(755,root,root) %{_libdir}/libXvMCnouveau.so.1.0
865%attr(755,root,root) %ghost %{_libdir}/libXvMCr300.so.1
866%attr(755,root,root) %{_libdir}/libXvMCr300.so.1.0
867%attr(755,root,root) %ghost %{_libdir}/libXvMCr600.so.1
868%attr(755,root,root) %{_libdir}/libXvMCr600.so.1.0
869%attr(755,root,root) %ghost %{_libdir}/libXvMCsoftpipe.so.1
870%attr(755,root,root) %{_libdir}/libXvMCsoftpipe.so.1.0
c3f739d4 871%endif
afe33c03 872
873%files dri-driver-ati-radeon-R100
874%defattr(644,root,root,755)
875%attr(755,root,root) %{_libdir}/xorg/modules/dri/radeon_dri.so
876
877%files dri-driver-ati-radeon-R200
878%defattr(644,root,root,755)
879%attr(755,root,root) %{_libdir}/xorg/modules/dri/r200_dri.so
880
c3f739d4 881%if %{with gallium}
afe33c03 882%files dri-driver-ati-radeon-R300
883%defattr(644,root,root,755)
884%attr(755,root,root) %{_libdir}/xorg/modules/dri/r300_dri.so
885
e68936d0
AM
886%files dri-driver-ati-radeon-R600
887%defattr(644,root,root,755)
888%attr(755,root,root) %{_libdir}/xorg/modules/dri/r600_dri.so
c3f739d4 889%endif
e68936d0 890
afe33c03 891%files dri-driver-intel-i915
892%defattr(644,root,root,755)
5f574b4b 893%attr(755,root,root) %{_libdir}/xorg/modules/dri/i915_dri.so
afe33c03 894
6a1e9640 895%if %{without gallium}
b360f4f6 896%files dri-driver-intel-i965
897%defattr(644,root,root,755)
898%attr(755,root,root) %{_libdir}/xorg/modules/dri/i965_dri.so
6a1e9640 899%endif
b360f4f6 900
a3697dc6 901%if %{with gallium_nouveau}
3e88bc92
AM
902%files dri-driver-nouveau
903%defattr(644,root,root,755)
904%attr(755,root,root) %{_libdir}/xorg/modules/dri/nouveau_dri.so
a7a3223c 905%endif
3e88bc92 906
f3606317
AM
907%files dri-driver-swrast
908%defattr(644,root,root,755)
909%attr(755,root,root) %{_libdir}/xorg/modules/dri/swrast_dri.so
910
bb5f0825 911%if %{with gallium}
e68936d0
AM
912%files dri-driver-vmwgfx
913%defattr(644,root,root,755)
9c4e4073 914%attr(755,root,root) %{_libdir}/xorg/modules/dri/vmwgfx_dri.so
bb5f0825 915%endif
9bfb354d 916
c3f739d4 917%if %{with gallium}
9bfb354d
AM
918%files -n libvdpau-driver-mesa
919%defattr(644,root,root,755)
13f5098f 920# there is no ldconfig here, so package all symlinks
9bfb354d
AM
921%attr(755,root,root) %{_libdir}/vdpau/libvdpau_softpipe.so.1.0
922%attr(755,root,root) %{_libdir}/vdpau/libvdpau_softpipe.so.1
923%attr(755,root,root) %{_libdir}/vdpau/libvdpau_softpipe.so
924%attr(755,root,root) %{_libdir}/vdpau/libvdpau_r300.so.1.0
925%attr(755,root,root) %{_libdir}/vdpau/libvdpau_r300.so.1
926%attr(755,root,root) %{_libdir}/vdpau/libvdpau_r300.so
927%attr(755,root,root) %{_libdir}/vdpau/libvdpau_r600.so.1.0
928%attr(755,root,root) %{_libdir}/vdpau/libvdpau_r600.so.1
929%attr(755,root,root) %{_libdir}/vdpau/libvdpau_r600.so
c3f739d4 930%if %{with gallium_nouveau}
9bfb354d
AM
931%attr(755,root,root) %{_libdir}/vdpau/libvdpau_nouveau.so.1.0
932%attr(755,root,root) %{_libdir}/vdpau/libvdpau_nouveau.so.1
933%attr(755,root,root) %{_libdir}/vdpau/libvdpau_nouveau.so
c3f739d4
JB
934%endif
935%endif
This page took 0.318451 seconds and 4 git commands to generate.