summaryrefslogtreecommitdiffstats
path: root/redhat/dependencies/akode/akode.spec
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2024-05-09 20:50:37 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2024-05-09 20:50:37 +0200
commitc6d21f1119dd7eb5a1395a8d4640f837223f1ea3 (patch)
tree214cd960ed83db6ae7931d46e7f883b966150e01 /redhat/dependencies/akode/akode.spec
parent2af6f1823f0e7b5fd6bac85f95e0881ff7d41506 (diff)
downloadtde-packaging-c6d21f1119dd7eb5a1395a8d4640f837223f1ea3.tar.gz
tde-packaging-c6d21f1119dd7eb5a1395a8d4640f837223f1ea3.zip
RPM: initial support for OpenMandriva
Signed-off-by: François Andriot <albator78@libertysurf.fr>
Diffstat (limited to 'redhat/dependencies/akode/akode.spec')
-rw-r--r--redhat/dependencies/akode/akode.spec27
1 files changed, 23 insertions, 4 deletions
diff --git a/redhat/dependencies/akode/akode.spec b/redhat/dependencies/akode/akode.spec
index 840e36846..958b3eed4 100644
--- a/redhat/dependencies/akode/akode.spec
+++ b/redhat/dependencies/akode/akode.spec
@@ -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
@@ -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