1 # TODO: is separate libGL needed for DRI1 versions, or libGL 8.x is still compatible?
4 %bcond_with static_libs # build static libGL
6 # minimal supported xserver version
7 %define xserver_ver 1.5.0
8 # glapi version (glapi tables in dri drivers and libglx must be in sync);
9 # set to current Mesa version on ABI break, when xserver tables get regenerated
10 # (until they start to be somehow versioned themselves)
11 %define glapi_ver 7.1.0
13 %define libdrm_ver 2.4.25
14 %define dri2proto_ver 2.6
15 %define glproto_ver 1.4.11
17 Summary: Free OpenGL implementation - legacy version for DRI1 drivers
18 Summary(pl.UTF-8): Wolnodostępna implementacja standardu OpenGL - starsza wersja ze sterownikami DRI1
19 Name: Mesa-legacy-dri1
24 Source0: ftp://ftp.freedesktop.org/pub/mesa/%{version}/MesaLib-%{version}.tar.bz2
25 # Source0-md5: 0837c52698fe3252369c3fdb5195afcc
26 Patch0: Mesa-realclean.patch
27 Patch1: Mesa-selinux.patch
28 URL: http://www.mesa3d.org/
29 BuildRequires: autoconf >= 2.59
30 BuildRequires: automake
31 BuildRequires: expat-devel
32 BuildRequires: gcc >= 5:3.3
33 BuildRequires: libdrm-devel >= %{libdrm_ver}
34 BuildRequires: libselinux-devel
35 BuildRequires: libstdc++-devel >= 5:3.3.0
36 BuildRequires: libtool >= 2:1.4d
37 BuildRequires: pixman-devel
38 BuildRequires: pkgconfig
40 BuildRequires: python-libxml2
41 BuildRequires: python-modules
42 BuildRequires: rpmbuild(macros) >= 1.470
43 BuildRequires: sed >= 4.0
44 BuildRequires: xorg-lib-libXdamage-devel
45 BuildRequires: xorg-lib-libXext-devel >= 1.0.5
46 BuildRequires: xorg-lib-libXt-devel
47 BuildRequires: xorg-lib-libXxf86vm-devel
48 BuildRequires: xorg-proto-dri2proto-devel >= %{dri2proto_ver}
49 BuildRequires: xorg-proto-glproto-devel >= %{glproto_ver}
50 BuildRequires: xorg-util-makedepend
51 BuildRequires: xorg-xserver-server-devel
52 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
55 Mesa is a 3-D graphics library with an API which is very similar to
56 that of OpenGL(R). To the extent that Mesa utilizes the OpenGL command
57 syntax or state machine, it is being used with authorization from
58 Silicon Graphics, Inc. However, the author does not possess an OpenGL
59 license from SGI, and makes no claim that Mesa is in any way a
60 compatible replacement for OpenGL or associated with SGI.
62 This package contains legacy version for DRI1 drivers.
64 %description -l pl.UTF-8
65 Mesa jest biblioteką grafiki 3D z API bardzo podobnym do OpenGL(R). Do
66 tego stopnia, że Mesa używa składni i automatu OpenGL jest używana z
67 autoryzacją Silicon Graphics, Inc. Jednak autor nie posiada licencji
68 OpenGL od SGI i nie twierdzi, że Mesa jest kompatybilnym zamiennikiem
69 OpenGL ani powiązana z SGI.
71 Ten pakiet zawiera starszą wersję ze sterownikami DRI1.
74 Summary: Free Mesa3D implementation of libGL OpenGL library
75 Summary(pl.UTF-8): Wolnodostępna implementacja Mesa3D biblioteki libGL ze standardu OpenGL
77 Requires: libdrm >= %{libdrm_ver}
78 Provides: OpenGL = 2.1
79 Provides: OpenGL-GLX = 1.4
82 Obsoletes: X11-OpenGL-libGL < 1:7.0.0
83 Obsoletes: XFree86-OpenGL-libGL < 1:7.0.0
86 Mesa is a 3-D graphics library with an API which is very similar to
87 that of OpenGL(R). To the extent that Mesa utilizes the OpenGL command
88 syntax or state machine, it is being used with authorization from
89 Silicon Graphics, Inc. However, the author does not possess an OpenGL
90 license from SGI, and makes no claim that Mesa is in any way a
91 compatible replacement for OpenGL or associated with SGI.
93 This package contains libGL which implements OpenGL 1.5 and GLX 1.4
94 specifications. It uses DRI for rendering.
96 %description libGL -l pl.UTF-8
97 Mesa jest biblioteką grafiki 3D z API bardzo podobnym do OpenGL(R). Do
98 tego stopnia, że Mesa używa składni i automatu OpenGL jest używana z
99 autoryzacją Silicon Graphics, Inc. Jednak autor nie posiada licencji
100 OpenGL od SGI i nie twierdzi, że Mesa jest kompatybilnym zamiennikiem
101 OpenGL ani powiązana z SGI.
103 Ten pakiet zawiera libGL implementującą specyfikacje OpenGL 1.5 oraz
104 GLX 1.4. Używa DRI do renderowania.
107 Summary: Header files for Mesa3D libGL library
108 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libGL z projektu Mesa3D
109 Group: X11/Development/Libraries
110 # loose dependency on libGL to use with other libGL binaries
111 Requires: OpenGL >= 1.5
112 Requires: libdrm-devel >= %{libdrm_ver}
113 Requires: xorg-lib-libX11-devel
114 Requires: xorg-lib-libXdamage-devel
115 Requires: xorg-lib-libXext-devel
116 Requires: xorg-lib-libXxf86vm-devel
117 Requires: xorg-proto-dri2proto-devel >= %{dri2proto_ver}
118 Requires: xorg-proto-glproto-devel >= %{glproto_ver}
119 Suggests: OpenGL-doc-man
120 Provides: OpenGL-GLX-devel = 1.4
121 Provides: OpenGL-devel = 2.1
122 Obsoletes: Mesa-devel
123 Obsoletes: X11-OpenGL-devel < 1:7.0.0
124 Obsoletes: X11-OpenGL-devel-base < 1:7.0.0
125 Obsoletes: XFree86-OpenGL-devel < 1:7.0.0
126 Obsoletes: XFree86-OpenGL-devel-base < 1:7.0.0
128 %description libGL-devel
129 Header files for Mesa3D libGL library.
131 %description libGL-devel -l pl.UTF-8
132 Pliki nagłówkowe biblioteki libGL z projektu Mesa3D.
134 %package libGL-static
135 Summary: Static Mesa3D libGL library
136 Summary(pl.UTF-8): Statyczna biblioteka libGL z projektu Mesa3D
137 Group: X11/Development/Libraries
138 Requires: %{name}-libGL-devel = %{version}-%{release}
139 Provides: OpenGL-static = 2.1
140 Obsoletes: Mesa-static
141 Obsoletes: X11-OpenGL-static < 1:7.0.0
142 Obsoletes: XFree86-OpenGL-static < 1:7.0.0
144 %description libGL-static
145 Static Mesa3D libGL library. It uses software renderer.
147 %description libGL-static -l pl.UTF-8
148 Statyczna biblioteka libGL z projektu Mesa3D. Używa programowego
151 %package -n Mesa-dri-driver-ati-mach64
152 Summary: X.org DRI1 driver for ATI Mach64 card family
153 Summary(pl.UTF-8): Sterownik X.org DRI1 dla rodziny kart ATI Mach64
155 Requires: xorg-driver-video-mach64
156 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
157 Requires: xorg-xserver-server >= %{xserver_ver}
159 %description -n Mesa-dri-driver-ati-mach64
160 X.org DRI1 driver for ATI Mach64 card family.
162 %description -n Mesa-dri-driver-ati-mach64 -l pl.UTF-8
163 Sterownik X.org DRI1 dla rodziny kart ATI Mach64.
165 %package -n Mesa-dri-driver-ati-rage128
166 Summary: X.org DRI1 driver for ATI Rage128 card family
167 Summary(pl.UTF-8): Sterownik X.org DRI1 dla rodziny kart ATI Rage128
170 Requires: xorg-driver-video-r128
171 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
172 Requires: xorg-xserver-server >= %{xserver_ver}
173 Obsoletes: X11-driver-r128-dri < 1:7.0.0
175 %description -n Mesa-dri-driver-ati-rage128
176 X.org DRI1 driver for ATI Rage128 card family.
178 %description -n Mesa-dri-driver-ati-rage128 -l pl.UTF-8
179 Sterownik X.org DRI1 dla rodziny kart ATI Rage128.
181 %package -n Mesa-dri-driver-ffb
182 Summary: X.org DRI1 driver for Sun FFB card family
183 Summary(pl.UTF-8): Sterownik X.org DRI1 dla rodziny kart Sun FFB
186 Requires: xorg-driver-video-sunffb
187 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
188 Requires: xorg-xserver-server >= %{xserver_ver}
190 %description -n Mesa-dri-driver-ffb
191 X.org DRI1 driver for SUN Creator3D and Elite3D card family.
193 %description -n Mesa-dri-driver-ffb -l pl.UTF-8
194 Sterownik X.org DRI1 dla rodziny kart SUN Creator3D i Elite3D.
196 %package -n Mesa-dri-driver-glint
197 Summary: X.org DRI1 driver for GLINT/Permedia card family
198 Summary(pl.UTF-8): Sterownik X.org DRI1 dla rodziny kart GLINT/Permedia
201 Requires: xorg-driver-video-glint
202 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
203 Requires: xorg-xserver-server >= %{xserver_ver}
204 Obsoletes: X11-driver-glint-dri < 1:7.0.0
206 %description -n Mesa-dri-driver-glint
207 X.org DRI1 driver for GLINT/Permedia card family.
209 %description -n Mesa-dri-driver-glint -l pl.UTF-8
210 Sterownik X.org DRI1 dla rodziny kart GLINT/Permedia.
212 %package -n Mesa-dri-driver-intel-i810
213 Summary: X.org DRI1 driver for Intel i810 card family
214 Summary(pl.UTF-8): Sterownik X.org DRI1 dla rodziny kart Intel i810
217 Requires: xorg-driver-video-intel
218 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
219 Requires: xorg-xserver-server >= %{xserver_ver}
220 Obsoletes: X11-driver-i810-dri < 1:7.0.0
222 %description -n Mesa-dri-driver-intel-i810
223 X.org DRI1 driver for Intel i810 card family.
225 %description -n Mesa-dri-driver-intel-i810 -l pl.UTF-8
226 Sterownik X.org DRI1 dla rodziny kart Intel i810.
228 %package -n Mesa-dri-driver-matrox
229 Summary: X.org DRI1 driver for Matrox G card family
230 Summary(pl.UTF-8): Sterownik X.org DRI1 dla rodziny kart Matrox G
233 Requires: xorg-driver-video-mga
234 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
235 Requires: xorg-xserver-server >= %{xserver_ver}
236 Obsoletes: X11-driver-mga-dri < 1:7.0.0
238 %description -n Mesa-dri-driver-matrox
239 X.org DRI1 drivers for Matrox G card family.
241 %description -n Mesa-dri-driver-matrox -l pl.UTF-8
242 Sterowniki X.org DRI1 dla rodziny kart Matrox G.
244 %package -n Mesa-dri-driver-savage
245 Summary: X.org DRI1 driver for S3 Savage card family
246 Summary(pl.UTF-8): Sterownik X.org DRI1 dla rodziny kart S3 Savage
249 Requires: xorg-driver-video-savage
250 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
251 Requires: xorg-xserver-server >= %{xserver_ver}
253 %description -n Mesa-dri-driver-savage
254 X.org DRI1 driver for S3 Savage card family.
256 %description -n Mesa-dri-driver-savage -l pl.UTF-8
257 Sterownik X.org DRI1 dla rodziny kart S3 Savage.
259 %package -n Mesa-dri-driver-sis
260 Summary: X.org DRI1 driver for SiS card family
261 Summary(pl.UTF-8): Sterownik X.org DRI1 dla rodziny kart SiS
264 Requires: xorg-driver-video-sis
265 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
266 Requires: xorg-xserver-server >= %{xserver_ver}
267 Obsoletes: X11-driver-sis-dri < 1:7.0.0
269 %description -n Mesa-dri-driver-sis
270 X.org DRI1 driver for SiS card family.
272 %description -n Mesa-dri-driver-sis -l pl.UTF-8
273 Sterownik X.org DRI1 dla rodziny kart SiS.
275 %package -n Mesa-dri-driver-tdfx
276 Summary: X.org DRI1 driver for 3DFX Voodoo card family
277 Summary(pl.UTF-8): Sterownik X.org DRI1 dla rodziny kart 3DFX Voodoo
281 Requires: xorg-driver-video-tdfx
282 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
283 Requires: xorg-xserver-server >= %{xserver_ver}
284 Obsoletes: X11-driver-tdfx-dri < 1:7.0.0
286 %description -n Mesa-dri-driver-tdfx
287 X.org DRI1 driver for 3DFX Voodoo card family (Voodoo 3,4,5, Banshee
288 and Velocity 100/200).
290 %description -n Mesa-dri-driver-tdfx -l pl.UTF-8
291 Sterownik X.org DRI1 dla rodziny kart 3DFX Voodoo. (Voodoo 3,4,5,
292 Banshee i Velocity 100/200).
294 %package -n Mesa-dri-driver-via-unichrome
295 Summary: X.org DRI1 driver for VIA Unichrome card family
296 Summary(pl.UTF-8): Sterownik X.org DRI1 dla rodziny kart VIA Unichrome
299 Requires: xorg-driver-video-openchrome
300 Requires: xorg-xserver-libglx(glapi) = %{glapi_ver}
301 Requires: xorg-xserver-server >= %{xserver_ver}
303 %description -n Mesa-dri-driver-via-unichrome
304 X.org DRI1 driver for VIA Unichrome card family.
306 %description -n Mesa-dri-driver-via-unichrome -l pl.UTF-8
307 Sterownik X.org DRI1 dla rodziny kart VIA Unichrome.
310 %setup -q -n Mesa-%{version}
318 dri_drivers="i810 mach64 mga r128 savage \
319 %ifarch sparc sparcv9 sparc64
322 %ifarch %{ix86} %{x8664}
327 dri_drivers=$(echo $dri_drivers | xargs | tr ' ' ',')
337 %{?with_static_libs:--enable-static} \
339 --with-dri-drivers=${dri_drivers} \
340 --with-dri-driverdir=%{_libdir}/xorg/modules/dri \
341 --without-gallium-drivers
346 rm -rf $RPM_BUILD_ROOT
348 # libs without drivers
350 DESTDIR=$RPM_BUILD_ROOT
352 # strip out undesirable headers
353 %{__rm} $RPM_BUILD_ROOT%{_includedir}/GL/{glfbdev,mesa_wgl,vms_x_fix,wglext,wmesa}.h
356 rm -rf $RPM_BUILD_ROOT
358 %post libGL -p /sbin/ldconfig
359 %postun libGL -p /sbin/ldconfig
364 %defattr(644,root,root,755)
365 %doc docs/{*.html,README.{3DFX,GGI,MITS,QUAKE,THREADS},RELNOTES*}
366 %attr(755,root,root) %{_libdir}/libGL.so.*.*
367 %attr(755,root,root) %ghost %{_libdir}/libGL.so.1
368 # symlink for binary apps which fail to conform Linux OpenGL ABI
369 # (and dlopen libGL.so instead of libGL.so.1; the same does Mesa libEGL)
370 %attr(755,root,root) %{_libdir}/libGL.so
373 %defattr(644,root,root,755)
375 %dir %{_includedir}/GL
376 %{_includedir}/GL/gl.h
377 %{_includedir}/GL/glext.h
378 %{_includedir}/GL/gl_mangle.h
379 %{_includedir}/GL/glx.h
380 %{_includedir}/GL/glxext.h
381 %{_includedir}/GL/glx_mangle.h
382 %dir %{_includedir}/GL/internal
383 %{_includedir}/GL/internal/dri_interface.h
384 %{_pkgconfigdir}/dri.pc
385 %{_pkgconfigdir}/gl.pc
387 %if %{with static_libs}
389 %defattr(644,root,root,755)
394 %files -n Mesa-dri-driver-ati-mach64
395 %defattr(644,root,root,755)
396 %attr(755,root,root) %{_libdir}/xorg/modules/dri/mach64_dri.so
398 %files -n Mesa-dri-driver-ati-rage128
399 %defattr(644,root,root,755)
400 %attr(755,root,root) %{_libdir}/xorg/modules/dri/r128_dri.so
402 # sunffb (sparc only)
403 %ifarch sparc sparcv9 sparc64
404 %files -n Mesa-dri-driver-ffb
405 %defattr(644,root,root,755)
406 %attr(755,root,root) %{_libdir}/xorg/modules/dri/ffb_dri.so
409 # glint (requires update)
411 %files -n Mesa-dri-driver-glint
412 %defattr(644,root,root,755)
413 %attr(755,root,root) %{_libdir}/xorg/modules/dri/gamma_dri.so
416 %files -n Mesa-dri-driver-intel-i810
417 %defattr(644,root,root,755)
418 %attr(755,root,root) %{_libdir}/xorg/modules/dri/i810_dri.so
420 %files -n Mesa-dri-driver-matrox
421 %defattr(644,root,root,755)
422 %attr(755,root,root) %{_libdir}/xorg/modules/dri/mga_dri.so
424 %files -n Mesa-dri-driver-savage
425 %defattr(644,root,root,755)
426 %attr(755,root,root) %{_libdir}/xorg/modules/dri/savage_dri.so
428 %ifarch %{ix86} %{x8664}
429 %files -n Mesa-dri-driver-sis
430 %defattr(644,root,root,755)
431 %attr(755,root,root) %{_libdir}/xorg/modules/dri/sis_dri.so
434 %files -n Mesa-dri-driver-tdfx
435 %defattr(644,root,root,755)
436 %attr(755,root,root) %{_libdir}/xorg/modules/dri/tdfx_dri.so
438 %files -n Mesa-dri-driver-via-unichrome
439 %defattr(644,root,root,755)
440 %attr(755,root,root) %{_libdir}/xorg/modules/dri/unichrome_dri.so