]>
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 | # |
f8be0ece | 24 | %define libdrm_ver 2.4.24 |
d256045c | 25 | %define dri2proto_ver 2.1 |
b8e51e7a | 26 | %define glproto_ver 1.4.11 |
ed6291f5 | 27 | # |
f8be0ece | 28 | %define snap 20110310 |
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 |
e760102d | 36 | Release: 0.%{snap}.2%{?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 |
f8be0ece | 40 | # Source0-md5: 9be2275876642669aafca9dbf87125ee |
6f53c8ab | 41 | Patch0: %{name}-realclean.patch |
bb686270 | 42 | Patch1: %{name}-selinux.patch |
b8535261 | 43 | Patch2: %{name}-git.patch |
50e22bbf | 44 | URL: http://www.mesa3d.org/ |
d256045c | 45 | BuildRequires: autoconf >= 2.59 |
a6c5fc6c | 46 | BuildRequires: automake |
0cb33a09 | 47 | BuildRequires: expat-devel |
41aca213 | 48 | BuildRequires: libdrm-devel >= %{libdrm_ver} |
ed6291f5 AM |
49 | # drop when 2.4.24 is released |
50 | %{?with_nouveau:BuildRequires: libdrm-devel >= 2.4.24} | |
59f12de8 | 51 | BuildRequires: libselinux-devel |
d256045c AM |
52 | BuildRequires: libstdc++-devel >= 5:3.3.0 |
53 | BuildRequires: libtalloc-devel >= 2:2.0.1 | |
6b372055 | 54 | BuildRequires: libtool >= 2:1.4d |
ed6291f5 | 55 | BuildRequires: llvm-devel |
276baaf9 | 56 | %{?with_motif:BuildRequires: motif-devel} |
f35aa06e | 57 | BuildRequires: pixman-devel |
a6c5fc6c | 58 | BuildRequires: pkgconfig |
bb686270 | 59 | BuildRequires: pkgconfig(talloc) >= 2.0.1 |
7eda8496 | 60 | BuildRequires: python |
d9fd49b8 | 61 | BuildRequires: python-modules |
f6afd89c | 62 | BuildRequires: rpmbuild(macros) >= 1.470 |
7cbe00f8 | 63 | BuildRequires: sed >= 4.0 |
cd8f367a | 64 | BuildRequires: xorg-lib-libXdamage-devel |
994fa6a5 | 65 | BuildRequires: xorg-lib-libXext-devel >= 1.0.5 |
1b597036 | 66 | BuildRequires: xorg-lib-libXt-devel |
9850656e | 67 | BuildRequires: xorg-lib-libXxf86vm-devel |
41aca213 | 68 | BuildRequires: xorg-proto-dri2proto-devel >= %{dri2proto_ver} |
b8e51e7a | 69 | BuildRequires: xorg-proto-glproto-devel >= %{glproto_ver} |
9850656e | 70 | BuildRequires: xorg-util-makedepend |
bb686270 | 71 | BuildRequires: xorg-xserver-server-devel |
9d916b8b AF |
72 | %if %{with egl} |
73 | BuildRequires: libxcb-devel | |
74 | BuildRequires: udev-devel >= 150 | |
75 | %endif | |
76 | %if %{with gallium} | |
77 | BuildRequires: xorg-proto-xextproto-devel >= 7.0.99.1 | |
78 | BuildRequires: xorg-xserver-server-devel >= 1.6.0 | |
79 | %endif | |
ddde5931 | 80 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
a0b2836a | 81 | |
8060076f AM |
82 | %if %{without gallium} |
83 | %undefine with_gallium_intel | |
0563bcdf | 84 | %undefine with_gallium_radeon |
8060076f AM |
85 | %endif |
86 | ||
9d916b8b AF |
87 | %define skip_post_check_so libOpenVG.so.1.0.0 |
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 AM |
104 | %package libEGL |
105 | Summary: SGI implementation of libEGL OpenGL library | |
106 | Summary(pl.UTF-8): Implementacja SGI biblioteki libEGL ze standardu OpenGL | |
107 | License: SGI Free Software License B v2.0 (MIT-like) | |
108 | Group: Libraries | |
109 | Requires: OpenGL >= 1.2 | |
d256045c | 110 | Requires: udev-libs >= 150 |
bb686270 AM |
111 | Provides: OpenGL-EGL = 1.0 |
112 | ||
113 | %description libEGL | |
114 | SGI implementation of libEGL OpenGL library. | |
115 | ||
116 | %description libEGL -l pl.UTF-8 | |
117 | Implementacja SGI biblioteki libEGL ze standardu OpenGL. | |
118 | ||
119 | %package libEGL-devel | |
120 | Summary: Header files for SGI libEGL library | |
121 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SGI libEGL | |
122 | License: SGI Free Software License B v2.0 (MIT-like) | |
123 | Group: Development/Libraries | |
124 | Requires: %{name}-libEGL = %{version}-%{release} | |
125 | Requires: OpenGL-devel >= 1.2 | |
126 | Requires: libstdc++-devel | |
127 | Provides: OpenGL-EGL-devel = 1.0 | |
128 | ||
129 | %description libEGL-devel | |
130 | Header files for SGI libEGL library. | |
131 | ||
132 | %description libEGL-devel -l pl.UTF-8 | |
133 | Pliki nagłówkowe biblioteki SGI libEGL. | |
134 | ||
135 | %package libEGL-static | |
136 | Summary: Static SGI libEGL library | |
137 | Summary(pl.UTF-8): Statyczna biblioteka SGI libEGL | |
138 | License: SGI Free Software License B v2.0 (MIT-like) | |
139 | Group: Development/Libraries | |
140 | Requires: %{name}-libEGL-devel = %{version}-%{release} | |
141 | Provides: OpenGL-EGL-static = 1.0 | |
142 | ||
143 | %description libEGL-static | |
144 | Static SGI libEGL library. | |
145 | ||
146 | %description libEGL-static -l pl.UTF-8 | |
147 | Statyczna biblioteka SGI libEGL. | |
148 | ||
ed6291f5 AM |
149 | %package libGLES |
150 | Summary: Mesa libGLES runtime libraries | |
151 | Group: Libraries | |
152 | ||
153 | %description libGLES | |
154 | Mesa GLES runtime libraries. | |
155 | ||
156 | %description libGLES -l pl.UTF-8 | |
157 | Biblioteka Mesa GLES. | |
158 | ||
159 | %package libGLES-devel | |
160 | Summary: Header files for libGLES library | |
161 | Group: Development/Libraries | |
162 | Requires: %{name}-libGLES = %{version}-%{release} | |
163 | ||
164 | %description libGLES-devel | |
165 | Header files for libGLES library. | |
166 | ||
167 | %description libGLES-devel -l pl.UTF-8 | |
168 | Pliki nagłówkowe biblioteki libGLES. | |
169 | ||
f445ed6c JB |
170 | %package libGL |
171 | Summary: Free Mesa3D implementation of libGL OpenGL library | |
54181d82 | 172 | Summary(pl.UTF-8): Wolnodostępna implementacja Mesa3D biblioteki libGL ze standardu OpenGL |
f445ed6c JB |
173 | License: MIT |
174 | Group: X11/Libraries | |
38a2434c | 175 | Requires: libdrm >= %{libdrm_ver} |
237cb2a3 | 176 | Provides: OpenGL = 2.1 |
f445ed6c JB |
177 | # reports version 1.3, but supports glXGetProcAddress() from 1.4 |
178 | Provides: OpenGL-GLX = 1.4 | |
b7a76370 | 179 | Obsoletes: Mesa |
884f6d35 | 180 | Obsoletes: Mesa-dri |
b18f0f46 AM |
181 | Obsoletes: X11-OpenGL-libGL < 1:7.0.0 |
182 | Obsoletes: XFree86-OpenGL-libGL < 1:7.0.0 | |
f445ed6c JB |
183 | |
184 | %description libGL | |
185 | Mesa is a 3-D graphics library with an API which is very similar to | |
186 | that of OpenGL(R). To the extent that Mesa utilizes the OpenGL command | |
187 | syntax or state machine, it is being used with authorization from | |
188 | Silicon Graphics, Inc. However, the author does not possess an OpenGL | |
189 | license from SGI, and makes no claim that Mesa is in any way a | |
190 | compatible replacement for OpenGL or associated with SGI. | |
191 | ||
192 | This package contains libGL which implements OpenGL 1.5 and GLX 1.4 | |
193 | specifications. It uses DRI for rendering. | |
194 | ||
f77f03b8 JR |
195 | %description libGL -l pl.UTF-8 |
196 | Mesa jest biblioteką grafiki 3D z API bardzo podobnym do OpenGL(R). Do | |
197 | tego stopnia, że Mesa używa składni i automatu OpenGL jest używana z | |
198 | autoryzacją Silicon Graphics, Inc. Jednak autor nie posiada licencji | |
199 | OpenGL od SGI i nie twierdzi, że Mesa jest kompatybilnym zamiennikiem | |
200 | OpenGL ani powiązana z SGI. | |
f445ed6c | 201 | |
f77f03b8 JR |
202 | Ten pakiet zawiera libGL implementującą specyfikacje OpenGL 1.5 oraz |
203 | GLX 1.4. Używa DRI do renderowania. | |
f445ed6c JB |
204 | |
205 | %package libGL-devel | |
206 | Summary: Header files for Mesa3D libGL library | |
54181d82 | 207 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libGL z projektu Mesa3D |
f445ed6c JB |
208 | License: MIT |
209 | Group: X11/Development/Libraries | |
210 | # loose dependency on libGL to use with other libGL binaries | |
211 | Requires: OpenGL >= 1.5 | |
41aca213 | 212 | Requires: libdrm-devel >= %{libdrm_ver} |
875da849 | 213 | Requires: xorg-lib-libX11-devel |
9489410a | 214 | Requires: xorg-lib-libXdamage-devel |
215 | Requires: xorg-lib-libXext-devel | |
41aca213 | 216 | Requires: xorg-lib-libXxf86vm-devel |
217 | Requires: xorg-proto-dri2proto-devel >= %{dri2proto_ver} | |
b8e51e7a | 218 | Requires: xorg-proto-glproto-devel >= %{glproto_ver} |
e261c0c1 | 219 | Suggests: OpenGL-doc-man |
6299b3cd | 220 | Provides: OpenGL-GLX-devel = 1.4 |
3e88bc92 | 221 | Provides: OpenGL-devel = 2.1 |
f445ed6c | 222 | Obsoletes: Mesa-devel |
b18f0f46 AM |
223 | Obsoletes: X11-OpenGL-devel < 1:7.0.0 |
224 | Obsoletes: X11-OpenGL-devel-base < 1:7.0.0 | |
225 | Obsoletes: XFree86-OpenGL-devel < 1:7.0.0 | |
226 | Obsoletes: XFree86-OpenGL-devel-base < 1:7.0.0 | |
a0b2836a | 227 | |
f445ed6c JB |
228 | %description libGL-devel |
229 | Header files for Mesa3D libGL library. | |
a0b2836a | 230 | |
f77f03b8 JR |
231 | %description libGL-devel -l pl.UTF-8 |
232 | Pliki nagłówkowe biblioteki libGL z projektu Mesa3D. | |
e31e9d24 | 233 | |
f445ed6c JB |
234 | %package libGL-static |
235 | Summary: Static Mesa3D libGL library | |
54181d82 | 236 | Summary(pl.UTF-8): Statyczna biblioteka libGL z projektu Mesa3D |
f445ed6c JB |
237 | License: MIT |
238 | Group: X11/Development/Libraries | |
239 | Requires: %{name}-libGL-devel = %{version}-%{release} | |
237cb2a3 | 240 | Provides: OpenGL-static = 2.1 |
f445ed6c | 241 | Obsoletes: Mesa-static |
b18f0f46 AM |
242 | Obsoletes: X11-OpenGL-static < 1:7.0.0 |
243 | Obsoletes: XFree86-OpenGL-static < 1:7.0.0 | |
f445ed6c JB |
244 | |
245 | %description libGL-static | |
246 | Static Mesa3D libGL library. It uses software renderer. | |
247 | ||
f77f03b8 JR |
248 | %description libGL-static -l pl.UTF-8 |
249 | Statyczna biblioteka libGL z projektu Mesa3D. Używa programowego | |
f445ed6c JB |
250 | renderingu. |
251 | ||
252 | %package libGLU | |
253 | Summary: SGI implementation of libGLU OpenGL library | |
54181d82 | 254 | Summary(pl.UTF-8): Implementacja SGI biblioteki libGLU ze standardu OpenGL |
9ae30a4c | 255 | License: SGI Free Software License B v2.0 (MIT-like) |
f445ed6c JB |
256 | Group: Libraries |
257 | # loose dependency on libGL.so.1 to use with other libGL binaries | |
258 | Requires: OpenGL >= 1.2 | |
259 | Provides: OpenGL-GLU = 1.3 | |
260 | Obsoletes: Mesa-devel | |
b18f0f46 AM |
261 | Obsoletes: X11-OpenGL-libs < 1:7.0.0 |
262 | Obsoletes: XFree86-OpenGL-libs < 1:7.0.0 | |
f445ed6c JB |
263 | |
264 | %description libGLU | |
265 | SGI implementation of libGLU OpenGL library. It implements OpenGL GLU | |
266 | 1.3 specifications. | |
267 | ||
f77f03b8 | 268 | %description libGLU -l pl.UTF-8 |
f445ed6c | 269 | Implementacja SGI biblioteki libGLU ze standardu OpenGL. Implementuje |
f77f03b8 | 270 | specyfikację OpenGL GLU 1.3. |
f445ed6c JB |
271 | |
272 | %package libGLU-devel | |
273 | Summary: Header files for SGI libGLU library | |
54181d82 | 274 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SGI libGLU |
9ae30a4c | 275 | License: SGI Free Software License B v2.0 (MIT-like) |
f445ed6c JB |
276 | Group: Development/Libraries |
277 | Requires: %{name}-libGLU = %{version}-%{release} | |
278 | Requires: OpenGL-devel >= 1.2 | |
279 | Requires: libstdc++-devel | |
280 | Provides: OpenGL-GLU-devel = 1.3 | |
281 | ||
282 | %description libGLU-devel | |
283 | Header files for SGI libGLU library. | |
284 | ||
f77f03b8 JR |
285 | %description libGLU-devel -l pl.UTF-8 |
286 | Pliki nagłówkowe biblioteki SGI libGLU. | |
f445ed6c JB |
287 | |
288 | %package libGLU-static | |
289 | Summary: Static SGI libGLU library | |
54181d82 | 290 | Summary(pl.UTF-8): Statyczna biblioteka SGI libGLU |
9ae30a4c | 291 | License: SGI Free Software License B v2.0 (MIT-like) |
f445ed6c JB |
292 | Group: Development/Libraries |
293 | Requires: %{name}-libGLU-devel = %{version}-%{release} | |
6299b3cd | 294 | Provides: OpenGL-GLU-static = 1.3 |
e31e9d24 | 295 | |
f445ed6c JB |
296 | %description libGLU-static |
297 | Static SGI libGLU library. | |
298 | ||
f77f03b8 | 299 | %description libGLU-static -l pl.UTF-8 |
f445ed6c JB |
300 | Statyczna biblioteka SGI libGLU. |
301 | ||
302 | %package libGLw | |
303 | Summary: SGI OpenGL Xt widgets library | |
54181d82 | 304 | Summary(pl.UTF-8): Biblioteka SGI widgetów Xt dla OpenGL-a |
f445ed6c JB |
305 | License: SGI MIT-like |
306 | Group: Libraries | |
307 | # loose dependency on libGL.so.1 to use with other libGL binaries | |
308 | Requires: OpenGL >= 1.1 | |
309 | Provides: OpenGL-GLw | |
310 | ||
311 | %description libGLw | |
312 | SGI OpenGL Xt widgets library. | |
313 | ||
d256045c | 314 | %description libGLw -l pl.UTF-8 |
f77f03b8 | 315 | Biblioteka SGI widgetów Xt dla OpenGL-a. |
f445ed6c JB |
316 | |
317 | %package libGLw-devel | |
318 | Summary: Header files for SGI libGLw library | |
54181d82 | 319 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SGI libGLw |
f4a8c5f6 | 320 | License: SGI MIT-like |
f445ed6c JB |
321 | Group: Development/Libraries |
322 | Requires: %{name}-libGLw = %{version}-%{release} | |
323 | Requires: OpenGL-devel >= 1.2 | |
324 | Provides: OpenGL-GLw-devel | |
325 | ||
326 | %description libGLw-devel | |
327 | Header files for SGI libGLw library. | |
328 | ||
f77f03b8 JR |
329 | %description libGLw-devel -l pl.UTF-8 |
330 | Pliki nagłówkowe biblioteki SGI libGLw. | |
f445ed6c JB |
331 | |
332 | %package libGLw-static | |
333 | Summary: Static SGI libGLw library | |
54181d82 | 334 | Summary(pl.UTF-8): Statyczna biblioteka SGI libGLw |
f4a8c5f6 | 335 | License: SGI MIT-like |
f445ed6c JB |
336 | Group: Development/Libraries |
337 | Requires: %{name}-libGLw-devel = %{version}-%{release} | |
338 | Provides: OpenGL-GLw-static | |
e31e9d24 | 339 | |
f445ed6c JB |
340 | %description libGLw-static |
341 | Static SGI libGLw library. | |
342 | ||
f77f03b8 | 343 | %description libGLw-static -l pl.UTF-8 |
f445ed6c JB |
344 | Statyczna biblioteka SGI libGLw. |
345 | ||
f4a8c5f6 JB |
346 | %package libOSMesa |
347 | Summary: OSMesa (off-screen renderer) library | |
348 | Summary(pl.UTF-8): Biblioteka OSMesa (renderująca bitmapy w pamięci) | |
349 | License: MIT | |
350 | Group: Libraries | |
351 | # doesn't require base | |
352 | ||
353 | %description libOSMesa | |
354 | OSMesa (off-screen renderer) library. | |
355 | ||
356 | %description libOSMesa -l pl.UTF-8 | |
357 | Biblioteka OSMesa (renderująca bitmapy w pamięci). | |
358 | ||
359 | %package libOSMesa-devel | |
360 | Summary: Header file for OSMesa (off-screen renderer) library | |
361 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki OSMesa (renderującej bitmapy w pamięci) | |
362 | License: MIT | |
363 | Group: Development/Libraries | |
364 | Requires: %{name}-libOSMesa = %{version}-%{release} | |
365 | # for <GL/gl.h> only | |
366 | Requires: OpenGL-devel | |
367 | ||
368 | %description libOSMesa-devel | |
369 | Header file for OSMesa (off-screen renderer) library. | |
370 | ||
371 | %description libOSMesa-devel -l pl.UTF-8 | |
372 | Plik nagłówkowy biblioteki OSMesa (renderującej bitmapy w pamięci). | |
373 | ||
374 | %package libOSMesa-static | |
375 | Summary: Static OSMesa (off-screen renderer) library | |
376 | Summary(pl.UTF-8): Biblioteka statyczna OSMesa (renderująca bitmapy w pamięci) | |
377 | License: MIT | |
378 | Group: Development/Libraries | |
379 | Requires: %{name}-libOSMesa-devel = %{version}-%{release} | |
380 | # this static build of OSMesa needs static non-dri Mesa implementation | |
381 | Requires: %{name}-libGL-static = %{version}-%{release} | |
382 | ||
383 | %description libOSMesa-static | |
384 | Static OSMesa (off-screen renderer) library. | |
385 | ||
386 | %description libOSMesa-static -l pl.UTF-8 | |
387 | Biblioteka statyczna OSMesa (renderująca bitmapy w pamięci). | |
388 | ||
9d916b8b AF |
389 | %package libOpenVG |
390 | Summary: OpenVG API implementation | |
391 | Summary(pl.UTF-8): Implementacja API OpenVG | |
392 | License: MIT | |
393 | Group: Libraries | |
394 | # doesn't require base | |
395 | ||
396 | %description libOpenVG | |
397 | OpenVG API implementation. | |
398 | ||
399 | %description libOpenVG -l pl.UTF-8 | |
400 | Implementacja API OpenVG. | |
401 | ||
402 | %package libOpenVG-devel | |
403 | Summary: Header file for libOpenVG library | |
404 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki libOpenVG | |
405 | License: MIT | |
406 | Group: Development/Libraries | |
407 | # for <KHR/khrplatform.h> | |
408 | Requires: %{name}-libEGL-devel = %{version}-%{release} | |
409 | Requires: %{name}-libOpenVG = %{version}-%{release} | |
410 | ||
411 | %description libOpenVG-devel | |
412 | Header file for libOpenVG library. | |
413 | ||
414 | %description libOpenVG-devel -l pl.UTF-8 | |
415 | Plik nagłówkowy biblioteki libOpenVG. | |
416 | ||
f445ed6c JB |
417 | %package utils |
418 | Summary: OpenGL utilities from Mesa3D | |
54181d82 | 419 | Summary(pl.UTF-8): Programy narzędziowe OpenGL z projektu Mesa3D |
f4a8c5f6 | 420 | License: MIT |
1a039c9a | 421 | Group: X11/Applications/Graphics |
f445ed6c JB |
422 | # loose deps on libGL/libGLU |
423 | ||
424 | %description utils | |
425 | OpenGL utilities from Mesa3D: glxgears and glxinfo. | |
426 | ||
f77f03b8 JR |
427 | %description utils -l pl.UTF-8 |
428 | Programy narzędziowe OpenGL z projektu Mesa3D: glxgears i glxinfo. | |
a0b2836a | 429 | |
afe33c03 | 430 | %package dri-driver-ati-mach64 |
362c6f99 JB |
431 | Summary: X.org DRI driver for ATI Mach64 card family |
432 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI Mach64 | |
f4a8c5f6 | 433 | License: MIT |
18da5046 | 434 | Group: X11/Libraries |
d70abe90 JB |
435 | Requires: xorg-driver-video-mach64 |
436 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
437 | Requires: xorg-xserver-server >= %{xserver_ver} | |
875da849 | 438 | |
afe33c03 | 439 | %description dri-driver-ati-mach64 |
362c6f99 | 440 | X.org DRI driver for ATI Mach64 card family. |
875da849 | 441 | |
f77f03b8 | 442 | %description dri-driver-ati-mach64 -l pl.UTF-8 |
362c6f99 | 443 | Sterownik X.org DRI dla rodziny kart ATI Mach64. |
875da849 | 444 | |
afe33c03 | 445 | %package dri-driver-ati-radeon-R100 |
362c6f99 JB |
446 | Summary: X.org DRI driver for ATI R100 card family |
447 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R100 | |
f4a8c5f6 | 448 | License: MIT |
18da5046 | 449 | Group: X11/Libraries |
83c21438 | 450 | Requires: xorg-driver-video-ati |
d70abe90 JB |
451 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} |
452 | Requires: xorg-xserver-server >= %{xserver_ver} | |
8e26093b | 453 | Obsoletes: X11-driver-radeon-dri < 1:7.0.0 |
afe33c03 | 454 | |
455 | %description dri-driver-ati-radeon-R100 | |
362c6f99 | 456 | X.org DRI driver for ATI R100 card family (Radeon 7000-7500). |
afe33c03 | 457 | |
f77f03b8 | 458 | %description dri-driver-ati-radeon-R100 -l pl.UTF-8 |
362c6f99 | 459 | Sterownik X.org DRI dla rodziny kart ATI R100 (Radeon 7000-7500). |
afe33c03 | 460 | |
461 | %package dri-driver-ati-radeon-R200 | |
362c6f99 JB |
462 | Summary: X.org DRI driver for ATI R200 card family |
463 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R200 | |
f4a8c5f6 | 464 | License: MIT |
18da5046 | 465 | Group: X11/Libraries |
83c21438 | 466 | Requires: xorg-driver-video-ati |
d70abe90 JB |
467 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} |
468 | Requires: xorg-xserver-server >= %{xserver_ver} | |
8e26093b | 469 | Obsoletes: X11-driver-radeon-dri < 1:7.0.0 |
afe33c03 | 470 | |
471 | %description dri-driver-ati-radeon-R200 | |
362c6f99 | 472 | X.org DRI driver for ATI R200 card family (Radeon 8500-92xx) |
afe33c03 | 473 | |
f77f03b8 | 474 | %description dri-driver-ati-radeon-R200 -l pl.UTF-8 |
362c6f99 | 475 | Sterownik X.org DRI dla rodziny kart ATI R200 (Radeon 8500-92xx). |
afe33c03 | 476 | |
477 | %package dri-driver-ati-radeon-R300 | |
362c6f99 JB |
478 | Summary: X.org DRI driver for ATI R300 card family |
479 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R300 | |
f4a8c5f6 | 480 | License: MIT |
18da5046 | 481 | Group: X11/Libraries |
83c21438 | 482 | Requires: xorg-driver-video-ati |
d70abe90 JB |
483 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} |
484 | Requires: xorg-xserver-server >= %{xserver_ver} | |
8e26093b | 485 | Obsoletes: X11-driver-radeon-dri < 1:7.0.0 |
afe33c03 | 486 | |
487 | %description dri-driver-ati-radeon-R300 | |
362c6f99 | 488 | X.org DRI driver for ATI R300 card family. |
afe33c03 | 489 | |
f77f03b8 | 490 | %description dri-driver-ati-radeon-R300 -l pl.UTF-8 |
362c6f99 | 491 | Sterownik X.org DRI dla rodziny kart ATI R300. |
afe33c03 | 492 | |
e68936d0 AM |
493 | %package dri-driver-ati-radeon-R600 |
494 | Summary: X.org DRI driver for ATI R600 card family | |
495 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI R600 | |
496 | License: MIT | |
497 | Group: X11/Libraries | |
498 | Requires: radeon-ucode | |
499 | Requires: xorg-driver-video-ati | |
500 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
501 | Requires: xorg-xserver-server >= %{xserver_ver} | |
502 | ||
503 | %description dri-driver-ati-radeon-R600 | |
504 | X.org DRI driver for ATI R600 card family. | |
505 | ||
506 | %description dri-driver-ati-radeon-R600 -l pl.UTF-8 | |
507 | Sterownik X.org DRI dla rodziny kart ATI R600. | |
508 | ||
afe33c03 | 509 | %package dri-driver-ati-rage128 |
362c6f99 JB |
510 | Summary: X.org DRI driver for ATI Rage128 card family |
511 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart ATI Rage128 | |
f4a8c5f6 | 512 | License: MIT |
18da5046 | 513 | Group: X11/Libraries |
d70abe90 JB |
514 | Requires: xorg-driver-video-r128 |
515 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
516 | Requires: xorg-xserver-server >= %{xserver_ver} | |
8e26093b | 517 | Obsoletes: X11-driver-r128-dri < 1:7.0.0 |
afe33c03 | 518 | |
519 | %description dri-driver-ati-rage128 | |
362c6f99 | 520 | X.org DRI driver for ATI Rage128 card family. |
afe33c03 | 521 | |
f77f03b8 | 522 | %description dri-driver-ati-rage128 -l pl.UTF-8 |
362c6f99 | 523 | Sterownik X.org DRI dla rodziny kart ATI Rage128. |
afe33c03 | 524 | |
525 | %package dri-driver-ffb | |
362c6f99 JB |
526 | Summary: X.org DRI driver for Sun FFB card family |
527 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart Sun FFB | |
f4a8c5f6 | 528 | License: MIT |
18da5046 | 529 | Group: X11/Libraries |
83c21438 | 530 | Requires: xorg-driver-video-sunffb |
d70abe90 JB |
531 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} |
532 | Requires: xorg-xserver-server >= %{xserver_ver} | |
afe33c03 | 533 | |
534 | %description dri-driver-ffb | |
362c6f99 | 535 | X.org DRI driver for SUN Creator3D and Elite3D card family. |
afe33c03 | 536 | |
f77f03b8 | 537 | %description dri-driver-ffb -l pl.UTF-8 |
362c6f99 | 538 | Sterownik X.org DRI dla rodziny kart SUN Creator3D i Elite3D. |
afe33c03 | 539 | |
540 | %package dri-driver-glint | |
362c6f99 JB |
541 | Summary: X.org DRI driver for GLINT/Permedia card family |
542 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart GLINT/Permedia | |
f4a8c5f6 | 543 | License: MIT |
18da5046 | 544 | Group: X11/Libraries |
83c21438 | 545 | Requires: xorg-driver-video-glint |
d70abe90 JB |
546 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} |
547 | Requires: xorg-xserver-server >= %{xserver_ver} | |
8e26093b | 548 | Obsoletes: X11-driver-glint-dri < 1:7.0.0 |
afe33c03 | 549 | |
550 | %description dri-driver-glint | |
362c6f99 | 551 | X.org DRI driver for GLINT/Permedia card family. |
afe33c03 | 552 | |
f77f03b8 | 553 | %description dri-driver-glint -l pl.UTF-8 |
362c6f99 | 554 | Sterownik X.org DRI dla rodziny kart GLINT/Permedia. |
afe33c03 | 555 | |
556 | %package dri-driver-intel-i810 | |
362c6f99 JB |
557 | Summary: X.org DRI driver for Intel i810 card family |
558 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart Intel i810 | |
f4a8c5f6 | 559 | License: MIT |
18da5046 | 560 | Group: X11/Libraries |
d70abe90 JB |
561 | Requires: xorg-driver-video-intel |
562 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
563 | Requires: xorg-xserver-server >= %{xserver_ver} | |
8e26093b | 564 | Obsoletes: X11-driver-i810-dri < 1:7.0.0 |
afe33c03 | 565 | |
566 | %description dri-driver-intel-i810 | |
362c6f99 | 567 | X.org DRI driver for Intel i810 card family. |
afe33c03 | 568 | |
f77f03b8 | 569 | %description dri-driver-intel-i810 -l pl.UTF-8 |
362c6f99 | 570 | Sterownik X.org DRI dla rodziny kart Intel i810. |
afe33c03 | 571 | |
afe33c03 | 572 | %package dri-driver-intel-i915 |
362c6f99 JB |
573 | Summary: X.org DRI driver for Intel i915 card family |
574 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart Intel i915 | |
f4a8c5f6 | 575 | License: MIT |
18da5046 | 576 | Group: X11/Libraries |
d70abe90 JB |
577 | Requires: xorg-driver-video-intel |
578 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
579 | Requires: xorg-xserver-server >= %{xserver_ver} | |
2db432a2 | 580 | Obsoletes: Mesa-dri-driver-intel-i830 |
8e26093b | 581 | Obsoletes: X11-driver-i810-dri < 1:7.0.0 |
afe33c03 | 582 | |
583 | %description dri-driver-intel-i915 | |
362c6f99 | 584 | X.org DRI driver for Intel i915 card family. |
afe33c03 | 585 | |
f77f03b8 | 586 | %description dri-driver-intel-i915 -l pl.UTF-8 |
362c6f99 | 587 | Sterownik X.org DRI dla rodziny kart Intel i915. |
afe33c03 | 588 | |
b360f4f6 | 589 | %package dri-driver-intel-i965 |
362c6f99 JB |
590 | Summary: X.org DRI driver for Intel i965 card family |
591 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart Intel i965 | |
f4a8c5f6 | 592 | License: MIT |
b360f4f6 | 593 | Group: X11/Libraries |
d70abe90 JB |
594 | Requires: xorg-driver-video-intel |
595 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
596 | Requires: xorg-xserver-server >= %{xserver_ver} | |
b360f4f6 | 597 | Obsoletes: Mesa-dri-driver-intel-i830 |
8e26093b | 598 | Obsoletes: X11-driver-i810-dri < 1:7.0.0 |
b360f4f6 | 599 | |
600 | %description dri-driver-intel-i965 | |
362c6f99 | 601 | X.org DRI driver for Intel i965 card family. |
b360f4f6 | 602 | |
f77f03b8 | 603 | %description dri-driver-intel-i965 -l pl.UTF-8 |
362c6f99 | 604 | Sterownik X.org DRI dla rodziny kart Intel i965. |
b360f4f6 | 605 | |
afe33c03 | 606 | %package dri-driver-matrox |
362c6f99 JB |
607 | Summary: X.org DRI driver for Matrox G card family |
608 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart Matrox G | |
f4a8c5f6 | 609 | License: MIT |
18da5046 | 610 | Group: X11/Libraries |
83c21438 | 611 | Requires: xorg-driver-video-mga |
d70abe90 JB |
612 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} |
613 | Requires: xorg-xserver-server >= %{xserver_ver} | |
8e26093b | 614 | Obsoletes: X11-driver-mga-dri < 1:7.0.0 |
afe33c03 | 615 | |
616 | %description dri-driver-matrox | |
617 | X.org DRI drivers for Matrox G card family. | |
618 | ||
f77f03b8 | 619 | %description dri-driver-matrox -l pl.UTF-8 |
afe33c03 | 620 | Sterowniki X.org DRI dla rodziny kart Matrox G. |
621 | ||
3e88bc92 AM |
622 | %package dri-driver-nouveau |
623 | Summary: X.org DRI driver for NVIDIA card family | |
624 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart NVIDIA | |
625 | License: MIT | |
626 | Group: X11/Libraries | |
627 | Requires: xorg-driver-video-nouveau | |
628 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
629 | Requires: xorg-xserver-server >= %{xserver_ver} | |
630 | ||
631 | %description dri-driver-nouveau | |
632 | X.org DRI drivers for NVIDIA card family. | |
633 | ||
634 | %description dri-driver-nouveau -l pl.UTF-8 | |
635 | Sterowniki X.org DRI dla rodziny kart NVIDIA. | |
636 | ||
afe33c03 | 637 | %package dri-driver-savage |
362c6f99 JB |
638 | Summary: X.org DRI driver for S3 Savage card family |
639 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart S3 Savage | |
f4a8c5f6 | 640 | License: MIT |
18da5046 | 641 | Group: X11/Libraries |
83c21438 | 642 | Requires: xorg-driver-video-savage |
d70abe90 JB |
643 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} |
644 | Requires: xorg-xserver-server >= %{xserver_ver} | |
afe33c03 | 645 | |
646 | %description dri-driver-savage | |
362c6f99 | 647 | X.org DRI driver for S3 Savage card family. |
afe33c03 | 648 | |
f77f03b8 | 649 | %description dri-driver-savage -l pl.UTF-8 |
362c6f99 | 650 | Sterownik X.org DRI dla rodziny kart S3 Savage. |
afe33c03 | 651 | |
652 | %package dri-driver-sis | |
362c6f99 JB |
653 | Summary: X.org DRI driver for SiS card family |
654 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart SiS | |
f4a8c5f6 | 655 | License: MIT |
18da5046 | 656 | Group: X11/Libraries |
83c21438 | 657 | Requires: xorg-driver-video-sis |
d70abe90 JB |
658 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} |
659 | Requires: xorg-xserver-server >= %{xserver_ver} | |
8e26093b | 660 | Obsoletes: X11-driver-sis-dri < 1:7.0.0 |
afe33c03 | 661 | |
662 | %description dri-driver-sis | |
362c6f99 | 663 | X.org DRI driver for SiS card family. |
afe33c03 | 664 | |
f77f03b8 | 665 | %description dri-driver-sis -l pl.UTF-8 |
362c6f99 | 666 | Sterownik X.org DRI dla rodziny kart SiS. |
afe33c03 | 667 | |
f3606317 | 668 | %package dri-driver-swrast |
362c6f99 JB |
669 | Summary: X.org DRI software rasterizer driver |
670 | Summary(pl.UTF-8): Sterownik X.org DRI obsługujący rysowanie programowe | |
f3606317 AM |
671 | License: MIT |
672 | Group: X11/Libraries | |
d70abe90 JB |
673 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} |
674 | Requires: xorg-xserver-server >= %{xserver_ver} | |
f3606317 AM |
675 | |
676 | %description dri-driver-swrast | |
362c6f99 | 677 | X.org DRI software rasterizer driver. |
f3606317 AM |
678 | |
679 | %description dri-driver-swrast -l pl.UTF-8 | |
362c6f99 | 680 | Sterownik X.org DRI obsługujący rysowanie programowe. |
f3606317 | 681 | |
afe33c03 | 682 | %package dri-driver-tdfx |
362c6f99 JB |
683 | Summary: X.org DRI driver for 3DFX Voodoo card family |
684 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart 3DFX Voodoo | |
f4a8c5f6 | 685 | License: MIT |
18da5046 | 686 | Group: X11/Libraries |
10fb2f64 | 687 | Requires: Glide3-DRI |
83c21438 | 688 | Requires: xorg-driver-video-tdfx |
d70abe90 JB |
689 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} |
690 | Requires: xorg-xserver-server >= %{xserver_ver} | |
8e26093b | 691 | Obsoletes: X11-driver-tdfx-dri < 1:7.0.0 |
afe33c03 | 692 | |
693 | %description dri-driver-tdfx | |
362c6f99 | 694 | X.org DRI driver for 3DFX Voodoo card family (Voodoo 3,4,5, Banshee |
afe33c03 | 695 | and Velocity 100/200). |
696 | ||
f77f03b8 | 697 | %description dri-driver-tdfx -l pl.UTF-8 |
362c6f99 JB |
698 | Sterownik X.org DRI dla rodziny kart 3DFX Voodoo. (Voodoo 3,4,5, |
699 | Banshee i Velocity 100/200). | |
afe33c03 | 700 | |
23e685d3 | 701 | %package dri-driver-via-unichrome |
702 | Summary: X.org DRI driver for VIA Unichrome card family | |
703 | Summary(pl.UTF-8): Sterownik X.org DRI dla rodziny kart VIA Unichrome | |
704 | License: MIT | |
705 | Group: X11/Libraries | |
706 | Requires: xorg-driver-video-openchrome | |
707 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
708 | Requires: xorg-xserver-server >= %{xserver_ver} | |
709 | ||
710 | %description dri-driver-via-unichrome | |
711 | X.org DRI driver for VIA Unichrome card family. | |
712 | ||
713 | %description dri-driver-via-unichrome -l pl.UTF-8 | |
714 | Sterownik X.org DRI dla rodziny kart VIA Unichrome. | |
715 | ||
e68936d0 AM |
716 | %package dri-driver-vmwgfx |
717 | Summary: X.org DRI driver for VMware | |
718 | Summary(pl.UTF-8): Sterownik X.org DRI dla VMware | |
719 | License: MIT | |
720 | Group: X11/Libraries | |
721 | Requires: xorg-xserver-libglx(glapi) = %{glapi_ver} | |
722 | Requires: xorg-xserver-server >= %{xserver_ver} | |
723 | ||
724 | %description dri-driver-vmwgfx | |
725 | X.org DRI driver for VMWare. | |
726 | ||
727 | %description dri-driver-vmwgfx -l pl.UTF-8 | |
728 | Sterownik X.org DRI dla VMware. | |
729 | ||
a0b2836a | 730 | %prep |
bb686270 | 731 | %setup -q |
6f53c8ab | 732 | %patch0 -p0 |
be7de8ed | 733 | %patch1 -p1 |
b8535261 | 734 | %patch2 -p1 |
a0b2836a | 735 | |
736 | %build | |
bb686270 AM |
737 | %{__aclocal} |
738 | %{__autoconf} | |
a5afae62 | 739 | |
9d916b8b | 740 | dri_drivers="i810 mach64 mga r128 r200 radeon \ |
0563bcdf | 741 | %if %{without gallium_radeon} |
9d916b8b | 742 | r300 r600 \ |
0563bcdf AM |
743 | %endif |
744 | savage \ | |
8060076f | 745 | %if %{without gallium_intel} |
9d916b8b | 746 | i915 i965 \ |
a5afae62 | 747 | %endif |
59f12de8 AM |
748 | %ifarch sparc sparcv9 sparc64 |
749 | ffb \ | |
6299b3cd | 750 | %endif |
59f12de8 AM |
751 | %ifarch %{ix86} %{x8664} |
752 | sis \ | |
31a772c7 | 753 | %endif |
59f12de8 AM |
754 | swrast tdfx unichrome" |
755 | ||
756 | dri_drivers=$(echo $dri_drivers | xargs | tr ' ' ',') | |
757 | ||
758 | common_flags="\ | |
759 | --enable-shared \ | |
760 | --enable-selinux \ | |
5f574b4b | 761 | --enable-pic \ |
b4a5c074 | 762 | --enable-glx-tls \ |
74a7a0e1 | 763 | --disable-glut \ |
ed6291f5 AM |
764 | %if %{with egl} |
765 | --enable-egl \ | |
766 | --enable-gles1 \ | |
767 | --enable-gles2 \ | |
768 | %endif | |
769 | " | |
59f12de8 | 770 | |
74a7a0e1 | 771 | osmesa_common_flags="\ |
59f12de8 AM |
772 | --with-driver=osmesa \ |
773 | --disable-asm \ | |
ed6291f5 AM |
774 | --disable-glu \ |
775 | --disable-egl" | |
74a7a0e1 AM |
776 | |
777 | %if %{with osmesa} | |
74a7a0e1 | 778 | %configure $common_flags $osmesa_common_flags \ |
59f12de8 | 779 | --with-osmesa-bits=8 |
74a7a0e1 | 780 | %{__make} |
59f12de8 AM |
781 | mv %{_lib} osmesa8 |
782 | %{__make} clean | |
cb97a1c3 | 783 | %endif |
59f12de8 AM |
784 | |
785 | %configure $common_flags \ | |
5f574b4b AM |
786 | %if %{with gallium} |
787 | --enable-gallium \ | |
e760102d | 788 | --enable-openvg \ |
ed6291f5 AM |
789 | %if %{with gallium_intel} |
790 | --enable-gallium-i915 \ | |
791 | --enable-gallium-i965 \ | |
792 | %endif | |
9d916b8b | 793 | %if %{with gallium_radeon} |
2f2c862d PS |
794 | --enable-gallium-radeon \ |
795 | --enable-gallium-r600 \ | |
796 | %endif | |
b1c69d57 | 797 | --enable-gallium-svga \ |
b8535261 | 798 | --enable-gallium-egl \ |
9d916b8b | 799 | --enable-gallium-swrast \ |
d256045c | 800 | %{?with_gallium_nouveau:--enable-gallium-nouveau} \ |
9d916b8b | 801 | --with-state-trackers=dri,glx,egl,xorg,vega \ |
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 | ||
ed6291f5 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 |
e760102d AF |
881 | %attr(755,root,root) %{_libdir}/egl/pipe_swrast.so |
882 | %attr(755,root,root) %{_libdir}/egl/pipe_vmwgfx.so | |
883 | %attr(755,root,root) %{_libdir}/egl/st_GL.so | |
884 | %attr(755,root,root) %{_libdir}/egl/st_OpenVG.so | |
9d916b8b | 885 | %if %{with gallium_nouveau} |
4a972c72 PS |
886 | %attr(755,root,root) %{_libdir}/egl/pipe_nouveau.so |
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) | |
9d916b8b | 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 |
9d916b8b | 1134 | %attr(755,root,root) %{_libdir}/xorg/modules/drivers/vmwgfx_drv.so |
bb5f0825 | 1135 | %endif |