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
14 Group(de): X11/Libraries
15 Group(es): X11/Bibliotecas
16 Group(pl): X11/Biblioteki
17 Source0: ftp://download.sourceforge.net/pub/sourceforge/mesa3d/%{name}Lib-%{version}.tar.bz2
18 Source1: ftp://download.sourceforge.net/pub/sourceforge/mesa3d/%{name}Demos-%{version}.tar.bz2
19 %{?_with_dri:Source2: XFree86-4.0.2-GLonly.tar.gz}
20 Patch0: %{name}-paths.patch
21 Patch1: %{name}-badlibtool.patch
22 Patch2: %{name}-glibc-2.2.patch
23 Patch3: %{name}-am.patch
24 %{?_with_dri:Patch4: %{name}-XF86DRI-4.0.2.patch}
25 #Patch5: %{name}-3.3-glXcontext.patch
26 URL: http://www.mesa3d.org/
27 BuildRequires: XFree86-devel
28 %{!?_without_glide:BuildRequires: Glide_V3-DRI-devel}
30 BuildRequires: autoconf
31 BuildRequires: automake
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 %define _prefix /usr/X11R6
36 %define _mandir %{_prefix}/man
39 Mesa is a 3-D graphics library with an API which is very similar to
40 that of OpenGL*. To the extent that Mesa utilizes the OpenGL command
41 syntax or state machine, it is being used with authorization from
42 Silicon Graphics, Inc. However, the author makes no claim that Mesa is
43 in any way a compatible replacement for OpenGL or associated with
44 Silicon Graphics, Inc. Those who want a licensed implementation of
45 OpenGL should contact a licensed vendor. This software is distributed
46 under the terms of the GNU Library General Public License, see the
47 LICENSE file for details.
49 - OpenGL(R) is a registered trademark of Silicon Graphics, Inc.
52 Mesa jest bibliotek± 3D bêd±c± darmowym odpowiednikiem standardu
55 - OpenGL jest zastrze¿onym znakiem towarowym firmy Silicon Graphics,
59 Summary: Development environment for Mesa
60 Summary(pl): ¦rodowisko programistyczne biblioteki Mesa
61 Group: Development/Libraries
62 Group(de): Entwicklung/Libraries
63 Group(fr): Development/Librairies
64 Group(pl): Programowanie/Biblioteki
65 Requires: %{name} = %{version}
66 Requires: XFree86-devel
67 Provides: OpenGL-devel
70 Header files and documentation needed for development.
72 %description -l pl devel
73 Pliki nag³ówkowe i dokumentacja do Mesy.
76 Summary: Mesa static libraries
77 Summary(pl): Biblioteki statyczne Mesy
78 Group: Development/Libraries
79 Group(de): Entwicklung/Libraries
80 Group(fr): Development/Librairies
81 Group(pl): Programowanie/Biblioteki
82 Requires: %{name}-devel = %{version}
83 Provides: OpenGL-static
86 The static version of the Mesa libraries.
88 %description -l pl static
89 Biblioteki statyczne Mesy.
93 Summary(pl): Demonstracje mo¿liwo¶ci biblioteki MESA
94 Group: Development/Libraries
95 Group(de): Entwicklung/Libraries
96 Group(fr): Development/Librairies
97 Group(pl): Programowanie/Biblioteki
98 Requires: %{name} = %{version}
101 Demonstration programs for the Mesa libraries.
103 %description -l pl demos
104 Programy demonstracyjne dla biblioteki Mesa.
107 %setup -q -n Mesa-%{version} -b 1
109 %if %{?_with_dri:1}%{!?_with_dri:0}
112 ln -f `find xc -type f` src/DRI
113 mv -f src/DRI/glxmd.h src/DRI/GL/glxmd.h
120 %{?_with_dri:%patch4 -p1}
123 perl -pi -e "s,\.\./images/,%{_examplesdir}/Mesa/images/,g" demos/*
135 --disable-ggi-fbdev \
136 --disable-ggi-genkgi \
138 %{?_without_glide:--without-glide} \
172 rm -rf $RPM_BUILD_ROOT
173 %{__make} install DESTDIR=$RPM_BUILD_ROOT
175 install -d $RPM_BUILD_ROOT%{_mandir}/man3
179 prefix=$RPM_BUILD_ROOT%{_prefix} \
180 mandir=$RPM_BUILD_ROOT%{_mandir}/man3)
182 install -d $RPM_BUILD_ROOT/usr/src/examples/Mesa
183 for l in book demos samples xdemos images ; do
184 cp -Rf $l $RPM_BUILD_ROOT%{_examplesdir}/Mesa/$l
189 # resolve conflict with XFree86-devel
190 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/GLwCreateMDrawingArea.*
191 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/GLwDrawingArea{,MakeCurrent,SwapBuffers}.*
193 %post -p /sbin/ldconfig
194 %postun -p /sbin/ldconfig
197 rm -fr $RPM_BUILD_ROOT
200 %defattr(644,root,root,755)
202 %attr(755,root,root) %{_libdir}/libGL*.so.*.*
205 %defattr(644,root,root,755)
206 %doc docs/{IAFA-PACKAGE,README,RELNOTES-*,VERSIONS,CONFORM,COPYRIGHT,DEVINFO,*.spec}.gz
207 %doc docs/README.{3DFX,GGI,MITS,QUAKE,X11,THREADS}.gz
208 %attr(755,root,root) %{_libdir}/libGL*.so
210 %dir %{_includedir}/GL
211 %{_includedir}/GL/GLwDrawA.h
212 %{_includedir}/GL/GLwDrawAP.h
213 %{_includedir}/GL/GLwMDrawA.h
214 %{_includedir}/GL/GLwMDrawAP.h
215 %{_includedir}/GL/MesaDrawingArea.h
216 %{_includedir}/GL/MesaDrawingAreaP.h
217 %{_includedir}/GL/MesaMDrawingArea.h
218 %{_includedir}/GL/MesaMDrawingAreaP.h
219 %{_includedir}/GL/MesaWorkstation.h
220 %{_includedir}/GL/MesaWorkstationP.h
221 %{_includedir}/GL/gl.h
222 %{_includedir}/GL/glext.h
223 %{_includedir}/GL/gl_mangle.h
224 %{_includedir}/GL/glu.h
225 %{_includedir}/GL/glu_mangle.h
226 %{_includedir}/GL/glx.h
227 %{_includedir}/GL/glx_mangle.h
228 %{_includedir}/GL/osmesa.h
229 %{_includedir}/GL/xmesa.h
230 %{_includedir}/GL/xmesa_x.h
231 %{_includedir}/GL/xmesa_xf86.h
235 %defattr(644,root,root,755)
239 %defattr(644,root,root,755)
240 %dir /usr/src/examples/Mesa/book
241 %dir /usr/src/examples/Mesa/demos
242 %dir /usr/src/examples/Mesa/samples
243 %dir /usr/src/examples/Mesa/xdemos
245 %doc /usr/src/examples/Mesa/book/*
246 %doc /usr/src/examples/Mesa/demos/*
247 %doc /usr/src/examples/Mesa/samples/*
248 %doc /usr/src/examples/Mesa/xdemos/*