2 # bcond_off_glide: without GLIDE
4 # bcond_on_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 %{?bcond_on_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 %{?bcond_on_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 %{!?bcond_off_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 Provides: OpenGL-devel
69 Header files and documentation needed for development.
71 %description -l pl devel
72 Pliki nag³ówkowe i dokumentacja do Mesy.
75 Summary: Mesa static libraries
76 Summary(pl): Biblioteki statyczne Mesy
77 Group: Development/Libraries
78 Group(de): Entwicklung/Libraries
79 Group(fr): Development/Librairies
80 Group(pl): Programowanie/Biblioteki
81 Requires: %{name}-devel = %{version}
82 Provides: OpenGL-static
85 The static version of the Mesa libraries.
87 %description -l pl static
88 Biblioteki statyczne Mesy.
92 Summary(pl): Demonstracje mo¿liwo¶ci biblioteki MESA
93 Group: Development/Libraries
94 Group(de): Entwicklung/Libraries
95 Group(fr): Development/Librairies
96 Group(pl): Programowanie/Biblioteki
97 Requires: %{name} = %{version}
100 Demonstration programs for the Mesa libraries.
102 %description -l pl demos
103 Programy demonstracyjne dla biblioteki Mesa.
106 %setup -q -n Mesa-%{version} -b 1
108 %if %{?bcond_on_dri:1}%{!?bcond_on_dri:0}
111 ln -f `find xc -type f` src/DRI
112 mv -f src/DRI/glxmd.h src/DRI/GL/glxmd.h
119 %{?bcond_on_dri:%patch4 -p1}
122 perl -pi -e "s,\.\./images/,%{_examplesdir}/Mesa/images/,g" demos/*
134 --disable-ggi-fbdev \
135 --disable-ggi-genkgi \
137 %{?bcond_off_glide:--without-glide} \
171 rm -rf $RPM_BUILD_ROOT
172 %{__make} install DESTDIR=$RPM_BUILD_ROOT
174 install -d $RPM_BUILD_ROOT%{_mandir}/man3
178 prefix=$RPM_BUILD_ROOT%{_prefix} \
179 mandir=$RPM_BUILD_ROOT%{_mandir}/man3)
181 install -d $RPM_BUILD_ROOT/usr/src/examples/Mesa
182 for l in book demos samples xdemos images ; do
183 cp -Rf $l $RPM_BUILD_ROOT%{_examplesdir}/Mesa/$l
188 # resolve conflict with XFree86-devel
189 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/GLwCreateMDrawingArea.*
190 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/GLwDrawingArea{,MakeCurrent,SwapBuffers}.*
192 %post -p /sbin/ldconfig
193 %postun -p /sbin/ldconfig
196 rm -fr $RPM_BUILD_ROOT
199 %defattr(644,root,root,755)
201 %attr(755,root,root) %{_libdir}/libGL*.so.*.*
204 %defattr(644,root,root,755)
205 %doc docs/{IAFA-PACKAGE,README,RELNOTES-*,VERSIONS,CONFORM,COPYRIGHT,DEVINFO,*.spec}.gz
206 %doc docs/README.{3DFX,GGI,MITS,QUAKE,X11,THREADS}.gz
207 %attr(755,root,root) %{_libdir}/libGL*.so
209 %dir %{_includedir}/GL
210 %{_includedir}/GL/GLwDrawA.h
211 %{_includedir}/GL/GLwDrawAP.h
212 %{_includedir}/GL/GLwMDrawA.h
213 %{_includedir}/GL/GLwMDrawAP.h
214 %{_includedir}/GL/MesaDrawingArea.h
215 %{_includedir}/GL/MesaDrawingAreaP.h
216 %{_includedir}/GL/MesaMDrawingArea.h
217 %{_includedir}/GL/MesaMDrawingAreaP.h
218 %{_includedir}/GL/MesaWorkstation.h
219 %{_includedir}/GL/MesaWorkstationP.h
220 %{_includedir}/GL/gl.h
221 %{_includedir}/GL/glext.h
222 %{_includedir}/GL/gl_mangle.h
223 %{_includedir}/GL/glu.h
224 %{_includedir}/GL/glu_mangle.h
225 %{_includedir}/GL/glx.h
226 %{_includedir}/GL/glx_mangle.h
227 %{_includedir}/GL/osmesa.h
228 %{_includedir}/GL/xmesa.h
229 %{_includedir}/GL/xmesa_x.h
230 %{_includedir}/GL/xmesa_xf86.h
234 %defattr(644,root,root,755)
238 %defattr(644,root,root,755)
239 %dir /usr/src/examples/Mesa/book
240 %dir /usr/src/examples/Mesa/demos
241 %dir /usr/src/examples/Mesa/samples
242 %dir /usr/src/examples/Mesa/xdemos
244 %doc /usr/src/examples/Mesa/book/*
245 %doc /usr/src/examples/Mesa/demos/*
246 %doc /usr/src/examples/Mesa/samples/*
247 %doc /usr/src/examples/Mesa/xdemos/*