2 # _with_glide: with GLIDE
4 Summary: Free OpenGL implementation
5 Summary(pl): Bezp³atna implementacja standardu OpenGL
9 License: MIT (core), LGPL (MesaGLU), SGI (GLU,libGLw) and others - see COPYRIGHT file
11 Source0: ftp://ftp.sourceforge.net/pub/sourceforge/mesa3d/%{name}Lib-%{version}.tar.bz2
12 Source1: ftp://ftp.sourceforge.net/pub/sourceforge/mesa3d/%{name}Demos-%{version}.tar.bz2
13 Patch0: %{name}-am.patch
14 Patch1: %{name}-ac.patch
15 Patch2: %{name}-paths.patch
16 Patch3: %{name}-libGLw.patch
17 URL: http://www.mesa3d.org/
18 BuildRequires: XFree86-devel
19 BuildRequires: autoconf
20 BuildRequires: motif-devel
23 %{?_with_glide:BuildRequires: Glide3-DRI-devel}
24 %{?_with_glide:Requires: Glide3-DRI}
27 Obsoletes: XFree86-OpenGL-core XFree86-OpenGL-libs
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 # avoid XFree86-OpenGL* dependency
31 # Glide3 can be provided by Glide_V3-DRI or Glide_V5-DRI
32 %define _noautoreqdep libGL.so.1 libGLU.so.1 libOSMesa.so.4 libglide3.so.3
34 %define _prefix /usr/X11R6
35 %define _mandir %{_prefix}/man
38 Mesa is a 3-D graphics library with an API which is very similar to
39 that of OpenGL*. To the extent that Mesa utilizes the OpenGL command
40 syntax or state machine, it is being used with authorization from
41 Silicon Graphics, Inc. However, the author makes no claim that Mesa is
42 in any way a compatible replacement for OpenGL or associated with
43 Silicon Graphics, Inc. Those who want a licensed implementation of
44 OpenGL should contact a licensed vendor. This software is distributed
45 under the terms of the GNU Library General Public License, see the
46 LICENSE file for details.
48 - OpenGL(R) is a registered trademark of Silicon Graphics, Inc.
51 Mesa jest bibliotek± 3D bêd±c± darmowym odpowiednikiem standardu
54 - OpenGL jest zastrze¿onym znakiem towarowym firmy Silicon Graphics,
58 Summary: Development environment for Mesa
59 Summary(pl): ¦rodowisko programistyczne biblioteki Mesa
60 Group: Development/Libraries
61 Requires: %{name} = %{version}
62 Requires: XFree86-devel
63 Provides: OpenGL-devel
64 Obsoletes: XFree86-OpenGL-devel
67 Header files and documentation needed for development.
69 %description devel -l pl
70 Pliki nag³ówkowe i dokumentacja do Mesy.
73 Summary: Mesa static libraries
74 Summary(pl): Biblioteki statyczne Mesy
75 Group: Development/Libraries
76 Requires: %{name}-devel = %{version}
77 Provides: OpenGL-static
78 Obsoletes: XFree86-OpenGL-static
81 The static version of the Mesa libraries.
83 %description static -l pl
84 Biblioteki statyczne Mesy.
88 Summary(pl): Demonstracje mo¿liwo¶ci bibliotek Mesa
89 Group: Development/Libraries
90 Requires: OpenGL-devel
93 Demonstration programs for the Mesa libraries.
95 %description demos -l pl
96 Programy demonstracyjne dla bibliotek Mesa.
99 %setup -q -n Mesa-%{version} -b 1
106 perl -pi -e "s,\.\./images/,%{_examplesdir}/Mesa/images/,g" demos/*
114 --disable-ggi-fbdev \
115 --disable-ggi-genkgi \
117 %{!?_with_glide:--without-glide} \
120 %ifarch i586 i686 k6 athlon \
123 %ifarch i686 athlon \
153 %{__make} linux OPTFLAGS="%{rpmcflags}"
157 rm -rf $RPM_BUILD_ROOT
158 %{__make} install DESTDIR=$RPM_BUILD_ROOT
160 install -d $RPM_BUILD_ROOT%{_mandir}/man3
164 prefix=$RPM_BUILD_ROOT%{_prefix} \
165 mandir=$RPM_BUILD_ROOT%{_mandir}/man3
166 # Mesa widgets are not binary compatible with SGI ones
167 cd $RPM_BUILD_ROOT%{_includedir}/GL
169 mv -f GLw*.h Mesa*.h Mesa-widgets
172 install widgets-sgi/libGLw* $RPM_BUILD_ROOT%{_libdir}
173 install widgets-sgi/GLw*.h $RPM_BUILD_ROOT%{_includedir}/GL
175 install -d $RPM_BUILD_ROOT/usr/src/examples/Mesa
176 for l in book demos samples xdemos images ; do
177 cp -Rf $l $RPM_BUILD_ROOT%{_examplesdir}/Mesa/$l
184 rm -rf $RPM_BUILD_ROOT
186 %post -p /sbin/ldconfig
187 %postun -p /sbin/ldconfig
190 %defattr(644,root,root,755)
192 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mesa.conf
193 %attr(755,root,root) %{_libdir}/libGL*.so.*.*
194 %attr(755,root,root) %{_libdir}/libOSMesa.so.*.*
197 %defattr(644,root,root,755)
198 %doc docs/{IAFA-PACKAGE,README,RELNOTES-*,VERSIONS,CONFORM,COPYRIGHT,DEVINFO,*.spec}.gz
199 %doc docs/README.{3DFX,GGI,MITS,QUAKE,X11,THREADS}.gz
200 %attr(755,root,root) %{_libdir}/libGL*.so
201 %attr(755,root,root) %{_libdir}/libOSMesa.so
203 %{_libdir}/libMesaGLw*.a
204 %dir %{_includedir}/GL
205 %{_includedir}/GL/Mesa-widgets
206 %{_includedir}/GL/GLwDrawA.h
207 %{_includedir}/GL/GLwDrawAP.h
208 %{_includedir}/GL/GLwMDrawA.h
209 %{_includedir}/GL/GLwMDrawAP.h
210 %{_includedir}/GL/gl.h
211 %{_includedir}/GL/glext.h
212 %{_includedir}/GL/gl_mangle.h
213 %{_includedir}/GL/glu.h
214 %{_includedir}/GL/glu_mangle.h
215 %{_includedir}/GL/glx.h
216 %{_includedir}/GL/glxext.h
217 %{_includedir}/GL/glx_mangle.h
218 %{_includedir}/GL/osmesa.h
219 %{_includedir}/GL/xmesa.h
220 %{_includedir}/GL/xmesa_x.h
221 %{_includedir}/GL/xmesa_xf86.h
225 %defattr(644,root,root,755)
228 %{_libdir}/libOSMesa.a
231 %defattr(644,root,root,755)
232 %dir %{_examplesdir}/Mesa
233 %dir %{_examplesdir}/Mesa/book
234 %dir %{_examplesdir}/Mesa/demos
235 %dir %{_examplesdir}/Mesa/samples
236 %dir %{_examplesdir}/Mesa/xdemos
238 %doc %{_examplesdir}/Mesa/book/*
239 %doc %{_examplesdir}/Mesa/demos/*
240 %doc %{_examplesdir}/Mesa/samples/*
241 %doc %{_examplesdir}/Mesa/xdemos/*