1 |
|
%define bootstrap 0 |
2 |
|
%{?_without_bootstrap: %global bootstrap 0} |
3 |
|
%{?_with_bootstrap: %global bootstrap 1} |
4 |
|
|
5 |
# (cg) Cheater... |
# (cg) Cheater... |
6 |
%define Werror_cflags %nil |
%define Werror_cflags %nil |
7 |
|
|
78 |
%define dri_drivers_ia64 "i810,i915,i965,mga,r128,r200,radeon,swrast" |
%define dri_drivers_ia64 "i810,i915,i965,mga,r128,r200,radeon,swrast" |
79 |
%define dri_drivers_alpha "mga,r128,r200,radeon,swrast" |
%define dri_drivers_alpha "mga,r128,r200,radeon,swrast" |
80 |
%define dri_drivers_sparc "ffb,mach64,mga,radeon,savage,swrast" |
%define dri_drivers_sparc "ffb,mach64,mga,radeon,savage,swrast" |
81 |
%define dri_drivers_mipsel "mach64,mga,r128,r200,radeon,savage,tdfx" |
%define dri_drivers_mipsel "mach64,mga,r128,r200,radeon,savage,tdfx,swrast" |
82 |
|
%define dri_drivers_arm "swrast" |
83 |
%define dri_drivers %{expand:%{dri_drivers_%{_arch}}} |
%define dri_drivers %{expand:%{dri_drivers_%{_arch}}} |
84 |
|
|
85 |
Name: %{name} |
Name: %{name} |
105 |
BuildRequires: libxi-devel >= 1.3 |
BuildRequires: libxi-devel >= 1.3 |
106 |
BuildRequires: talloc-devel libxml2-python |
BuildRequires: talloc-devel libxml2-python |
107 |
|
|
108 |
|
%if !%bootstrap |
109 |
BuildRequires: libglew-devel |
BuildRequires: libglew-devel |
110 |
|
%endif |
111 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
112 |
URL: http://www.mesa3d.org |
URL: http://www.mesa3d.org |
113 |
%if %{git} |
%if %{git} |
149 |
Patch902: 0902-remove-unfinished-GLX_ARB_render_texture.patch |
Patch902: 0902-remove-unfinished-GLX_ARB_render_texture.patch |
150 |
Patch903: 0903-Fix-NULL-pointer-dereference-in-viaXMesaWindowMoved.patch |
Patch903: 0903-Fix-NULL-pointer-dereference-in-viaXMesaWindowMoved.patch |
151 |
Patch904: Mesa-7.9-salome.patch |
Patch904: Mesa-7.9-salome.patch |
152 |
|
Patch905: nouveau_push_buffers.patch |
153 |
|
|
154 |
Patch2004: mesa_652_mips.patch |
Patch2004: mesa_652_mips.patch |
155 |
|
|
363 |
%patch902 -p1 |
%patch902 -p1 |
364 |
%patch903 -p1 |
%patch903 -p1 |
365 |
%patch904 -p1 |
%patch904 -p1 |
366 |
|
%patch905 -p1 |
367 |
|
|
368 |
%patch2004 -p1 |
%patch2004 -p1 |
369 |
|
|
470 |
#%{_libdir}/dri/libdricore.so |
#%{_libdir}/dri/libdricore.so |
471 |
%{_libdir}/dri/*_dri.so |
%{_libdir}/dri/*_dri.so |
472 |
%exclude %{_libdir}/dri/nouveau_dri.so |
%exclude %{_libdir}/dri/nouveau_dri.so |
473 |
|
%ifnarch %arm %mips |
474 |
%exclude %{_libdir}/dri/nouveau_vieux_dri.so |
%exclude %{_libdir}/dri/nouveau_vieux_dri.so |
475 |
%endif |
%endif |
476 |
|
%endif |
477 |
|
|
478 |
%files -n %{dridrivers}-experimental |
%files -n %{dridrivers}-experimental |
479 |
%defattr(-,root,root) |
%defattr(-,root,root) |
480 |
%doc docs/COPYING |
%doc docs/COPYING |
481 |
%doc README.install.urpmi |
%doc README.install.urpmi |
482 |
%{_libdir}/dri/nouveau_dri.so |
%{_libdir}/dri/nouveau_dri.so |
483 |
|
%ifnarch %arm %mips |
484 |
%{_libdir}/dri/nouveau_vieux_dri.so |
%{_libdir}/dri/nouveau_vieux_dri.so |
485 |
|
%endif |
486 |
|
|
487 |
%files -n %{libglname}-devel |
%files -n %{libglname}-devel |
488 |
%defattr(-,root,root) |
%defattr(-,root,root) |