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