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/tdeaccessibility/tdeaccessibility-14.0.0.spec | 7 +++++-- redhat/main/tdeaccessibility/tdeaccessibility-3.5.13.2.spec | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'redhat/main/tdeaccessibility') diff --git a/redhat/main/tdeaccessibility/tdeaccessibility-14.0.0.spec b/redhat/main/tdeaccessibility/tdeaccessibility-14.0.0.spec index f0e079e69..3e8d02cf6 100644 --- a/redhat/main/tdeaccessibility/tdeaccessibility-14.0.0.spec +++ b/redhat/main/tdeaccessibility/tdeaccessibility-14.0.0.spec @@ -87,8 +87,11 @@ BuildRequires: audiofile-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 # ALSA support BuildRequires: alsa-lib-devel diff --git a/redhat/main/tdeaccessibility/tdeaccessibility-3.5.13.2.spec b/redhat/main/tdeaccessibility/tdeaccessibility-3.5.13.2.spec index 4ab4e2b2f..37aa24acf 100644 --- a/redhat/main/tdeaccessibility/tdeaccessibility-3.5.13.2.spec +++ b/redhat/main/tdeaccessibility/tdeaccessibility-3.5.13.2.spec @@ -82,7 +82,7 @@ BuildRequires: audiofile-devel # AKODE support %if 0%{?with_akode} BuildRequires: trinity-akode-devel -%{?with_mad:BuildRequires: trinity-akode-libmad} +%{?with_libmad:BuildRequires: trinity-akode-libmad} %endif # ALSA support -- cgit v1.2.1