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