9 |
%define _disable_ld_no_undefined 1 |
%define _disable_ld_no_undefined 1 |
10 |
|
|
11 |
# freeglut should replace mesaglut soon |
# freeglut should replace mesaglut soon |
12 |
%define with_mesaglut 1 |
%define with_mesaglut 0 |
13 |
|
|
14 |
|
%define git 20110620 |
15 |
|
%define with_hardware 1 |
16 |
|
|
|
%define git 0 |
|
17 |
%define relc 0 |
%define relc 0 |
18 |
%define name mesa |
%define name mesa |
19 |
%define version 7.10.3 |
%define version 7.11 |
20 |
%define rel 1 |
%define rel 0 |
21 |
|
|
22 |
%define release %mkrel %{rel} |
%define release %mkrel %{rel} |
23 |
%define src_type tar.bz2 |
%define src_type tar.bz2 |
47 |
%define glesv1name mesaglesv1 |
%define glesv1name mesaglesv1 |
48 |
%define glesv2name mesaglesv2 |
%define glesv2name mesaglesv2 |
49 |
%define openvgname mesaopenvg |
%define openvgname mesaopenvg |
50 |
|
%define glapiname glapi |
51 |
|
|
52 |
%define eglmajor 1 |
%define eglmajor 1 |
53 |
%define glmajor 1 |
%define glmajor 1 |
57 |
%define glesv1major 1 |
%define glesv1major 1 |
58 |
%define glesv2major 2 |
%define glesv2major 2 |
59 |
%define openvgmajor 1 |
%define openvgmajor 1 |
60 |
|
%define glapimajor 0 |
61 |
|
|
62 |
%define libeglname %mklibname %{eglname} %{eglmajor} |
%define libeglname %mklibname %{eglname} %{eglmajor} |
63 |
%define libglname %mklibname %{glname} %{glmajor} |
%define libglname %mklibname %{glname} %{glmajor} |
67 |
%define libglesv1name %mklibname %{glesv1name}_ %{glesv1major} |
%define libglesv1name %mklibname %{glesv1name}_ %{glesv1major} |
68 |
%define libglesv2name %mklibname %{glesv2name}_ %{glesv2major} |
%define libglesv2name %mklibname %{glesv2name}_ %{glesv2major} |
69 |
%define libopenvgname %mklibname %{openvgname} %{openvgmajor} |
%define libopenvgname %mklibname %{openvgname} %{openvgmajor} |
70 |
|
%define libglapiname %mklibname %{glapiname} %{glapimajor} |
71 |
|
|
72 |
%define dridrivers %mklibname dri-drivers |
%define dridrivers %mklibname dri-drivers |
73 |
|
|
80 |
%define libglesv1name_virt lib%{glesv1name} |
%define libglesv1name_virt lib%{glesv1name} |
81 |
%define libglesv2name_virt lib%{glesv2name} |
%define libglesv2name_virt lib%{glesv2name} |
82 |
%define libopenvgname_virt lib%{openvgname} |
%define libopenvgname_virt lib%{openvgname} |
83 |
|
%define libglapiname_virt lib%{glapiname} |
84 |
|
|
85 |
%define oldlibglname %mklibname MesaGL 1 |
%define oldlibglname %mklibname MesaGL 1 |
86 |
%define oldlibgluname %mklibname MesaGLU 1 |
%define oldlibgluname %mklibname MesaGLU 1 |
128 |
BuildRequires: libxml2-python |
BuildRequires: libxml2-python |
129 |
BuildRequires: makedepend |
BuildRequires: makedepend |
130 |
BuildRequires: bison flex |
BuildRequires: bison flex |
131 |
|
BuildRequires: llvm |
132 |
|
|
133 |
URL: http://www.mesa3d.org |
URL: http://www.mesa3d.org |
134 |
%if %{git} |
%if %{git} |
303 |
Provides: libegl-devel |
Provides: libegl-devel |
304 |
%endif |
%endif |
305 |
|
|
306 |
|
%package -n %{libglapiname} |
307 |
|
Summary: Files for mesa (glapi libs) |
308 |
|
Group: System/Libraries |
309 |
|
Provides: %{libglapiname_virt} = %{version}-%{release} |
310 |
|
|
311 |
|
%package -n %{libglapiname}-devel |
312 |
|
Summary: Development files for glapi libs |
313 |
|
Group: Development/C |
314 |
|
Requires: %{libglapiname_virt} = %{version}-%{release} |
315 |
|
Provides: lib%{glapiname}-devel |
316 |
|
Provides: %{libglapiname}-devel |
317 |
|
|
318 |
%package -n %{libglesv1name} |
%package -n %{libglesv1name} |
319 |
Summary: Files for Mesa (glesv1 libs) |
Summary: Files for Mesa (glesv1 libs) |
451 |
|
|
452 |
This package provides the OpenGL ES library version 1. |
This package provides the OpenGL ES library version 1. |
453 |
|
|
454 |
|
%description -n %{libglapiname} |
455 |
|
This packages provides the glapi shared library used by gallium. |
456 |
|
|
457 |
|
%description -n %{libglapiname}-devel |
458 |
|
This package contains the headers needed to compile programes against glapi shared library. |
459 |
|
|
460 |
%description -n %{libglesv1name}-devel |
%description -n %{libglesv1name}-devel |
461 |
This package contains the headers needed to compile OpenGL ES 1 programs. |
This package contains the headers needed to compile OpenGL ES 1 programs. |
462 |
|
|
486 |
%endif |
%endif |
487 |
|
|
488 |
%patch201 -p1 |
%patch201 -p1 |
489 |
%patch202 -p1 |
#%patch202 -p1 |
490 |
|
|
491 |
%patch300 -p1 |
#%patch300 -p1 |
492 |
## (Anssi 03/2010) FIXME: Currently results in either missing NEEDED tag or |
## (Anssi 03/2010) FIXME: Currently results in either missing NEEDED tag or |
493 |
## NEEDED tag with '../../../../../lib/libdricore.so', while NEEDED tag of libdricore.so |
## NEEDED tag with '../../../../../lib/libdricore.so', while NEEDED tag of libdricore.so |
494 |
## is wanted. |
## is wanted. |
495 |
#%patch301 -p1 |
#%patch301 -p1 |
496 |
|
|
497 |
%patch902 -p1 |
#%patch902 -p1 |
498 |
%patch903 -p1 |
#%patch903 -p1 |
499 |
%patch904 -p1 |
#%patch904 -p1 |
500 |
|
|
501 |
%patch2004 -p1 |
#%patch2004 -p1 |
502 |
|
|
503 |
chmod +x %{SOURCE5} |
chmod +x %{SOURCE5} |
504 |
|
|
530 |
--enable-gles1 \ |
--enable-gles1 \ |
531 |
--enable-gles2 \ |
--enable-gles2 \ |
532 |
--enable-openvg \ |
--enable-openvg \ |
533 |
|
--enable-gallium-egl \ |
534 |
|
%if %{with_hardware} |
535 |
|
--with-gallium-drivers=r300,r600,nouveau,swrast \ |
536 |
|
--enable-gallium-llvm \ |
537 |
|
%else |
538 |
|
--disable-gallium-llvm \ |
539 |
|
--with-gallium-drivers=swrast \ |
540 |
|
%endif |
541 |
%if %{with_mesaglut} |
%if %{with_mesaglut} |
542 |
--enable-glut |
--enable-glut |
543 |
%else |
%else |
628 |
%doc docs/COPYING |
%doc docs/COPYING |
629 |
%{_libdir}/libEGL.so.%{eglmajor}* |
%{_libdir}/libEGL.so.%{eglmajor}* |
630 |
%dir %{_libdir}/egl |
%dir %{_libdir}/egl |
631 |
%{_libdir}/egl/egl_dri2.so |
%{_libdir}/egl/egl_gallium.so |
632 |
%{_libdir}/egl/egl_glx.so |
%{_libdir}/egl/pipe_nouveau.so |
633 |
|
%{_libdir}/egl/pipe_r300.so |
634 |
|
%{_libdir}/egl/pipe_r600.so |
635 |
|
%{_libdir}/egl/pipe_swrast.so |
636 |
|
%{_libdir}/egl/st_GL.so |
637 |
|
%{_libdir}/egl/st_OpenVG.so |
638 |
%endif |
%endif |
639 |
|
|
640 |
|
%files -n %{libglapiname} |
641 |
|
%defattr(-,root,root) |
642 |
|
%{_libdir}/libglapi.so.%{glapimajor}* |
643 |
|
|
644 |
%files -n %{libglesv1name} |
%files -n %{libglesv1name} |
645 |
%defattr(-,root,root) |
%defattr(-,root,root) |
646 |
%doc docs/COPYING |
%doc docs/COPYING |
721 |
%{_libdir}/pkgconfig/egl.pc |
%{_libdir}/pkgconfig/egl.pc |
722 |
%endif |
%endif |
723 |
|
|
724 |
|
%files -n %{libglapiname}-devel |
725 |
|
%defattr(-,root,root) |
726 |
|
%{_libdir}/libglapi.so |
727 |
|
|
728 |
%files -n %{libglesv1name}-devel |
%files -n %{libglesv1name}-devel |
729 |
%defattr(-,root,root) |
%defattr(-,root,root) |