/[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 300616 - (show annotations) (download)
Sat Sep 29 22:15:02 2012 UTC (12 years ago) by blino
File size: 21994 byte(s)
use System/Libraries group for vdpau drivers

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

  ViewVC Help
Powered by ViewVC 1.1.30