/[packages]/cauldron/mesa/current/SPECS/mesa.spec
ViewVC logotype

Contents of /cauldron/mesa/current/SPECS/mesa.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 307417 - (show annotations) (download)
Tue Oct 16 23:24:36 2012 UTC (11 years, 11 months ago) by fwang
File size: 22345 byte(s)
rebuild for new wayland
1 %define bootstrap 0
2 %{?_without_bootstrap: %global bootstrap 0}
3 %{?_with_bootstrap: %global bootstrap 1}
4
5 %if "%distro_section" == "tainted"
6 %global build_plf 1
7 %else
8 %global build_plf 0
9 %endif
10
11 # (cg) Cheater...
12 %define Werror_cflags %nil
13
14 # (aco) Needed for the dri drivers
15 %define _disable_ld_no_undefined 1
16
17
18 %define git 0
19 %define git_branch 9.0
20 %define with_hardware 1
21
22 %define opengl_ver 3.0
23
24 %define relc 0
25 %define name mesa
26 %define fversion 9.0
27 %define version 9.0.0
28 %define rel 2
29
30 %define release %mkrel %{rel}
31 %define src_type tar.bz2
32 #define vsuffix %{expand:}
33 %define vsuffix %nil
34
35 %if %{relc}
36 %define release %mkrel 0.rc%{relc}.%{rel}
37 %define vsuffix -rc%{relc}
38 %define src_type tar.bz2
39 %endif
40
41 %if %{git}
42 %if %{relc}
43 %define release %mkrel 0.rc%{relc}.1.git%{git}.%{rel}
44 %else
45 %define release %mkrel 0.git%{git}.%{rel}
46 %endif
47 %endif
48
49 %define makedepend %{_bindir}/gccmakedep
50
51 %define dricorename dricore
52 %define eglname mesaegl
53 %define glname mesagl
54 %define glwname mesaglw
55 %define glesv1name mesaglesv1
56 %define glesv2name mesaglesv2
57 %define openvgname mesaopenvg
58 %define glapiname glapi
59 %define gbmname gbm
60 %define waylandeglname wayland-egl
61
62 %define dricoremajor 1
63 %define eglmajor 1
64 %define glmajor 1
65 %define glwmajor 1
66 %define glesv1major 1
67 %define glesv2major 2
68 %define openvgmajor 1
69 %define glapimajor 0
70 %define gbmmajor 1
71 %define waylandeglmajor 1
72 %define osmesamajor 8
73
74 %define libdricorename %mklibname %{dricorename} %{dricoremajor}
75 %define libeglname %mklibname %{eglname} %{eglmajor}
76 %define libglname %mklibname %{glname} %{glmajor}
77 %define libglwname %mklibname %{glwname} %{glwmajor}
78 %define libglesv1name %mklibname %{glesv1name}_ %{glesv1major}
79 %define libglesv2name %mklibname %{glesv2name}_ %{glesv2major}
80 %define libopenvgname %mklibname %{openvgname} %{openvgmajor}
81 %define libglapiname %mklibname %{glapiname} %{glapimajor}
82 %define libgbmname %mklibname %{gbmname} %{gbmmajor}
83 %define libwaylandeglname %mklibname %{waylandeglname} %{waylandeglmajor}
84 %define libosmesaname %mklibname osmesa %{osmesamajor}
85
86 %define dridrivers %mklibname dri-drivers
87
88 %define osmesadevel %mklibname osmesa -d
89
90 # Architecture-independent Virtual provides:
91 %define libdricorename_virt lib%{dricorename}
92 %define libeglname_virt lib%{eglname}
93 %define libglname_virt lib%{glname}
94 %define libglwname_virt lib%{glwname}
95 %define libglesv1name_virt lib%{glesv1name}
96 %define libglesv2name_virt lib%{glesv2name}
97 %define libopenvgname_virt lib%{openvgname}
98 %define libglapiname_virt lib%{glapiname}
99 %define libgbmname_virt lib%{gbmname}
100 %define libwaylandeglname_virt lib%{waylandeglname}
101
102 %define oldlibglname %mklibname MesaGL 1
103
104 %define mesasrcdir %{_prefix}/src/Mesa/
105 %define driver_dir %{_libdir}/dri
106
107 %define enable_egl 1
108 %define enable_wayland 1
109
110 #FIXME: (for 386/485) unset SSE, MMX and 3dnow flags
111 #FIXME: (for >=i586) disable sse
112 # SSE seems to have problem on some apps (gtulpas) for probing.
113 %define dri_drivers_i386 "i915,i965,nouveau,r200,radeon,swrast"
114 %define dri_drivers_x86_64 %{dri_drivers_i386}
115 %define dri_drivers_ppc "r200,radeon,swrast"
116 %define dri_drivers_ppc64 ""
117 %define dri_drivers_ia64 "i915,i965,mga,r200,radeon,swrast"
118 %define dri_drivers_alpha "r200,radeon,swrast"
119 %define dri_drivers_sparc "ffb,radeon,swrast"
120 %define dri_drivers_mipsel "r200,radeon,swrast"
121 %define dri_drivers_arm "nouveau,r200,radeon,swrast"
122 %define dri_drivers %{expand:%{dri_drivers_%{_arch}}}
123
124 Name: %{name}
125 Version: %{version}
126 Release: %{release}
127 Summary: OpenGL %{opengl_ver} compatible 3D graphics library
128 Group: System/Libraries
129
130 BuildRequires: pkgconfig(xfixes) >= 4.0.3
131 BuildRequires: pkgconfig(xt) >= 1.0.5
132 BuildRequires: pkgconfig(xmu) >= 1.0.3
133 BuildRequires: pkgconfig(x11) >= 1.3.3
134 BuildRequires: pkgconfig(xdamage) >= 1.1.1
135 BuildRequires: libexpat-devel >= 2.0.1
136 BuildRequires: gccmakedep
137 BuildRequires: x11-proto-devel >= 7.3
138 BuildRequires: pkgconfig(libdrm) >= 2.4.21
139
140 BuildRequires: pkgconfig(xext) >= 1.1.1
141 BuildRequires: pkgconfig(xxf86vm) >= 1.1.0
142 BuildRequires: pkgconfig(xi) >= 1.3
143 BuildRequires: pkgconfig(talloc)
144 BuildRequires: libxml2-python
145 BuildRequires: makedepend
146 BuildRequires: bison flex
147 BuildRequires: llvm-devel >= 3.1
148 BuildRequires: pkgconfig(libudev)
149 BuildRequires: pkgconfig(vdpau)
150 %if %{enable_wayland}
151 BuildRequires: wayland-devel
152 %endif
153
154 URL: http://www.mesa3d.org
155 %if %{git}
156 # (blino) snapshot of 9.0 branch
157 Source0: %{name}-%{git_branch}-%{git}.tar.bz2
158 %else
159 Source0: ftp://ftp.freedesktop.org/pub/mesa/%version/MesaLib-%{fversion}%{vsuffix}.%{src_type}
160 %endif
161 Source3: make-git-snapshot.sh
162
163 # Instructions to setup your repository clone
164 # git://git.freedesktop.org/git/mesa/mesa
165 # git checkout mesa_7_5_branch
166 # git branch mdv-cherry-picks
167 # git am ../02??-*.patch
168 # git branch mdv-redhat
169 # git am ../03??-*.patch
170 # git branch mdv-patches
171 # git am ../09??-*.patch
172 Source101: 0001-Fix-undefined-symbols-in-libOSMesa-and-libglapi.patch
173
174 # In order to update to the branch via patches, issue this command:
175 # git format-patch --start-number 100 mesa_7_5_1..mesa_7_5_branch | sed 's/^0\([0-9]\+\)-/Patch\1: 0\1-/'
176
177 # Cherry picks
178 # git format-patch --start-number 200 mesa_7_5_branch..mdv-cherry-picks
179 Patch201: 0201-revert-fix-glxinitializevisualconfigfromtags-handling.patch
180 # (blino) should be pushed to 9.0 branch upstream
181 #Patch202: 0202-radeon-llvm-Cleanup-makefile.patch
182 #Patch203: 0203-radeon-llvm-Remove-R600InstrInfo.td-from-TD_FILES.patch
183
184 # Patches "liberated" from Fedora:
185 # http://cvs.fedoraproject.org/viewvc/rpms/mesa/devel/
186 # git format-patch --start-number 300 mdv-cherry-picks..mdv-redhat
187
188 # Patches from ChromiumOS
189 # http://git.chromium.org/gitweb/?p=chromiumos/overlays/chromiumos-overlay.git;a=tree;f=media-libs/mesa/files;hb=HEAD
190
191 # Mageia/Mandriva patches
192 # git format-patch --start-number 900 mdv-redhat..mdv-patches
193 # (blino) llvmpipe test programs link fails when ld --as-needed option is used, reported as fdo #52167
194 Patch901: 0901-gallium-only-link-static-archives-between-ld-start-e.patch
195
196
197 #------------------------------------------------------------------------------
198
199 # package mesa
200 License: MIT
201 Requires: %{libglname} = %{version}-%{release}
202 Provides: hackMesa = %{version}
203 Obsoletes: hackMesa <= %{version}
204 Provides: Mesa = %{version}
205 Obsoletes: Mesa < %{version}
206
207 %package -n %{libdricorename}
208 Summary: Shared library for DRI drivers
209 Group: System/Libraries
210 Provides: %{libdricorename_virt} = %{version}-%{release}
211
212 %package -n %{libdricorename}-devel
213 Summary: Development files for DRI core
214 Group: Development/C
215 Requires: %{libdricorename} = %{version}-%{release}
216 Provides: lib%{dricorename}-devel = %{version}-%{release}
217 Provides: %{dricorename}-devel = %{version}-%{release}
218
219 %package -n %{libglname}
220 Summary: Files for Mesa (GL and GLX libs)
221 Group: System/Libraries
222 Obsoletes: %{oldlibglname} < 6.4
223 Provides: %{oldlibglname} = %{version}-%{release}
224 Provides: %{libglname_virt} = %{version}-%{release}
225 Requires: %{dridrivers} >= %{version}-%{release}
226 %if %{build_plf}
227 Requires: %mklibname txc-dxtn
228 %endif
229
230 # (anssi) Forces the upgrade of x11-server-common to happen before
231 # alternatives removal, which allows x11-server-common to grab the symlink.
232 Conflicts: x11-server-common < 1.3.0.0-17
233
234 %package -n %{dridrivers}
235 Summary: Mesa DRI drivers
236 Group: System/Libraries
237 # do not require exact release to avoid conflicts when having
238 # x86_64 dri drivers from tainted and i586 dri drivers from core
239 Requires: mesa = %{version}
240 Conflicts: %{_lib}MesaGL1 < 7.7-5
241 Obsoletes: %{_lib}dri-drivers-experimental < 7.11.2-4
242 Provides: %{_lib}dri-drivers-experimental = %{version}-%{release}
243
244 %package -n %{libglname}-devel
245 Summary: Development files for Mesa (OpenGL compatible 3D lib)
246 Group: Development/C
247 Requires: %{libglname} = %{version}-%{release}
248 Provides: lib%{glname}-devel = %{version}-%{release}
249 Provides: %{glname}-devel = %{version}-%{release}
250 Provides: GL-devel
251 Obsoletes: %{oldlibglname}-devel < 6.4
252 Provides: %{oldlibglname}-devel = %{version}-%{release}
253 Provides: libMesaGL-devel = %{version}-%{release}
254 Provides: MesaGL-devel = %{version}-%{release}
255 Provides: libgl-devel
256
257 %if %{enable_egl}
258 %package -n %{libeglname}
259 Summary: Files for Mesa (EGL libs)
260 Group: System/Libraries
261 Provides: %{libeglname_virt} = %{version}-%{release}
262
263 %package -n %{libeglname}-devel
264 Summary: Development files for Mesa (EGL libs)
265 Group: Development/C
266 Requires: %{libeglname} = %{version}-%{release}
267 Provides: EGL-devel
268 Provides: lib%{eglname}-devel
269 Provides: %{eglname}-devel
270 Provides: libegl-devel
271 %endif
272
273 %package -n %{libosmesaname}
274 Summary: Mesa offscreen rendering library
275 Group: System/Libraries
276
277 %package -n %{osmesadevel}
278 Summary: Development files for libosmesa
279 Group: Development/C
280 Requires: %{libosmesaname} = %{version}-%{release}
281 Provides: osmesa-devel = %{version}-%{release}
282 Conflicts: MesaGL-devel < 8.1.0-0.git20120727.3
283
284 %package -n %{libglapiname}
285 Summary: Files for mesa (glapi libs)
286 Group: System/Libraries
287 Provides: %{libglapiname_virt} = %{version}-%{release}
288
289 %package -n %{libglapiname}-devel
290 Summary: Development files for glapi libs
291 Group: Development/C
292 Requires: %{libglapiname_virt} = %{version}-%{release}
293 Provides: lib%{glapiname}-devel
294 Provides: %{libglapiname}-devel
295
296 %package -n %{libglesv1name}
297 Summary: Files for Mesa (glesv1 libs)
298 Group: System/Libraries
299 Provides: %{libglesv1name_virt} = %{version}-%{release}
300
301 %package -n %{libglesv1name}-devel
302 Summary: Development files for glesv1 libs
303 Group: Development/C
304 Requires: %{libglesv1name} = %{version}-%{release}
305 Provides: lib%{glesv1name}-devel
306 Provides: %{glesv1name}-devel
307 Provides: libglesv1-devel
308
309 %package -n %{libglesv2name}
310 Summary: Files for Mesa (glesv2 libs)
311 Group: System/Libraries
312 Provides: %{libglesv2name_virt} = %{version}-%{release}
313
314 %package -n %{libglesv2name}-devel
315 Summary: Development files for glesv2 libs
316 Group: Development/C
317 Requires: %{libglesv2name} = %{version}-%{release}
318 Requires: %{libeglname}-devel = %{version}-%{release}
319 Provides: lib%{glesv2name}-devel
320 Provides: %{glesv2name}-devel
321 Provides: libglesv2-devel
322
323 %package -n %{libopenvgname}
324 Summary: Files for MESA (OpenVG libs)
325 Group: System/Libraries
326 Provides: %{libopenvgname_virt} = %{version}-%{release}
327
328 %package -n %{libopenvgname}-devel
329 Summary: Development files vor OpenVG libs
330 Group: Development/C
331 Requires: %{libopenvgname} = %{version}-%{release}
332 Provides: lib%{openvgname}-devel
333 Provides: %{openvgname}-devel
334 Provides: libopenvg-devel
335
336 %if %{enable_wayland}
337 %package -n %{libgbmname}
338 Summary: Files for Mesa (gbm libs)
339 Group: System/Libraries
340 Provides: %{libgbmname_virt} = %{version}-%{release}
341
342 %package -n %{libgbmname}-devel
343 Summary: Development files for Mesa (gbm libs)
344 Group: Development/C
345 Requires: %{libgbmname} = %{version}-%{release}
346 Provides: lib%{gbmname}-devel
347 Provides: %{gbmname}-devel
348
349 %package -n %{libwaylandeglname}
350 Summary: Files for Mesa (Wayland EGL libs)
351 Group: System/Libraries
352 Provides: %{libwaylandeglname_virt} = %{version}-%{release}
353
354 %package -n %{libwaylandeglname}-devel
355 Summary: Development files for Mesa (Wayland EGL libs)
356 Group: Development/C
357 Requires: %{libwaylandeglname} = %{version}-%{release}
358 Provides: lib%{waylandeglname}-devel
359 Provides: %{waylandeglname}-devel
360 %endif
361
362 %package -n %{_lib}vdpau-driver-nouveau
363 Summary: VDPAU plugin for nouveau driver
364 Group: System/Libraries
365 # temporary:
366 %rename vdpau-driver-nouveau
367
368 %package -n %{_lib}vdpau-driver-r300
369 Summary: VDPAU plugin for r300 driver
370 Group: System/Libraries
371 # temporary:
372 %rename vdpau-driver-r300
373
374 %package -n %{_lib}vdpau-driver-r600
375 Summary: VDPAU plugin for r600 driver
376 Group: System/Libraries
377 # temporary:
378 %rename vdpau-driver-r600
379
380 %package -n %{_lib}vdpau-driver-radeonsi
381 Summary: VDPAU plugin for radeonsi driver
382 Group: System/Libraries
383 # temporary:
384 %rename vdpau-driver-radeonsi
385
386 %package -n %{_lib}vdpau-driver-softpipe
387 Summary: VDPAU plugin for softpipe driver
388 Group: System/Libraries
389 # temporary:
390 %rename vdpau-driver-softpipe
391
392 %package common-devel
393 Summary: Meta package for mesa devel
394 Group: Development/C
395 Provides: Mesa-common-devel = %{version}-%{release}
396 Provides: hackMesa-common-devel = %{version}
397 Obsoletes: Mesa-common-devel < %{version}
398 Obsoletes: hackMesa-common-devel < %{version}
399 Requires: %{libglname}-devel = %{version}
400 Requires: mesaglu-devel
401 Requires: freeglut-devel
402 Requires: %{libeglname}-devel = %{version}
403 Requires: %{libglesv1name}-devel = %{version}
404 Requires: %{libglesv2name}-devel = %{version}
405
406 #------------------------------------------------------------------------------
407
408 %description
409 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
410 %if %{build_plf}
411
412 This package is in the "tainted" section because it enables some
413 OpenGL extentions that are covered by software patents.
414 %endif
415
416 %description common-devel
417 Mesa common metapackage devel
418
419 %if %{enable_egl}
420 %description -n %{libeglname}
421 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
422 EGL parts.
423
424 %description -n %{libeglname}-devel
425 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
426 EGL development parts.
427 %endif
428
429 %description -n %{libdricorename}
430 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
431 DRI core part.
432
433 %description -n %{libglname}
434 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
435 GL and GLX parts.
436
437 %if %{build_plf}
438 This package is in the "tainted" section because it enables some
439 OpenGL extentions that are covered by software patents.
440 %endif
441
442 %description -n %{dridrivers}
443 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
444 DRI drivers.
445
446 %description -n %{libdricorename}-devel
447 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
448
449 This package contains the headers needed to compile DRI drivers.
450
451 %description -n %{libglname}-devel
452 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
453
454 This package contains the headers needed to compile Mesa programs.
455
456 %description -n %{libglesv1name}
457 OpenGL ES is a low-level, lightweight API for advanced embedded graphics using
458 well-defined subset profiles of OpenGL.
459
460 This package provides the OpenGL ES library version 1.
461
462 %description -n %{libosmesaname}
463 Mesa offscreen rendering libraries for rendering OpenGL into
464 application-allocated blocks of memory.
465
466 %description -n %{osmesadevel}
467 This package contains the headers needed to compile programs against
468 the Mesa offscreen rendering library.
469
470 %description -n %{libglapiname}
471 This packages provides the glapi shared library used by gallium.
472
473 %description -n %{libglapiname}-devel
474 This package contains the headers needed to compile programes against glapi shared library.
475
476 %description -n %{libglesv1name}-devel
477 This package contains the headers needed to compile OpenGL ES 1 programs.
478
479 %description -n %{libglesv2name}
480 OpenGL ES is a low-level, lightweight API for advanced embedded graphics using
481 well-defined subset profiles of OpenGL.
482
483 This package provides the OpenGL ES library version 2.
484
485 %description -n %{libglesv2name}-devel
486 This package contains the headers needed to compile OpenGL ES 2 programs.
487
488 %description -n %{libopenvgname}
489 OpenVG is a royalty-free, cross-platform API that provides a low-level hardware
490 acceleration interface for vector graphics libraries such as Flash and SVG.
491
492 %description -n %{libopenvgname}-devel
493 Development files for OpenVG library.
494
495 %if %{enable_wayland}
496 %description -n %{libgbmname}
497 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
498 GBM (Graphics Buffer Manager) parts.
499
500 %description -n %{libgbmname}-devel
501 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
502 GBM (Graphics Buffer Manager) development parts.
503
504 %description -n %{libwaylandeglname}
505 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
506 Wayland EGL platform parts.
507
508 %description -n %{libwaylandeglname}-devel
509 Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
510 Wayland EGL platform development parts.
511 %endif
512
513 %description -n %{_lib}vdpau-driver-nouveau
514 This packages provides a VPDAU plugin to enable video acceleration
515 with the nouveau driver.
516
517 %description -n %{_lib}vdpau-driver-r300
518 This packages provides a VPDAU plugin to enable video acceleration
519 with the r300 driver.
520
521 %description -n %{_lib}vdpau-driver-r600
522 This packages provides a VPDAU plugin to enable video acceleration
523 with the r600 driver.
524
525 %description -n %{_lib}vdpau-driver-radeonsi
526 This packages provides a VPDAU plugin to enable video acceleration
527 with the radeonsi driver.
528
529 %description -n %{_lib}vdpau-driver-softpipe
530 This packages provides a VPDAU plugin to enable video acceleration
531 with the softpipe driver.
532
533 #------------------------------------------------------------------------------
534
535 %prep
536 %if %{git}
537 %setup -q -n mesa-%{git_branch}-%{git}
538 %else
539 %setup -q -n Mesa-%{fversion}%{vsuffix}
540 %endif
541
542 %apply_patches
543 autoreconf -vfi
544
545 %build
546 # fix build - TODO: should this be fixed in llvm somehow, or maybe the library
547 # symlinks should be moved to %{_libdir}? -Anssi 08/2012
548 export LDFLAGS="-L%{_libdir}/llvm"
549
550 %configure2_5x --enable-dri \
551 --enable-glx \
552 --with-dri-driverdir=%{driver_dir} \
553 --with-dri-drivers="%{dri_drivers}" \
554 --enable-shared-dricore \
555 %if %{enable_egl}
556 --enable-egl \
557 %else
558 --disable-egl \
559 %endif
560 %if %{enable_wayland}
561 --with-egl-platforms=x11,wayland,drm \
562 --enable-gbm \
563 --enable-shared-glapi \
564 %endif
565 --enable-gles1 \
566 --enable-gles2 \
567 --enable-openvg \
568 --enable-gallium-egl \
569 --enable-gallium-g3dvl \
570 --enable-osmesa \
571 --disable-xvmc \
572 --enable-vdpau \
573 --disable-va \
574 %if %{with_hardware}
575 --with-gallium-drivers=r300,r600,radeonsi,nouveau,swrast \
576 --enable-gallium-llvm \
577 %else
578 --disable-gallium-llvm \
579 --with-gallium-drivers=swrast \
580 %endif
581 %if %{build_plf}
582 --enable-texture-float \
583 %endif
584 # end of configure options
585
586 %make
587
588 %install
589 %makeinstall_std
590
591 # FIXME: strip will likely break the hardlink
592 # (blino) hardlink libGL files in %{_libdir}/mesa
593 # to prevent proprietary driver installers from removing them
594 mkdir -p $RPM_BUILD_ROOT%{_libdir}/mesa
595 pushd $RPM_BUILD_ROOT%{_libdir}/mesa
596 for l in ../libGL.so.*; do cp -a $l .; done
597 popd
598
599 %ifarch %{x86_64}
600 mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/dri
601 %endif
602
603 # .so files are not needed by vdpau
604 rm -f %{buildroot}%{_libdir}/vdpau/libvdpau_*.so
605
606 # .la files are not needed by mesa
607 find %{buildroot} -name '*.la' -exec rm {} \;
608
609 # use swrastg if built (Anssi 12/2011)
610 [ -e %{buildroot}%{_libdir}/dri/swrastg_dri.so ] && mv %{buildroot}%{_libdir}/dri/swrast{g,}_dri.so
611
612 #------------------------------------------------------------------------------
613
614 %files
615 %defattr(-,root,root)
616 %doc docs/COPYING
617 %config(noreplace) %{_sysconfdir}/drirc
618
619 %files -n %{libdricorename}
620 %{_libdir}/libdricore%{version}.so.%{dricoremajor}
621 %{_libdir}/libdricore%{version}.so.%{dricoremajor}.*
622
623 %files -n %{libdricorename}-devel
624 %{_libdir}/libdricore%{version}.so
625
626 %files -n %{dridrivers}
627 %defattr(-,root,root)
628 %doc docs/COPYING
629 %ifnarch ppc64
630 %dir %{_libdir}/dri
631 # (blino) new mesa 8.1 build system seems to use a static libglsl
632 #%{_libdir}/dri/libglsl.so
633 %{_libdir}/dri/*_dri.so
634 %endif
635
636 %files -n %{libglname}
637 %defattr(-,root,root)
638 %doc docs/COPYING
639 %{_libdir}/libGL.so.*
640 %dir %{_libdir}/mesa
641 %{_libdir}/mesa/libGL.so.%{glmajor}*
642
643 %if %{enable_egl}
644 %files -n %{libeglname}
645 %defattr(-,root,root)
646 %doc docs/COPYING
647 %{_libdir}/libEGL.so.%{eglmajor}*
648 %dir %{_libdir}/egl
649 %if !%{enable_wayland}
650 # st_GL, built only when shared glapi is not enabled
651 %{_libdir}/egl/st_GL.so
652 %endif
653 %{_libdir}/egl/egl_gallium.so
654 %endif
655
656 %files -n %{libosmesaname}
657 %defattr(-,root,root)
658 %{_libdir}/libOSMesa.so.%{osmesamajor}*
659
660 %files -n %{libglapiname}
661 %defattr(-,root,root)
662 %{_libdir}/libglapi.so.%{glapimajor}*
663
664 %files -n %{libglesv1name}
665 %defattr(-,root,root)
666 %doc docs/COPYING
667 %{_libdir}/libGLESv1_CM.so.%{glesv1major}*
668
669 %files -n %{libglesv2name}
670 %defattr(-,root,root)
671 %doc docs/COPYING
672 %{_libdir}/libGLESv2.so.%{glesv2major}*
673
674 %files -n %{libopenvgname}
675 %defattr(-,root,root)
676 %doc docs/COPYING
677 %{_libdir}/libOpenVG.so.%{openvgmajor}*
678
679 %if %{enable_wayland}
680 %files -n %{libgbmname}
681 %{_libdir}/libgbm.so.%{gbmmajor}
682 %{_libdir}/libgbm.so.%{gbmmajor}.*
683 %{_libdir}/gbm/gbm_*.so
684 %{_libdir}/gbm/pipe_*.so
685
686 %files -n %{libwaylandeglname}
687 %{_libdir}/libwayland-egl.so.%{waylandeglmajor}
688 %{_libdir}/libwayland-egl.so.%{waylandeglmajor}.*
689 %endif
690
691
692 %files -n %{libglname}-devel
693 %defattr(-,root,root)
694 %doc docs/COPYING
695 %dir %{_includedir}/GL
696 %{_includedir}/GL/gl.h
697 %{_includedir}/GL/glext.h
698 %{_includedir}/GL/gl_mangle.h
699 %{_includedir}/GL/wglext.h
700 %{_includedir}/GL/glx.h
701 %{_includedir}/GL/glxext.h
702 %{_includedir}/GL/glx_mangle.h
703 %{_libdir}/libGL.so
704 %{_libdir}/pkgconfig/gl.pc
705 %{_libdir}/pkgconfig/dri.pc
706
707 #FIXME: check those headers
708 %{_includedir}/GL/vms_x_fix.h
709 %{_includedir}/GL/wmesa.h
710 %dir %{_includedir}/GL/internal
711 %{_includedir}/GL/internal/dri_interface.h
712
713 %files common-devel
714 %defattr(-,root,root)
715
716 %if %{enable_egl}
717 %files -n %{libeglname}-devel
718 %defattr(-,root,root)
719 %doc docs/COPYING
720 %{_includedir}/EGL
721 %{_includedir}/KHR
722 %{_libdir}/libEGL.so
723 %{_libdir}/pkgconfig/egl.pc
724 %endif
725
726 %files -n %{osmesadevel}
727 %defattr(-,root,root)
728 %dir %{_includedir}/GL
729 %{_includedir}/GL/osmesa.h
730 %{_libdir}/libOSMesa.so
731 %{_libdir}/pkgconfig/osmesa.pc
732
733 %files -n %{libglapiname}-devel
734 %defattr(-,root,root)
735 %{_libdir}/libglapi.so
736
737 %files -n %{libglesv1name}-devel
738 %defattr(-,root,root)
739 %{_includedir}/GLES
740 %{_libdir}/libGLESv1_CM.so
741 %{_libdir}/pkgconfig/glesv1_cm.pc
742
743 %files -n %{libglesv2name}-devel
744 %defattr(-,root,root)
745 %{_includedir}/GLES2
746 %{_libdir}/libGLESv2.so
747 %{_libdir}/pkgconfig/glesv2.pc
748
749 %files -n %{libopenvgname}-devel
750 %defattr(-,root,root)
751 %{_includedir}/VG
752 %{_libdir}/libOpenVG.so
753 %{_libdir}/pkgconfig/vg.pc
754
755 %if %{enable_wayland}
756 %files -n %{libgbmname}-devel
757 %{_includedir}/gbm.h
758 %{_libdir}/libgbm.so
759 %{_libdir}/pkgconfig/gbm.pc
760
761 %files -n %{libwaylandeglname}-devel
762 %{_libdir}/libwayland-egl.so
763 %{_libdir}/pkgconfig/wayland-egl.pc
764 %endif
765
766 %files -n %{_lib}vdpau-driver-nouveau
767 %{_libdir}/vdpau/libvdpau_nouveau.so.*
768
769 %files -n %{_lib}vdpau-driver-r300
770 %{_libdir}/vdpau/libvdpau_r300.so.*
771
772 %files -n %{_lib}vdpau-driver-r600
773 %{_libdir}/vdpau/libvdpau_r600.so.*
774
775 %files -n %{_lib}vdpau-driver-radeonsi
776 %{_libdir}/vdpau/libvdpau_radeonsi.so.*
777
778 %files -n %{_lib}vdpau-driver-softpipe
779 %{_libdir}/vdpau/libvdpau_softpipe.so.*

  ViewVC Help
Powered by ViewVC 1.1.30