hack to disable vdpau in rhel until the package is imported

This commit is contained in:
Adam Jackson 2013-05-16 09:29:12 -04:00
parent 046ee83be3
commit 5e8f547234

View file

@ -2,6 +2,7 @@
%define with_private_llvm 1 %define with_private_llvm 1
%else %else
%define with_private_llvm 0 %define with_private_llvm 0
%define with_vdpau 1
%define with_wayland 1 %define with_wayland 1
%endif %endif
@ -109,7 +110,9 @@ BuildRequires: pkgconfig(wayland-client) >= %{min_wayland_version}
BuildRequires: pkgconfig(wayland-server) >= %{min_wayland_version} BuildRequires: pkgconfig(wayland-server) >= %{min_wayland_version}
%endif %endif
BuildRequires: mesa-libGL-devel BuildRequires: mesa-libGL-devel
%if 0%{?with_vdpau}
BuildRequires: libvdpau-devel BuildRequires: libvdpau-devel
%endif
BuildRequires: zlib-devel BuildRequires: zlib-devel
%description %description
@ -154,12 +157,14 @@ Obsoletes: mesa-dri-llvmcore <= 7.12
%description dri-drivers %description dri-drivers
Mesa-based DRI drivers. Mesa-based DRI drivers.
%if 0%{?with_vdpau}
%package vdpau-drivers %package vdpau-drivers
Summary: Mesa-based DRI drivers Summary: Mesa-based DRI drivers
Group: User Interface/X Hardware Support Group: User Interface/X Hardware Support
Requires: mesa-filesystem%{?_isa} Requires: mesa-filesystem%{?_isa}
%description vdpau-drivers %description vdpau-drivers
Mesa-based VDPAU drivers. Mesa-based VDPAU drivers.
%endif
%package -n khrplatform-devel %package -n khrplatform-devel
Summary: Khronos platform development package Summary: Khronos platform development package
@ -344,7 +349,7 @@ export CXXFLAGS="$RPM_OPT_FLAGS -fno-rtti -fno-exceptions"
--enable-gles2 \ --enable-gles2 \
--disable-gallium-egl \ --disable-gallium-egl \
--disable-xvmc \ --disable-xvmc \
--enable-vdpau \ %{?with_vdpau:--enable-vdpau} \
--with-egl-platforms=x11,drm%{?with_wayland:,wayland} \ --with-egl-platforms=x11,drm%{?with_wayland:,wayland} \
--enable-shared-glapi \ --enable-shared-glapi \
--enable-gbm \ --enable-gbm \
@ -441,7 +446,7 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc docs/COPYING docs/Mesa-MLAA-License-Clarification-Email.txt %doc docs/COPYING docs/Mesa-MLAA-License-Clarification-Email.txt
%dir %{_libdir}/dri %dir %{_libdir}/dri
%if %{with_hardware} %if %{with_hardware}%{?with_vdpau}
%dir %{_libdir}/vdpau %dir %{_libdir}/vdpau
%endif %endif
@ -480,7 +485,7 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/libdricore*.so* %{_libdir}/libdricore*.so*
%{_libdir}/dri/swrast_dri.so %{_libdir}/dri/swrast_dri.so
%if %{with_hardware} %if %{with_hardware}%{?with_vdpau}
%files vdpau-drivers %files vdpau-drivers
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_libdir}/vdpau/libvdpau_nouveau.so.1* %{_libdir}/vdpau/libvdpau_nouveau.so.1*