1 Summary: Free OpenGL implementation. Runtime environment
2 Summary(pl): Bezp³atna implementacja standardu OpenGL
8 Group(pl): X11/Biblioteki
9 Source0: ftp://iris.ssec.wisc.edu/pub/Mesa/%{name}Lib-%{version}.tar.gz
10 Source1: ftp://iris.ssec.wisc.edu/pub/Mesa/%{name}Demos-%{version}.tar.gz
12 URL: http://www.mesa3d.org/
13 BuildRequires: XFree86-devel
14 BuildRoot: /tmp/%{name}-%{version}-root
16 %define _prefix /usr/X11R6
17 %define _mandir %{_prefix}/man
20 Mesa is a 3-D graphics library with an API which is very similar to that
21 of OpenGL*. To the extent that Mesa utilizes the OpenGL command syntax
22 or state machine, it is being used with authorization from Silicon Graphics,
23 Inc. However, the author makes no claim that Mesa is in any way a
24 compatible replacement for OpenGL or associated with Silicon Graphics, Inc.
25 Those who want a licensed implementation of OpenGL should contact a licensed
26 vendor. This software is distributed under the terms of the GNU Library
27 General Public License, see the LICENSE file for details.
29 * OpenGL(R) is a registered trademark of Silicon Graphics, Inc.
32 Mesa jest bibliotek± 3D bêd±c± darmowym odpowiednikiem standartu OpenGL(*).
33 * OpenGL jest zastrze¿onym znakiem towarowym firmy Silicon Graphics, Inc.
36 Summary: Development environment for Mesa
37 Summary(pl): ¦rodowisko programistyczne biblioteki Mesa
38 Group: Development/Libraries
39 Group(pl): Programowanie/Biblioteki
40 Requires: %{name} = %{version}
43 Header files and documentation needed for development.
45 %description -l pl devel
46 Pliki nag³ówkowe i dokumentacja do Mesy.
49 Summary: Mesa static libraries
50 Summary(pl): Biblioteki statyczne Mesy
51 Group: Development/Libraries
52 Group(pl): Programowanie/Biblioteki
53 Requires: %{name}-devel = %{version}
56 The static version of the Mesa libraries
58 %description -l pl static
59 Biblioteki statyczne Mesy.
62 Summary: GLUT library for Mesa
63 Summary(pl): Biblioteka GLUT dla Mesy
65 Group(pl): X11/Biblioteki
66 Requires: %{name} = %{version}
72 %description -l pl glut
76 Summary: GLUT Development environment for Mesa
77 Summary(pl): ¦rodowisko programistyczne 'GLUT' dla biblioteki MESA.
78 Group: Development/Libraries
79 Group(pl): Programowanie/Biblioteki
80 Requires: %{name} = %{version}
83 %description glut-devel
84 Header files needed for development aplications using GLUT library.
86 %description -l pl glut-devel
87 Pliki nag³ówkowe do biblioteki GLUT.
90 Summary: GLUT static libraries
91 Summary(pl): Biblioteki statyczne do biblioteki GLUT
92 Group: Development/Libraries
93 Group(pl): Programowanie/Biblioteki
94 Requires: %{name}-glut-devel = %{version}
97 %description glut-static
98 The static version of the GLUT library.
100 %description -l pl glut-static
101 Biblioteki statyczne GLUT.
105 Summary(pl): Demonstracje mo¿liwo¶ci biblioteki MESA.
106 Group: Development/Libraries
107 Group(pl): Programowanie/Biblioteki
108 Requires: %{name} = %{version}
111 Demonstration programs for the Mesa libraries.
113 %description -l pl demos
114 Programy demonstracyjne dla biblioteki Mesa.
117 %setup -q -n Mesa-%{version} -b 1
122 make LIBS_ONLY=YES linux-alpha
133 make LIBS_ONLY=YES linux-386
138 %ifarch sparc sparc64
142 (cd widgets-mesa; autoconf; \
143 LDFLAGS="-s"; export LDFLAGS
149 rm -rf $RPM_BUILD_ROOT
150 install -d $RPM_BUILD_ROOT{%{_libdir}/Mesa,%{_includedir},%{_mandir}/man3} \
151 $RPM_BUILD_ROOT/usr/src/examples/Mesa
153 cp -dpr lib include $RPM_BUILD_ROOT%{_prefix}
154 cp -dpr util $RPM_BUILD_ROOT%{_libdir}/Mesa
155 cp -dpr book demos xdemos samples $RPM_BUILD_ROOT/usr/src/examples/Mesa
156 install Make-config $RPM_BUILD_ROOT%{_libdir}/Mesa
160 prefix=$RPM_BUILD_ROOT/usr/X11R6 \
161 mandir=$RPM_BUILD_ROOT%{_mandir}/man3)
163 install */lib*.a $RPM_BUILD_ROOT%{_libdir}
165 strip $RPM_BUILD_ROOT%{_libdir}/{lib*so.*.*,Mesa/*/*} || :
167 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man3/* \
168 docs/{IAFA-PACKAGE,README*,RELNOTES,VERSIONS,CONFIG,CONFORM,COPYRIGHT,DEVINFO,*.spec}
170 %post -p /sbin/ldconfig
171 %postun -p /sbin/ldconfig
173 %post -p /sbin/ldconfig glut
174 %postun -p /sbin/ldconfig glut
177 rm -fr $RPM_BUILD_ROOT
180 %defattr(644,root,root,755)
184 %attr(755,root,root) %{_libdir}/libMesa*.so.*.*
186 %{_libdir}/libMesa*.a
190 %defattr(644,root,root,755)
192 %attr(755,root,root) %{_libdir}/libglut.so.*
198 %defattr(644,root,root,755)
199 %{_includedir}/GL/glut.h
201 %attr(755,root,root) %{_libdir}/libglut.so
206 %defattr(644,root,root,755)
211 %defattr(644,root,root,755)
212 %doc docs/{IAFA-PACKAGE,README,RELNOTES,VERSIONS,CONFORM,COPYRIGHT,DEVINFO,*.spec}.gz
213 %doc README.{3DFX,GGI,MGL,QUAKE,X11,THREADS}.gz
216 %attr(755,root,root) %{_libdir}/libMesa*.so
220 %{_libdir}/Mesa/Make-config
223 %dir /usr/X11R6/include/GL
224 %{_includedir}/GL/*.h
229 %defattr(644,root,root,755)
231 %{_libdir}/libMesa*.a
234 %defattr(644,root,root,755)
235 %dir /usr/src/examples/Mesa/book
236 %dir /usr/src/examples/Mesa/demos
237 %dir /usr/src/examples/Mesa/samples
238 %dir /usr/src/examples/Mesa/xdemos
240 %attr(-,root,root)/usr/src/examples/Mesa/book/*
241 %attr(-,root,root)/usr/src/examples/Mesa/demos/*
242 %attr(-,root,root)/usr/src/examples/Mesa/samples/*
243 %attr(-,root,root)/usr/src/examples/Mesa/xdemos/*