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

  ViewVC Help
Powered by ViewVC 1.1.26