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