]>
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 JB |
160 | # reports version 1.3, but supports glXGetProcAddress() from 1.4 |
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 | |
244 | Group site: <http://www.khronos.org/opengles/>. | |
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: | |
251 | <http://www.khronos.org/opengles/>. | |
252 | ||
253 | %package libGLES-devel | |
254 | Summary: Header files for Mesa GLES libraries | |
255 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Mesa GLES | |
256 | Group: Development/Libraries | |
257 | Requires: %{name}-libGLES = %{version}-%{release} | |
258 | ||
259 | %description libGLES-devel | |
260 | Header files for Mesa GLES libraries. | |
261 | ||
262 | %description libGLES-devel -l pl.UTF-8 | |
263 | Pliki nagłówkowe bibliotek Mesa GLES. | |
264 | ||
f445ed6c JB |
265 | %package libGLU |
266 | Summary: SGI implementation of libGLU OpenGL library | |
54181d82 | 267 | Summary(pl.UTF-8): Implementacja SGI biblioteki libGLU ze standardu OpenGL |
9ae30a4c | 268 | License: SGI Free Software License B v2.0 (MIT-like) |
f445ed6c JB |
269 | Group: Libraries |
270 | # loose dependency on libGL.so.1 to use with other libGL binaries | |
271 | Requires: OpenGL >= 1.2 | |
272 | Provides: OpenGL-GLU = 1.3 | |
273 | Obsoletes: Mesa-devel | |
b18f0f46 AM |
274 | Obsoletes: X11-OpenGL-libs < 1:7.0.0 |
275 | Obsoletes: XFree86-OpenGL-libs < 1:7.0.0 | |
f445ed6c JB |
276 | |
277 | %description libGLU | |
278 | SGI implementation of libGLU OpenGL library. It implements OpenGL GLU | |
279 | 1.3 specifications. | |
280 | ||
f77f03b8 | 281 | %description libGLU -l pl.UTF-8 |
f445ed6c | 282 | Implementacja SGI biblioteki libGLU ze standardu OpenGL. Implementuje |
f77f03b8 | 283 | specyfikację OpenGL GLU 1.3. |
f445ed6c JB |
284 | |
285 | %package libGLU-devel | |
286 | Summary: Header files for SGI libGLU library | |
54181d82 | 287 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SGI libGLU |
9ae30a4c | 288 | License: SGI Free Software License B v2.0 (MIT-like) |
f445ed6c JB |
289 | Group: Development/Libraries |
290 | Requires: %{name}-libGLU = %{version}-%{release} | |
291 | Requires: OpenGL-devel >= 1.2 | |
292 | Requires: libstdc++-devel | |
293 | Provides: OpenGL-GLU-devel = 1.3 | |
294 | ||
295 | %description libGLU-devel | |
296 | Header files for SGI libGLU library. | |
297 | ||
f77f03b8 JR |
298 | %description libGLU-devel -l pl.UTF-8 |
299 | Pliki nagłówkowe biblioteki SGI libGLU. | |
f445ed6c JB |
300 | |
301 | %package libGLU-static | |
302 | Summary: Static SGI libGLU library | |
54181d82 | 303 | Summary(pl.UTF-8): Statyczna biblioteka SGI libGLU |
9ae30a4c | 304 | License: SGI Free Software License B v2.0 (MIT-like) |
f445ed6c JB |
305 | Group: Development/Libraries |
306 | Requires: %{name}-libGLU-devel = %{version}-%{release} | |
6299b3cd | 307 | Provides: OpenGL-GLU-static = 1.3 |
e31e9d24 | 308 | |
f445ed6c JB |
309 | %description libGLU-static |
310 | Static SGI libGLU library. | |
311 | ||
f77f03b8 | 312 | %description libGLU-static -l pl.UTF-8 |
f445ed6c JB |
313 | Statyczna biblioteka SGI libGLU. |
314 | ||
315 | %package libGLw | |
316 | Summary: SGI OpenGL Xt widgets library | |
54181d82 | 317 | Summary(pl.UTF-8): Biblioteka SGI widgetów Xt dla OpenGL-a |
f445ed6c JB |
318 | License: SGI MIT-like |
319 | Group: Libraries | |
320 | # loose dependency on libGL.so.1 to use with other libGL binaries | |
321 | Requires: OpenGL >= 1.1 | |
322 | Provides: OpenGL-GLw | |
323 | ||
324 | %description libGLw | |
325 | SGI OpenGL Xt widgets library. | |
326 | ||
e094f07e | 327 | %description libGLw -l pl.UTF-8 |
f77f03b8 | 328 | Biblioteka SGI widgetów Xt dla OpenGL-a. |
f445ed6c JB |
329 | |
330 | %package libGLw-devel | |
331 | Summary: Header files for SGI libGLw library | |
54181d82 | 332 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SGI libGLw |
f4a8c5f6 | 333 | License: SGI MIT-like |
f445ed6c JB |
334 | Group: Development/Libraries |
335 | Requires: %{name}-libGLw = %{version}-%{release} | |
336 | Requires: OpenGL-devel >= 1.2 | |
337 | Provides: OpenGL-GLw-devel | |
338 | ||
339 | %description libGLw-devel | |
340 | Header files for SGI libGLw library. | |
341 | ||
f77f03b8 JR |
342 | %description libGLw-devel -l pl.UTF-8 |
343 | Pliki nagłówkowe biblioteki SGI libGLw. | |
f445ed6c JB |
344 | |
345 | %package libGLw-static | |
346 | Summary: Static SGI libGLw library | |
54181d82 | 347 | Summary(pl.UTF-8): Statyczna biblioteka SGI libGLw |
f4a8c5f6 | 348 | License: SGI MIT-like |
f445ed6c JB |
349 | Group: Development/Libraries |
350 | Requires: %{name}-libGLw-devel = %{version}-%{release} | |
351 | Provides: OpenGL-GLw-static | |
e31e9d24 | 352 | |
f445ed6c JB |
353 | %description libGLw-static |
354 | Static SGI libGLw library. | |
355 | ||
f77f03b8 | 356 | %description libGLw-static -l pl.UTF-8 |
f445ed6c JB |
357 | Statyczna biblioteka SGI libGLw. |
358 | ||
f4a8c5f6 JB |
359 | %package libOSMesa |
360 | Summary: OSMesa (off-screen renderer) library | |
361 | Summary(pl.UTF-8): Biblioteka OSMesa (renderująca bitmapy w pamięci) | |
362 | License: MIT | |
363 | Group: Libraries | |
364 | # doesn't require base | |
365 | ||
366 | %description libOSMesa | |
367 | OSMesa (off-screen renderer) library. | |
368 | ||
369 | %description libOSMesa -l pl.UTF-8 | |
370 | Biblioteka OSMesa (renderująca bitmapy w pamięci). | |
371 | ||
372 | %package libOSMesa-devel | |
373 | Summary: Header file for OSMesa (off-screen renderer) library | |
374 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki OSMesa (renderującej bitmapy w pamięci) | |
375 | License: MIT | |
376 | Group: Development/Libraries | |
377 | Requires: %{name}-libOSMesa = %{version}-%{release} | |
378 | # for <GL/gl.h> only | |
379 | Requires: OpenGL-devel | |
380 | ||
381 | %description libOSMesa-devel | |
382 | Header file for OSMesa (off-screen renderer) library. | |
383 | ||
384 | %description libOSMesa-devel -l pl.UTF-8 | |
385 | Plik nagłówkowy biblioteki OSMesa (renderującej bitmapy w pamięci). | |
386 | ||
387 | %package libOSMesa-static | |
388 | Summary: Static OSMesa (off-screen renderer) library | |
389 | Summary(pl.UTF-8): Biblioteka statyczna OSMesa (renderująca bitmapy w pamięci) | |
390 | License: MIT | |
391 | Group: Development/Libraries | |
392 | Requires: %{name}-libOSMesa-devel = %{version}-%{release} | |
393 | # this static build of OSMesa needs static non-dri Mesa implementation | |
394 | Requires: %{name}-libGL-static = %{version}-%{release} | |
395 | ||
396 | %description libOSMesa-static | |
397 | Static OSMesa (off-screen renderer) library. | |
398 | ||
399 | %description libOSMesa-static -l pl.UTF-8 | |
400 | Biblioteka statyczna OSMesa (renderująca bitmapy w pamięci). | |
401 | ||
c1d2b5e2 | 402 | %package libOpenVG |
278406ce JB |
403 | Summary: Mesa implementation of OpenVG (Vector Graphics Accelleration) API |
404 | Summary(pl.UTF-8): Implementacja Mesa API OpenVG (akceleracji grafiki wektorowej) | |
c1d2b5e2 AM |
405 | License: MIT |
406 | Group: Libraries | |
407 | # doesn't require base | |
408 | ||
409 | %description libOpenVG | |
278406ce JB |
410 | This package contains Mesa implementation of OpenVG - cross-platform |
411 | API that provides a low-level hardware acceleration interface for | |
412 | vector graphics libraries such as Flash and SVG. OpenVG specification | |
413 | can be found on Khronos Group site: <http://www.khronos.org/openvg/>. | |
c1d2b5e2 AM |
414 | |
415 | %description libOpenVG -l pl.UTF-8 | |
278406ce JB |
416 | Ten pakiet zawiera implementację Mesa standardu OpenVG - |
417 | wieloplatfomowego API zapewniającego niskopoziomowy interfejs | |
418 | akceleracji sprzętowej dla bibliotek grafiki wektorowej, takiej | |
419 | jak Flash czy SVG. Specyfikację OpenVG można znaleźć na stronie | |
420 | Khronos Group: <http://www.khronos.org/openvg/>. | |
c1d2b5e2 AM |
421 | |
422 | %package libOpenVG-devel | |
278406ce JB |
423 | Summary: Header file for Mesa OpenVG library |
424 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki Mesa OpenVG | |
c1d2b5e2 AM |
425 | License: MIT |
426 | Group: Development/Libraries | |
427 | # for <KHR/khrplatform.h> | |
428 | Requires: %{name}-libEGL-devel = %{version}-%{release} | |
429 | Requires: %{name}-libOpenVG = %{version}-%{release} | |
430 | ||
431 | %description libOpenVG-devel | |
278406ce | 432 | Header file for Mesa OpenVG library. |
c1d2b5e2 AM |
433 | |
434 | %description libOpenVG-devel -l pl.UTF-8 | |
278406ce | 435 | Plik nagłówkowy biblioteki Mesa OpenVG. |
c1d2b5e2 | 436 | |
f445ed6c JB |
437 | %package utils |
438 | Summary: OpenGL utilities from Mesa3D | |
54181d82 | 439 | Summary(pl.UTF-8): Programy narzędziowe OpenGL z projektu Mesa3D |
f4a8c5f6 | 440 | License: MIT |
1a039c9a | 441 | Group: X11/Applications/Graphics |
f445ed6c JB |
442 | # loose deps on libGL/libGLU |
443 | ||
444 | %description utils | |
445 | OpenGL utilities from Mesa3D: glxgears and glxinfo. | |
446 | ||
f77f03b8 JR |
447 | %description utils -l pl.UTF-8 |
448 | Programy narzędziowe OpenGL z projektu Mesa3D: glxgears i glxinfo. | |
a0b2836a | 449 | |
afe33c03 | 450 | %package dri-driver-ati-mach64 |
362c6f99 JB |
451 | Summary: X.org DRI driver for ATI Mach64 card family |
452 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI Mach64 | |
f4a8c5f6 | 453 | License: MIT |
18da5046 | 454 | Group: X11/Libraries |
d70abe90 JB |
455 | Requires: xorg-driver-video-mach64 |
456 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
457 | Requires: xorg-xserver-server >= %{xserver_ver} | |
875da849 | 458 | |
afe33c03 | 459 | %description dri-driver-ati-mach64 |
362c6f99 | 460 | X.org DRI driver for ATI Mach64 card family. |
875da849 | 461 | |
f77f03b8 | 462 | %description dri-driver-ati-mach64 -l pl.UTF-8 |
362c6f99 | 463 | Sterownik X.org DRI dla rodziny kart ATI Mach64. |
875da849 | 464 | |
afe33c03 | 465 | %package dri-driver-ati-radeon-R100 |
362c6f99 JB |
466 | Summary: X.org DRI driver for ATI R100 card family |
467 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R100 | |
f4a8c5f6 | 468 | License: MIT |
18da5046 | 469 | Group: X11/Libraries |
83c21438 | 470 | Requires: xorg-driver-video-ati |
d70abe90 JB |
471 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} |
472 | Requires: xorg-xserver-server >= %{xserver_ver} | |
8e26093b | 473 | Obsoletes: X11-driver-radeon-dri < 1:7.0.0 |
afe33c03 | 474 | |
475 | %description dri-driver-ati-radeon-R100 | |
362c6f99 | 476 | X.org DRI driver for ATI R100 card family (Radeon 7000-7500). |
afe33c03 | 477 | |
f77f03b8 | 478 | %description dri-driver-ati-radeon-R100 -l pl.UTF-8 |
362c6f99 | 479 | Sterownik X.org DRI dla rodziny kart ATI R100 (Radeon 7000-7500). |
afe33c03 | 480 | |
481 | %package dri-driver-ati-radeon-R200 | |
362c6f99 JB |
482 | Summary: X.org DRI driver for ATI R200 card family |
483 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R200 | |
f4a8c5f6 | 484 | License: MIT |
18da5046 | 485 | Group: X11/Libraries |
83c21438 | 486 | Requires: xorg-driver-video-ati |
d70abe90 JB |
487 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} |
488 | Requires: xorg-xserver-server >= %{xserver_ver} | |
8e26093b | 489 | Obsoletes: X11-driver-radeon-dri < 1:7.0.0 |
afe33c03 | 490 | |
491 | %description dri-driver-ati-radeon-R200 | |
362c6f99 | 492 | X.org DRI driver for ATI R200 card family (Radeon 8500-92xx) |
afe33c03 | 493 | |
f77f03b8 | 494 | %description dri-driver-ati-radeon-R200 -l pl.UTF-8 |
362c6f99 | 495 | Sterownik X.org DRI dla rodziny kart ATI R200 (Radeon 8500-92xx). |
afe33c03 | 496 | |
497 | %package dri-driver-ati-radeon-R300 | |
362c6f99 JB |
498 | Summary: X.org DRI driver for ATI R300 card family |
499 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R300 | |
f4a8c5f6 | 500 | License: MIT |
18da5046 | 501 | Group: X11/Libraries |
83c21438 | 502 | Requires: xorg-driver-video-ati |
d70abe90 JB |
503 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} |
504 | Requires: xorg-xserver-server >= %{xserver_ver} | |
8e26093b | 505 | Obsoletes: X11-driver-radeon-dri < 1:7.0.0 |
afe33c03 | 506 | |
507 | %description dri-driver-ati-radeon-R300 | |
362c6f99 | 508 | X.org DRI driver for ATI R300 card family. |
afe33c03 | 509 | |
f77f03b8 | 510 | %description dri-driver-ati-radeon-R300 -l pl.UTF-8 |
362c6f99 | 511 | Sterownik X.org DRI dla rodziny kart ATI R300. |
afe33c03 | 512 | |
e68936d0 AM |
513 | %package dri-driver-ati-radeon-R600 |
514 | Summary: X.org DRI driver for ATI R600 card family | |
515 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R600 | |
516 | License: MIT | |
517 | Group: X11/Libraries | |
518 | Requires: radeon-ucode | |
519 | Requires: xorg-driver-video-ati | |
520 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
521 | Requires: xorg-xserver-server >= %{xserver_ver} | |
522 | ||
523 | %description dri-driver-ati-radeon-R600 | |
524 | X.org DRI driver for ATI R600 card family. | |
525 | ||
526 | %description dri-driver-ati-radeon-R600 -l pl.UTF-8 | |
527 | Sterownik X.org DRI dla rodziny kart ATI R600. | |
528 | ||
afe33c03 | 529 | %package dri-driver-ati-rage128 |
362c6f99 JB |
530 | Summary: X.org DRI driver for ATI Rage128 card family |
531 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI Rage128 | |
f4a8c5f6 | 532 | License: MIT |
18da5046 | 533 | Group: X11/Libraries |
d70abe90 JB |
534 | Requires: xorg-driver-video-r128 |
535 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
536 | Requires: xorg-xserver-server >= %{xserver_ver} | |
8e26093b | 537 | Obsoletes: X11-driver-r128-dri < 1:7.0.0 |
afe33c03 | 538 | |
539 | %description dri-driver-ati-rage128 | |
362c6f99 | 540 | X.org DRI driver for ATI Rage128 card family. |
afe33c03 | 541 | |
f77f03b8 | 542 | %description dri-driver-ati-rage128 -l pl.UTF-8 |
362c6f99 | 543 | Sterownik X.org DRI dla rodziny kart ATI Rage128. |
afe33c03 | 544 | |
545 | %package dri-driver-ffb | |
362c6f99 JB |
546 | Summary: X.org DRI driver for Sun FFB card family |
547 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart Sun FFB | |
f4a8c5f6 | 548 | License: MIT |
18da5046 | 549 | Group: X11/Libraries |
83c21438 | 550 | Requires: xorg-driver-video-sunffb |
d70abe90 JB |
551 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} |
552 | Requires: xorg-xserver-server >= %{xserver_ver} | |
afe33c03 | 553 | |
554 | %description dri-driver-ffb | |
362c6f99 | 555 | X.org DRI driver for SUN Creator3D and Elite3D card family. |
afe33c03 | 556 | |
f77f03b8 | 557 | %description dri-driver-ffb -l pl.UTF-8 |
362c6f99 | 558 | Sterownik X.org DRI dla rodziny kart SUN Creator3D i Elite3D. |
afe33c03 | 559 | |
560 | %package dri-driver-glint | |
362c6f99 JB |
561 | Summary: X.org DRI driver for GLINT/Permedia card family |
562 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart GLINT/Permedia | |
f4a8c5f6 | 563 | License: MIT |
18da5046 | 564 | Group: X11/Libraries |
83c21438 | 565 | Requires: xorg-driver-video-glint |
d70abe90 JB |
566 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} |
567 | Requires: xorg-xserver-server >= %{xserver_ver} | |
8e26093b | 568 | Obsoletes: X11-driver-glint-dri < 1:7.0.0 |
afe33c03 | 569 | |
570 | %description dri-driver-glint | |
362c6f99 | 571 | X.org DRI driver for GLINT/Permedia card family. |
afe33c03 | 572 | |
f77f03b8 | 573 | %description dri-driver-glint -l pl.UTF-8 |
362c6f99 | 574 | Sterownik X.org DRI dla rodziny kart GLINT/Permedia. |
afe33c03 | 575 | |
576 | %package dri-driver-intel-i810 | |
362c6f99 JB |
577 | Summary: X.org DRI driver for Intel i810 card family |
578 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart Intel i810 | |
f4a8c5f6 | 579 | License: MIT |
18da5046 | 580 | Group: X11/Libraries |
d70abe90 JB |
581 | Requires: xorg-driver-video-intel |
582 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
583 | Requires: xorg-xserver-server >= %{xserver_ver} | |
8e26093b | 584 | Obsoletes: X11-driver-i810-dri < 1:7.0.0 |
afe33c03 | 585 | |
586 | %description dri-driver-intel-i810 | |
362c6f99 | 587 | X.org DRI driver for Intel i810 card family. |
afe33c03 | 588 | |
f77f03b8 | 589 | %description dri-driver-intel-i810 -l pl.UTF-8 |
362c6f99 | 590 | Sterownik X.org DRI dla rodziny kart Intel i810. |
afe33c03 | 591 | |
afe33c03 | 592 | %package dri-driver-intel-i915 |
362c6f99 JB |
593 | Summary: X.org DRI driver for Intel i915 card family |
594 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart Intel i915 | |
f4a8c5f6 | 595 | License: MIT |
18da5046 | 596 | Group: X11/Libraries |
d70abe90 JB |
597 | Requires: xorg-driver-video-intel |
598 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
599 | Requires: xorg-xserver-server >= %{xserver_ver} | |
2db432a2 | 600 | Obsoletes: Mesa-dri-driver-intel-i830 |
8e26093b | 601 | Obsoletes: X11-driver-i810-dri < 1:7.0.0 |
afe33c03 | 602 | |
603 | %description dri-driver-intel-i915 | |
362c6f99 | 604 | X.org DRI driver for Intel i915 card family. |
afe33c03 | 605 | |
f77f03b8 | 606 | %description dri-driver-intel-i915 -l pl.UTF-8 |
362c6f99 | 607 | Sterownik X.org DRI dla rodziny kart Intel i915. |
afe33c03 | 608 | |
b360f4f6 | 609 | %package dri-driver-intel-i965 |
362c6f99 JB |
610 | Summary: X.org DRI driver for Intel i965 card family |
611 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart Intel i965 | |
f4a8c5f6 | 612 | License: MIT |
b360f4f6 | 613 | Group: X11/Libraries |
d70abe90 JB |
614 | Requires: xorg-driver-video-intel |
615 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
616 | Requires: xorg-xserver-server >= %{xserver_ver} | |
b360f4f6 | 617 | Obsoletes: Mesa-dri-driver-intel-i830 |
8e26093b | 618 | Obsoletes: X11-driver-i810-dri < 1:7.0.0 |
b360f4f6 | 619 | |
620 | %description dri-driver-intel-i965 | |
362c6f99 | 621 | X.org DRI driver for Intel i965 card family. |
b360f4f6 | 622 | |
f77f03b8 | 623 | %description dri-driver-intel-i965 -l pl.UTF-8 |
362c6f99 | 624 | Sterownik X.org DRI dla rodziny kart Intel i965. |
b360f4f6 | 625 | |
afe33c03 | 626 | %package dri-driver-matrox |
362c6f99 JB |
627 | Summary: X.org DRI driver for Matrox G card family |
628 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart Matrox G | |
f4a8c5f6 | 629 | License: MIT |
18da5046 | 630 | Group: X11/Libraries |
83c21438 | 631 | Requires: xorg-driver-video-mga |
d70abe90 JB |
632 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} |
633 | Requires: xorg-xserver-server >= %{xserver_ver} | |
8e26093b | 634 | Obsoletes: X11-driver-mga-dri < 1:7.0.0 |
afe33c03 | 635 | |
636 | %description dri-driver-matrox | |
637 | X.org DRI drivers for Matrox G card family. | |
638 | ||
f77f03b8 | 639 | %description dri-driver-matrox -l pl.UTF-8 |
afe33c03 | 640 | Sterowniki X.org DRI dla rodziny kart Matrox G. |
641 | ||
3e88bc92 AM |
642 | %package dri-driver-nouveau |
643 | Summary: X.org DRI driver for NVIDIA card family | |
644 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart NVIDIA | |
645 | License: MIT | |
646 | Group: X11/Libraries | |
647 | Requires: xorg-driver-video-nouveau | |
648 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
649 | Requires: xorg-xserver-server >= %{xserver_ver} | |
650 | ||
651 | %description dri-driver-nouveau | |
652 | X.org DRI drivers for NVIDIA card family. | |
653 | ||
654 | %description dri-driver-nouveau -l pl.UTF-8 | |
655 | Sterowniki X.org DRI dla rodziny kart NVIDIA. | |
656 | ||
afe33c03 | 657 | %package dri-driver-savage |
362c6f99 JB |
658 | Summary: X.org DRI driver for S3 Savage card family |
659 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart S3 Savage | |
f4a8c5f6 | 660 | License: MIT |
18da5046 | 661 | Group: X11/Libraries |
83c21438 | 662 | Requires: xorg-driver-video-savage |
d70abe90 JB |
663 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} |
664 | Requires: xorg-xserver-server >= %{xserver_ver} | |
afe33c03 | 665 | |
666 | %description dri-driver-savage | |
362c6f99 | 667 | X.org DRI driver for S3 Savage card family. |
afe33c03 | 668 | |
f77f03b8 | 669 | %description dri-driver-savage -l pl.UTF-8 |
362c6f99 | 670 | Sterownik X.org DRI dla rodziny kart S3 Savage. |
afe33c03 | 671 | |
672 | %package dri-driver-sis | |
362c6f99 JB |
673 | Summary: X.org DRI driver for SiS card family |
674 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart SiS | |
f4a8c5f6 | 675 | License: MIT |
18da5046 | 676 | Group: X11/Libraries |
83c21438 | 677 | Requires: xorg-driver-video-sis |
d70abe90 JB |
678 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} |
679 | Requires: xorg-xserver-server >= %{xserver_ver} | |
8e26093b | 680 | Obsoletes: X11-driver-sis-dri < 1:7.0.0 |
afe33c03 | 681 | |
682 | %description dri-driver-sis | |
362c6f99 | 683 | X.org DRI driver for SiS card family. |
afe33c03 | 684 | |
f77f03b8 | 685 | %description dri-driver-sis -l pl.UTF-8 |
362c6f99 | 686 | Sterownik X.org DRI dla rodziny kart SiS. |
afe33c03 | 687 | |
f3606317 | 688 | %package dri-driver-swrast |
362c6f99 JB |
689 | Summary: X.org DRI software rasterizer driver |
690 | Summary(pl.UTF-8): Sterownik X.org DRI obsługujący rysowanie programowe | |
f3606317 AM |
691 | License: MIT |
692 | Group: X11/Libraries | |
d70abe90 JB |
693 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} |
694 | Requires: xorg-xserver-server >= %{xserver_ver} | |
f3606317 AM |
695 | |
696 | %description dri-driver-swrast | |
362c6f99 | 697 | X.org DRI software rasterizer driver. |
f3606317 AM |
698 | |
699 | %description dri-driver-swrast -l pl.UTF-8 | |
362c6f99 | 700 | Sterownik X.org DRI obsługujący rysowanie programowe. |
f3606317 | 701 | |
afe33c03 | 702 | %package dri-driver-tdfx |
362c6f99 JB |
703 | Summary: X.org DRI driver for 3DFX Voodoo card family |
704 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart 3DFX Voodoo | |
f4a8c5f6 | 705 | License: MIT |
18da5046 | 706 | Group: X11/Libraries |
10fb2f64 | 707 | Requires: Glide3-DRI |
83c21438 | 708 | Requires: xorg-driver-video-tdfx |
d70abe90 JB |
709 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} |
710 | Requires: xorg-xserver-server >= %{xserver_ver} | |
8e26093b | 711 | Obsoletes: X11-driver-tdfx-dri < 1:7.0.0 |
afe33c03 | 712 | |
713 | %description dri-driver-tdfx | |
362c6f99 | 714 | X.org DRI driver for 3DFX Voodoo card family (Voodoo 3,4,5, Banshee |
afe33c03 | 715 | and Velocity 100/200). |
716 | ||
f77f03b8 | 717 | %description dri-driver-tdfx -l pl.UTF-8 |
362c6f99 JB |
718 | Sterownik X.org DRI dla rodziny kart 3DFX Voodoo. (Voodoo 3,4,5, |
719 | Banshee i Velocity 100/200). | |
afe33c03 | 720 | |
23e685d3 | 721 | %package dri-driver-via-unichrome |
722 | Summary: X.org DRI driver for VIA Unichrome card family | |
723 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart VIA Unichrome | |
724 | License: MIT | |
725 | Group: X11/Libraries | |
726 | Requires: xorg-driver-video-openchrome | |
727 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
728 | Requires: xorg-xserver-server >= %{xserver_ver} | |
729 | ||
730 | %description dri-driver-via-unichrome | |
731 | X.org DRI driver for VIA Unichrome card family. | |
732 | ||
733 | %description dri-driver-via-unichrome -l pl.UTF-8 | |
734 | Sterownik X.org DRI dla rodziny kart VIA Unichrome. | |
735 | ||
e68936d0 AM |
736 | %package dri-driver-vmwgfx |
737 | Summary: X.org DRI driver for VMware | |
738 | Summary(pl.UTF-8): Sterownik X.org DRI dla VMware | |
739 | License: MIT | |
740 | Group: X11/Libraries | |
741 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
742 | Requires: xorg-xserver-server >= %{xserver_ver} | |
743 | ||
744 | %description dri-driver-vmwgfx | |
745 | X.org DRI driver for VMWare. | |
746 | ||
747 | %description dri-driver-vmwgfx -l pl.UTF-8 | |
748 | Sterownik X.org DRI dla VMware. | |
749 | ||
a0b2836a | 750 | %prep |
bb686270 | 751 | %setup -q |
6f53c8ab | 752 | %patch0 -p0 |
be7de8ed | 753 | %patch1 -p1 |
c1d2b5e2 | 754 | %patch2 -p1 |
a0b2836a | 755 | |
756 | %build | |
bb686270 AM |
757 | %{__aclocal} |
758 | %{__autoconf} | |
a5afae62 | 759 | |
c1d2b5e2 | 760 | dri_drivers="i810 mach64 mga r128 r200 radeon \ |
0563bcdf | 761 | %if %{without gallium_radeon} |
c1d2b5e2 | 762 | r300 r600 \ |
0563bcdf AM |
763 | %endif |
764 | savage \ | |
8060076f | 765 | %if %{without gallium_intel} |
c1d2b5e2 | 766 | i915 i965 \ |
a5afae62 | 767 | %endif |
59f12de8 AM |
768 | %ifarch sparc sparcv9 sparc64 |
769 | ffb \ | |
6299b3cd | 770 | %endif |
59f12de8 AM |
771 | %ifarch %{ix86} %{x8664} |
772 | sis \ | |
31a772c7 | 773 | %endif |
59f12de8 AM |
774 | swrast tdfx unichrome" |
775 | ||
776 | dri_drivers=$(echo $dri_drivers | xargs | tr ' ' ',') | |
777 | ||
c1d2b5e2 AM |
778 | gallium_drivers="svga swrast \ |
779 | %if %{with gallium_intel} | |
780 | i915 \ | |
781 | i965 \ | |
782 | %endif | |
783 | %if %{with gallium_radeon} | |
784 | radeon \ | |
785 | r600 \ | |
786 | %endif | |
787 | %if %{with gallium_nouveau} | |
788 | nouveau \ | |
789 | %endif | |
790 | " | |
791 | ||
792 | gallium_drivers=$(echo $gallium_drivers | xargs | tr ' ' ',') | |
793 | ||
59f12de8 AM |
794 | common_flags="\ |
795 | --enable-shared \ | |
796 | --enable-selinux \ | |
5f574b4b | 797 | --enable-pic \ |
b4a5c074 | 798 | --enable-glx-tls \ |
74a7a0e1 | 799 | --disable-glut \ |
c1d2b5e2 AM |
800 | %if %{with egl} |
801 | --enable-egl \ | |
802 | --enable-gles1 \ | |
803 | --enable-gles2 \ | |
804 | %endif | |
805 | " | |
59f12de8 | 806 | |
74a7a0e1 | 807 | osmesa_common_flags="\ |
59f12de8 AM |
808 | --with-driver=osmesa \ |
809 | --disable-asm \ | |
c1d2b5e2 AM |
810 | --disable-glu \ |
811 | --disable-egl" | |
74a7a0e1 AM |
812 | |
813 | %if %{with osmesa} | |
74a7a0e1 | 814 | %configure $common_flags $osmesa_common_flags \ |
59f12de8 | 815 | --with-osmesa-bits=8 |
74a7a0e1 | 816 | %{__make} |
59f12de8 AM |
817 | mv %{_lib} osmesa8 |
818 | %{__make} clean | |
cb97a1c3 | 819 | %endif |
59f12de8 AM |
820 | |
821 | %configure $common_flags \ | |
5f574b4b | 822 | %if %{with gallium} |
c1d2b5e2 AM |
823 | --enable-openvg \ |
824 | --enable-gallium-egl \ | |
825 | --with-gallium-drivers=${gallium_drivers} \ | |
5f574b4b AM |
826 | %else |
827 | --disable-gallium \ | |
828 | %endif | |
59f12de8 AM |
829 | --with-driver=dri \ |
830 | --with-dri-drivers=${dri_drivers} \ | |
831 | --with-dri-driverdir=%{_libdir}/xorg/modules/dri | |
832 | ||
833 | %{__make} | |
59f12de8 | 834 | |
a0b2836a | 835 | %install |
f5543b17 | 836 | rm -rf $RPM_BUILD_ROOT |
ddde5931 | 837 | |
bb686270 | 838 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
59f12de8 AM |
839 | |
840 | # libs without drivers | |
841 | %{__make} install \ | |
842 | DESTDIR=$RPM_BUILD_ROOT | |
ddde5931 | 843 | |
cb97a1c3 | 844 | %if %{with osmesa} |
c1d2b5e2 | 845 | cp -Pp osmesa*/*OSMesa* $RPM_BUILD_ROOT%{_libdir} |
cb97a1c3 | 846 | %endif |
f4a8c5f6 | 847 | |
0cb33a09 | 848 | rm -rf $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/*/{.deps,CVS,Makefile.{BeOS*,win,cygnus,DJ,dja}} |
a0b2836a | 849 | |
59f12de8 AM |
850 | # strip out undesirable headers |
851 | olddir=$(pwd) | |
3e88bc92 | 852 | cd $RPM_BUILD_ROOT%{_includedir}/GL |
3496fa2b | 853 | rm [a-fh-np-wyz]*.h glf*.h |
a5afae62 | 854 | cd $RPM_BUILD_ROOT%{_libdir} |
59f12de8 AM |
855 | cd $olddir |
856 | ||
c1d2b5e2 AM |
857 | %if %{with gallium} |
858 | # use gallium swrastg as swrast | |
859 | mv $RPM_BUILD_ROOT%{_libdir}/xorg/modules/dri/swrastg_dri.so $RPM_BUILD_ROOT%{_libdir}/xorg/modules/dri/swrast_dri.so | |
860 | %endif | |
861 | ||
5818e6f7 JR |
862 | %if %{with multigl} |
863 | install -d $RPM_BUILD_ROOT{%{_libdir}/Mesa,%{_sysconfdir}/ld.so.conf.d} | |
864 | ||
865 | mv -f $RPM_BUILD_ROOT%{_libdir}/libGL.so.* $RPM_BUILD_ROOT%{_libdir}/Mesa | |
866 | ln -sf Mesa/libGL.so.1 $RPM_BUILD_ROOT%{_libdir}/libGL.so | |
867 | ||
868 | echo %{_libdir}/Mesa >$RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/Mesa.conf | |
869 | %endif | |
870 | ||
abc9e15f JB |
871 | %clean |
872 | rm -rf $RPM_BUILD_ROOT | |
873 | ||
bb686270 AM |
874 | %post libEGL -p /sbin/ldconfig |
875 | %postun libEGL -p /sbin/ldconfig | |
876 | ||
f445ed6c JB |
877 | %post libGL -p /sbin/ldconfig |
878 | %postun libGL -p /sbin/ldconfig | |
879 | ||
c1d2b5e2 AM |
880 | %post libGLES -p /sbin/ldconfig |
881 | %postun libGLES -p /sbin/ldconfig | |
882 | ||
f445ed6c JB |
883 | %post libGLU -p /sbin/ldconfig |
884 | %postun libGLU -p /sbin/ldconfig | |
885 | ||
886 | %post libGLw -p /sbin/ldconfig | |
887 | %postun libGLw -p /sbin/ldconfig | |
a0b2836a | 888 | |
c1d2b5e2 AM |
889 | %post libOSMesa -p /sbin/ldconfig |
890 | %postun libOSMesa -p /sbin/ldconfig | |
891 | ||
892 | %post libOpenVG -p /sbin/ldconfig | |
893 | %postun libOpenVG -p /sbin/ldconfig | |
894 | ||
bb686270 AM |
895 | %if %{with egl} |
896 | %files libEGL | |
897 | %defattr(644,root,root,755) | |
898 | %attr(755,root,root) %{_libdir}/libEGL.so.*.* | |
c794b508 | 899 | %attr(755,root,root) %ghost %{_libdir}/libEGL.so.1 |
c1d2b5e2 AM |
900 | %attr(755,root,root) %{_libdir}/libglapi.so.*.* |
901 | %attr(755,root,root) %ghost %{_libdir}/libglapi.so.0 | |
902 | %if %{with gallium} | |
bb686270 | 903 | %dir %{_libdir}/egl |
c1d2b5e2 AM |
904 | %attr(755,root,root) %{_libdir}/egl/egl_gallium.so |
905 | %attr(755,root,root) %{_libdir}/egl/st_GL.so | |
906 | %if %{with gallium_radeon} | |
907 | %attr(755,root,root) %{_libdir}/egl/pipe_r300.so | |
908 | %attr(755,root,root) %{_libdir}/egl/pipe_r600.so | |
909 | %endif | |
910 | %if %{with gallium_intel} | |
911 | %attr(755,root,root) %{_libdir}/egl/pipe_i915.so | |
912 | %attr(755,root,root) %{_libdir}/egl/pipe_i965.so | |
913 | %endif | |
914 | %endif | |
bb686270 AM |
915 | |
916 | %files libEGL-devel | |
917 | %defattr(644,root,root,755) | |
918 | %attr(755,root,root) %{_libdir}/libEGL.so | |
c1d2b5e2 | 919 | %attr(755,root,root) %{_libdir}/libglapi.so |
bb686270 AM |
920 | %dir %{_includedir}/EGL |
921 | %{_includedir}/EGL/egl.h | |
922 | %{_includedir}/EGL/eglext.h | |
923 | %{_includedir}/EGL/eglplatform.h | |
924 | %dir %{_includedir}/KHR | |
925 | %{_includedir}/KHR/khrplatform.h | |
926 | %{_pkgconfigdir}/egl.pc | |
927 | ||
928 | %if %{with static} | |
929 | %files libEGL-static | |
930 | %defattr(644,root,root,755) | |
931 | %{_libdir}/libEGL.a | |
932 | %endif | |
933 | %endif | |
934 | ||
f445ed6c | 935 | %files libGL |
e9b3ff7a | 936 | %defattr(644,root,root,755) |
47e56dff | 937 | %doc docs/{*.html,README.{3DFX,GGI,MITS,QUAKE,THREADS},RELNOTES*} |
5818e6f7 JR |
938 | %if %{with multigl} |
939 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ld.so.conf.d/Mesa.conf | |
940 | %dir %{_libdir}/Mesa | |
941 | %attr(755,root,root) %{_libdir}/Mesa/libGL.so.*.* | |
942 | %attr(755,root,root) %ghost %{_libdir}/Mesa/libGL.so.1 | |
943 | %else | |
9b0e6ebb JB |
944 | %attr(755,root,root) %{_libdir}/libGL.so.*.* |
945 | %attr(755,root,root) %ghost %{_libdir}/libGL.so.1 | |
0cb33a09 JB |
946 | # symlink for binary apps which fail to conform Linux OpenGL ABI |
947 | # (and dlopen libGL.so instead of libGL.so.1) | |
948 | %attr(755,root,root) %{_libdir}/libGL.so | |
5818e6f7 | 949 | %endif |
a0b2836a | 950 | |
f445ed6c | 951 | %files libGL-devel |
e9b3ff7a | 952 | %defattr(644,root,root,755) |
ddde5931 | 953 | %doc docs/*.spec |
f4a8c5f6 JB |
954 | %if %{with multigl} |
955 | %attr(755,root,root) %{_libdir}/libGL.so | |
956 | %endif | |
debcd977 | 957 | %dir %{_includedir}/GL |
d3dd48bf | 958 | %{_includedir}/GL/gl.h |
e1833810 | 959 | %{_includedir}/GL/glext.h |
d3dd48bf | 960 | %{_includedir}/GL/gl_mangle.h |
d3dd48bf | 961 | %{_includedir}/GL/glx.h |
abc9e15f | 962 | %{_includedir}/GL/glxext.h |
d3dd48bf | 963 | %{_includedir}/GL/glx_mangle.h |
1ec0796e AM |
964 | %dir %{_includedir}/GL/internal |
965 | %{_includedir}/GL/internal/dri_interface.h | |
59f12de8 | 966 | %{_pkgconfigdir}/dri.pc |
f4a8c5f6 | 967 | %{_pkgconfigdir}/gl.pc |
a0b2836a | 968 | |
278406ce JB |
969 | %if %{with static} |
970 | %files libGL-static | |
971 | %defattr(644,root,root,755) | |
972 | %{_libdir}/libGL.a | |
973 | %endif | |
974 | ||
c1d2b5e2 AM |
975 | %files libGLES |
976 | %defattr(644,root,root,755) | |
977 | %attr(755,root,root) %{_libdir}/libGLES*.so.*.* | |
978 | %attr(755,root,root) %ghost %{_libdir}/libGLES*.so.[0-9] | |
979 | ||
980 | %files libGLES-devel | |
981 | %defattr(644,root,root,755) | |
982 | %attr(755,root,root) %{_libdir}/libGLES*.so | |
983 | %{_includedir}/GLES | |
984 | %{_includedir}/GLES2 | |
985 | %{_pkgconfigdir}/gles*.pc | |
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 | |
59f12de8 | 999 | %if %{with static} |
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 | |
59f12de8 | 1019 | %if %{with static} |
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) | |
59f12de8 | 1028 | %attr(755,root,root) %{_libdir}/libOSMesa*.so.*.* |
c794b508 | 1029 | %attr(755,root,root) %ghost %{_libdir}/libOSMesa*.so.7 |
f4a8c5f6 JB |
1030 | |
1031 | %files libOSMesa-devel | |
1032 | %defattr(644,root,root,755) | |
59f12de8 | 1033 | %attr(755,root,root) %{_libdir}/libOSMesa*.so |
f4a8c5f6 JB |
1034 | %{_includedir}/GL/osmesa.h |
1035 | ||
59f12de8 | 1036 | %if %{with static} |
f4a8c5f6 JB |
1037 | %files libOSMesa-static |
1038 | %defattr(644,root,root,755) | |
59f12de8 AM |
1039 | %{_libdir}/libOSMesa*.a |
1040 | %endif | |
cb97a1c3 | 1041 | %endif |
f4a8c5f6 | 1042 | |
c1d2b5e2 AM |
1043 | %if %{with gallium} |
1044 | %files libOpenVG | |
1045 | %defattr(644,root,root,755) | |
c1d2b5e2 | 1046 | %attr(755,root,root) %{_libdir}/libOpenVG.so.1.0.0 |
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 | |
a7a3223c | 1113 | %if %{with gallium} |
a3697dc6 | 1114 | %if %{with gallium_nouveau} |
3e88bc92 AM |
1115 | %files dri-driver-nouveau |
1116 | %defattr(644,root,root,755) | |
1117 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/nouveau_dri.so | |
a7a3223c | 1118 | %endif |
a3697dc6 | 1119 | %endif |
3e88bc92 | 1120 | |
afe33c03 | 1121 | %files dri-driver-savage |
1122 | %defattr(644,root,root,755) | |
f445ed6c | 1123 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/savage_dri.so |
afe33c03 | 1124 | |
a71d2e77 | 1125 | %ifarch %{ix86} %{x8664} |
afe33c03 | 1126 | %files dri-driver-sis |
1127 | %defattr(644,root,root,755) | |
f445ed6c | 1128 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/sis_dri.so |
5b105641 | 1129 | %endif |
afe33c03 | 1130 | |
f3606317 AM |
1131 | %files dri-driver-swrast |
1132 | %defattr(644,root,root,755) | |
1133 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/swrast_dri.so | |
1134 | ||
afe33c03 | 1135 | %files dri-driver-tdfx |
1136 | %defattr(644,root,root,755) | |
f445ed6c | 1137 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/tdfx_dri.so |
afe33c03 | 1138 | |
23e685d3 | 1139 | %files dri-driver-via-unichrome |
1140 | %defattr(644,root,root,755) | |
1141 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/unichrome_dri.so | |
1142 | ||
bb5f0825 | 1143 | %if %{with gallium} |
e68936d0 AM |
1144 | %files dri-driver-vmwgfx |
1145 | %defattr(644,root,root,755) | |
9c4e4073 | 1146 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/vmwgfx_dri.so |
bb5f0825 | 1147 | %endif |