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

  ViewVC Help
Powered by ViewVC 1.1.26