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(cs): X11/Knihovny
12 Group(da): X11/Biblioteker
13 Group(de): X11/Bibliotheken
14 Group(es): X11/Bibliotecas
15 Group(fr): X11/Librairies
16 Group(is): X11/Aðgerðasöfn
17 Group(it): X11/Librerie
18 Group(ja): X11/¥é¥¤¥Ö¥é¥ê
19 Group(no): X11/Biblioteker
20 Group(pl): X11/Biblioteki
21 Group(pt_BR): X11/Bibliotecas
22 Group(pt): X11/Bibliotecas
23 Group(ru): X11/âÉÂÌÉÏÔÅËÉ
24 Group(sl): X11/Knji¾nice
25 Group(sv): X11/Bibliotek
26 Group(uk): X11/â¦Â̦ÏÔÅËÉ
27 Source0: ftp://ftp.sourceforge.net/pub/sourceforge/mesa3d/%{name}Lib-%{version}.tar.bz2
28 Source1: ftp://ftp.sourceforge.net/pub/sourceforge/mesa3d/%{name}Demos-%{version}.tar.bz2
29 Patch0: %{name}-am.patch
30 Patch1: %{name}-ac.patch
31 Patch2: %{name}-paths.patch
32 Patch3: %{name}-libGLw.patch
33 URL: http://www.mesa3d.org/
34 BuildRequires: XFree86-devel
35 BuildRequires: autoconf
36 BuildRequires: motif-devel
39 %{?_with_glide:BuildRequires: Glide3-DRI-devel}
40 %{?_with_glide:Requires: Glide3-DRI}
43 Obsoletes: XFree86-OpenGL-core XFree86-OpenGL-libs
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46 # avoid XFree86-OpenGL* dependency
47 # Glide3 can be provided by Glide_V3-DRI or Glide_V5-DRI
48 %define _noautoreqdep libGL.so.1 libGLU.so.1 libOSMesa.so.4 libglide3.so.3
50 %define _prefix /usr/X11R6
51 %define _mandir %{_prefix}/man
54 Mesa is a 3-D graphics library with an API which is very similar to
55 that of OpenGL*. To the extent that Mesa utilizes the OpenGL command
56 syntax or state machine, it is being used with authorization from
57 Silicon Graphics, Inc. However, the author makes no claim that Mesa is
58 in any way a compatible replacement for OpenGL or associated with
59 Silicon Graphics, Inc. Those who want a licensed implementation of
60 OpenGL should contact a licensed vendor. This software is distributed
61 under the terms of the GNU Library General Public License, see the
62 LICENSE file for details.
64 - OpenGL(R) is a registered trademark of Silicon Graphics, Inc.
67 Mesa jest bibliotek± 3D bêd±c± darmowym odpowiednikiem standardu
70 - OpenGL jest zastrze¿onym znakiem towarowym firmy Silicon Graphics,
74 Summary: Development environment for Mesa
75 Summary(pl): ¦rodowisko programistyczne biblioteki Mesa
76 Group: Development/Libraries
77 Group(cs): Vývojové prostøedky/Knihovny
78 Group(da): Udvikling/Biblioteker
79 Group(de): Entwicklung/Bibliotheken
80 Group(es): Desarrollo/Bibliotecas
81 Group(fr): Development/Librairies
82 Group(is): Þróunartól/Aðgerðasöfn
83 Group(it): Sviluppo/Librerie
84 Group(ja): ³«È¯/¥é¥¤¥Ö¥é¥ê
85 Group(no): Utvikling/Bibliotek
86 Group(pl): Programowanie/Biblioteki
87 Group(pt_BR): Desenvolvimento/Bibliotecas
88 Group(pt): Desenvolvimento/Bibliotecas
89 Group(ru): òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
90 Group(sl): Razvoj/Knji¾nice
91 Group(sv): Utveckling/Bibliotek
92 Group(uk): òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
93 Requires: %{name} = %{version}
94 Requires: XFree86-devel
95 Provides: OpenGL-devel
96 Obsoletes: XFree86-OpenGL-devel
99 Header files and documentation needed for development.
101 %description devel -l pl
102 Pliki nag³ówkowe i dokumentacja do Mesy.
105 Summary: Mesa static libraries
106 Summary(pl): Biblioteki statyczne Mesy
107 Group: Development/Libraries
108 Group(cs): Vývojové prostøedky/Knihovny
109 Group(da): Udvikling/Biblioteker
110 Group(de): Entwicklung/Bibliotheken
111 Group(es): Desarrollo/Bibliotecas
112 Group(fr): Development/Librairies
113 Group(is): Þróunartól/Aðgerðasöfn
114 Group(it): Sviluppo/Librerie
115 Group(ja): ³«È¯/¥é¥¤¥Ö¥é¥ê
116 Group(no): Utvikling/Bibliotek
117 Group(pl): Programowanie/Biblioteki
118 Group(pt_BR): Desenvolvimento/Bibliotecas
119 Group(pt): Desenvolvimento/Bibliotecas
120 Group(ru): òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
121 Group(sl): Razvoj/Knji¾nice
122 Group(sv): Utveckling/Bibliotek
123 Group(uk): òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
124 Requires: %{name}-devel = %{version}
125 Provides: OpenGL-static
126 Obsoletes: XFree86-OpenGL-static
129 The static version of the Mesa libraries.
131 %description static -l pl
132 Biblioteki statyczne Mesy.
136 Summary(pl): Demonstracje mo¿liwo¶ci bibliotek Mesa
137 Group: Development/Libraries
138 Group(cs): Vývojové prostøedky/Knihovny
139 Group(da): Udvikling/Biblioteker
140 Group(de): Entwicklung/Bibliotheken
141 Group(es): Desarrollo/Bibliotecas
142 Group(fr): Development/Librairies
143 Group(is): Þróunartól/Aðgerðasöfn
144 Group(it): Sviluppo/Librerie
145 Group(ja): ³«È¯/¥é¥¤¥Ö¥é¥ê
146 Group(no): Utvikling/Bibliotek
147 Group(pl): Programowanie/Biblioteki
148 Group(pt_BR): Desenvolvimento/Bibliotecas
149 Group(pt): Desenvolvimento/Bibliotecas
150 Group(ru): òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
151 Group(sl): Razvoj/Knji¾nice
152 Group(sv): Utveckling/Bibliotek
153 Group(uk): òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
154 Requires: OpenGL-devel
157 Demonstration programs for the Mesa libraries.
159 %description demos -l pl
160 Programy demonstracyjne dla bibliotek Mesa.
163 %setup -q -n Mesa-%{version} -b 1
170 perl -pi -e "s,\.\./images/,%{_examplesdir}/Mesa/images/,g" demos/*
178 --disable-ggi-fbdev \
179 --disable-ggi-genkgi \
181 %{!?_with_glide:--without-glide} \
184 %ifarch i586 i686 k6 athlon \
187 %ifarch i686 athlon \
217 %{__make} linux OPTFLAGS="%{rpmcflags}"
221 rm -rf $RPM_BUILD_ROOT
222 %{__make} install DESTDIR=$RPM_BUILD_ROOT
224 install -d $RPM_BUILD_ROOT%{_mandir}/man3
228 prefix=$RPM_BUILD_ROOT%{_prefix} \
229 mandir=$RPM_BUILD_ROOT%{_mandir}/man3
230 # Mesa widgets are not binary compatible with SGI ones
231 cd $RPM_BUILD_ROOT%{_includedir}/GL
233 mv -f GLw*.h Mesa*.h Mesa-widgets
236 install widgets-sgi/libGLw* $RPM_BUILD_ROOT%{_libdir}
237 install widgets-sgi/GLw*.h $RPM_BUILD_ROOT%{_includedir}/GL
239 install -d $RPM_BUILD_ROOT/usr/src/examples/Mesa
240 for l in book demos samples xdemos images ; do
241 cp -Rf $l $RPM_BUILD_ROOT%{_examplesdir}/Mesa/$l
248 rm -rf $RPM_BUILD_ROOT
250 %post -p /sbin/ldconfig
251 %postun -p /sbin/ldconfig
254 %defattr(644,root,root,755)
256 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mesa.conf
257 %attr(755,root,root) %{_libdir}/libGL*.so.*.*
258 %attr(755,root,root) %{_libdir}/libOSMesa.so.*.*
261 %defattr(644,root,root,755)
262 %doc docs/{IAFA-PACKAGE,README,RELNOTES-*,VERSIONS,CONFORM,COPYRIGHT,DEVINFO,*.spec}.gz
263 %doc docs/README.{3DFX,GGI,MITS,QUAKE,X11,THREADS}.gz
264 %attr(755,root,root) %{_libdir}/libGL*.so
265 %attr(755,root,root) %{_libdir}/libOSMesa.so
267 %{_libdir}/libMesaGLw*.a
268 %dir %{_includedir}/GL
269 %{_includedir}/GL/Mesa-widgets
270 %{_includedir}/GL/GLwDrawA.h
271 %{_includedir}/GL/GLwDrawAP.h
272 %{_includedir}/GL/GLwMDrawA.h
273 %{_includedir}/GL/GLwMDrawAP.h
274 %{_includedir}/GL/gl.h
275 %{_includedir}/GL/glext.h
276 %{_includedir}/GL/gl_mangle.h
277 %{_includedir}/GL/glu.h
278 %{_includedir}/GL/glu_mangle.h
279 %{_includedir}/GL/glx.h
280 %{_includedir}/GL/glxext.h
281 %{_includedir}/GL/glx_mangle.h
282 %{_includedir}/GL/osmesa.h
283 %{_includedir}/GL/xmesa.h
284 %{_includedir}/GL/xmesa_x.h
285 %{_includedir}/GL/xmesa_xf86.h
289 %defattr(644,root,root,755)
292 %{_libdir}/libOSMesa.a
295 %defattr(644,root,root,755)
296 %dir %{_examplesdir}/Mesa
297 %dir %{_examplesdir}/Mesa/book
298 %dir %{_examplesdir}/Mesa/demos
299 %dir %{_examplesdir}/Mesa/samples
300 %dir %{_examplesdir}/Mesa/xdemos
302 %doc %{_examplesdir}/Mesa/book/*
303 %doc %{_examplesdir}/Mesa/demos/*
304 %doc %{_examplesdir}/Mesa/samples/*
305 %doc %{_examplesdir}/Mesa/xdemos/*