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

  ViewVC Help
Powered by ViewVC 1.1.30