summaryrefslogtreecommitdiffstats
path: root/redhat/dependencies
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2018-06-19 20:09:51 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2018-06-19 20:11:02 +0200
commit77398a607fe09f49f40349bce398661c43e77143 (patch)
treef425bd25663358da9a4ad30ba58ac2c5577624c9 /redhat/dependencies
parent3f0ae4ce7e948c666db00647454b4ec32d796768 (diff)
downloadtde-packaging-77398a607fe09f49f40349bce398661c43e77143.tar.gz
tde-packaging-77398a607fe09f49f40349bce398661c43e77143.zip
RPM: avoid linking to libmad on non-x86 architectures
Diffstat (limited to 'redhat/dependencies')
-rw-r--r--redhat/dependencies/akode/akode-14.0.0.spec4
1 files changed, 3 insertions, 1 deletions
diff --git a/redhat/dependencies/akode/akode-14.0.0.spec b/redhat/dependencies/akode/akode-14.0.0.spec
index 14bde662f..f4b24e33a 100644
--- a/redhat/dependencies/akode/akode-14.0.0.spec
+++ b/redhat/dependencies/akode/akode-14.0.0.spec
@@ -111,10 +111,12 @@ BuildRequires: pulseaudio-devel
%endif
# MAD support
+%ifarch %{ix86} x86_64
%if 0%{?mdkversion} || 0%{?mgaversion} || 0%{?fedora} || 0%{?suse_version} || 0%{?rhel}
%define _with_libmad --with-libmad
BuildRequires: libmad-devel
%endif
+%endif
# ALSA support
%if 0%{?suse_version}
@@ -338,7 +340,7 @@ fi
\
-DWITH_FFMPEG_DECODER="OFF" \
-DWITH_MPC_DECODER="ON" \
- -DWITH_MPEG_DECODER="ON" \
+ %{!?_with_libmad:-DWITH_MPEG_DECODER="OFF"} %{?_with_libmad:-DWITH_MPEG_DECODER="ON"} \
-DWITH_SRC_RESAMPLER="ON" \
-DWITH_XIPH_DECODER="ON" \
..