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