summaryrefslogtreecommitdiffstats
path: root/redhat/applications/k3b
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/applications/k3b
parent3f0ae4ce7e948c666db00647454b4ec32d796768 (diff)
downloadtde-packaging-77398a607fe09f49f40349bce398661c43e77143.tar.gz
tde-packaging-77398a607fe09f49f40349bce398661c43e77143.zip
RPM: avoid linking to libmad on non-x86 architectures
Diffstat (limited to 'redhat/applications/k3b')
-rw-r--r--redhat/applications/k3b/k3b-14.0.0.spec3
1 files changed, 3 insertions, 0 deletions
diff --git a/redhat/applications/k3b/k3b-14.0.0.spec b/redhat/applications/k3b/k3b-14.0.0.spec
index 9970464d2..a0975d119 100644
--- a/redhat/applications/k3b/k3b-14.0.0.spec
+++ b/redhat/applications/k3b/k3b-14.0.0.spec
@@ -180,6 +180,7 @@ BuildRequires: flac-devel
%endif
# MAD support
+%ifarch %{ix86} x86_64
%if 0%{?mdkversion} || 0%{?mgaversion} || 0%{?fedora} || 0%{?suse_version} || 0%{?rhel}
%define with_libmad 1
%if 0%{?mdkversion} || 0%{?mgaversion}
@@ -189,6 +190,7 @@ BuildRequires: %{_lib}mad-devel
BuildRequires: libmad-devel
%endif
%endif
+%endif
# LAME support
%if 0%{?opensuse_bs} == 0
@@ -448,6 +450,7 @@ fi
-DWITH_FFMPEG_ALL_CODECS="ON" \
-DWITH_MUSEPACK="ON" \
-DWITH_LAME="%{!?with_lame:OFF}%{?with_lame:ON}" \
+ -DWITH_MAD="%{!?with_libmad:OFF}%{?with_libmad:ON}" \
..
%__make %{?_smp_mflags} || %__make