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

  ViewVC Help
Powered by ViewVC 1.1.30