]>
Commit | Line | Data |
---|---|---|
e1833810 | 1 | # |
0cb33a09 | 2 | # TODO: |
0e4c97b7 | 3 | # - subpackage with non-dri libGL for use with X-servers with missing GLX extension? |
59f12de8 | 4 | # - resurrect static if it's useful |
0cb33a09 | 5 | # |
6299b3cd | 6 | # Conditional build: |
bb686270 AM |
7 | %bcond_without egl # build egl |
8 | %bcond_without gallium # don't build gallium | |
be7de8ed JB |
9 | %bcond_with gallium_intel # gallium i915 driver (but doesn't work with AIGLX) |
10 | %bcond_with gallium_radeon # gallium radeon driver | |
11 | %bcond_without gallium_nouveau # gallium nouveau driver | |
bb686270 AM |
12 | %bcond_without motif # build static libGLw without Motif interface |
13 | %bcond_with multigl # package libGL in a way allowing concurrent install with nvidia/fglrx drivers | |
14 | %bcond_without osmesa # don't build osmesa | |
c885f99e | 15 | %bcond_with static_libs # static libraries |
d70abe90 JB |
16 | # |
17 | # minimal supported xserver version | |
18 | %define xserver_ver 1.5.0 | |
19 | # glapi version (glapi tables in dri drivers and libglx must be in sync); | |
20 | # set to current Mesa version on ABI break, when xserver tables get regenerated | |
21 | # (until they start to be somehow versioned themselves) | |
57ae29d5 | 22 | %define glapi_ver 7.1.0 |
797c6091 | 23 | # |
c1d2b5e2 AM |
24 | %define libdrm_ver 2.4.25 |
25 | %define dri2proto_ver 2.6 | |
b8e51e7a | 26 | %define glproto_ver 1.4.11 |
41aca213 | 27 | # |
edb5188b | 28 | %define rel 4 |
facfbf34 | 29 | # |
e1833810 | 30 | Summary: Free OpenGL implementation |
54181d82 | 31 | Summary(pl.UTF-8): Wolnodostępna implementacja standardu OpenGL |
e9b3ff7a | 32 | Name: Mesa |
c1d2b5e2 | 33 | Version: 7.11 |
817a8709 | 34 | Release: %{rel}%{?with_multigl:.mgl} |
f4a8c5f6 | 35 | License: MIT (core), SGI (GLU,libGLw) and others - see license.html file |
e9b3ff7a | 36 | Group: X11/Libraries |
17c01040 | 37 | Source0: ftp://ftp.freedesktop.org/pub/mesa/%{version}/%{name}Lib-%{version}.tar.bz2 |
c1d2b5e2 | 38 | # Source0-md5: ff03aca82d0560009a076a87c888cf13 |
6f53c8ab | 39 | Patch0: %{name}-realclean.patch |
c1d2b5e2 AM |
40 | Patch1: %{name}-git.patch |
41 | Patch2: %{name}-selinux.patch | |
50e22bbf | 42 | URL: http://www.mesa3d.org/ |
54147717 | 43 | BuildRequires: autoconf >= 2.59 |
a6c5fc6c | 44 | BuildRequires: automake |
0cb33a09 | 45 | BuildRequires: expat-devel |
41aca213 | 46 | BuildRequires: libdrm-devel >= %{libdrm_ver} |
59f12de8 | 47 | BuildRequires: libselinux-devel |
3c26b076 | 48 | BuildRequires: libstdc++-devel >= 5:3.3.0 |
54147717 | 49 | BuildRequires: libtalloc-devel >= 2:2.0.1 |
6b372055 | 50 | BuildRequires: libtool >= 2:1.4d |
278406ce | 51 | # for Gallium R300 |
c1d2b5e2 | 52 | BuildRequires: llvm-devel >= 2.9 |
276baaf9 | 53 | %{?with_motif:BuildRequires: motif-devel} |
f35aa06e | 54 | BuildRequires: pixman-devel |
a6c5fc6c | 55 | BuildRequires: pkgconfig |
c1d2b5e2 | 56 | BuildRequires: pkgconfig(talloc) >= 2.0.1 |
7eda8496 | 57 | BuildRequires: python |
11f03809 | 58 | BuildRequires: python-libxml2 |
d9fd49b8 | 59 | BuildRequires: python-modules |
f6afd89c | 60 | BuildRequires: rpmbuild(macros) >= 1.470 |
7cbe00f8 | 61 | BuildRequires: sed >= 4.0 |
cd8f367a | 62 | BuildRequires: xorg-lib-libXdamage-devel |
994fa6a5 | 63 | BuildRequires: xorg-lib-libXext-devel >= 1.0.5 |
1b597036 | 64 | BuildRequires: xorg-lib-libXt-devel |
9850656e | 65 | BuildRequires: xorg-lib-libXxf86vm-devel |
41aca213 | 66 | BuildRequires: xorg-proto-dri2proto-devel >= %{dri2proto_ver} |
b8e51e7a | 67 | BuildRequires: xorg-proto-glproto-devel >= %{glproto_ver} |
9850656e | 68 | BuildRequires: xorg-util-makedepend |
bb686270 | 69 | BuildRequires: xorg-xserver-server-devel |
54147717 JB |
70 | %if %{with egl} |
71 | BuildRequires: libxcb-devel | |
72 | BuildRequires: udev-devel >= 150 | |
73 | %endif | |
74 | %if %{with gallium} | |
75 | BuildRequires: xorg-proto-xextproto-devel >= 7.0.99.1 | |
76 | BuildRequires: xorg-xserver-server-devel >= 1.6.0 | |
77 | %endif | |
ddde5931 | 78 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
a0b2836a | 79 | |
8060076f AM |
80 | %if %{without gallium} |
81 | %undefine with_gallium_intel | |
c885f99e | 82 | %undefine with_gallium_nouveau |
0563bcdf | 83 | %undefine with_gallium_radeon |
8060076f AM |
84 | %endif |
85 | ||
c1d2b5e2 AM |
86 | # unresolved symbol _glapi_tls_Dispatch |
87 | %define skip_post_check_so libGLESv1_CM.so.1.* libGLESv2.so.2.* | |
88 | ||
a0b2836a | 89 | %description |
a70fde83 | 90 | Mesa is a 3-D graphics library with an API which is very similar to |
a5e5e963 | 91 | that of OpenGL(R). To the extent that Mesa utilizes the OpenGL command |
a70fde83 | 92 | syntax or state machine, it is being used with authorization from |
a5e5e963 JB |
93 | Silicon Graphics, Inc. However, the author does not possess an OpenGL |
94 | license from SGI, and makes no claim that Mesa is in any way a | |
95 | compatible replacement for OpenGL or associated with SGI. | |
a0b2836a | 96 | |
f77f03b8 JR |
97 | %description -l pl.UTF-8 |
98 | Mesa jest biblioteką grafiki 3D z API bardzo podobnym do OpenGL(R). Do | |
99 | tego stopnia, że Mesa używa składni i automatu OpenGL jest używana z | |
100 | autoryzacją Silicon Graphics, Inc. Jednak autor nie posiada licencji | |
101 | OpenGL od SGI i nie twierdzi, że Mesa jest kompatybilnym zamiennikiem | |
102 | OpenGL ani powiązana z SGI. | |
a0b2836a | 103 | |
bb686270 | 104 | %package libEGL |
ae79139b JB |
105 | Summary: Mesa implementation of EGL Native Platform Graphics Interface library |
106 | Summary(pl.UTF-8): Implementacja Mesa biblioteki interfejsu EGL | |
107 | License: MIT | |
bb686270 AM |
108 | Group: Libraries |
109 | Requires: OpenGL >= 1.2 | |
54147717 | 110 | Requires: udev-libs >= 150 |
ae79139b | 111 | Provides: EGL = 1.4 |
bb686270 AM |
112 | |
113 | %description libEGL | |
ae79139b JB |
114 | This package contains shared libEGL - Mesa implementation of EGL |
115 | Native Platform Graphics Interface as specified by Khronos Group: | |
116 | <http://www.khronos.org/egl/>. | |
bb686270 AM |
117 | |
118 | %description libEGL -l pl.UTF-8 | |
ae79139b JB |
119 | Ten pakiet zawiera bibliotekę współdzieloną libEGL - implementację |
120 | Mesa standardu EGL Native Platform Graphics Interface (interfejsu | |
121 | graficznego platformy natywnej) wg specyfikacji Khronos Group: | |
122 | <http://www.khronos.org/egl/>. | |
bb686270 AM |
123 | |
124 | %package libEGL-devel | |
ae79139b JB |
125 | Summary: Header files for Mesa implementation of EGL library |
126 | Summary(pl.UTF-8): Pliki nagłówkowe implementacji Mesa biblioteki EGL | |
127 | License: MIT | |
bb686270 AM |
128 | Group: Development/Libraries |
129 | Requires: %{name}-libEGL = %{version}-%{release} | |
130 | Requires: OpenGL-devel >= 1.2 | |
131 | Requires: libstdc++-devel | |
ae79139b | 132 | Provides: EGL-devel = 1.4 |
bb686270 AM |
133 | |
134 | %description libEGL-devel | |
ae79139b | 135 | Header files for Mesa implementation of EGL library. |
bb686270 AM |
136 | |
137 | %description libEGL-devel -l pl.UTF-8 | |
ae79139b | 138 | Pliki nagłówkowe implementacji Mesa biblioteki EGL. |
bb686270 AM |
139 | |
140 | %package libEGL-static | |
278406ce JB |
141 | Summary: Static Mesa EGL library |
142 | Summary(pl.UTF-8): Statyczna biblioteka Mesa EGL | |
ae79139b | 143 | License: MIT |
bb686270 AM |
144 | Group: Development/Libraries |
145 | Requires: %{name}-libEGL-devel = %{version}-%{release} | |
ae79139b | 146 | Provides: EGL-static = 1.4 |
bb686270 AM |
147 | |
148 | %description libEGL-static | |
278406ce | 149 | Static Mesa EGL library. |
bb686270 AM |
150 | |
151 | %description libEGL-static -l pl.UTF-8 | |
278406ce | 152 | Statyczna biblioteka Mesa EGL. |
c1d2b5e2 | 153 | |
f445ed6c JB |
154 | %package libGL |
155 | Summary: Free Mesa3D implementation of libGL OpenGL library | |
54181d82 | 156 | Summary(pl.UTF-8): Wolnodostępna implementacja Mesa3D biblioteki libGL ze standardu OpenGL |
f445ed6c JB |
157 | License: MIT |
158 | Group: X11/Libraries | |
38a2434c | 159 | Requires: libdrm >= %{libdrm_ver} |
237cb2a3 | 160 | Provides: OpenGL = 2.1 |
f445ed6c | 161 | Provides: OpenGL-GLX = 1.4 |
b7a76370 | 162 | Obsoletes: Mesa |
884f6d35 | 163 | Obsoletes: Mesa-dri |
b18f0f46 AM |
164 | Obsoletes: X11-OpenGL-libGL < 1:7.0.0 |
165 | Obsoletes: XFree86-OpenGL-libGL < 1:7.0.0 | |
f445ed6c JB |
166 | |
167 | %description libGL | |
168 | Mesa is a 3-D graphics library with an API which is very similar to | |
169 | that of OpenGL(R). To the extent that Mesa utilizes the OpenGL command | |
170 | syntax or state machine, it is being used with authorization from | |
171 | Silicon Graphics, Inc. However, the author does not possess an OpenGL | |
172 | license from SGI, and makes no claim that Mesa is in any way a | |
173 | compatible replacement for OpenGL or associated with SGI. | |
174 | ||
175 | This package contains libGL which implements OpenGL 1.5 and GLX 1.4 | |
176 | specifications. It uses DRI for rendering. | |
177 | ||
f77f03b8 JR |
178 | %description libGL -l pl.UTF-8 |
179 | Mesa jest biblioteką grafiki 3D z API bardzo podobnym do OpenGL(R). Do | |
180 | tego stopnia, że Mesa używa składni i automatu OpenGL jest używana z | |
181 | autoryzacją Silicon Graphics, Inc. Jednak autor nie posiada licencji | |
182 | OpenGL od SGI i nie twierdzi, że Mesa jest kompatybilnym zamiennikiem | |
183 | OpenGL ani powiązana z SGI. | |
f445ed6c | 184 | |
f77f03b8 JR |
185 | Ten pakiet zawiera libGL implementującą specyfikacje OpenGL 1.5 oraz |
186 | GLX 1.4. Używa DRI do renderowania. | |
f445ed6c JB |
187 | |
188 | %package libGL-devel | |
189 | Summary: Header files for Mesa3D libGL library | |
54181d82 | 190 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libGL z projektu Mesa3D |
f445ed6c JB |
191 | License: MIT |
192 | Group: X11/Development/Libraries | |
193 | # loose dependency on libGL to use with other libGL binaries | |
194 | Requires: OpenGL >= 1.5 | |
41aca213 | 195 | Requires: libdrm-devel >= %{libdrm_ver} |
875da849 | 196 | Requires: xorg-lib-libX11-devel |
9489410a | 197 | Requires: xorg-lib-libXdamage-devel |
198 | Requires: xorg-lib-libXext-devel | |
41aca213 | 199 | Requires: xorg-lib-libXxf86vm-devel |
200 | Requires: xorg-proto-dri2proto-devel >= %{dri2proto_ver} | |
b8e51e7a | 201 | Requires: xorg-proto-glproto-devel >= %{glproto_ver} |
e261c0c1 | 202 | Suggests: OpenGL-doc-man |
6299b3cd | 203 | Provides: OpenGL-GLX-devel = 1.4 |
3e88bc92 | 204 | Provides: OpenGL-devel = 2.1 |
f445ed6c | 205 | Obsoletes: Mesa-devel |
b18f0f46 AM |
206 | Obsoletes: X11-OpenGL-devel < 1:7.0.0 |
207 | Obsoletes: X11-OpenGL-devel-base < 1:7.0.0 | |
208 | Obsoletes: XFree86-OpenGL-devel < 1:7.0.0 | |
209 | Obsoletes: XFree86-OpenGL-devel-base < 1:7.0.0 | |
a0b2836a | 210 | |
f445ed6c JB |
211 | %description libGL-devel |
212 | Header files for Mesa3D libGL library. | |
a0b2836a | 213 | |
f77f03b8 JR |
214 | %description libGL-devel -l pl.UTF-8 |
215 | Pliki nagłówkowe biblioteki libGL z projektu Mesa3D. | |
e31e9d24 | 216 | |
f445ed6c JB |
217 | %package libGL-static |
218 | Summary: Static Mesa3D libGL library | |
54181d82 | 219 | Summary(pl.UTF-8): Statyczna biblioteka libGL z projektu Mesa3D |
f445ed6c JB |
220 | License: MIT |
221 | Group: X11/Development/Libraries | |
222 | Requires: %{name}-libGL-devel = %{version}-%{release} | |
237cb2a3 | 223 | Provides: OpenGL-static = 2.1 |
f445ed6c | 224 | Obsoletes: Mesa-static |
b18f0f46 AM |
225 | Obsoletes: X11-OpenGL-static < 1:7.0.0 |
226 | Obsoletes: XFree86-OpenGL-static < 1:7.0.0 | |
f445ed6c JB |
227 | |
228 | %description libGL-static | |
229 | Static Mesa3D libGL library. It uses software renderer. | |
230 | ||
f77f03b8 JR |
231 | %description libGL-static -l pl.UTF-8 |
232 | Statyczna biblioteka libGL z projektu Mesa3D. Używa programowego | |
f445ed6c JB |
233 | renderingu. |
234 | ||
278406ce JB |
235 | %package libGLES |
236 | Summary: Mesa implementation of GLES (OpenGL ES) libraries | |
237 | Summary(pl.UTF-8): Implementacja Mesa bibliotek GLES (OpenGL ES) | |
238 | Group: Libraries | |
239 | ||
240 | %description libGLES | |
241 | This package contains shared libraries of Mesa implementation of GLES | |
242 | (OpenGL ES) - cross-platform API for full-function 2D and 3D graphics | |
243 | on embedded systems. OpenGL ES specification can be found on Khronos | |
cc59a107 JB |
244 | Group site: <http://www.khronos.org/opengles/>. Mesa implements OpenGL |
245 | ES 1.1 and 2.0. | |
278406ce JB |
246 | |
247 | %description libGLES -l pl.UTF-8 | |
248 | Ten pakiet zawiera biblioteki współdzielone implementacji Mesa | |
249 | standardu GLES (OpenGL ES) - wieloplatformowego API do w pełni | |
250 | funkcjonalnej grafiki 2D i 3D na systemach wbudowanych. Specyfikację | |
251 | OpenGL ES można znaleźć na stronie Khronos Group: | |
cc59a107 JB |
252 | <http://www.khronos.org/opengles/>. Mesa zawiera implementacją OpenGL |
253 | ES 1.1 i 2.0. | |
278406ce JB |
254 | |
255 | %package libGLES-devel | |
256 | Summary: Header files for Mesa GLES libraries | |
257 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Mesa GLES | |
258 | Group: Development/Libraries | |
259 | Requires: %{name}-libGLES = %{version}-%{release} | |
260 | ||
261 | %description libGLES-devel | |
262 | Header files for Mesa GLES libraries. | |
263 | ||
264 | %description libGLES-devel -l pl.UTF-8 | |
265 | Pliki nagłówkowe bibliotek Mesa GLES. | |
266 | ||
f445ed6c JB |
267 | %package libGLU |
268 | Summary: SGI implementation of libGLU OpenGL library | |
54181d82 | 269 | Summary(pl.UTF-8): Implementacja SGI biblioteki libGLU ze standardu OpenGL |
9ae30a4c | 270 | License: SGI Free Software License B v2.0 (MIT-like) |
f445ed6c JB |
271 | Group: Libraries |
272 | # loose dependency on libGL.so.1 to use with other libGL binaries | |
273 | Requires: OpenGL >= 1.2 | |
274 | Provides: OpenGL-GLU = 1.3 | |
275 | Obsoletes: Mesa-devel | |
b18f0f46 AM |
276 | Obsoletes: X11-OpenGL-libs < 1:7.0.0 |
277 | Obsoletes: XFree86-OpenGL-libs < 1:7.0.0 | |
f445ed6c JB |
278 | |
279 | %description libGLU | |
280 | SGI implementation of libGLU OpenGL library. It implements OpenGL GLU | |
281 | 1.3 specifications. | |
282 | ||
f77f03b8 | 283 | %description libGLU -l pl.UTF-8 |
f445ed6c | 284 | Implementacja SGI biblioteki libGLU ze standardu OpenGL. Implementuje |
f77f03b8 | 285 | specyfikację OpenGL GLU 1.3. |
f445ed6c JB |
286 | |
287 | %package libGLU-devel | |
288 | Summary: Header files for SGI libGLU library | |
54181d82 | 289 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SGI libGLU |
9ae30a4c | 290 | License: SGI Free Software License B v2.0 (MIT-like) |
f445ed6c JB |
291 | Group: Development/Libraries |
292 | Requires: %{name}-libGLU = %{version}-%{release} | |
293 | Requires: OpenGL-devel >= 1.2 | |
294 | Requires: libstdc++-devel | |
295 | Provides: OpenGL-GLU-devel = 1.3 | |
296 | ||
297 | %description libGLU-devel | |
298 | Header files for SGI libGLU library. | |
299 | ||
f77f03b8 JR |
300 | %description libGLU-devel -l pl.UTF-8 |
301 | Pliki nagłówkowe biblioteki SGI libGLU. | |
f445ed6c JB |
302 | |
303 | %package libGLU-static | |
304 | Summary: Static SGI libGLU library | |
54181d82 | 305 | Summary(pl.UTF-8): Statyczna biblioteka SGI libGLU |
9ae30a4c | 306 | License: SGI Free Software License B v2.0 (MIT-like) |
f445ed6c JB |
307 | Group: Development/Libraries |
308 | Requires: %{name}-libGLU-devel = %{version}-%{release} | |
6299b3cd | 309 | Provides: OpenGL-GLU-static = 1.3 |
e31e9d24 | 310 | |
f445ed6c JB |
311 | %description libGLU-static |
312 | Static SGI libGLU library. | |
313 | ||
f77f03b8 | 314 | %description libGLU-static -l pl.UTF-8 |
f445ed6c JB |
315 | Statyczna biblioteka SGI libGLU. |
316 | ||
317 | %package libGLw | |
318 | Summary: SGI OpenGL Xt widgets library | |
54181d82 | 319 | Summary(pl.UTF-8): Biblioteka SGI widgetów Xt dla OpenGL-a |
f445ed6c JB |
320 | License: SGI MIT-like |
321 | Group: Libraries | |
322 | # loose dependency on libGL.so.1 to use with other libGL binaries | |
323 | Requires: OpenGL >= 1.1 | |
324 | Provides: OpenGL-GLw | |
325 | ||
326 | %description libGLw | |
327 | SGI OpenGL Xt widgets library. | |
328 | ||
e094f07e | 329 | %description libGLw -l pl.UTF-8 |
f77f03b8 | 330 | Biblioteka SGI widgetów Xt dla OpenGL-a. |
f445ed6c JB |
331 | |
332 | %package libGLw-devel | |
333 | Summary: Header files for SGI libGLw library | |
54181d82 | 334 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SGI libGLw |
f4a8c5f6 | 335 | License: SGI MIT-like |
f445ed6c JB |
336 | Group: Development/Libraries |
337 | Requires: %{name}-libGLw = %{version}-%{release} | |
338 | Requires: OpenGL-devel >= 1.2 | |
339 | Provides: OpenGL-GLw-devel | |
340 | ||
341 | %description libGLw-devel | |
342 | Header files for SGI libGLw library. | |
343 | ||
f77f03b8 JR |
344 | %description libGLw-devel -l pl.UTF-8 |
345 | Pliki nagłówkowe biblioteki SGI libGLw. | |
f445ed6c JB |
346 | |
347 | %package libGLw-static | |
348 | Summary: Static SGI libGLw library | |
54181d82 | 349 | Summary(pl.UTF-8): Statyczna biblioteka SGI libGLw |
f4a8c5f6 | 350 | License: SGI MIT-like |
f445ed6c JB |
351 | Group: Development/Libraries |
352 | Requires: %{name}-libGLw-devel = %{version}-%{release} | |
353 | Provides: OpenGL-GLw-static | |
e31e9d24 | 354 | |
f445ed6c JB |
355 | %description libGLw-static |
356 | Static SGI libGLw library. | |
357 | ||
f77f03b8 | 358 | %description libGLw-static -l pl.UTF-8 |
f445ed6c JB |
359 | Statyczna biblioteka SGI libGLw. |
360 | ||
f4a8c5f6 JB |
361 | %package libOSMesa |
362 | Summary: OSMesa (off-screen renderer) library | |
363 | Summary(pl.UTF-8): Biblioteka OSMesa (renderująca bitmapy w pamięci) | |
364 | License: MIT | |
365 | Group: Libraries | |
366 | # doesn't require base | |
367 | ||
368 | %description libOSMesa | |
369 | OSMesa (off-screen renderer) library. | |
370 | ||
371 | %description libOSMesa -l pl.UTF-8 | |
372 | Biblioteka OSMesa (renderująca bitmapy w pamięci). | |
373 | ||
374 | %package libOSMesa-devel | |
375 | Summary: Header file for OSMesa (off-screen renderer) library | |
376 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki OSMesa (renderującej bitmapy w pamięci) | |
377 | License: MIT | |
378 | Group: Development/Libraries | |
379 | Requires: %{name}-libOSMesa = %{version}-%{release} | |
380 | # for <GL/gl.h> only | |
381 | Requires: OpenGL-devel | |
382 | ||
383 | %description libOSMesa-devel | |
384 | Header file for OSMesa (off-screen renderer) library. | |
385 | ||
386 | %description libOSMesa-devel -l pl.UTF-8 | |
387 | Plik nagłówkowy biblioteki OSMesa (renderującej bitmapy w pamięci). | |
388 | ||
389 | %package libOSMesa-static | |
390 | Summary: Static OSMesa (off-screen renderer) library | |
391 | Summary(pl.UTF-8): Biblioteka statyczna OSMesa (renderująca bitmapy w pamięci) | |
392 | License: MIT | |
393 | Group: Development/Libraries | |
394 | Requires: %{name}-libOSMesa-devel = %{version}-%{release} | |
395 | # this static build of OSMesa needs static non-dri Mesa implementation | |
396 | Requires: %{name}-libGL-static = %{version}-%{release} | |
397 | ||
398 | %description libOSMesa-static | |
399 | Static OSMesa (off-screen renderer) library. | |
400 | ||
401 | %description libOSMesa-static -l pl.UTF-8 | |
402 | Biblioteka statyczna OSMesa (renderująca bitmapy w pamięci). | |
403 | ||
c1d2b5e2 | 404 | %package libOpenVG |
278406ce JB |
405 | Summary: Mesa implementation of OpenVG (Vector Graphics Accelleration) API |
406 | Summary(pl.UTF-8): Implementacja Mesa API OpenVG (akceleracji grafiki wektorowej) | |
c1d2b5e2 AM |
407 | License: MIT |
408 | Group: Libraries | |
409 | # doesn't require base | |
410 | ||
411 | %description libOpenVG | |
278406ce JB |
412 | This package contains Mesa implementation of OpenVG - cross-platform |
413 | API that provides a low-level hardware acceleration interface for | |
414 | vector graphics libraries such as Flash and SVG. OpenVG specification | |
415 | can be found on Khronos Group site: <http://www.khronos.org/openvg/>. | |
cc59a107 | 416 | Mesa implements OpenVG 1.1. |
c1d2b5e2 AM |
417 | |
418 | %description libOpenVG -l pl.UTF-8 | |
278406ce JB |
419 | Ten pakiet zawiera implementację Mesa standardu OpenVG - |
420 | wieloplatfomowego API zapewniającego niskopoziomowy interfejs | |
421 | akceleracji sprzętowej dla bibliotek grafiki wektorowej, takiej | |
422 | jak Flash czy SVG. Specyfikację OpenVG można znaleźć na stronie | |
cc59a107 JB |
423 | Khronos Group: <http://www.khronos.org/openvg/>. Mesa zawiera |
424 | implementację OpenVG w wersji 1.1. | |
c1d2b5e2 AM |
425 | |
426 | %package libOpenVG-devel | |
278406ce JB |
427 | Summary: Header file for Mesa OpenVG library |
428 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki Mesa OpenVG | |
c1d2b5e2 AM |
429 | License: MIT |
430 | Group: Development/Libraries | |
431 | # for <KHR/khrplatform.h> | |
432 | Requires: %{name}-libEGL-devel = %{version}-%{release} | |
433 | Requires: %{name}-libOpenVG = %{version}-%{release} | |
434 | ||
435 | %description libOpenVG-devel | |
278406ce | 436 | Header file for Mesa OpenVG library. |
c1d2b5e2 AM |
437 | |
438 | %description libOpenVG-devel -l pl.UTF-8 | |
278406ce | 439 | Plik nagłówkowy biblioteki Mesa OpenVG. |
c1d2b5e2 | 440 | |
f445ed6c JB |
441 | %package utils |
442 | Summary: OpenGL utilities from Mesa3D | |
54181d82 | 443 | Summary(pl.UTF-8): Programy narzędziowe OpenGL z projektu Mesa3D |
f4a8c5f6 | 444 | License: MIT |
1a039c9a | 445 | Group: X11/Applications/Graphics |
f445ed6c JB |
446 | # loose deps on libGL/libGLU |
447 | ||
448 | %description utils | |
449 | OpenGL utilities from Mesa3D: glxgears and glxinfo. | |
450 | ||
f77f03b8 JR |
451 | %description utils -l pl.UTF-8 |
452 | Programy narzędziowe OpenGL z projektu Mesa3D: glxgears i glxinfo. | |
a0b2836a | 453 | |
afe33c03 | 454 | %package dri-driver-ati-mach64 |
362c6f99 JB |
455 | Summary: X.org DRI driver for ATI Mach64 card family |
456 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI Mach64 | |
f4a8c5f6 | 457 | License: MIT |
18da5046 | 458 | Group: X11/Libraries |
d70abe90 JB |
459 | Requires: xorg-driver-video-mach64 |
460 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
461 | Requires: xorg-xserver-server >= %{xserver_ver} | |
875da849 | 462 | |
afe33c03 | 463 | %description dri-driver-ati-mach64 |
362c6f99 | 464 | X.org DRI driver for ATI Mach64 card family. |
875da849 | 465 | |
f77f03b8 | 466 | %description dri-driver-ati-mach64 -l pl.UTF-8 |
362c6f99 | 467 | Sterownik X.org DRI dla rodziny kart ATI Mach64. |
875da849 | 468 | |
afe33c03 | 469 | %package dri-driver-ati-radeon-R100 |
362c6f99 JB |
470 | Summary: X.org DRI driver for ATI R100 card family |
471 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R100 | |
f4a8c5f6 | 472 | License: MIT |
18da5046 | 473 | Group: X11/Libraries |
83c21438 | 474 | Requires: xorg-driver-video-ati |
d70abe90 JB |
475 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} |
476 | Requires: xorg-xserver-server >= %{xserver_ver} | |
8e26093b | 477 | Obsoletes: X11-driver-radeon-dri < 1:7.0.0 |
afe33c03 | 478 | |
479 | %description dri-driver-ati-radeon-R100 | |
362c6f99 | 480 | X.org DRI driver for ATI R100 card family (Radeon 7000-7500). |
afe33c03 | 481 | |
f77f03b8 | 482 | %description dri-driver-ati-radeon-R100 -l pl.UTF-8 |
362c6f99 | 483 | Sterownik X.org DRI dla rodziny kart ATI R100 (Radeon 7000-7500). |
afe33c03 | 484 | |
485 | %package dri-driver-ati-radeon-R200 | |
362c6f99 JB |
486 | Summary: X.org DRI driver for ATI R200 card family |
487 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R200 | |
f4a8c5f6 | 488 | License: MIT |
18da5046 | 489 | Group: X11/Libraries |
83c21438 | 490 | Requires: xorg-driver-video-ati |
d70abe90 JB |
491 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} |
492 | Requires: xorg-xserver-server >= %{xserver_ver} | |
8e26093b | 493 | Obsoletes: X11-driver-radeon-dri < 1:7.0.0 |
afe33c03 | 494 | |
495 | %description dri-driver-ati-radeon-R200 | |
362c6f99 | 496 | X.org DRI driver for ATI R200 card family (Radeon 8500-92xx) |
afe33c03 | 497 | |
f77f03b8 | 498 | %description dri-driver-ati-radeon-R200 -l pl.UTF-8 |
362c6f99 | 499 | Sterownik X.org DRI dla rodziny kart ATI R200 (Radeon 8500-92xx). |
afe33c03 | 500 | |
501 | %package dri-driver-ati-radeon-R300 | |
362c6f99 JB |
502 | Summary: X.org DRI driver for ATI R300 card family |
503 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R300 | |
f4a8c5f6 | 504 | License: MIT |
18da5046 | 505 | Group: X11/Libraries |
83c21438 | 506 | Requires: xorg-driver-video-ati |
d70abe90 JB |
507 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} |
508 | Requires: xorg-xserver-server >= %{xserver_ver} | |
8e26093b | 509 | Obsoletes: X11-driver-radeon-dri < 1:7.0.0 |
afe33c03 | 510 | |
511 | %description dri-driver-ati-radeon-R300 | |
362c6f99 | 512 | X.org DRI driver for ATI R300 card family. |
afe33c03 | 513 | |
f77f03b8 | 514 | %description dri-driver-ati-radeon-R300 -l pl.UTF-8 |
362c6f99 | 515 | Sterownik X.org DRI dla rodziny kart ATI R300. |
afe33c03 | 516 | |
e68936d0 AM |
517 | %package dri-driver-ati-radeon-R600 |
518 | Summary: X.org DRI driver for ATI R600 card family | |
519 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R600 | |
520 | License: MIT | |
521 | Group: X11/Libraries | |
522 | Requires: radeon-ucode | |
523 | Requires: xorg-driver-video-ati | |
524 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
525 | Requires: xorg-xserver-server >= %{xserver_ver} | |
526 | ||
527 | %description dri-driver-ati-radeon-R600 | |
528 | X.org DRI driver for ATI R600 card family. | |
529 | ||
530 | %description dri-driver-ati-radeon-R600 -l pl.UTF-8 | |
531 | Sterownik X.org DRI dla rodziny kart ATI R600. | |
532 | ||
afe33c03 | 533 | %package dri-driver-ati-rage128 |
362c6f99 JB |
534 | Summary: X.org DRI driver for ATI Rage128 card family |
535 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI Rage128 | |
f4a8c5f6 | 536 | License: MIT |
18da5046 | 537 | Group: X11/Libraries |
d70abe90 JB |
538 | Requires: xorg-driver-video-r128 |
539 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
540 | Requires: xorg-xserver-server >= %{xserver_ver} | |
8e26093b | 541 | Obsoletes: X11-driver-r128-dri < 1:7.0.0 |
afe33c03 | 542 | |
543 | %description dri-driver-ati-rage128 | |
362c6f99 | 544 | X.org DRI driver for ATI Rage128 card family. |
afe33c03 | 545 | |
f77f03b8 | 546 | %description dri-driver-ati-rage128 -l pl.UTF-8 |
362c6f99 | 547 | Sterownik X.org DRI dla rodziny kart ATI Rage128. |
afe33c03 | 548 | |
549 | %package dri-driver-ffb | |
362c6f99 JB |
550 | Summary: X.org DRI driver for Sun FFB card family |
551 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart Sun FFB | |
f4a8c5f6 | 552 | License: MIT |
18da5046 | 553 | Group: X11/Libraries |
83c21438 | 554 | Requires: xorg-driver-video-sunffb |
d70abe90 JB |
555 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} |
556 | Requires: xorg-xserver-server >= %{xserver_ver} | |
afe33c03 | 557 | |
558 | %description dri-driver-ffb | |
362c6f99 | 559 | X.org DRI driver for SUN Creator3D and Elite3D card family. |
afe33c03 | 560 | |
f77f03b8 | 561 | %description dri-driver-ffb -l pl.UTF-8 |
362c6f99 | 562 | Sterownik X.org DRI dla rodziny kart SUN Creator3D i Elite3D. |
afe33c03 | 563 | |
564 | %package dri-driver-glint | |
362c6f99 JB |
565 | Summary: X.org DRI driver for GLINT/Permedia card family |
566 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart GLINT/Permedia | |
f4a8c5f6 | 567 | License: MIT |
18da5046 | 568 | Group: X11/Libraries |
83c21438 | 569 | Requires: xorg-driver-video-glint |
d70abe90 JB |
570 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} |
571 | Requires: xorg-xserver-server >= %{xserver_ver} | |
8e26093b | 572 | Obsoletes: X11-driver-glint-dri < 1:7.0.0 |
afe33c03 | 573 | |
574 | %description dri-driver-glint | |
362c6f99 | 575 | X.org DRI driver for GLINT/Permedia card family. |
afe33c03 | 576 | |
f77f03b8 | 577 | %description dri-driver-glint -l pl.UTF-8 |
362c6f99 | 578 | Sterownik X.org DRI dla rodziny kart GLINT/Permedia. |
afe33c03 | 579 | |
580 | %package dri-driver-intel-i810 | |
362c6f99 JB |
581 | Summary: X.org DRI driver for Intel i810 card family |
582 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart Intel i810 | |
f4a8c5f6 | 583 | License: MIT |
18da5046 | 584 | Group: X11/Libraries |
d70abe90 JB |
585 | Requires: xorg-driver-video-intel |
586 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
587 | Requires: xorg-xserver-server >= %{xserver_ver} | |
8e26093b | 588 | Obsoletes: X11-driver-i810-dri < 1:7.0.0 |
afe33c03 | 589 | |
590 | %description dri-driver-intel-i810 | |
362c6f99 | 591 | X.org DRI driver for Intel i810 card family. |
afe33c03 | 592 | |
f77f03b8 | 593 | %description dri-driver-intel-i810 -l pl.UTF-8 |
362c6f99 | 594 | Sterownik X.org DRI dla rodziny kart Intel i810. |
afe33c03 | 595 | |
afe33c03 | 596 | %package dri-driver-intel-i915 |
362c6f99 JB |
597 | Summary: X.org DRI driver for Intel i915 card family |
598 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart Intel i915 | |
f4a8c5f6 | 599 | License: MIT |
18da5046 | 600 | Group: X11/Libraries |
d70abe90 JB |
601 | Requires: xorg-driver-video-intel |
602 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
603 | Requires: xorg-xserver-server >= %{xserver_ver} | |
2db432a2 | 604 | Obsoletes: Mesa-dri-driver-intel-i830 |
8e26093b | 605 | Obsoletes: X11-driver-i810-dri < 1:7.0.0 |
afe33c03 | 606 | |
607 | %description dri-driver-intel-i915 | |
362c6f99 | 608 | X.org DRI driver for Intel i915 card family. |
afe33c03 | 609 | |
f77f03b8 | 610 | %description dri-driver-intel-i915 -l pl.UTF-8 |
362c6f99 | 611 | Sterownik X.org DRI dla rodziny kart Intel i915. |
afe33c03 | 612 | |
b360f4f6 | 613 | %package dri-driver-intel-i965 |
362c6f99 JB |
614 | Summary: X.org DRI driver for Intel i965 card family |
615 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart Intel i965 | |
f4a8c5f6 | 616 | License: MIT |
b360f4f6 | 617 | Group: X11/Libraries |
d70abe90 JB |
618 | Requires: xorg-driver-video-intel |
619 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
620 | Requires: xorg-xserver-server >= %{xserver_ver} | |
b360f4f6 | 621 | Obsoletes: Mesa-dri-driver-intel-i830 |
8e26093b | 622 | Obsoletes: X11-driver-i810-dri < 1:7.0.0 |
b360f4f6 | 623 | |
624 | %description dri-driver-intel-i965 | |
362c6f99 | 625 | X.org DRI driver for Intel i965 card family. |
b360f4f6 | 626 | |
f77f03b8 | 627 | %description dri-driver-intel-i965 -l pl.UTF-8 |
362c6f99 | 628 | Sterownik X.org DRI dla rodziny kart Intel i965. |
b360f4f6 | 629 | |
afe33c03 | 630 | %package dri-driver-matrox |
362c6f99 JB |
631 | Summary: X.org DRI driver for Matrox G card family |
632 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart Matrox G | |
f4a8c5f6 | 633 | License: MIT |
18da5046 | 634 | Group: X11/Libraries |
83c21438 | 635 | Requires: xorg-driver-video-mga |
d70abe90 JB |
636 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} |
637 | Requires: xorg-xserver-server >= %{xserver_ver} | |
8e26093b | 638 | Obsoletes: X11-driver-mga-dri < 1:7.0.0 |
afe33c03 | 639 | |
640 | %description dri-driver-matrox | |
641 | X.org DRI drivers for Matrox G card family. | |
642 | ||
f77f03b8 | 643 | %description dri-driver-matrox -l pl.UTF-8 |
afe33c03 | 644 | Sterowniki X.org DRI dla rodziny kart Matrox G. |
645 | ||
3e88bc92 AM |
646 | %package dri-driver-nouveau |
647 | Summary: X.org DRI driver for NVIDIA card family | |
648 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart NVIDIA | |
649 | License: MIT | |
650 | Group: X11/Libraries | |
651 | Requires: xorg-driver-video-nouveau | |
652 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
653 | Requires: xorg-xserver-server >= %{xserver_ver} | |
654 | ||
655 | %description dri-driver-nouveau | |
656 | X.org DRI drivers for NVIDIA card family. | |
657 | ||
658 | %description dri-driver-nouveau -l pl.UTF-8 | |
659 | Sterowniki X.org DRI dla rodziny kart NVIDIA. | |
660 | ||
afe33c03 | 661 | %package dri-driver-savage |
362c6f99 JB |
662 | Summary: X.org DRI driver for S3 Savage card family |
663 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart S3 Savage | |
f4a8c5f6 | 664 | License: MIT |
18da5046 | 665 | Group: X11/Libraries |
83c21438 | 666 | Requires: xorg-driver-video-savage |
d70abe90 JB |
667 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} |
668 | Requires: xorg-xserver-server >= %{xserver_ver} | |
afe33c03 | 669 | |
670 | %description dri-driver-savage | |
362c6f99 | 671 | X.org DRI driver for S3 Savage card family. |
afe33c03 | 672 | |
f77f03b8 | 673 | %description dri-driver-savage -l pl.UTF-8 |
362c6f99 | 674 | Sterownik X.org DRI dla rodziny kart S3 Savage. |
afe33c03 | 675 | |
676 | %package dri-driver-sis | |
362c6f99 JB |
677 | Summary: X.org DRI driver for SiS card family |
678 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart SiS | |
f4a8c5f6 | 679 | License: MIT |
18da5046 | 680 | Group: X11/Libraries |
83c21438 | 681 | Requires: xorg-driver-video-sis |
d70abe90 JB |
682 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} |
683 | Requires: xorg-xserver-server >= %{xserver_ver} | |
8e26093b | 684 | Obsoletes: X11-driver-sis-dri < 1:7.0.0 |
afe33c03 | 685 | |
686 | %description dri-driver-sis | |
362c6f99 | 687 | X.org DRI driver for SiS card family. |
afe33c03 | 688 | |
f77f03b8 | 689 | %description dri-driver-sis -l pl.UTF-8 |
362c6f99 | 690 | Sterownik X.org DRI dla rodziny kart SiS. |
afe33c03 | 691 | |
f3606317 | 692 | %package dri-driver-swrast |
362c6f99 JB |
693 | Summary: X.org DRI software rasterizer driver |
694 | Summary(pl.UTF-8): Sterownik X.org DRI obsługujący rysowanie programowe | |
f3606317 AM |
695 | License: MIT |
696 | Group: X11/Libraries | |
d70abe90 JB |
697 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} |
698 | Requires: xorg-xserver-server >= %{xserver_ver} | |
f3606317 AM |
699 | |
700 | %description dri-driver-swrast | |
362c6f99 | 701 | X.org DRI software rasterizer driver. |
f3606317 AM |
702 | |
703 | %description dri-driver-swrast -l pl.UTF-8 | |
362c6f99 | 704 | Sterownik X.org DRI obsługujący rysowanie programowe. |
f3606317 | 705 | |
afe33c03 | 706 | %package dri-driver-tdfx |
362c6f99 JB |
707 | Summary: X.org DRI driver for 3DFX Voodoo card family |
708 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart 3DFX Voodoo | |
f4a8c5f6 | 709 | License: MIT |
18da5046 | 710 | Group: X11/Libraries |
10fb2f64 | 711 | Requires: Glide3-DRI |
83c21438 | 712 | Requires: xorg-driver-video-tdfx |
d70abe90 JB |
713 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} |
714 | Requires: xorg-xserver-server >= %{xserver_ver} | |
8e26093b | 715 | Obsoletes: X11-driver-tdfx-dri < 1:7.0.0 |
afe33c03 | 716 | |
717 | %description dri-driver-tdfx | |
362c6f99 | 718 | X.org DRI driver for 3DFX Voodoo card family (Voodoo 3,4,5, Banshee |
afe33c03 | 719 | and Velocity 100/200). |
720 | ||
f77f03b8 | 721 | %description dri-driver-tdfx -l pl.UTF-8 |
362c6f99 JB |
722 | Sterownik X.org DRI dla rodziny kart 3DFX Voodoo. (Voodoo 3,4,5, |
723 | Banshee i Velocity 100/200). | |
afe33c03 | 724 | |
23e685d3 | 725 | %package dri-driver-via-unichrome |
726 | Summary: X.org DRI driver for VIA Unichrome card family | |
727 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart VIA Unichrome | |
728 | License: MIT | |
729 | Group: X11/Libraries | |
730 | Requires: xorg-driver-video-openchrome | |
731 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
732 | Requires: xorg-xserver-server >= %{xserver_ver} | |
733 | ||
734 | %description dri-driver-via-unichrome | |
735 | X.org DRI driver for VIA Unichrome card family. | |
736 | ||
737 | %description dri-driver-via-unichrome -l pl.UTF-8 | |
738 | Sterownik X.org DRI dla rodziny kart VIA Unichrome. | |
739 | ||
e68936d0 AM |
740 | %package dri-driver-vmwgfx |
741 | Summary: X.org DRI driver for VMware | |
742 | Summary(pl.UTF-8): Sterownik X.org DRI dla VMware | |
743 | License: MIT | |
744 | Group: X11/Libraries | |
745 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
746 | Requires: xorg-xserver-server >= %{xserver_ver} | |
747 | ||
748 | %description dri-driver-vmwgfx | |
749 | X.org DRI driver for VMWare. | |
750 | ||
751 | %description dri-driver-vmwgfx -l pl.UTF-8 | |
752 | Sterownik X.org DRI dla VMware. | |
753 | ||
a0b2836a | 754 | %prep |
bb686270 | 755 | %setup -q |
6f53c8ab | 756 | %patch0 -p0 |
be7de8ed | 757 | %patch1 -p1 |
c1d2b5e2 | 758 | %patch2 -p1 |
a0b2836a | 759 | |
760 | %build | |
bb686270 AM |
761 | %{__aclocal} |
762 | %{__autoconf} | |
a5afae62 | 763 | |
c1d2b5e2 | 764 | dri_drivers="i810 mach64 mga r128 r200 radeon \ |
0563bcdf | 765 | %if %{without gallium_radeon} |
c1d2b5e2 | 766 | r300 r600 \ |
0563bcdf AM |
767 | %endif |
768 | savage \ | |
8060076f | 769 | %if %{without gallium_intel} |
c1d2b5e2 | 770 | i915 i965 \ |
a5afae62 | 771 | %endif |
59f12de8 AM |
772 | %ifarch sparc sparcv9 sparc64 |
773 | ffb \ | |
6299b3cd | 774 | %endif |
59f12de8 AM |
775 | %ifarch %{ix86} %{x8664} |
776 | sis \ | |
31a772c7 | 777 | %endif |
59f12de8 AM |
778 | swrast tdfx unichrome" |
779 | ||
780 | dri_drivers=$(echo $dri_drivers | xargs | tr ' ' ',') | |
781 | ||
c1d2b5e2 AM |
782 | gallium_drivers="svga swrast \ |
783 | %if %{with gallium_intel} | |
784 | i915 \ | |
785 | i965 \ | |
786 | %endif | |
787 | %if %{with gallium_radeon} | |
788 | radeon \ | |
789 | r600 \ | |
790 | %endif | |
791 | %if %{with gallium_nouveau} | |
792 | nouveau \ | |
793 | %endif | |
794 | " | |
795 | ||
796 | gallium_drivers=$(echo $gallium_drivers | xargs | tr ' ' ',') | |
797 | ||
59f12de8 | 798 | common_flags="\ |
b4a5c074 | 799 | --enable-glx-tls \ |
c885f99e JB |
800 | --enable-pic \ |
801 | --enable-selinux \ | |
802 | %{?with_static_libs:--enable-static} \ | |
74a7a0e1 | 803 | --disable-glut \ |
c1d2b5e2 | 804 | " |
59f12de8 | 805 | |
74a7a0e1 | 806 | osmesa_common_flags="\ |
59f12de8 AM |
807 | --with-driver=osmesa \ |
808 | --disable-asm \ | |
c1d2b5e2 AM |
809 | --disable-glu \ |
810 | --disable-egl" | |
74a7a0e1 AM |
811 | |
812 | %if %{with osmesa} | |
74a7a0e1 | 813 | %configure $common_flags $osmesa_common_flags \ |
59f12de8 | 814 | --with-osmesa-bits=8 |
74a7a0e1 | 815 | %{__make} |
59f12de8 AM |
816 | mv %{_lib} osmesa8 |
817 | %{__make} clean | |
cb97a1c3 | 818 | %endif |
59f12de8 AM |
819 | |
820 | %configure $common_flags \ | |
c885f99e JB |
821 | %if %{with egl} |
822 | --enable-egl \ | |
823 | --enable-gles1 \ | |
824 | --enable-gles2 \ | |
825 | %endif | |
5f574b4b | 826 | %if %{with gallium} |
c1d2b5e2 AM |
827 | --enable-openvg \ |
828 | --enable-gallium-egl \ | |
829 | --with-gallium-drivers=${gallium_drivers} \ | |
5f574b4b AM |
830 | %else |
831 | --disable-gallium \ | |
832 | %endif | |
59f12de8 AM |
833 | --with-driver=dri \ |
834 | --with-dri-drivers=${dri_drivers} \ | |
835 | --with-dri-driverdir=%{_libdir}/xorg/modules/dri | |
836 | ||
837 | %{__make} | |
59f12de8 | 838 | |
a0b2836a | 839 | %install |
f5543b17 | 840 | rm -rf $RPM_BUILD_ROOT |
ddde5931 | 841 | |
59f12de8 AM |
842 | # libs without drivers |
843 | %{__make} install \ | |
844 | DESTDIR=$RPM_BUILD_ROOT | |
ddde5931 | 845 | |
cb97a1c3 | 846 | %if %{with osmesa} |
c885f99e | 847 | cp -Pp osmesa*/libOSMesa* $RPM_BUILD_ROOT%{_libdir} |
cb97a1c3 | 848 | %endif |
f4a8c5f6 | 849 | |
59f12de8 | 850 | # strip out undesirable headers |
c885f99e | 851 | %{__rm} $RPM_BUILD_ROOT%{_includedir}/GL/{glfbdev,mesa_wgl,vms_x_fix,wglext,wmesa}.h |
59f12de8 | 852 | |
c1d2b5e2 AM |
853 | %if %{with gallium} |
854 | # use gallium swrastg as swrast | |
855 | mv $RPM_BUILD_ROOT%{_libdir}/xorg/modules/dri/swrastg_dri.so $RPM_BUILD_ROOT%{_libdir}/xorg/modules/dri/swrast_dri.so | |
856 | %endif | |
857 | ||
5818e6f7 JR |
858 | %if %{with multigl} |
859 | install -d $RPM_BUILD_ROOT{%{_libdir}/Mesa,%{_sysconfdir}/ld.so.conf.d} | |
860 | ||
861 | mv -f $RPM_BUILD_ROOT%{_libdir}/libGL.so.* $RPM_BUILD_ROOT%{_libdir}/Mesa | |
862 | ln -sf Mesa/libGL.so.1 $RPM_BUILD_ROOT%{_libdir}/libGL.so | |
863 | ||
864 | echo %{_libdir}/Mesa >$RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/Mesa.conf | |
865 | %endif | |
866 | ||
abc9e15f JB |
867 | %clean |
868 | rm -rf $RPM_BUILD_ROOT | |
869 | ||
bb686270 AM |
870 | %post libEGL -p /sbin/ldconfig |
871 | %postun libEGL -p /sbin/ldconfig | |
872 | ||
f445ed6c JB |
873 | %post libGL -p /sbin/ldconfig |
874 | %postun libGL -p /sbin/ldconfig | |
875 | ||
c1d2b5e2 AM |
876 | %post libGLES -p /sbin/ldconfig |
877 | %postun libGLES -p /sbin/ldconfig | |
878 | ||
f445ed6c JB |
879 | %post libGLU -p /sbin/ldconfig |
880 | %postun libGLU -p /sbin/ldconfig | |
881 | ||
882 | %post libGLw -p /sbin/ldconfig | |
883 | %postun libGLw -p /sbin/ldconfig | |
a0b2836a | 884 | |
c1d2b5e2 AM |
885 | %post libOSMesa -p /sbin/ldconfig |
886 | %postun libOSMesa -p /sbin/ldconfig | |
887 | ||
888 | %post libOpenVG -p /sbin/ldconfig | |
889 | %postun libOpenVG -p /sbin/ldconfig | |
890 | ||
bb686270 AM |
891 | %if %{with egl} |
892 | %files libEGL | |
893 | %defattr(644,root,root,755) | |
894 | %attr(755,root,root) %{_libdir}/libEGL.so.*.* | |
c794b508 | 895 | %attr(755,root,root) %ghost %{_libdir}/libEGL.so.1 |
c1d2b5e2 AM |
896 | %attr(755,root,root) %{_libdir}/libglapi.so.*.* |
897 | %attr(755,root,root) %ghost %{_libdir}/libglapi.so.0 | |
898 | %if %{with gallium} | |
bb686270 | 899 | %dir %{_libdir}/egl |
c1d2b5e2 AM |
900 | %attr(755,root,root) %{_libdir}/egl/egl_gallium.so |
901 | %attr(755,root,root) %{_libdir}/egl/st_GL.so | |
902 | %if %{with gallium_radeon} | |
903 | %attr(755,root,root) %{_libdir}/egl/pipe_r300.so | |
904 | %attr(755,root,root) %{_libdir}/egl/pipe_r600.so | |
905 | %endif | |
906 | %if %{with gallium_intel} | |
907 | %attr(755,root,root) %{_libdir}/egl/pipe_i915.so | |
908 | %attr(755,root,root) %{_libdir}/egl/pipe_i965.so | |
909 | %endif | |
910 | %endif | |
bb686270 AM |
911 | |
912 | %files libEGL-devel | |
913 | %defattr(644,root,root,755) | |
914 | %attr(755,root,root) %{_libdir}/libEGL.so | |
c1d2b5e2 | 915 | %attr(755,root,root) %{_libdir}/libglapi.so |
bb686270 AM |
916 | %dir %{_includedir}/EGL |
917 | %{_includedir}/EGL/egl.h | |
918 | %{_includedir}/EGL/eglext.h | |
919 | %{_includedir}/EGL/eglplatform.h | |
920 | %dir %{_includedir}/KHR | |
921 | %{_includedir}/KHR/khrplatform.h | |
922 | %{_pkgconfigdir}/egl.pc | |
923 | ||
c885f99e | 924 | %if %{with static_libs} |
bb686270 AM |
925 | %files libEGL-static |
926 | %defattr(644,root,root,755) | |
927 | %{_libdir}/libEGL.a | |
928 | %endif | |
929 | %endif | |
930 | ||
f445ed6c | 931 | %files libGL |
e9b3ff7a | 932 | %defattr(644,root,root,755) |
47e56dff | 933 | %doc docs/{*.html,README.{3DFX,GGI,MITS,QUAKE,THREADS},RELNOTES*} |
5818e6f7 JR |
934 | %if %{with multigl} |
935 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ld.so.conf.d/Mesa.conf | |
936 | %dir %{_libdir}/Mesa | |
937 | %attr(755,root,root) %{_libdir}/Mesa/libGL.so.*.* | |
938 | %attr(755,root,root) %ghost %{_libdir}/Mesa/libGL.so.1 | |
939 | %else | |
9b0e6ebb JB |
940 | %attr(755,root,root) %{_libdir}/libGL.so.*.* |
941 | %attr(755,root,root) %ghost %{_libdir}/libGL.so.1 | |
0cb33a09 JB |
942 | # symlink for binary apps which fail to conform Linux OpenGL ABI |
943 | # (and dlopen libGL.so instead of libGL.so.1) | |
944 | %attr(755,root,root) %{_libdir}/libGL.so | |
5818e6f7 | 945 | %endif |
a0b2836a | 946 | |
f445ed6c | 947 | %files libGL-devel |
e9b3ff7a | 948 | %defattr(644,root,root,755) |
ddde5931 | 949 | %doc docs/*.spec |
f4a8c5f6 JB |
950 | %if %{with multigl} |
951 | %attr(755,root,root) %{_libdir}/libGL.so | |
952 | %endif | |
debcd977 | 953 | %dir %{_includedir}/GL |
d3dd48bf | 954 | %{_includedir}/GL/gl.h |
e1833810 | 955 | %{_includedir}/GL/glext.h |
d3dd48bf | 956 | %{_includedir}/GL/gl_mangle.h |
d3dd48bf | 957 | %{_includedir}/GL/glx.h |
abc9e15f | 958 | %{_includedir}/GL/glxext.h |
d3dd48bf | 959 | %{_includedir}/GL/glx_mangle.h |
1ec0796e AM |
960 | %dir %{_includedir}/GL/internal |
961 | %{_includedir}/GL/internal/dri_interface.h | |
59f12de8 | 962 | %{_pkgconfigdir}/dri.pc |
f4a8c5f6 | 963 | %{_pkgconfigdir}/gl.pc |
a0b2836a | 964 | |
c885f99e | 965 | %if %{with static_libs} |
278406ce JB |
966 | %files libGL-static |
967 | %defattr(644,root,root,755) | |
968 | %{_libdir}/libGL.a | |
969 | %endif | |
970 | ||
c1d2b5e2 AM |
971 | %files libGLES |
972 | %defattr(644,root,root,755) | |
cc59a107 JB |
973 | %attr(755,root,root) %{_libdir}/libGLESv1_CM.so.*.*.* |
974 | %attr(755,root,root) %ghost %{_libdir}/libGLESv1_CM.so.1 | |
975 | %attr(755,root,root) %{_libdir}/libGLESv2.so.*.* | |
976 | %attr(755,root,root) %ghost %{_libdir}/libGLESv2.so.2 | |
c1d2b5e2 AM |
977 | |
978 | %files libGLES-devel | |
979 | %defattr(644,root,root,755) | |
cc59a107 JB |
980 | %attr(755,root,root) %{_libdir}/libGLESv1_CM.so |
981 | %attr(755,root,root) %{_libdir}/libGLESv2.so | |
c1d2b5e2 AM |
982 | %{_includedir}/GLES |
983 | %{_includedir}/GLES2 | |
cc59a107 JB |
984 | %{_pkgconfigdir}/glesv1_cm.pc |
985 | %{_pkgconfigdir}/glesv2.pc | |
c1d2b5e2 | 986 | |
f445ed6c JB |
987 | %files libGLU |
988 | %defattr(644,root,root,755) | |
9b0e6ebb | 989 | %attr(755,root,root) %{_libdir}/libGLU.so.*.* |
c794b508 | 990 | %attr(755,root,root) %ghost %{_libdir}/libGLU.so.1 |
f445ed6c JB |
991 | |
992 | %files libGLU-devel | |
993 | %defattr(644,root,root,755) | |
994 | %attr(755,root,root) %{_libdir}/libGLU.so | |
995 | %{_includedir}/GL/glu.h | |
996 | %{_includedir}/GL/glu_mangle.h | |
f4a8c5f6 | 997 | %{_pkgconfigdir}/glu.pc |
f445ed6c | 998 | |
c885f99e | 999 | %if %{with static_libs} |
f445ed6c JB |
1000 | %files libGLU-static |
1001 | %defattr(644,root,root,755) | |
11062ced | 1002 | %{_libdir}/libGLU.a |
59f12de8 | 1003 | %endif |
f445ed6c JB |
1004 | |
1005 | %files libGLw | |
1006 | %defattr(644,root,root,755) | |
9b0e6ebb | 1007 | %attr(755,root,root) %{_libdir}/libGLw.so.*.* |
c794b508 | 1008 | %attr(755,root,root) %ghost %{_libdir}/libGLw.so.1 |
f445ed6c JB |
1009 | |
1010 | %files libGLw-devel | |
1011 | %defattr(644,root,root,755) | |
1012 | %attr(755,root,root) %{_libdir}/libGLw.so | |
1013 | %{_includedir}/GL/GLwDrawA.h | |
1014 | %{_includedir}/GL/GLwDrawAP.h | |
1015 | %{_includedir}/GL/GLwMDrawA.h | |
1016 | %{_includedir}/GL/GLwMDrawAP.h | |
336eb747 | 1017 | %{_pkgconfigdir}/glw.pc |
f445ed6c | 1018 | |
c885f99e | 1019 | %if %{with static_libs} |
f445ed6c JB |
1020 | %files libGLw-static |
1021 | %defattr(644,root,root,755) | |
0cb33a09 | 1022 | %{_libdir}/libGLw.a |
59f12de8 | 1023 | %endif |
3855c435 | 1024 | |
cb97a1c3 | 1025 | %if %{with osmesa} |
f4a8c5f6 JB |
1026 | %files libOSMesa |
1027 | %defattr(644,root,root,755) | |
cc59a107 JB |
1028 | %attr(755,root,root) %{_libdir}/libOSMesa.so.*.* |
1029 | %attr(755,root,root) %ghost %{_libdir}/libOSMesa.so.7 | |
f4a8c5f6 JB |
1030 | |
1031 | %files libOSMesa-devel | |
1032 | %defattr(644,root,root,755) | |
cc59a107 | 1033 | %attr(755,root,root) %{_libdir}/libOSMesa.so |
f4a8c5f6 JB |
1034 | %{_includedir}/GL/osmesa.h |
1035 | ||
c885f99e | 1036 | %if %{with static_libs} |
f4a8c5f6 JB |
1037 | %files libOSMesa-static |
1038 | %defattr(644,root,root,755) | |
cc59a107 | 1039 | %{_libdir}/libOSMesa.a |
59f12de8 | 1040 | %endif |
cb97a1c3 | 1041 | %endif |
f4a8c5f6 | 1042 | |
c1d2b5e2 AM |
1043 | %if %{with gallium} |
1044 | %files libOpenVG | |
1045 | %defattr(644,root,root,755) | |
cc59a107 | 1046 | %attr(755,root,root) %{_libdir}/libOpenVG.so.*.*.* |
278406ce | 1047 | %attr(755,root,root) %ghost %{_libdir}/libOpenVG.so.1 |
c1d2b5e2 AM |
1048 | |
1049 | %files libOpenVG-devel | |
1050 | %defattr(644,root,root,755) | |
278406ce | 1051 | %attr(755,root,root) %{_libdir}/libOpenVG.so |
c1d2b5e2 | 1052 | %{_includedir}/VG |
c1d2b5e2 AM |
1053 | %{_pkgconfigdir}/vg.pc |
1054 | %endif | |
1055 | ||
afe33c03 | 1056 | %files dri-driver-ati-mach64 |
875da849 | 1057 | %defattr(644,root,root,755) |
afe33c03 | 1058 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/mach64_dri.so |
1059 | ||
1060 | %files dri-driver-ati-radeon-R100 | |
1061 | %defattr(644,root,root,755) | |
1062 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/radeon_dri.so | |
1063 | ||
1064 | %files dri-driver-ati-radeon-R200 | |
1065 | %defattr(644,root,root,755) | |
1066 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/r200_dri.so | |
1067 | ||
1068 | %files dri-driver-ati-radeon-R300 | |
1069 | %defattr(644,root,root,755) | |
1070 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/r300_dri.so | |
1071 | ||
e68936d0 AM |
1072 | %files dri-driver-ati-radeon-R600 |
1073 | %defattr(644,root,root,755) | |
1074 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/r600_dri.so | |
1075 | ||
afe33c03 | 1076 | %files dri-driver-ati-rage128 |
1077 | %defattr(644,root,root,755) | |
1078 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/r128_dri.so | |
1079 | ||
f445ed6c | 1080 | # sunffb (sparc only) |
afe33c03 | 1081 | %ifarch sparc sparcv9 sparc64 |
1082 | %files dri-driver-ffb | |
1083 | %defattr(644,root,root,755) | |
f445ed6c JB |
1084 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/ffb_dri.so |
1085 | %endif | |
afe33c03 | 1086 | |
1087 | # glint (requires update) | |
1088 | %if 0 | |
1089 | %files dri-driver-glint | |
1090 | %defattr(644,root,root,755) | |
1091 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/gamma_dri.so | |
1092 | %endif | |
1093 | ||
1094 | %files dri-driver-intel-i810 | |
1095 | %defattr(644,root,root,755) | |
f445ed6c | 1096 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/i810_dri.so |
afe33c03 | 1097 | |
afe33c03 | 1098 | %files dri-driver-intel-i915 |
1099 | %defattr(644,root,root,755) | |
5f574b4b | 1100 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/i915_dri.so |
afe33c03 | 1101 | |
b360f4f6 | 1102 | %files dri-driver-intel-i965 |
1103 | %defattr(644,root,root,755) | |
1104 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/i965_dri.so | |
c1d2b5e2 AM |
1105 | %if %{with gallium_intel} |
1106 | %attr(755,root,root) %{_libdir}/xorg/modules/drivers/i965g_drv.so | |
1107 | %endif | |
b360f4f6 | 1108 | |
afe33c03 | 1109 | %files dri-driver-matrox |
1110 | %defattr(644,root,root,755) | |
f445ed6c | 1111 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/mga_dri.so |
afe33c03 | 1112 | |
a3697dc6 | 1113 | %if %{with gallium_nouveau} |
3e88bc92 AM |
1114 | %files dri-driver-nouveau |
1115 | %defattr(644,root,root,755) | |
1116 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/nouveau_dri.so | |
a7a3223c | 1117 | %endif |
3e88bc92 | 1118 | |
afe33c03 | 1119 | %files dri-driver-savage |
1120 | %defattr(644,root,root,755) | |
f445ed6c | 1121 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/savage_dri.so |
afe33c03 | 1122 | |
a71d2e77 | 1123 | %ifarch %{ix86} %{x8664} |
afe33c03 | 1124 | %files dri-driver-sis |
1125 | %defattr(644,root,root,755) | |
f445ed6c | 1126 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/sis_dri.so |
5b105641 | 1127 | %endif |
afe33c03 | 1128 | |
f3606317 AM |
1129 | %files dri-driver-swrast |
1130 | %defattr(644,root,root,755) | |
1131 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/swrast_dri.so | |
1132 | ||
afe33c03 | 1133 | %files dri-driver-tdfx |
1134 | %defattr(644,root,root,755) | |
f445ed6c | 1135 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/tdfx_dri.so |
afe33c03 | 1136 | |
23e685d3 | 1137 | %files dri-driver-via-unichrome |
1138 | %defattr(644,root,root,755) | |
1139 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/unichrome_dri.so | |
1140 | ||
bb5f0825 | 1141 | %if %{with gallium} |
e68936d0 AM |
1142 | %files dri-driver-vmwgfx |
1143 | %defattr(644,root,root,755) | |
9c4e4073 | 1144 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/vmwgfx_dri.so |
bb5f0825 | 1145 | %endif |