21 |
%define relc 0 |
%define relc 0 |
22 |
%define name mesa |
%define name mesa |
23 |
%define version 8.0.1 |
%define version 8.0.1 |
24 |
%define rel 1 |
%define rel 2 |
25 |
|
|
26 |
%define release %mkrel %{rel} |
%define release %mkrel %{rel} |
27 |
%define src_type tar.bz2 |
%define src_type tar.bz2 |
52 |
%define glesv2name mesaglesv2 |
%define glesv2name mesaglesv2 |
53 |
%define openvgname mesaopenvg |
%define openvgname mesaopenvg |
54 |
%define glapiname glapi |
%define glapiname glapi |
55 |
|
%define gbmname gbm |
56 |
|
%define waylandeglname wayland-egl |
57 |
|
|
58 |
%define eglmajor 1 |
%define eglmajor 1 |
59 |
%define glmajor 1 |
%define glmajor 1 |
63 |
%define glesv2major 2 |
%define glesv2major 2 |
64 |
%define openvgmajor 1 |
%define openvgmajor 1 |
65 |
%define glapimajor 0 |
%define glapimajor 0 |
66 |
|
%define gbmmajor 1 |
67 |
|
%define waylandeglmajor 1 |
68 |
|
|
69 |
%define libeglname %mklibname %{eglname} %{eglmajor} |
%define libeglname %mklibname %{eglname} %{eglmajor} |
70 |
%define libglname %mklibname %{glname} %{glmajor} |
%define libglname %mklibname %{glname} %{glmajor} |
74 |
%define libglesv2name %mklibname %{glesv2name}_ %{glesv2major} |
%define libglesv2name %mklibname %{glesv2name}_ %{glesv2major} |
75 |
%define libopenvgname %mklibname %{openvgname} %{openvgmajor} |
%define libopenvgname %mklibname %{openvgname} %{openvgmajor} |
76 |
%define libglapiname %mklibname %{glapiname} %{glapimajor} |
%define libglapiname %mklibname %{glapiname} %{glapimajor} |
77 |
|
%define libgbmname %mklibname %{gbmname} %{gbmmajor} |
78 |
|
%define libwaylandeglname %mklibname %{waylandeglname} %{waylandeglmajor} |
79 |
|
|
80 |
%define dridrivers %mklibname dri-drivers |
%define dridrivers %mklibname dri-drivers |
81 |
|
|
88 |
%define libglesv2name_virt lib%{glesv2name} |
%define libglesv2name_virt lib%{glesv2name} |
89 |
%define libopenvgname_virt lib%{openvgname} |
%define libopenvgname_virt lib%{openvgname} |
90 |
%define libglapiname_virt lib%{glapiname} |
%define libglapiname_virt lib%{glapiname} |
91 |
|
%define libgbmname_virt lib%{gbmname} |
92 |
|
%define libwaylandeglname_virt lib%{waylandeglname} |
93 |
|
|
94 |
%define oldlibglname %mklibname MesaGL 1 |
%define oldlibglname %mklibname MesaGL 1 |
95 |
%define oldlibgluname %mklibname MesaGLU 1 |
%define oldlibgluname %mklibname MesaGLU 1 |
98 |
%define driver_dir %{_libdir}/dri |
%define driver_dir %{_libdir}/dri |
99 |
|
|
100 |
%define enable_egl 1 |
%define enable_egl 1 |
101 |
|
%define enable_wayland 1 |
102 |
|
|
103 |
#FIXME: (for 386/485) unset SSE, MMX and 3dnow flags |
#FIXME: (for 386/485) unset SSE, MMX and 3dnow flags |
104 |
#FIXME: (for >=i586) disable sse |
#FIXME: (for >=i586) disable sse |
139 |
BuildRequires: bison flex |
BuildRequires: bison flex |
140 |
BuildRequires: llvm |
BuildRequires: llvm |
141 |
BuildRequires: pkgconfig(libudev) |
BuildRequires: pkgconfig(libudev) |
142 |
|
%if %{enable_wayland} |
143 |
|
BuildRequires: wayland-devel |
144 |
|
%endif |
145 |
|
|
146 |
URL: http://www.mesa3d.org |
URL: http://www.mesa3d.org |
147 |
%if %{git} |
%if %{git} |
317 |
Provides: %{openvgname}-devel |
Provides: %{openvgname}-devel |
318 |
Provides: libopenvg-devel |
Provides: libopenvg-devel |
319 |
|
|
320 |
|
%if %{enable_wayland} |
321 |
|
%package -n %{libgbmname} |
322 |
|
Summary: Files for Mesa (gbm libs) |
323 |
|
Group: System/Libraries |
324 |
|
Provides: %{libgbmname_virt} = %{version}-%{release} |
325 |
|
|
326 |
|
%package -n %{libgbmname}-devel |
327 |
|
Summary: Development files for Mesa (gbm libs) |
328 |
|
Group: Development/C |
329 |
|
Requires: %{libgbmname} = %{version}-%{release} |
330 |
|
Provides: lib%{gbmname}-devel |
331 |
|
Provides: %{gbmname}-devel |
332 |
|
|
333 |
|
%package -n %{libwaylandeglname} |
334 |
|
Summary: Files for Mesa (Wayland EGL libs) |
335 |
|
Group: System/Libraries |
336 |
|
Provides: %{libwaylandeglname_virt} = %{version}-%{release} |
337 |
|
|
338 |
|
%package -n %{libwaylandeglname}-devel |
339 |
|
Summary: Development files for Mesa (Wayland EGL libs) |
340 |
|
Group: Development/C |
341 |
|
Requires: %{libwaylandeglname} = %{version}-%{release} |
342 |
|
Provides: lib%{waylandeglname}-devel |
343 |
|
Provides: %{waylandeglname}-devel |
344 |
|
%endif |
345 |
|
|
346 |
%package common-devel |
%package common-devel |
347 |
Summary: Meta package for mesa devel |
Summary: Meta package for mesa devel |
348 |
Group: Development/C |
Group: Development/C |
438 |
%description -n %{libopenvgname}-devel |
%description -n %{libopenvgname}-devel |
439 |
Development files for OpenVG library. |
Development files for OpenVG library. |
440 |
|
|
441 |
|
%if %{enable_wayland} |
442 |
|
%description -n %{libgbmname} |
443 |
|
Mesa is an OpenGL 2.1 compatible 3D graphics library. |
444 |
|
GBM (Graphics Buffer Manager) parts. |
445 |
|
|
446 |
|
%description -n %{libgbmname}-devel |
447 |
|
Mesa is an OpenGL 2.1 compatible 3D graphics library. |
448 |
|
GBM (Graphics Buffer Manager) development parts. |
449 |
|
|
450 |
|
%description -n %{libwaylandeglname} |
451 |
|
Mesa is an OpenGL 2.1 compatible 3D graphics library. |
452 |
|
Wayland EGL platform parts. |
453 |
|
|
454 |
|
%description -n %{libwaylandeglname}-devel |
455 |
|
Mesa is an OpenGL 2.1 compatible 3D graphics library. |
456 |
|
Wayland EGL platform development parts. |
457 |
|
%endif |
458 |
|
|
459 |
#------------------------------------------------------------------------------ |
#------------------------------------------------------------------------------ |
460 |
|
|
461 |
%prep |
%prep |
494 |
%else |
%else |
495 |
--disable-egl \ |
--disable-egl \ |
496 |
%endif |
%endif |
497 |
|
%if %{enable_wayland} |
498 |
|
--with-egl-platforms=x11,wayland,drm \ |
499 |
|
--enable-gbm \ |
500 |
|
--enable-shared-glapi \ |
501 |
|
%endif |
502 |
--enable-gles1 \ |
--enable-gles1 \ |
503 |
--enable-gles2 \ |
--enable-gles2 \ |
504 |
--enable-openvg \ |
--enable-openvg \ |
571 |
%doc docs/COPYING |
%doc docs/COPYING |
572 |
%{_libdir}/libEGL.so.%{eglmajor}* |
%{_libdir}/libEGL.so.%{eglmajor}* |
573 |
%dir %{_libdir}/egl |
%dir %{_libdir}/egl |
574 |
|
%if !%{enable_wayland} |
575 |
|
# st_GL, built only when shared glapi is not enabled |
576 |
%{_libdir}/egl/st_GL.so |
%{_libdir}/egl/st_GL.so |
577 |
|
%endif |
578 |
%{_libdir}/egl/egl_gallium.so |
%{_libdir}/egl/egl_gallium.so |
579 |
%endif |
%endif |
580 |
|
|
597 |
%doc docs/COPYING |
%doc docs/COPYING |
598 |
%{_libdir}/libOpenVG.so.%{openvgmajor}* |
%{_libdir}/libOpenVG.so.%{openvgmajor}* |
599 |
|
|
600 |
|
%if %{enable_wayland} |
601 |
|
%files -n %{libgbmname} |
602 |
|
%{_libdir}/libgbm.so.%{gbmmajor} |
603 |
|
%{_libdir}/libgbm.so.%{gbmmajor}.0 |
604 |
|
%{_libdir}/gbm/gbm_*.so |
605 |
|
%{_libdir}/gbm/pipe_*.so |
606 |
|
|
607 |
|
%files -n %{libwaylandeglname} |
608 |
|
%{_libdir}/libwayland-egl.so.%{waylandeglmajor} |
609 |
|
%{_libdir}/libwayland-egl.so.%{waylandeglmajor}.0 |
610 |
|
%endif |
611 |
|
|
612 |
|
|
613 |
%files -n %{libglname}-devel |
%files -n %{libglname}-devel |
614 |
%defattr(-,root,root) |
%defattr(-,root,root) |
673 |
%{_includedir}/VG |
%{_includedir}/VG |
674 |
%{_libdir}/libOpenVG.so |
%{_libdir}/libOpenVG.so |
675 |
%{_libdir}/pkgconfig/vg.pc |
%{_libdir}/pkgconfig/vg.pc |
676 |
|
|
677 |
|
%if %{enable_wayland} |
678 |
|
%files -n %{libgbmname}-devel |
679 |
|
%{_includedir}/gbm.h |
680 |
|
%{_libdir}/libgbm.so |
681 |
|
%{_libdir}/pkgconfig/gbm.pc |
682 |
|
|
683 |
|
%files -n %{libwaylandeglname}-devel |
684 |
|
%{_libdir}/libwayland-egl.so |
685 |
|
%{_libdir}/pkgconfig/wayland-egl.pc |
686 |
|
%endif |