From 77398a607fe09f49f40349bce398661c43e77143 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Tue, 19 Jun 2018 20:09:51 +0200 Subject: RPM: avoid linking to libmad on non-x86 architectures --- redhat/main/tdemultimedia/tdemultimedia-14.0.0-autotools.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'redhat/main/tdemultimedia/tdemultimedia-14.0.0-autotools.spec') diff --git a/redhat/main/tdemultimedia/tdemultimedia-14.0.0-autotools.spec b/redhat/main/tdemultimedia/tdemultimedia-14.0.0-autotools.spec index 26743e5d8..44fd60fab 100644 --- a/redhat/main/tdemultimedia/tdemultimedia-14.0.0-autotools.spec +++ b/redhat/main/tdemultimedia/tdemultimedia-14.0.0-autotools.spec @@ -94,8 +94,11 @@ BuildRequires: taglib-devel %define with_akode 1 BuildRequires: trinity-akode-devel -%define with_mad 1 -%{?with_mad:BuildRequires: libakode_mpeg_decoder} +# MAD support +%ifarch %{ix86} x86_64 +%define with_libmad 1 +%{?with_libmad:BuildRequires: libakode_mpeg_decoder} +%endif # ZLIB support BuildRequires: zlib-devel @@ -740,7 +743,7 @@ This package contains akode plugins for aRts. %{tde_libdir}/mcop/akodeXiphPlayObject.mcopclass # Requires MAD support -%{?with_mad:%{tde_libdir}/mcop/akodeMPEGPlayObject.mcopclass} +%{?with_libmad:%{tde_libdir}/mcop/akodeMPEGPlayObject.mcopclass} %endif -- cgit v1.2.1