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