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}-ac.patch
28 #PatchX: %{name}-3.3-glXcontext.patch
29 URL: http://www.mesa3d.org/
30 BuildRequires: XFree86-devel
31 BuildRequires: motif-devel
32 %{!?_without_glide:BuildRequires: Glide_V3-DRI-devel}
34 BuildRequires: autoconf
35 BuildRequires: automake
36 BuildRequires: libtool
38 Obsoletes: XFree86-OpenGL-core XFree86-OpenGL-libs
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 %define _noautoreqdep libGL.so.1 libGLU.so.1
43 %define _prefix /usr/X11R6
44 %define _mandir %{_prefix}/man
47 Mesa is a 3-D graphics library with an API which is very similar to
48 that of OpenGL*. To the extent that Mesa utilizes the OpenGL command
49 syntax or state machine, it is being used with authorization from
50 Silicon Graphics, Inc. However, the author makes no claim that Mesa is
51 in any way a compatible replacement for OpenGL or associated with
52 Silicon Graphics, Inc. Those who want a licensed implementation of
53 OpenGL should contact a licensed vendor. This software is distributed
54 under the terms of the GNU Library General Public License, see the
55 LICENSE file for details.
57 - OpenGL(R) is a registered trademark of Silicon Graphics, Inc.
60 Mesa jest bibliotek± 3D bêd±c± darmowym odpowiednikiem standardu
63 - OpenGL jest zastrze¿onym znakiem towarowym firmy Silicon Graphics,
67 Summary: Development environment for Mesa
68 Summary(pl): ¦rodowisko programistyczne biblioteki Mesa
69 Group: Development/Libraries
70 Group(de): Entwicklung/Libraries
71 Group(fr): Development/Librairies
72 Group(pl): Programowanie/Biblioteki
73 Requires: %{name} = %{version}
74 Requires: XFree86-devel
75 Provides: OpenGL-devel
76 Obsoletes: XFree86-OpenGL-devel
79 Header files and documentation needed for development.
81 %description -l pl devel
82 Pliki nag³ówkowe i dokumentacja do Mesy.
85 Summary: Mesa static libraries
86 Summary(pl): Biblioteki statyczne Mesy
87 Group: Development/Libraries
88 Group(de): Entwicklung/Libraries
89 Group(fr): Development/Librairies
90 Group(pl): Programowanie/Biblioteki
91 Requires: %{name}-devel = %{version}
92 Provides: OpenGL-static
93 Obsoletes: XFree86-OpenGL-static
96 The static version of the Mesa libraries.
98 %description -l pl static
99 Biblioteki statyczne Mesy.
103 Summary(pl): Demonstracje mo¿liwo¶ci bibliotek Mesa
104 Group: Development/Libraries
105 Group(de): Entwicklung/Libraries
106 Group(fr): Development/Librairies
107 Group(pl): Programowanie/Biblioteki
108 Requires: OpenGL-devel
111 Demonstration programs for the Mesa libraries.
113 %description -l pl demos
114 Programy demonstracyjne dla bibliotek Mesa.
117 %setup -q -n Mesa-%{version} -b 1
119 %if %{?_with_dri:1}%{!?_with_dri:0}
122 ln -f `find xc -type f` src/DRI
123 mv -f src/DRI/glxmd.h src/DRI/GL/glxmd.h
131 %{?_with_dri:%patch5 -p1}
134 perl -pi -e "s,\.\./images/,%{_examplesdir}/Mesa/images/,g" demos/*
137 rm -f missing acinclude.m4
138 libtoolize --copy --force
144 CFLAGS="%{rpmcflags} -I%{_includedir} -I. -I../" \
150 --disable-ggi-fbdev \
151 --disable-ggi-genkgi \
153 %{?_without_glide:--without-glide} \
189 %{__make} linux OPTFLAGS="%{rpmcflags}"
193 rm -rf $RPM_BUILD_ROOT
194 %{__make} install DESTDIR=$RPM_BUILD_ROOT
196 install -d $RPM_BUILD_ROOT%{_mandir}/man3
200 prefix=$RPM_BUILD_ROOT%{_prefix} \
201 mandir=$RPM_BUILD_ROOT%{_mandir}/man3
202 # Mesa widgets are not binary compatible with SGI ones
203 cd $RPM_BUILD_ROOT%{_includedir}/GL
205 mv -f GLw*.h Mesa*.h Mesa-widgets
208 install widgets-sgi/libGLw* $RPM_BUILD_ROOT%{_libdir}
209 install widgets-sgi/GLw*.h $RPM_BUILD_ROOT%{_includedir}/GL
211 install -d $RPM_BUILD_ROOT/usr/src/examples/Mesa
212 for l in book demos samples xdemos images ; do
213 cp -Rf $l $RPM_BUILD_ROOT%{_examplesdir}/Mesa/$l
218 %post -p /sbin/ldconfig
219 %postun -p /sbin/ldconfig
222 rm -fr $RPM_BUILD_ROOT
225 %defattr(644,root,root,755)
227 %attr(755,root,root) %{_libdir}/libGL*.so.*.*
230 %defattr(644,root,root,755)
231 %doc docs/{IAFA-PACKAGE,README,RELNOTES-*,VERSIONS,CONFORM,COPYRIGHT,DEVINFO,*.spec}.gz
232 %doc docs/README.{3DFX,GGI,MITS,QUAKE,X11,THREADS}.gz
233 %attr(755,root,root) %{_libdir}/libGL*.so
234 %{_libdir}/libMesaGLw*.a
236 %dir %{_includedir}/GL
237 %{_includedir}/GL/Mesa-widgets
238 %{_includedir}/GL/GLwDrawA.h
239 %{_includedir}/GL/GLwDrawAP.h
240 %{_includedir}/GL/GLwMDrawA.h
241 %{_includedir}/GL/GLwMDrawAP.h
242 %{_includedir}/GL/gl.h
243 %{_includedir}/GL/glext.h
244 %{_includedir}/GL/gl_mangle.h
245 %{_includedir}/GL/glu.h
246 %{_includedir}/GL/glu_mangle.h
247 %{_includedir}/GL/glx.h
248 %{_includedir}/GL/glx_mangle.h
249 %{_includedir}/GL/osmesa.h
250 %{_includedir}/GL/xmesa.h
251 %{_includedir}/GL/xmesa_x.h
252 %{_includedir}/GL/xmesa_xf86.h
256 %defattr(644,root,root,755)
261 %defattr(644,root,root,755)
262 %dir /usr/src/examples/Mesa
263 %dir /usr/src/examples/Mesa/book
264 %dir /usr/src/examples/Mesa/demos
265 %dir /usr/src/examples/Mesa/samples
266 %dir /usr/src/examples/Mesa/xdemos
268 %doc /usr/src/examples/Mesa/book/*
269 %doc /usr/src/examples/Mesa/demos/*
270 %doc /usr/src/examples/Mesa/samples/*
271 %doc /usr/src/examples/Mesa/xdemos/*