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

  ViewVC Help
Powered by ViewVC 1.1.30