From 68141aad336e8d7b543ed5cd5364dc68ed7cb8ba Mon Sep 17 00:00:00 2001 From: Michael Cronenworth Date: Wed, 15 Feb 2023 21:14:51 -0600 Subject: [PATCH] Conditionalize native package for Fedora EPEL 9 has an older SDL2 that may be updated around May 2023. --- FAudio.spec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/FAudio.spec b/FAudio.spec index d9e4f44..e1dd876 100644 --- a/FAudio.spec +++ b/FAudio.spec @@ -12,7 +12,9 @@ BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: make +%if 0%{fedora} BuildRequires: SDL2-devel >= 2.24 +%{endif} BuildRequires: mingw32-filesystem >= 95 BuildRequires: mingw32-gcc @@ -75,8 +77,10 @@ cp -rp . ../mingw-build %build +%if 0%{fedora} %cmake %cmake_build +%{endif} pushd ../mingw-build %mingw_cmake @@ -85,7 +89,9 @@ popd %install +%if 0%{fedora} %cmake_install +%{endif} pushd ../mingw-build %mingw_make_install @@ -93,6 +99,7 @@ pushd ../mingw-build popd +%if 0%{fedora} %files -n libFAudio %license LICENSE %doc README @@ -111,6 +118,7 @@ popd %{_includedir}/FAPOFX.h %{_includedir}/FAudio.h %{_includedir}/FAudioFX.h +%{endif} %files -n mingw32-%{name}