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