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