From 8ab4d3920b6da379f4d14ff3b78d088a45df7cb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Mon, 8 May 2023 13:52:09 +0200 Subject: RPM: update build scripts for Fedora 38 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: François Andriot --- redhat/applications/multimedia/k3b/k3b.spec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'redhat/applications/multimedia/k3b') diff --git a/redhat/applications/multimedia/k3b/k3b.spec b/redhat/applications/multimedia/k3b/k3b.spec index ed7d62590..f5a2cb013 100644 --- a/redhat/applications/multimedia/k3b/k3b.spec +++ b/redhat/applications/multimedia/k3b/k3b.spec @@ -80,7 +80,6 @@ BuildRequires: brp-check-trinity BuildRequires: alsa-lib-devel BuildRequires: audiofile-devel BuildRequires: gettext -BuildRequires: libmpcdec-devel BuildRequires: libvorbis-devel BuildRequires: taglib-devel BuildRequires: zlib-devel @@ -227,6 +226,12 @@ BuildRequires: ffmpeg-devel %endif %endif +# MUSEPACK +%if 0%{?fedora} != 38 +%define with_musepack 1 +BuildRequires: libmpcdec-devel +%endif + %description K3b provides a comfortable user interface to perform most CD/DVD @@ -260,8 +265,10 @@ start. %{tde_tdelibdir}/libk3blibsndfiledecoder.la %{tde_tdelibdir}/libk3blibsndfiledecoder.so %endif +%if 0%{?with_musepack} %{tde_tdelibdir}/libk3bmpcdecoder.la %{tde_tdelibdir}/libk3bmpcdecoder.so +%endif %{tde_tdelibdir}/libk3boggvorbisdecoder.la %{tde_tdelibdir}/libk3boggvorbisdecoder.so %{tde_tdelibdir}/libk3boggvorbisencoder.la @@ -453,7 +460,7 @@ fi -DWITH_ALL_OPTIONS="ON" \ -DWITH_MUSICBRAINZ="OFF" \ -DWITH_FFMPEG_ALL_CODECS="ON" \ - -DWITH_MUSEPACK="ON" \ + -DWITH_MUSEPACK="%{!?with_musepack:OFF}%{?with_musepack:ON}" \ -DWITH_LAME="%{!?with_lame:OFF}%{?with_lame:ON}" \ -DWITH_MAD="%{!?with_libmad:OFF}%{?with_libmad:ON}" \ %if 0%{?rhel} == 5 -- cgit v1.2.1