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