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