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