Disable JACK on rhel >= 8

This commit is contained in:
Wim Taymans 2021-01-12 12:25:50 +01:00 committed by Igor Raits
parent 6def5d9d30
commit 1cb4d06cc4
No known key found for this signature in database
GPG Key ID: 115D5AB89C5C1E1E

View File

@ -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 <wtaymans@redhat.com> - 2.0.12-5
- Disable JACK on rhel >= 8
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.12-4
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild