diff --git a/SDL2.spec b/SDL2.spec index 869a5cd..c32a839 100644 --- a/SDL2.spec +++ b/SDL2.spec @@ -1,6 +1,12 @@ +%if 0%{?rhel} >= 8 +%bcond_with jack +%else +%bcond_without jack +%endif + Name: SDL2 Version: 2.0.12 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Cross-platform multimedia library License: zlib and MIT @@ -12,7 +18,7 @@ Patch0: multilib.patch # ptrdiff_t is not the same as khronos defines on 32bit arches Patch1: SDL2-2.0.9-khrplatform.patch -BuildRequires: make +BuildRequires: make BuildRequires: gcc BuildRequires: alsa-lib-devel BuildRequires: audiofile-devel @@ -33,7 +39,9 @@ BuildRequires: systemd-devel # PulseAudio BuildRequires: pkgconfig(libpulse-simple) # Jack +%if %{with jack} BuildRequires: pkgconfig(jack) +%endif # D-Bus BuildRequires: pkgconfig(dbus-1) # IBus @@ -88,7 +96,11 @@ sed -i -e 's/\r//g' TODO.txt README.txt WhatsNew.txt BUGS.txt COPYING.txt CREDIT --disable-esd \ --disable-nas \ --enable-pulseaudio-shared \ +%if %{with jack} --enable-jack-shared \ +%else + --disable-jack \ +%endif --enable-alsa \ --enable-video-wayland \ --enable-video-vulkan \ @@ -135,6 +147,9 @@ rm -vf %{buildroot}%{_libdir}/*.la %{_libdir}/lib*.a %changelog +* Tue Jan 12 2021 Wim Taymans - 2.0.12-5 +- Disable JACK on rhel >= 8 + * Sat Aug 01 2020 Fedora Release Engineering - 2.0.12-4 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild