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 Group(de): X11/Libraries
12 Group(es): X11/Bibliotecas
13 Group(fr): X11/Librairies
14 Group(pl): X11/Biblioteki
15 Group(pt_BR): X11/Bibliotecas
16 Group(ru): X11/âÉÂÌÉÏÔÅËÉ
17 Group(uk): X11/â¦Â̦ÏÔÅËÉ
18 Source0: ftp://ftp.sourceforge.net/pub/sourceforge/mesa3d/%{name}Lib-%{version}.tar.bz2
19 Source1: ftp://ftp.sourceforge.net/pub/sourceforge/mesa3d/%{name}Demos-%{version}.tar.bz2
20 Patch0: %{name}-am.patch
21 Patch1: %{name}-ac.patch
22 Patch2: %{name}-paths.patch
23 Patch3: %{name}-libGLw.patch
24 URL: http://www.mesa3d.org/
25 BuildRequires: XFree86-devel
26 BuildRequires: autoconf
27 BuildRequires: motif-devel
30 %{?_with_glide:BuildRequires: Glide3-DRI-devel}
31 %{?_with_glide:Requires: Glide3-DRI}
34 Obsoletes: XFree86-OpenGL-core XFree86-OpenGL-libs
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 # avoid XFree86-OpenGL* dependency
38 # Glide3 can be provided by Glide_V3-DRI or Glide_V5-DRI
39 %define _noautoreqdep libGL.so.1 libGLU.so.1 libOSMesa.so.4 libglide3.so.3
41 %define _prefix /usr/X11R6
42 %define _mandir %{_prefix}/man
45 Mesa is a 3-D graphics library with an API which is very similar to
46 that of OpenGL*. To the extent that Mesa utilizes the OpenGL command
47 syntax or state machine, it is being used with authorization from
48 Silicon Graphics, Inc. However, the author makes no claim that Mesa is
49 in any way a compatible replacement for OpenGL or associated with
50 Silicon Graphics, Inc. Those who want a licensed implementation of
51 OpenGL should contact a licensed vendor. This software is distributed
52 under the terms of the GNU Library General Public License, see the
53 LICENSE file for details.
55 - OpenGL(R) is a registered trademark of Silicon Graphics, Inc.
58 Mesa jest bibliotek± 3D bêd±c± darmowym odpowiednikiem standardu
61 - OpenGL jest zastrze¿onym znakiem towarowym firmy Silicon Graphics,
65 Summary: Development environment for Mesa
66 Summary(pl): ¦rodowisko programistyczne biblioteki Mesa
67 Group: Development/Libraries
68 Group(de): Entwicklung/Libraries
69 Group(es): Desarrollo/Bibliotecas
70 Group(fr): Development/Librairies
71 Group(pl): Programowanie/Biblioteki
72 Group(pt_BR): Desenvolvimento/Bibliotecas
73 Group(ru): òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
74 Group(uk): òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
75 Requires: %{name} = %{version}
76 Requires: XFree86-devel
77 Provides: OpenGL-devel
78 Obsoletes: XFree86-OpenGL-devel
81 Header files and documentation needed for development.
83 %description devel -l pl
84 Pliki nag³ówkowe i dokumentacja do Mesy.
87 Summary: Mesa static libraries
88 Summary(pl): Biblioteki statyczne Mesy
89 Group: Development/Libraries
90 Group(de): Entwicklung/Libraries
91 Group(es): Desarrollo/Bibliotecas
92 Group(fr): Development/Librairies
93 Group(pl): Programowanie/Biblioteki
94 Group(pt_BR): Desenvolvimento/Bibliotecas
95 Group(ru): òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
96 Group(uk): òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
97 Requires: %{name}-devel = %{version}
98 Provides: OpenGL-static
99 Obsoletes: XFree86-OpenGL-static
102 The static version of the Mesa libraries.
104 %description static -l pl
105 Biblioteki statyczne Mesy.
109 Summary(pl): Demonstracje mo¿liwo¶ci bibliotek Mesa
110 Group: Development/Libraries
111 Group(de): Entwicklung/Libraries
112 Group(es): Desarrollo/Bibliotecas
113 Group(fr): Development/Librairies
114 Group(pl): Programowanie/Biblioteki
115 Group(pt_BR): Desenvolvimento/Bibliotecas
116 Group(ru): òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
117 Group(uk): òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
118 Requires: OpenGL-devel
121 Demonstration programs for the Mesa libraries.
123 %description demos -l pl
124 Programy demonstracyjne dla bibliotek Mesa.
127 %setup -q -n Mesa-%{version} -b 1
134 perl -pi -e "s,\.\./images/,%{_examplesdir}/Mesa/images/,g" demos/*
142 --disable-ggi-fbdev \
143 --disable-ggi-genkgi \
145 %{!?_with_glide:--without-glide} \
148 %ifarch i586 i686 k6 athlon \
151 %ifarch i686 athlon \
181 %{__make} linux OPTFLAGS="%{rpmcflags}"
185 rm -rf $RPM_BUILD_ROOT
186 %{__make} install DESTDIR=$RPM_BUILD_ROOT
188 install -d $RPM_BUILD_ROOT%{_mandir}/man3
192 prefix=$RPM_BUILD_ROOT%{_prefix} \
193 mandir=$RPM_BUILD_ROOT%{_mandir}/man3
194 # Mesa widgets are not binary compatible with SGI ones
195 cd $RPM_BUILD_ROOT%{_includedir}/GL
197 mv -f GLw*.h Mesa*.h Mesa-widgets
200 install widgets-sgi/libGLw* $RPM_BUILD_ROOT%{_libdir}
201 install widgets-sgi/GLw*.h $RPM_BUILD_ROOT%{_includedir}/GL
203 install -d $RPM_BUILD_ROOT/usr/src/examples/Mesa
204 for l in book demos samples xdemos images ; do
205 cp -Rf $l $RPM_BUILD_ROOT%{_examplesdir}/Mesa/$l
212 rm -rf $RPM_BUILD_ROOT
214 %post -p /sbin/ldconfig
215 %postun -p /sbin/ldconfig
218 %defattr(644,root,root,755)
220 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mesa.conf
221 %attr(755,root,root) %{_libdir}/libGL*.so.*.*
222 %attr(755,root,root) %{_libdir}/libOSMesa.so.*.*
225 %defattr(644,root,root,755)
226 %doc docs/{IAFA-PACKAGE,README,RELNOTES-*,VERSIONS,CONFORM,COPYRIGHT,DEVINFO,*.spec}.gz
227 %doc docs/README.{3DFX,GGI,MITS,QUAKE,X11,THREADS}.gz
228 %attr(755,root,root) %{_libdir}/libGL*.so
229 %attr(755,root,root) %{_libdir}/libOSMesa.so
231 %{_libdir}/libMesaGLw*.a
232 %dir %{_includedir}/GL
233 %{_includedir}/GL/Mesa-widgets
234 %{_includedir}/GL/GLwDrawA.h
235 %{_includedir}/GL/GLwDrawAP.h
236 %{_includedir}/GL/GLwMDrawA.h
237 %{_includedir}/GL/GLwMDrawAP.h
238 %{_includedir}/GL/gl.h
239 %{_includedir}/GL/glext.h
240 %{_includedir}/GL/gl_mangle.h
241 %{_includedir}/GL/glu.h
242 %{_includedir}/GL/glu_mangle.h
243 %{_includedir}/GL/glx.h
244 %{_includedir}/GL/glxext.h
245 %{_includedir}/GL/glx_mangle.h
246 %{_includedir}/GL/osmesa.h
247 %{_includedir}/GL/xmesa.h
248 %{_includedir}/GL/xmesa_x.h
249 %{_includedir}/GL/xmesa_xf86.h
253 %defattr(644,root,root,755)
256 %{_libdir}/libOSMesa.a
259 %defattr(644,root,root,755)
260 %dir %{_examplesdir}/Mesa
261 %dir %{_examplesdir}/Mesa/book
262 %dir %{_examplesdir}/Mesa/demos
263 %dir %{_examplesdir}/Mesa/samples
264 %dir %{_examplesdir}/Mesa/xdemos
266 %doc %{_examplesdir}/Mesa/book/*
267 %doc %{_examplesdir}/Mesa/demos/*
268 %doc %{_examplesdir}/Mesa/samples/*
269 %doc %{_examplesdir}/Mesa/xdemos/*