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