summaryrefslogtreecommitdiffstats
path: root/redhat/applications/tderadio/tderadio-14.0.0.spec
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/applications/tderadio/tderadio-14.0.0.spec')
-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}