21 |
%define relc 0 |
%define relc 0 |
22 |
%define name mesa |
%define name mesa |
23 |
%define version 8.0.4 |
%define version 8.0.4 |
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 |
139 |
BuildRequires: bison flex |
BuildRequires: bison flex |
140 |
BuildRequires: llvm-devel |
BuildRequires: llvm-devel |
141 |
BuildRequires: pkgconfig(libudev) |
BuildRequires: pkgconfig(libudev) |
142 |
|
BuildRequires: pkgconfig(vdpau) |
143 |
%if %{enable_wayland} |
%if %{enable_wayland} |
144 |
BuildRequires: wayland-devel |
BuildRequires: wayland-devel |
145 |
%endif |
%endif |
368 |
Provides: %{waylandeglname}-devel |
Provides: %{waylandeglname}-devel |
369 |
%endif |
%endif |
370 |
|
|
371 |
|
%package -n vdpau-driver-nouveau |
372 |
|
Summary: VDPAU plugin for nouveau driver |
373 |
|
Group: System/Libraries |
374 |
|
|
375 |
|
%package -n vdpau-driver-r300 |
376 |
|
Summary: VDPAU plugin for r300 driver |
377 |
|
Group: System/Libraries |
378 |
|
|
379 |
|
%package -n vdpau-driver-r600 |
380 |
|
Summary: VDPAU plugin for r600 driver |
381 |
|
Group: System/Libraries |
382 |
|
|
383 |
|
%package -n vdpau-driver-softpipe |
384 |
|
Summary: VDPAU plugin for softpipe driver |
385 |
|
Group: System/Libraries |
386 |
|
|
387 |
%package common-devel |
%package common-devel |
388 |
Summary: Meta package for mesa devel |
Summary: Meta package for mesa devel |
389 |
Group: Development/C |
Group: Development/C |
497 |
Wayland EGL platform development parts. |
Wayland EGL platform development parts. |
498 |
%endif |
%endif |
499 |
|
|
500 |
|
%description -n vdpau-driver-nouveau |
501 |
|
This packages provides a VPDAU plugin to enable video acceleration |
502 |
|
with the nouveau driver. |
503 |
|
|
504 |
|
%description -n vdpau-driver-r300 |
505 |
|
This packages provides a VPDAU plugin to enable video acceleration |
506 |
|
with the r300 driver. |
507 |
|
|
508 |
|
%description -n vdpau-driver-r600 |
509 |
|
This packages provides a VPDAU plugin to enable video acceleration |
510 |
|
with the r600 driver. |
511 |
|
|
512 |
|
%description -n vdpau-driver-softpipe |
513 |
|
This packages provides a VPDAU plugin to enable video acceleration |
514 |
|
with the softpipe driver. |
515 |
|
|
516 |
#------------------------------------------------------------------------------ |
#------------------------------------------------------------------------------ |
517 |
|
|
518 |
%prep |
%prep |
580 |
--enable-gles2 \ |
--enable-gles2 \ |
581 |
--enable-openvg \ |
--enable-openvg \ |
582 |
--enable-gallium-egl \ |
--enable-gallium-egl \ |
583 |
|
--enable-gallium-g3dvl \ |
584 |
|
--disable-xvmc \ |
585 |
|
--enable-vdpau \ |
586 |
|
--disable-va \ |
587 |
%if %{with_hardware} |
%if %{with_hardware} |
588 |
--with-gallium-drivers=r300,r600,nouveau,swrast \ |
--with-gallium-drivers=r300,r600,nouveau,swrast \ |
589 |
--enable-gallium-llvm \ |
--enable-gallium-llvm \ |
616 |
rm -f %{buildroot}/%{_includedir}/GL/glut.h |
rm -f %{buildroot}/%{_includedir}/GL/glut.h |
617 |
rm -f %{buildroot}/%{_includedir}/GL/glutf90.h |
rm -f %{buildroot}/%{_includedir}/GL/glutf90.h |
618 |
|
|
619 |
|
# .so files are not needed by vdpau |
620 |
|
rm -f %{buildroot}%{_libdir}/vdpau/libvdpau_*.so |
621 |
|
|
622 |
# use swrastg if built (Anssi 12/2011) |
# use swrastg if built (Anssi 12/2011) |
623 |
[ -e %{buildroot}%{_libdir}/dri/swrastg_dri.so ] && mv %{buildroot}%{_libdir}/dri/swrast{g,}_dri.so |
[ -e %{buildroot}%{_libdir}/dri/swrastg_dri.so ] && mv %{buildroot}%{_libdir}/dri/swrast{g,}_dri.so |
624 |
|
|
769 |
%{_libdir}/libwayland-egl.so |
%{_libdir}/libwayland-egl.so |
770 |
%{_libdir}/pkgconfig/wayland-egl.pc |
%{_libdir}/pkgconfig/wayland-egl.pc |
771 |
%endif |
%endif |
772 |
|
|
773 |
|
%files -n vdpau-driver-nouveau |
774 |
|
%{_libdir}/vdpau/libvdpau_nouveau.so.* |
775 |
|
|
776 |
|
%files -n vdpau-driver-r300 |
777 |
|
%{_libdir}/vdpau/libvdpau_r300.so.* |
778 |
|
|
779 |
|
%files -n vdpau-driver-r600 |
780 |
|
%{_libdir}/vdpau/libvdpau_r600.so.* |
781 |
|
|
782 |
|
%files -n vdpau-driver-softpipe |
783 |
|
%{_libdir}/vdpau/libvdpau_softpipe.so.* |