From d1fcff865880bf2be0c45af3159ea561cd676d03 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Mon, 21 Jun 2010 15:19:13 +0000 Subject: [PATCH] no libXvMC on el6/ppc64 --- xine-lib.spec | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/xine-lib.spec b/xine-lib.spec index 17f16b7..a0e1b05 100644 --- a/xine-lib.spec +++ b/xine-lib.spec @@ -24,6 +24,12 @@ %define with_xcb %{?_with_xcb:1}%{!?_with_xcb:0} %endif # Fedora +%if 0%{?rhel} > 5 +%ifarch ppc64 +%define no_xvmc 1 +%endif +%endif + %if 0%{?fedora} > 8 || 0%{?rhel} > 5 %define _without_arts --without-arts %endif @@ -68,7 +74,7 @@ BuildRequires: automake libtool BuildRequires: libX11-devel BuildRequires: libXv-devel BuildRequires: libXinerama-devel -BuildRequires: libXvMC-devel +%{!?no_xvmc:BuildRequires: libXvMC-devel} BuildRequires: libGLU-devel %if 0%{?_enable_v4l:1} BuildRequires: libv4l-devel @@ -384,7 +390,7 @@ rm -rf $RPM_BUILD_ROOT %endif # xcb %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_out_xshm.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_out_xv.so -%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_out_xvmc.so +%{!?no_xvmc:%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_out_xvmc.so} %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_out_xxmc.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_wavpack.so