RPM: disable lame support when building on OBS

pull/3/head
François Andriot 7 years ago
parent ce947350eb
commit ffaa912975

@ -191,6 +191,7 @@ BuildRequires: libmad-devel
%endif
# LAME support
%if 0%{?opensuse_bs} == 0
%if 0%{?mdkversion} || 0%{?mgaversion} || 0%{?fedora} || 0%{?suse_version} || 0%{?rhel}
%define with_lame 1
%if 0%{?mgaversion} || 0%{?mdkversion}
@ -211,6 +212,7 @@ BuildRequires: libmp3lame-devel
BuildRequires: lame-devel
%endif
%endif
%endif
# FFMPEG support
%if 0%{?mdkversion} || 0%{?mgaversion} || 0%{?fedora} || 0%{?suse_version} || 0%{?rhel}
@ -445,6 +447,7 @@ fi
-DWITH_MUSICBRAINZ="OFF" \
-DWITH_FFMPEG_ALL_CODECS="ON" \
-DWITH_MUSEPACK="ON" \
-DWITH_LAME="%{!?with_lame:OFF}%{?with_lame:ON}" \
..
%__make %{?_smp_mflags} || %__make

@ -154,6 +154,7 @@ BuildRequires: libxine-devel
%endif
# LAME support
%if 0%{?opensuse_bs} == 0
%if 0%{?mdkversion} || 0%{?mgaversion} || 0%{?suse_version} || 0%{?rhel}
%define with_lame 1
@ -175,6 +176,7 @@ BuildRequires: libmp3lame-devel
BuildRequires: lame-devel
%endif
%endif
%endif
# WTF support
%if 0%{?mgaversion} || 0%{?mdkversion}

@ -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}

@ -185,6 +185,7 @@ BuildRequires: libxine-devel
%endif
# LAME support
%if 0%{?opensuse_bs} == 0
%define with_lame 1
%if 0%{?mgaversion} || 0%{?mdkversion}
@ -198,10 +199,10 @@ BuildRequires: %{_lib}lame-devel
%endif
%endif
%endif
%if 0%{?suse_version}
BuildRequires: libmp3lame-devel
%endif
%endif
# IDN support
BuildRequires: libidn-devel

Loading…
Cancel
Save