summaryrefslogtreecommitdiffstats
path: root/redhat/applications/tderadio
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2018-06-02 14:27:43 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2018-06-19 20:11:02 +0200
commitffaa912975f8f31b0daa221a1d604f65fc9b429d (patch)
tree112b829575cf66811046199001919866ef692c6d /redhat/applications/tderadio
parentce947350eb2ae4260a6476e302fb73ad244fe955 (diff)
downloadtde-packaging-ffaa912975f8f31b0daa221a1d604f65fc9b429d.tar.gz
tde-packaging-ffaa912975f8f31b0daa221a1d604f65fc9b429d.zip
RPM: disable lame support when building on OBS
Diffstat (limited to 'redhat/applications/tderadio')
-rw-r--r--redhat/applications/tderadio/tderadio-14.0.0.spec21
1 files changed, 18 insertions, 3 deletions
diff --git a/redhat/applications/tderadio/tderadio-14.0.0.spec b/redhat/applications/tderadio/tderadio-14.0.0.spec
index 8b1cb0393..8754b1fd0 100644
--- a/redhat/applications/tderadio/tderadio-14.0.0.spec
+++ b/redhat/applications/tderadio/tderadio-14.0.0.spec
@@ -83,15 +83,30 @@ BuildRequires: brp-check-trinity
BuildRequires: libsndfile-devel
%{?with_lirc:BuildRequires: lirc-devel}
+# LAME support
+%if 0%{?opensuse_bs} == 0
+%if 0%{?mdkversion} || 0%{?mgaversion} || 0%{?suse_version} || 0%{?rhel}
+%define with_lame 1
+
%if 0%{?mgaversion} || 0%{?mdkversion}
-BuildRequires: %{_lib}twolame-devel
+%if 0%{?pclinuxos}
+BuildRequires: liblame-devel
+%else
+%if 0%{?mgaversion} >= 6
+BuildRequires: %{_lib}mp3lame-devel
+%else
+BuildRequires: %{_lib}lame-devel
+%endif
+%endif
%endif
%if 0%{?suse_version}
-BuildRequires: libtwolame-devel
+BuildRequires: libmp3lame-devel
%endif
-%if 0%{?rhel} || 0%{?fedora}
+%if 0%{?fedora} || 0%{?rhel}
BuildRequires: lame-devel
%endif
+%endif
+%endif
Obsoletes: trinity-kradio < %{version}-%{release}
Provides: trinity-kradio = %{version}-%{release}