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