]> git.pld-linux.org Git - packages/Mesa.git/blob - Mesa.spec
- adapterized.
[packages/Mesa.git] / Mesa.spec
1 #
2 # _with_glide: with GLIDE
3 #
4 Summary:        Free OpenGL implementation
5 Summary(pl):    Bezp³atna implementacja standardu OpenGL
6 Name:           Mesa
7 Version:        4.0.1
8 Release:        1
9 License:        MIT (core), LGPL (MesaGLU), SGI (GLU,libGLw) and others - see COPYRIGHT file
10 Group:          X11/Libraries
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
37 BuildRequires:  perl
38 %ifarch %{ix86} alpha
39 %{?_with_glide:BuildRequires:   Glide3-DRI-devel}
40 %{?_with_glide:Requires:        Glide3-DRI}
41 %endif
42 Provides:       OpenGL
43 Obsoletes:      XFree86-OpenGL-core XFree86-OpenGL-libs
44 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45
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
49
50 %define         _prefix         /usr/X11R6
51 %define         _mandir         %{_prefix}/man
52
53 %description
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.
63
64 - OpenGL(R) is a registered trademark of Silicon Graphics, Inc.
65
66 %description -l pl
67 Mesa jest bibliotek± 3D bêd±c± darmowym odpowiednikiem standardu
68 OpenGL(*).
69
70 - OpenGL jest zastrze¿onym znakiem towarowym firmy Silicon Graphics,
71   Inc.
72
73 %package devel
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
97
98 %description devel
99 Header files and documentation needed for development.
100
101 %description devel -l pl
102 Pliki nag³ówkowe i dokumentacja do Mesy.
103
104 %package static
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
127
128 %description static
129 The static version of the Mesa libraries.
130
131 %description static -l pl
132 Biblioteki statyczne Mesy.
133
134 %package demos
135 Summary:        Mesa Demos
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
155
156 %description demos
157 Demonstration programs for the Mesa libraries.
158
159 %description demos -l pl
160 Programy demonstracyjne dla bibliotek Mesa.
161
162 %prep
163 %setup -q -n Mesa-%{version} -b 1
164 %patch0 -p1
165 %patch1 -p1
166 %patch2 -p1
167 %patch3 -p1
168
169 # fix demos
170 perl -pi -e "s,\.\./images/,%{_examplesdir}/Mesa/images/,g" demos/*
171
172 %build
173 %configure \
174         --enable-static \
175         --enable-shared \
176         --with-ggi="no" \
177         --with-svga="no" \
178         --disable-ggi-fbdev \
179         --disable-ggi-genkgi \
180         --enable-optimize \
181         %{!?_with_glide:--without-glide} \
182 %ifarch %{ix86} \
183         --enable-x86 \
184   %ifarch i586 i686 k6 athlon \
185         --enable-mmx \
186         --enable-3dnow \
187     %ifarch i686 athlon \
188         --enable-katmai \
189     %else \
190         --disable-katmai \
191     %endif \
192   %else \
193         --disable-mmx \
194         --disable-3dnow \
195   %endif \
196 %else \
197 %ifarch sparc \
198         --enable-sparc \
199 %endif \
200         --disable-x86 \
201         --disable-mmx \
202         --disable-3dnow
203 %endif
204
205 %{__make}
206         
207 (cd widgets-mesa
208 autoconf
209 %configure \
210         --with-motif
211 %{__make} || :
212 )
213
214 (cd widgets-sgi
215 touch depend
216 %{__make} dep
217 %{__make} linux OPTFLAGS="%{rpmcflags}"
218 )
219
220 %install
221 rm -rf $RPM_BUILD_ROOT
222 %{__make} install DESTDIR=$RPM_BUILD_ROOT
223
224 install -d $RPM_BUILD_ROOT%{_mandir}/man3
225
226 (cd widgets-mesa
227 %{__make} install \
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
232 mkdir Mesa-widgets
233 mv -f GLw*.h Mesa*.h Mesa-widgets
234 )
235
236 install widgets-sgi/libGLw* $RPM_BUILD_ROOT%{_libdir}
237 install widgets-sgi/GLw*.h $RPM_BUILD_ROOT%{_includedir}/GL
238
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
242 done
243
244 rm -f docs/*~
245 gzip -9nf docs/*
246
247 %clean
248 rm -rf $RPM_BUILD_ROOT
249
250 %post   -p /sbin/ldconfig
251 %postun -p /sbin/ldconfig
252
253 %files
254 %defattr(644,root,root,755)
255 %doc docs/CONFIG.gz
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.*.*
259
260 %files devel
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
266 %{_libdir}/libGLw.a
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
286 %{_mandir}/man3/*
287
288 %files static
289 %defattr(644,root,root,755)
290 %{_libdir}/libGL.a
291 %{_libdir}/libGLU.a
292 %{_libdir}/libOSMesa.a
293
294 %files demos
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
301
302 %doc %{_examplesdir}/Mesa/book/*
303 %doc %{_examplesdir}/Mesa/demos/*
304 %doc %{_examplesdir}/Mesa/samples/*
305 %doc %{_examplesdir}/Mesa/xdemos/*
This page took 0.196603 seconds and 4 git commands to generate.