3 # - subpackage with non-dri libGL for use with X-servers with missing GLX extension?
4 # - resurrect static if it's useful
7 %bcond_without egl # build egl
8 %bcond_without gallium # don't build gallium
9 %bcond_with gallium_intel # gallium i915 driver (but doesn't work with AIGLX)
10 %bcond_without gallium_nouveau # gallium nouveau driver
11 %bcond_without motif # build static libGLw without Motif interface
12 %bcond_with multigl # package libGL in a way allowing concurrent install with nvidia/fglrx drivers
13 %bcond_without osmesa # don't build osmesa
14 %bcond_without gbm # with Graphics Buffer Manager
15 %bcond_with static_libs # static libraries
17 # minimal supported xserver version
18 %define xserver_ver 1.5.0
19 # glapi version (glapi tables in dri drivers and libglx must be in sync);
20 # set to current Mesa version on ABI break, when xserver tables get regenerated
21 # (until they start to be somehow versioned themselves)
22 %define glapi_ver 7.1.0
24 %define libdrm_ver 2.4.30
25 %define dri2proto_ver 2.6
26 %define glproto_ver 1.4.11
30 Summary: Free OpenGL implementation
31 Summary(pl.UTF-8): Wolnodostępna implementacja standardu OpenGL
34 Release: 0.%{snap}.1%{?with_multigl:.mgl}
35 License: MIT (core), SGI (GLU) and others - see license.html file
37 Source0: %{name}Lib-%{snap}.tar.bz2
38 # Source0-md5: 8c2f1afb5fcae32ebfd5e3153ed7111b
39 Patch0: %{name}-realclean.patch
40 URL: http://www.mesa3d.org/
41 BuildRequires: autoconf >= 2.59
42 BuildRequires: automake
43 BuildRequires: expat-devel
44 BuildRequires: libdrm-devel >= %{libdrm_ver}
45 BuildRequires: libselinux-devel
46 BuildRequires: libstdc++-devel >= 5:3.3.0
47 BuildRequires: libtalloc-devel >= 2:2.0.1
48 BuildRequires: libtool >= 2:1.4d
49 BuildRequires: libvdpau-devel
50 BuildRequires: llvm-devel >= 2.9
51 %{?with_motif:BuildRequires: motif-devel}
52 BuildRequires: pixman-devel
53 BuildRequires: pkgconfig
54 BuildRequires: pkgconfig(talloc) >= 2.0.1
56 BuildRequires: python-libxml2
57 BuildRequires: python-modules
58 BuildRequires: rpmbuild(macros) >= 1.470
59 BuildRequires: sed >= 4.0
60 BuildRequires: xorg-lib-libXdamage-devel
61 BuildRequires: xorg-lib-libXext-devel >= 1.0.5
62 BuildRequires: xorg-lib-libXt-devel
63 BuildRequires: xorg-lib-libXvMC-devel
64 BuildRequires: xorg-lib-libXxf86vm-devel
65 BuildRequires: xorg-proto-dri2proto-devel >= %{dri2proto_ver}
66 BuildRequires: xorg-proto-glproto-devel >= %{glproto_ver}
67 BuildRequires: xorg-util-makedepend
68 BuildRequires: xorg-xserver-server-devel
70 BuildRequires: libxcb-devel
71 BuildRequires: udev-devel >= 150
74 BuildRequires: xorg-proto-xextproto-devel >= 7.0.99.1
75 BuildRequires: xorg-xserver-server-devel >= 1.6.0
77 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
79 %if %{without gallium}
80 %undefine with_gallium_intel
87 # _glapi_tls_Dispatch is defined in libglapi, but it's some kind of symbol ldd -r doesn't notice(?)
88 %define skip_post_check_so libGLESv1_CM.so.1.* libGLESv2.so.2.* libGL.so.1.* libXvMCnouveau.so.1.* libXvMCr300.so.1.* libXvMCr600.so.1.* libXvMCsoftpipe.so.1.* libvdpau_nouveau.so.1.*
91 Mesa is a 3-D graphics library with an API which is very similar to
92 that of OpenGL(R). To the extent that Mesa utilizes the OpenGL command
93 syntax or state machine, it is being used with authorization from
94 Silicon Graphics, Inc. However, the author does not possess an OpenGL
95 license from SGI, and makes no claim that Mesa is in any way a
96 compatible replacement for OpenGL or associated with SGI.
98 %description -l pl.UTF-8
99 Mesa jest biblioteką grafiki 3D z API bardzo podobnym do OpenGL(R). Do
100 tego stopnia, że Mesa używa składni i automatu OpenGL jest używana z
101 autoryzacją Silicon Graphics, Inc. Jednak autor nie posiada licencji
102 OpenGL od SGI i nie twierdzi, że Mesa jest kompatybilnym zamiennikiem
103 OpenGL ani powiązana z SGI.
106 Summary: Mesa implementation of EGL Native Platform Graphics Interface library
107 Summary(pl.UTF-8): Implementacja Mesa biblioteki interfejsu EGL
110 Requires: OpenGL >= 1.2
111 Requires: udev-libs >= 150
115 This package contains shared libEGL - Mesa implementation of EGL
116 Native Platform Graphics Interface as specified by Khronos Group:
117 <http://www.khronos.org/egl/>.
119 %description libEGL -l pl.UTF-8
120 Ten pakiet zawiera bibliotekę współdzieloną libEGL - implementację
121 Mesa standardu EGL Native Platform Graphics Interface (interfejsu
122 graficznego platformy natywnej) wg specyfikacji Khronos Group:
123 <http://www.khronos.org/egl/>.
125 %package libEGL-devel
126 Summary: Header files for Mesa implementation of EGL library
127 Summary(pl.UTF-8): Pliki nagłówkowe implementacji Mesa biblioteki EGL
129 Group: Development/Libraries
130 Requires: %{name}-libEGL = %{version}-%{release}
131 Requires: OpenGL-devel >= 1.2
132 Requires: libstdc++-devel
133 Provides: EGL-devel = 1.4
135 %description libEGL-devel
136 Header files for Mesa implementation of EGL library.
138 %description libEGL-devel -l pl.UTF-8
139 Pliki nagłówkowe implementacji Mesa biblioteki EGL.
141 %package libEGL-static
142 Summary: Static SGI libEGL library
143 Summary(pl.UTF-8): Statyczna biblioteka SGI libEGL
145 Group: Development/Libraries
146 Requires: %{name}-libEGL-devel = %{version}-%{release}
147 Provides: EGL-static = 1.4
149 %description libEGL-static
150 Static Mesa libEGL library.
152 %description libEGL-static -l pl.UTF-8
153 Statyczna biblioteka Mesa libEGL.
156 Summary: Mesa libGLES runtime libraries
160 Mesa GLES runtime libraries.
162 %description libGLES -l pl.UTF-8
163 Biblioteka Mesa GLES.
165 %package libGLES-devel
166 Summary: Header files for libGLES library
167 Group: Development/Libraries
168 Requires: %{name}-libGLES = %{version}-%{release}
170 %description libGLES-devel
171 Header files for libGLES library.
173 %description libGLES-devel -l pl.UTF-8
174 Pliki nagłówkowe biblioteki libGLES.
177 Summary: Free Mesa3D implementation of libGL OpenGL library
178 Summary(pl.UTF-8): Wolnodostępna implementacja Mesa3D biblioteki libGL ze standardu OpenGL
181 Requires: libdrm >= %{libdrm_ver}
182 Provides: OpenGL = 2.1
183 # reports version 1.3, but supports glXGetProcAddress() from 1.4
184 Provides: OpenGL-GLX = 1.4
187 Obsoletes: X11-OpenGL-libGL < 1:7.0.0
188 Obsoletes: XFree86-OpenGL-libGL < 1:7.0.0
191 Mesa is a 3-D graphics library with an API which is very similar to
192 that of OpenGL(R). To the extent that Mesa utilizes the OpenGL command
193 syntax or state machine, it is being used with authorization from
194 Silicon Graphics, Inc. However, the author does not possess an OpenGL
195 license from SGI, and makes no claim that Mesa is in any way a
196 compatible replacement for OpenGL or associated with SGI.
198 This package contains libGL which implements OpenGL 1.5 and GLX 1.4
199 specifications. It uses DRI for rendering.
201 %description libGL -l pl.UTF-8
202 Mesa jest biblioteką grafiki 3D z API bardzo podobnym do OpenGL(R). Do
203 tego stopnia, że Mesa używa składni i automatu OpenGL jest używana z
204 autoryzacją Silicon Graphics, Inc. Jednak autor nie posiada licencji
205 OpenGL od SGI i nie twierdzi, że Mesa jest kompatybilnym zamiennikiem
206 OpenGL ani powiązana z SGI.
208 Ten pakiet zawiera libGL implementującą specyfikacje OpenGL 1.5 oraz
209 GLX 1.4. Używa DRI do renderowania.
212 Summary: Header files for Mesa3D libGL library
213 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libGL z projektu Mesa3D
215 Group: X11/Development/Libraries
216 # loose dependency on libGL to use with other libGL binaries
217 Requires: OpenGL >= 1.5
218 Requires: libdrm-devel >= %{libdrm_ver}
219 Requires: xorg-lib-libX11-devel
220 Requires: xorg-lib-libXdamage-devel
221 Requires: xorg-lib-libXext-devel
222 Requires: xorg-lib-libXxf86vm-devel
223 Requires: xorg-proto-dri2proto-devel >= %{dri2proto_ver}
224 Requires: xorg-proto-glproto-devel >= %{glproto_ver}
225 Suggests: OpenGL-doc-man
226 Provides: OpenGL-GLX-devel = 1.4
227 Provides: OpenGL-devel = 2.1
228 Obsoletes: Mesa-devel
229 Obsoletes: X11-OpenGL-devel < 1:7.0.0
230 Obsoletes: X11-OpenGL-devel-base < 1:7.0.0
231 Obsoletes: XFree86-OpenGL-devel < 1:7.0.0
232 Obsoletes: XFree86-OpenGL-devel-base < 1:7.0.0
234 %description libGL-devel
235 Header files for Mesa3D libGL library.
237 %description libGL-devel -l pl.UTF-8
238 Pliki nagłówkowe biblioteki libGL z projektu Mesa3D.
240 %package libGL-static
241 Summary: Static Mesa3D libGL library
242 Summary(pl.UTF-8): Statyczna biblioteka libGL z projektu Mesa3D
244 Group: X11/Development/Libraries
245 Requires: %{name}-libGL-devel = %{version}-%{release}
246 Provides: OpenGL-static = 2.1
247 Obsoletes: Mesa-static
248 Obsoletes: X11-OpenGL-static < 1:7.0.0
249 Obsoletes: XFree86-OpenGL-static < 1:7.0.0
251 %description libGL-static
252 Static Mesa3D libGL library. It uses software renderer.
254 %description libGL-static -l pl.UTF-8
255 Statyczna biblioteka libGL z projektu Mesa3D. Używa programowego
259 Summary: SGI implementation of libGLU OpenGL library
260 Summary(pl.UTF-8): Implementacja SGI biblioteki libGLU ze standardu OpenGL
261 License: SGI Free Software License B v2.0 (MIT-like)
263 # loose dependency on libGL.so.1 to use with other libGL binaries
264 Requires: OpenGL >= 1.2
265 Provides: OpenGL-GLU = 1.3
266 Obsoletes: Mesa-devel
267 Obsoletes: X11-OpenGL-libs < 1:7.0.0
268 Obsoletes: XFree86-OpenGL-libs < 1:7.0.0
271 SGI implementation of libGLU OpenGL library. It implements OpenGL GLU
274 %description libGLU -l pl.UTF-8
275 Implementacja SGI biblioteki libGLU ze standardu OpenGL. Implementuje
276 specyfikację OpenGL GLU 1.3.
278 %package libGLU-devel
279 Summary: Header files for SGI libGLU library
280 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SGI libGLU
281 License: SGI Free Software License B v2.0 (MIT-like)
282 Group: Development/Libraries
283 Requires: %{name}-libGLU = %{version}-%{release}
284 Requires: OpenGL-devel >= 1.2
285 Requires: libstdc++-devel
286 Provides: OpenGL-GLU-devel = 1.3
288 %description libGLU-devel
289 Header files for SGI libGLU library.
291 %description libGLU-devel -l pl.UTF-8
292 Pliki nagłówkowe biblioteki SGI libGLU.
294 %package libGLU-static
295 Summary: Static SGI libGLU library
296 Summary(pl.UTF-8): Statyczna biblioteka SGI libGLU
297 License: SGI Free Software License B v2.0 (MIT-like)
298 Group: Development/Libraries
299 Requires: %{name}-libGLU-devel = %{version}-%{release}
300 Provides: OpenGL-GLU-static = 1.3
302 %description libGLU-static
303 Static SGI libGLU library.
305 %description libGLU-static -l pl.UTF-8
306 Statyczna biblioteka SGI libGLU.
309 Summary: OSMesa (off-screen renderer) library
310 Summary(pl.UTF-8): Biblioteka OSMesa (renderująca bitmapy w pamięci)
313 # doesn't require base
315 %description libOSMesa
316 OSMesa (off-screen renderer) library.
318 %description libOSMesa -l pl.UTF-8
319 Biblioteka OSMesa (renderująca bitmapy w pamięci).
321 %package libOSMesa-devel
322 Summary: Header file for OSMesa (off-screen renderer) library
323 Summary(pl.UTF-8): Plik nagłówkowy biblioteki OSMesa (renderującej bitmapy w pamięci)
325 Group: Development/Libraries
326 Requires: %{name}-libOSMesa = %{version}-%{release}
328 Requires: OpenGL-devel
330 %description libOSMesa-devel
331 Header file for OSMesa (off-screen renderer) library.
333 %description libOSMesa-devel -l pl.UTF-8
334 Plik nagłówkowy biblioteki OSMesa (renderującej bitmapy w pamięci).
336 %package libOSMesa-static
337 Summary: Static OSMesa (off-screen renderer) library
338 Summary(pl.UTF-8): Biblioteka statyczna OSMesa (renderująca bitmapy w pamięci)
340 Group: Development/Libraries
341 Requires: %{name}-libOSMesa-devel = %{version}-%{release}
342 # this static build of OSMesa needs static non-dri Mesa implementation
343 Requires: %{name}-libGL-static = %{version}-%{release}
345 %description libOSMesa-static
346 Static OSMesa (off-screen renderer) library.
348 %description libOSMesa-static -l pl.UTF-8
349 Biblioteka statyczna OSMesa (renderująca bitmapy w pamięci).
352 Summary: OpenVG API implementation
353 Summary(pl.UTF-8): Implementacja API OpenVG
356 # doesn't require base
358 %description libOpenVG
359 OpenVG API implementation.
361 %description libOpenVG -l pl.UTF-8
362 Implementacja API OpenVG.
364 %package libOpenVG-devel
365 Summary: Header file for libOpenVG library
366 Summary(pl.UTF-8): Plik nagłówkowy biblioteki libOpenVG
368 Group: Development/Libraries
369 # for <KHR/khrplatform.h>
370 Requires: %{name}-libEGL-devel = %{version}-%{release}
371 Requires: %{name}-libOpenVG = %{version}-%{release}
373 %description libOpenVG-devel
374 Header file for libOpenVG library.
376 %description libOpenVG-devel -l pl.UTF-8
377 Plik nagłówkowy biblioteki libOpenVG.
380 Summary: XvMC implementations
381 Summary(pl.UTF-8): Implementacje API XvMC
384 # doesn't require base
387 libXvMC implementations.
389 %description libXvMC -l pl.UTF-8
390 Implementacje API libXvMC.
393 Summary: OpenGL utilities from Mesa3D
394 Summary(pl.UTF-8): Programy narzędziowe OpenGL z projektu Mesa3D
396 Group: X11/Applications/Graphics
397 # loose deps on libGL/libGLU
400 OpenGL utilities from Mesa3D: glxgears and glxinfo.
402 %description utils -l pl.UTF-8
403 Programy narzędziowe OpenGL z projektu Mesa3D: glxgears i glxinfo.
405 %package dri-driver-ati-radeon-R100
406 Summary: X.org DRI driver for ATI R100 card family
407 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R100
410 Requires: xorg-driver-video-ati
411 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
412 Requires: xorg-xserver-server >= %{xserver_ver}
413 Obsoletes: X11-driver-radeon-dri < 1:7.0.0
415 %description dri-driver-ati-radeon-R100
416 X.org DRI driver for ATI R100 card family (Radeon 7000-7500).
418 %description dri-driver-ati-radeon-R100 -l pl.UTF-8
419 Sterownik X.org DRI dla rodziny kart ATI R100 (Radeon 7000-7500).
421 %package dri-driver-ati-radeon-R200
422 Summary: X.org DRI driver for ATI R200 card family
423 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R200
426 Requires: xorg-driver-video-ati
427 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
428 Requires: xorg-xserver-server >= %{xserver_ver}
429 Obsoletes: X11-driver-radeon-dri < 1:7.0.0
431 %description dri-driver-ati-radeon-R200
432 X.org DRI driver for ATI R200 card family (Radeon 8500-92xx)
434 %description dri-driver-ati-radeon-R200 -l pl.UTF-8
435 Sterownik X.org DRI dla rodziny kart ATI R200 (Radeon 8500-92xx).
437 %package dri-driver-ati-radeon-R300
438 Summary: X.org DRI driver for ATI R300 card family
439 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R300
442 Requires: xorg-driver-video-ati
443 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
444 Requires: xorg-xserver-server >= %{xserver_ver}
445 Obsoletes: X11-driver-radeon-dri < 1:7.0.0
447 %description dri-driver-ati-radeon-R300
448 X.org DRI driver for ATI R300 card family.
450 %description dri-driver-ati-radeon-R300 -l pl.UTF-8
451 Sterownik X.org DRI dla rodziny kart ATI R300.
453 %package dri-driver-ati-radeon-R600
454 Summary: X.org DRI driver for ATI R600 card family
455 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R600
458 Requires: radeon-ucode
459 Requires: xorg-driver-video-ati
460 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
461 Requires: xorg-xserver-server >= %{xserver_ver}
463 %description dri-driver-ati-radeon-R600
464 X.org DRI driver for ATI R600 card family.
466 %description dri-driver-ati-radeon-R600 -l pl.UTF-8
467 Sterownik X.org DRI dla rodziny kart ATI R600.
469 %package dri-driver-ffb
470 Summary: X.org DRI driver for Sun FFB card family
471 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart Sun FFB
474 Requires: xorg-driver-video-sunffb
475 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
476 Requires: xorg-xserver-server >= %{xserver_ver}
478 %description dri-driver-ffb
479 X.org DRI driver for SUN Creator3D and Elite3D card family.
481 %description dri-driver-ffb -l pl.UTF-8
482 Sterownik X.org DRI dla rodziny kart SUN Creator3D i Elite3D.
484 %package dri-driver-glint
485 Summary: X.org DRI driver for GLINT/Permedia card family
486 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart GLINT/Permedia
489 Requires: xorg-driver-video-glint
490 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
491 Requires: xorg-xserver-server >= %{xserver_ver}
492 Obsoletes: X11-driver-glint-dri < 1:7.0.0
494 %description dri-driver-glint
495 X.org DRI driver for GLINT/Permedia card family.
497 %description dri-driver-glint -l pl.UTF-8
498 Sterownik X.org DRI dla rodziny kart GLINT/Permedia.
500 %package dri-driver-intel-i915
501 Summary: X.org DRI driver for Intel i915 card family
502 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart Intel i915
505 Requires: xorg-driver-video-intel
506 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
507 Requires: xorg-xserver-server >= %{xserver_ver}
508 Obsoletes: Mesa-dri-driver-intel-i830
509 Obsoletes: X11-driver-i810-dri < 1:7.0.0
511 %description dri-driver-intel-i915
512 X.org DRI driver for Intel i915 card family.
514 %description dri-driver-intel-i915 -l pl.UTF-8
515 Sterownik X.org DRI dla rodziny kart Intel i915.
517 %package dri-driver-intel-i965
518 Summary: X.org DRI driver for Intel i965 card family
519 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart Intel i965
522 Requires: xorg-driver-video-intel
523 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
524 Requires: xorg-xserver-server >= %{xserver_ver}
525 Obsoletes: Mesa-dri-driver-intel-i830
526 Obsoletes: X11-driver-i810-dri < 1:7.0.0
528 %description dri-driver-intel-i965
529 X.org DRI driver for Intel i965 card family.
531 %description dri-driver-intel-i965 -l pl.UTF-8
532 Sterownik X.org DRI dla rodziny kart Intel i965.
534 %package dri-driver-nouveau
535 Summary: X.org DRI driver for NVIDIA card family
536 Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart NVIDIA
539 Requires: xorg-driver-video-nouveau
540 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
541 Requires: xorg-xserver-server >= %{xserver_ver}
543 %description dri-driver-nouveau
544 X.org DRI drivers for NVIDIA card family.
546 %description dri-driver-nouveau -l pl.UTF-8
547 Sterowniki X.org DRI dla rodziny kart NVIDIA.
549 %package dri-driver-swrast
550 Summary: X.org DRI software rasterizer driver
551 Summary(pl.UTF-8): Sterownik X.org DRI obsługujący rysowanie programowe
554 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
555 Requires: xorg-xserver-server >= %{xserver_ver}
557 %description dri-driver-swrast
558 X.org DRI software rasterizer driver.
560 %description dri-driver-swrast -l pl.UTF-8
561 Sterownik X.org DRI obsługujący rysowanie programowe.
563 %package dri-driver-vmwgfx
564 Summary: X.org DRI driver for VMware
565 Summary(pl.UTF-8): Sterownik X.org DRI dla VMware
568 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
569 Requires: xorg-xserver-server >= %{xserver_ver}
571 %description dri-driver-vmwgfx
572 X.org DRI driver for VMWare.
574 %description dri-driver-vmwgfx -l pl.UTF-8
575 Sterownik X.org DRI dla VMware.
577 %package -n libvdpau-driver-mesa
578 Summary: Mesa driver for the vdpau API
579 Summary(pl.UTF-8): Sterownik Mesa dla API vdpau
583 %description -n libvdpau-driver-mesa
584 Mesa driver for the vdpau API.
586 %description -n libvdpau-driver-mesa -l pl.UTF-8
587 Sterownik Mesa dla API vdpau.
590 %define filterout_ld -Wl,--as-needed
597 if [ -x autogen.sh ]; then
604 dri_drivers="r200 radeon \
605 %if %{without gallium_intel}
608 %ifarch sparc sparcv9 sparc64
613 dri_drivers=$(echo $dri_drivers | xargs | tr ' ' ',')
615 gallium_drivers="svga swrast \
616 %if %{with gallium_intel}
622 %if %{with gallium_nouveau}
627 gallium_drivers=$(echo $gallium_drivers | xargs | tr ' ' ',')
641 osmesa_common_flags="\
642 --with-driver=osmesa \
648 %configure $common_flags $osmesa_common_flags \
655 %configure $common_flags \
656 --enable-shared-glapi \
665 %{__enable egl gallium-egl} \
666 %{__enable gbm gallium-gbm} \
669 --with-gallium-drivers=${gallium_drivers} \
674 --with-dri-drivers=${dri_drivers} \
675 --with-dri-driverdir=%{_libdir}/xorg/modules/dri
680 rm -rf $RPM_BUILD_ROOT
682 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
684 # libs without drivers
686 DESTDIR=$RPM_BUILD_ROOT
689 cp -dp osmesa8/libOSMesa* $RPM_BUILD_ROOT%{_libdir}
692 rm -rf $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/*/{.deps,CVS,Makefile.{BeOS*,win,cygnus,DJ,dja}}
694 # strip out undesirable headers
696 cd $RPM_BUILD_ROOT%{_includedir}/GL
698 cd $RPM_BUILD_ROOT%{_libdir}
702 install -d $RPM_BUILD_ROOT{%{_libdir}/Mesa,%{_sysconfdir}/ld.so.conf.d}
704 mv -f $RPM_BUILD_ROOT%{_libdir}/libGL.so.* $RPM_BUILD_ROOT%{_libdir}/Mesa
705 ln -sf Mesa/libGL.so.1 $RPM_BUILD_ROOT%{_libdir}/libGL.so
707 echo %{_libdir}/Mesa >$RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/Mesa.conf
711 rm -rf $RPM_BUILD_ROOT
713 %post libEGL -p /sbin/ldconfig
714 %postun libEGL -p /sbin/ldconfig
716 %post libGL -p /sbin/ldconfig
717 %postun libGL -p /sbin/ldconfig
719 %post libGLES -p /sbin/ldconfig
720 %postun libGLES -p /sbin/ldconfig
722 %post libGLU -p /sbin/ldconfig
723 %postun libGLU -p /sbin/ldconfig
725 %post libOSMesa -p /sbin/ldconfig
726 %postun libOSMesa -p /sbin/ldconfig
728 %post libOpenVG -p /sbin/ldconfig
729 %postun libOpenVG -p /sbin/ldconfig
731 %post libXvMC -p /sbin/ldconfig
732 %postun libXvMC -p /sbin/ldconfig
736 %defattr(644,root,root,755)
737 %attr(755,root,root) %{_libdir}/libEGL.so.*.*
738 %attr(755,root,root) %ghost %{_libdir}/libEGL.so.1
741 %attr(755,root,root) %{_libdir}/libgbm.so.*.*
742 %attr(755,root,root) %ghost %{_libdir}/libgbm.so.1
746 %attr(755,root,root) %{_libdir}/egl/egl_gallium.so
747 #%attr(755,root,root) %{_libdir}/egl/st_GL.so
748 %attr(755,root,root) %{_libdir}/gbm/pipe_r300.so
749 %attr(755,root,root) %{_libdir}/gbm/pipe_r600.so
751 %attr(755,root,root) %{_libdir}/gbm/gbm_gallium_drm.so
752 %attr(755,root,root) %{_libdir}/gbm/pipe_vmwgfx.so
753 %if %{with gallium_nouveau}
754 %attr(755,root,root) %{_libdir}/gbm/pipe_nouveau.so
756 %if %{with gallium_intel}
757 %attr(755,root,root) %{_libdir}/gbm/pipe_i915.so
758 %attr(755,root,root) %{_libdir}/gbm/pipe_i965.so
764 %defattr(644,root,root,755)
765 %attr(755,root,root) %{_libdir}/libEGL.so
766 %dir %{_includedir}/EGL
767 %{_includedir}/EGL/egl.h
768 %{_includedir}/EGL/eglext.h
769 %{_includedir}/EGL/eglmesaext.h
770 %{_includedir}/EGL/eglplatform.h
771 %dir %{_includedir}/KHR
772 %{_includedir}/KHR/khrplatform.h
773 %{_pkgconfigdir}/egl.pc
775 %attr(755,root,root) %{_libdir}/libgbm.so
777 %{_pkgconfigdir}/gbm.pc
780 %if %{with static_libs}
782 %defattr(644,root,root,755)
788 %defattr(644,root,root,755)
789 %doc docs/{*.html,README.{MITS,QUAKE,THREADS},RELNOTES*}
790 %attr(755,root,root) %{_libdir}/libglapi.so.*.*
791 %attr(755,root,root) %ghost %{_libdir}/libglapi.so.0
793 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ld.so.conf.d/Mesa.conf
795 %attr(755,root,root) %{_libdir}/Mesa/libGL.so.*.*
796 %attr(755,root,root) %ghost %{_libdir}/Mesa/libGL.so.1
798 %attr(755,root,root) %{_libdir}/libGL.so.*.*
799 %attr(755,root,root) %ghost %{_libdir}/libGL.so.1
800 # symlink for binary apps which fail to conform Linux OpenGL ABI
801 # (and dlopen libGL.so instead of libGL.so.1)
802 %attr(755,root,root) %{_libdir}/libGL.so
806 %defattr(644,root,root,755)
808 %attr(755,root,root) %{_libdir}/libglapi.so
810 %attr(755,root,root) %{_libdir}/libGL.so
812 %dir %{_includedir}/GL
813 %{_includedir}/GL/gl.h
814 %{_includedir}/GL/glext.h
815 %{_includedir}/GL/gl_mangle.h
816 %{_includedir}/GL/glx.h
817 %{_includedir}/GL/glxext.h
818 %{_includedir}/GL/glx_mangle.h
819 %dir %{_includedir}/GL/internal
820 %{_includedir}/GL/internal/dri_interface.h
821 %{_pkgconfigdir}/dri.pc
822 %{_pkgconfigdir}/gl.pc
825 %defattr(644,root,root,755)
826 %attr(755,root,root) %{_libdir}/libGLES*.so.*.*
827 %attr(755,root,root) %ghost %{_libdir}/libGLES*.so.[0-9]
830 %defattr(644,root,root,755)
831 %attr(755,root,root) %{_libdir}/libGLES*.so
834 %{_pkgconfigdir}/gles*.pc
836 %if %{with static_libs}
838 %defattr(644,root,root,755)
843 %defattr(644,root,root,755)
844 %attr(755,root,root) %{_libdir}/libGLU.so.*.*
845 %attr(755,root,root) %ghost %{_libdir}/libGLU.so.1
848 %defattr(644,root,root,755)
849 %attr(755,root,root) %{_libdir}/libGLU.so
850 %{_includedir}/GL/glu.h
851 %{_includedir}/GL/glu_mangle.h
852 %{_pkgconfigdir}/glu.pc
854 %if %{with static_libs}
856 %defattr(644,root,root,755)
862 %defattr(644,root,root,755)
863 %attr(755,root,root) %{_libdir}/libOSMesa*.so.*.*
864 %attr(755,root,root) %ghost %{_libdir}/libOSMesa*.so.8
866 %files libOSMesa-devel
867 %defattr(644,root,root,755)
868 %attr(755,root,root) %{_libdir}/libOSMesa*.so
869 %{_includedir}/GL/osmesa.h
871 %if %{with static_libs}
872 %files libOSMesa-static
873 %defattr(644,root,root,755)
874 %{_libdir}/libOSMesa*.a
880 %defattr(644,root,root,755)
881 %attr(755,root,root) %ghost %{_libdir}/libOpenVG.so.1
882 %attr(755,root,root) %{_libdir}/libOpenVG.so.1.0.0
884 %files libOpenVG-devel
885 %defattr(644,root,root,755)
887 %{_libdir}/libOpenVG.so
888 %{_pkgconfigdir}/vg.pc
892 %defattr(644,root,root,755)
893 %attr(755,root,root) %ghost %{_libdir}/libXvMCnouveau.so.1
894 %attr(755,root,root) %{_libdir}/libXvMCnouveau.so.1.0
895 %attr(755,root,root) %ghost %{_libdir}/libXvMCr300.so.1
896 %attr(755,root,root) %{_libdir}/libXvMCr300.so.1.0
897 %attr(755,root,root) %ghost %{_libdir}/libXvMCr600.so.1
898 %attr(755,root,root) %{_libdir}/libXvMCr600.so.1.0
899 %attr(755,root,root) %ghost %{_libdir}/libXvMCsoftpipe.so.1
900 %attr(755,root,root) %{_libdir}/libXvMCsoftpipe.so.1.0
902 %files dri-driver-ati-radeon-R100
903 %defattr(644,root,root,755)
904 %attr(755,root,root) %{_libdir}/xorg/modules/dri/radeon_dri.so
906 %files dri-driver-ati-radeon-R200
907 %defattr(644,root,root,755)
908 %attr(755,root,root) %{_libdir}/xorg/modules/dri/r200_dri.so
910 %files dri-driver-ati-radeon-R300
911 %defattr(644,root,root,755)
912 %attr(755,root,root) %{_libdir}/xorg/modules/dri/r300_dri.so
914 %files dri-driver-ati-radeon-R600
915 %defattr(644,root,root,755)
916 %attr(755,root,root) %{_libdir}/xorg/modules/dri/r600_dri.so
918 # sunffb (sparc only)
919 %ifarch sparc sparcv9 sparc64
920 %files dri-driver-ffb
921 %defattr(644,root,root,755)
922 %attr(755,root,root) %{_libdir}/xorg/modules/dri/ffb_dri.so
925 # glint (requires update)
927 %files dri-driver-glint
928 %defattr(644,root,root,755)
929 %attr(755,root,root) %{_libdir}/xorg/modules/dri/gamma_dri.so
932 %files dri-driver-intel-i915
933 %defattr(644,root,root,755)
934 %attr(755,root,root) %{_libdir}/xorg/modules/dri/i915_dri.so
936 %files dri-driver-intel-i965
937 %defattr(644,root,root,755)
938 %attr(755,root,root) %{_libdir}/xorg/modules/dri/i965_dri.so
939 %if %{with gallium_intel}
940 #%attr(755,root,root) %{_libdir}/xorg/modules/drivers/i965g_drv.so
944 %if %{with gallium_nouveau}
945 %files dri-driver-nouveau
946 %defattr(644,root,root,755)
947 %attr(755,root,root) %{_libdir}/xorg/modules/dri/nouveau_dri.so
951 %files dri-driver-swrast
952 %defattr(644,root,root,755)
953 %attr(755,root,root) %{_libdir}/xorg/modules/dri/swrast_dri.so
956 %files dri-driver-vmwgfx
957 %defattr(644,root,root,755)
958 %attr(755,root,root) %{_libdir}/xorg/modules/dri/vmwgfx_dri.so
961 %files -n libvdpau-driver-mesa
962 %defattr(644,root,root,755)
963 # there is no ldconfig here
964 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_softpipe.so.1.0
965 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_softpipe.so.1
966 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_softpipe.so
967 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_r300.so.1.0
968 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_r300.so.1
969 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_r300.so
970 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_r600.so.1.0
971 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_r600.so.1
972 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_r600.so
973 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_nouveau.so.1.0
974 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_nouveau.so.1
975 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_nouveau.so