2 # _without_glide: without GLIDE
4 # _with_dri: add GLX/DRI support (taken from rawhide)
5 # (does it make any sense? we have XFree86-OpenGL-* packages...)
7 Summary: Free OpenGL implementation
8 Summary(pl): Bezp³atna implementacja standardu OpenGL
12 License: MIT (core), LGPL (libGLU), SGI (libGLw) and others - see COPYRIGHT file
14 Group(de): X11/Libraries
15 Group(es): X11/Bibliotecas
16 Group(fr): X11/Librairies
17 Group(pl): X11/Biblioteki
18 Source0: ftp://download.sourceforge.net/pub/sourceforge/mesa3d/%{name}Lib-%{version}.tar.bz2
19 Source1: ftp://download.sourceforge.net/pub/sourceforge/mesa3d/%{name}Demos-%{version}.tar.bz2
20 %{?_with_dri:Source2: XFree86-4.0.2-GLonly.tar.gz}
21 Patch0: %{name}-paths.patch
22 Patch1: %{name}-badlibtool.patch
23 Patch2: %{name}-glibc-2.2.patch
24 Patch3: %{name}-am.patch
25 Patch4: %{name}-libGLw.patch
26 %{?_with_dri:Patch5: %{name}-XF86DRI-4.0.2.patch}
27 #Patch6: %{name}-3.3-glXcontext.patch
28 URL: http://www.mesa3d.org/
29 BuildRequires: XFree86-devel
30 BuildRequires: motif-devel
31 %{!?_without_glide:BuildRequires: Glide_V3-DRI-devel}
33 BuildRequires: autoconf
34 BuildRequires: automake
36 Obsoletes: XFree86-OpenGL-core XFree86-OpenGL-libs
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 %define _noautoreqdep libGL.so.1 libGLU.so.1
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(fr): Development/Librairies
70 Group(pl): Programowanie/Biblioteki
71 Requires: %{name} = %{version}
72 Requires: XFree86-devel
73 Provides: OpenGL-devel
74 Obsoletes: XFree86-OpenGL-devel
77 Header files and documentation needed for development.
79 %description -l pl devel
80 Pliki nag³ówkowe i dokumentacja do Mesy.
83 Summary: Mesa static libraries
84 Summary(pl): Biblioteki statyczne Mesy
85 Group: Development/Libraries
86 Group(de): Entwicklung/Libraries
87 Group(fr): Development/Librairies
88 Group(pl): Programowanie/Biblioteki
89 Requires: %{name}-devel = %{version}
90 Provides: OpenGL-static
91 Obsoletes: XFree86-OpenGL-static
94 The static version of the Mesa libraries.
96 %description -l pl static
97 Biblioteki statyczne Mesy.
101 Summary(pl): Demonstracje mo¿liwo¶ci bibliotek Mesa
102 Group: Development/Libraries
103 Group(de): Entwicklung/Libraries
104 Group(fr): Development/Librairies
105 Group(pl): Programowanie/Biblioteki
106 Requires: OpenGL-devel
109 Demonstration programs for the Mesa libraries.
111 %description -l pl demos
112 Programy demonstracyjne dla bibliotek Mesa.
115 %setup -q -n Mesa-%{version} -b 1
117 %if %{?_with_dri:1}%{!?_with_dri:0}
120 ln -f `find xc -type f` src/DRI
121 mv -f src/DRI/glxmd.h src/DRI/GL/glxmd.h
129 %{?_with_dri:%patch5 -p1}
132 perl -pi -e "s,\.\./images/,%{_examplesdir}/Mesa/images/,g" demos/*
144 --disable-ggi-fbdev \
145 --disable-ggi-genkgi \
147 %{?_without_glide:--without-glide} \
184 %{__make} linux OPTFLAGS="%{rpmcflags}"
188 rm -rf $RPM_BUILD_ROOT
189 %{__make} install DESTDIR=$RPM_BUILD_ROOT
191 install -d $RPM_BUILD_ROOT%{_mandir}/man3
195 prefix=$RPM_BUILD_ROOT%{_prefix} \
196 mandir=$RPM_BUILD_ROOT%{_mandir}/man3
197 # Mesa widgets are not binary compatible with SGI ones
198 cd $RPM_BUILD_ROOT%{_includedir}/GL
200 mv -f GLw*.h Mesa*.h Mesa-widgets
203 install widgets-sgi/libGLw* $RPM_BUILD_ROOT%{_libdir}
204 install widgets-sgi/GLw*.h $RPM_BUILD_ROOT%{_includedir}/GL
206 install -d $RPM_BUILD_ROOT/usr/src/examples/Mesa
207 for l in book demos samples xdemos images ; do
208 cp -Rf $l $RPM_BUILD_ROOT%{_examplesdir}/Mesa/$l
213 %post -p /sbin/ldconfig
214 %postun -p /sbin/ldconfig
217 rm -fr $RPM_BUILD_ROOT
220 %defattr(644,root,root,755)
222 %attr(755,root,root) %{_libdir}/libGL*.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 %{_libdir}/libMesaGLw*.a
231 %dir %{_includedir}/GL
232 %{_includedir}/GL/Mesa-widgets
233 %{_includedir}/GL/GLwDrawA.h
234 %{_includedir}/GL/GLwDrawAP.h
235 %{_includedir}/GL/GLwMDrawA.h
236 %{_includedir}/GL/GLwMDrawAP.h
237 %{_includedir}/GL/gl.h
238 %{_includedir}/GL/glext.h
239 %{_includedir}/GL/gl_mangle.h
240 %{_includedir}/GL/glu.h
241 %{_includedir}/GL/glu_mangle.h
242 %{_includedir}/GL/glx.h
243 %{_includedir}/GL/glx_mangle.h
244 %{_includedir}/GL/osmesa.h
245 %{_includedir}/GL/xmesa.h
246 %{_includedir}/GL/xmesa_x.h
247 %{_includedir}/GL/xmesa_xf86.h
251 %defattr(644,root,root,755)
256 %defattr(644,root,root,755)
257 %dir /usr/src/examples/Mesa
258 %dir /usr/src/examples/Mesa/book
259 %dir /usr/src/examples/Mesa/demos
260 %dir /usr/src/examples/Mesa/samples
261 %dir /usr/src/examples/Mesa/xdemos
263 %doc /usr/src/examples/Mesa/book/*
264 %doc /usr/src/examples/Mesa/demos/*
265 %doc /usr/src/examples/Mesa/samples/*
266 %doc /usr/src/examples/Mesa/xdemos/*