diff options
Diffstat (limited to 'redhat/dependencies/akode/akode.spec')
-rw-r--r-- | redhat/dependencies/akode/akode.spec | 31 |
1 files changed, 25 insertions, 6 deletions
diff --git a/redhat/dependencies/akode/akode.spec b/redhat/dependencies/akode/akode.spec index 11b6ee27a..958b3eed4 100644 --- a/redhat/dependencies/akode/akode.spec +++ b/redhat/dependencies/akode/akode.spec @@ -22,7 +22,7 @@ # TDE variables %define tde_epoch 2 %if "%{?tde_version}" == "" -%define tde_version 14.1.0 +%define tde_version 14.1.2 %endif %define tde_prefix /opt/trinity %define tde_bindir %{tde_prefix}/bin @@ -73,7 +73,7 @@ BuildRequires: trinity-filesystem >= %{tde_version} # FLAC support %define _with_flac --with-flac %if 0%{?mgaversion} || 0%{?mdkversion} -BuildRequires: libflac-devel +BuildRequires: %{_lib}flac-devel %endif %if 0%{?rhel} || 0%{?fedora} || 0%{?suse_version} BuildRequires: flac-devel @@ -83,7 +83,7 @@ BuildRequires: flac-devel %if 0%{?rhel} >= 5 || 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version} %define _with_jack --with-jack %if 0%{?mgaversion} || 0%{?mdkversion} -BuildRequires: libjack-devel +BuildRequires: %{_lib}jack-devel %endif %if 0%{?rhel} || 0%{?fedora} || 0%{?suse_version} BuildRequires: jack-audio-connection-kit-devel @@ -93,14 +93,18 @@ BuildRequires: jack-audio-connection-kit-devel # SAMPLERATE support %if 0%{?rhel} >= 4 || 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version} %define _with_libsamplerate --with-libsamplerate +%if 0%{?mdkversion} || 0%{?mgaversion} +BuildRequires: %{_lib}samplerate-devel +%else BuildRequires: libsamplerate-devel %endif +%endif # PULSEAUDIO support %if 0%{?fedora} >= 15 || 0%{?rhel} >= 6 || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version} %define _with_pulseaudio --with-pulseaudio %if 0%{?mgaversion} || 0%{?mdkversion} -BuildRequires: libpulseaudio-devel +BuildRequires: %{_lib}pulseaudio-devel %endif %if 0%{?rhel} || 0%{?fedora} BuildRequires: pulseaudio-libs-devel @@ -114,18 +118,33 @@ BuildRequires: pulseaudio-devel %ifarch %{ix86} x86_64 %if 0%{?mdkversion} || 0%{?mgaversion} || 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} %define _with_libmad --with-libmad +%if 0%{?mdkver} +BuildRequires: %{_lib}mad-devel +%else BuildRequires: libmad-devel %endif %endif +%endif # ALSA support %if 0%{?suse_version} BuildRequires: alsa-devel %else +%if 0%{?mdkver} +BuildRequires: %{_lib}asound-devel +%else BuildRequires: alsa-lib-devel %endif +%endif + +# VORBIS support +%if 0%{?mdkver} || 0%{?mgaversion} +%define libvorbis_devel %{_lib}vorbis-devel +%else +%define libvorbis_devel libvorbis-devel +%endif +BuildRequires: %{libvorbis_devel} -BuildRequires: libvorbis-devel BuildRequires: speex-devel @@ -314,7 +333,7 @@ This package contains the mad decoder for Akode. %build unset QTDIR QTINC QTLIB -if ! rpm -E %%cmake|grep -q "cd build"; then +if ! rpm -E %%cmake|grep -e 'cd build\|cd ${CMAKE_BUILD_DIR:-build}'; then %__mkdir_p build cd build fi |